/* ============================================================
   MAQUIMOL Colombia - Page Styles
   Hero / Service Cards / Process / Testimonials / Products / FAQ / Contact / Portfolio
   ============================================================ */

/* --------------------------------------------
   1. HERO SECTIONS
   -------------------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
}

.hero--home {
  background: linear-gradient(135deg, #0f2440 0%, #1a3a5c 40%, #2d6da8 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.15;
}

/* SIN overlay oscuro — el fondo ya es oscuro de base */
.hero-overlay,
.hero__overlay {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: animateFadeInUp 0.8s ease;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-bottom: 36px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
  animation: animateFadeInUp 0.8s ease 0.2s both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: animateFadeInUp 0.8s ease 0.4s both;
}

.hero__actions .btn {
  font-size: 1.05rem;
  padding: 14px 32px;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  animation: animateFadeInUp 0.8s ease 0.1s both;
}

/* Hero Small */
.hero-sm {
  min-height: 35vh;
}

.hero-sm .hero__content h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}


/* --------------------------------------------
   2. SERVICE CARDS
   -------------------------------------------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-lighter);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 158, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.service-card:hover .icon {
  background: var(--primary-lighter);
}

.service-card:hover .icon svg {
  fill: var(--white);
}

.service-card .icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary-lighter);
  transition: fill var(--transition-base);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* --------------------------------------------
   3. PROCESS STEPS
   -------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}


.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  position: relative;
  z-index: 2;
  transition: all var(--transition-base);
}

.process-step:hover .process-step-number {
  background: var(--primary-lighter);
  transform: scale(1.1);
}

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.process-steps.has-lines .process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: var(--gray-200);
  z-index: 1;
}

/* --------------------------------------------
   4. TESTIMONIALS
   -------------------------------------------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--primary-lighter);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-light);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: #f5a623;
}

/* --------------------------------------------
   5. PRODUCT GRID
   -------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* ── Product card inside dark sections ── */
.section-dark .product-card,
.section-dark .product-card * {
  color: var(--text);
}

.section-dark .product-card .product-card__title,
.section-dark .product-card h3 {
  color: var(--primary);
}

.section-dark .product-card .product-card__desc {
  color: var(--text-light);
}

.section-dark .product-card .product-card__specs li {
  color: var(--text);
}

.section-dark .product-card .product-card__specs li strong {
  color: var(--primary);
}

.product-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* --------------------------------------------
   6. FAQ ACCORDION
   -------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-question .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --------------------------------------------
   7. CONTACT INFO
   -------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 158, 255, 0.1);
  border-radius: var(--radius-full);
}

.contact-card .icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-lighter);
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-card a {
  font-size: 0.9rem;
  color: var(--primary-light);
  font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-lighter);
  outline: none;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --------------------------------------------
   8. PORTFOLIO GRID
   -------------------------------------------- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.portfolio-filter {
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portfolio-filter:hover,
.portfolio-filter.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 92, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.portfolio-overlay span {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

.portfolio-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* --------------------------------------------
   9. TEAM CARDS
   -------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-card-image img {
  transform: scale(1.05);
}

.team-card-body {
  padding: 20px;
}

.team-card-body h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-card-body .role {
  font-size: 0.85rem;
  color: var(--primary-lighter);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* --------------------------------------------
   10. CTA BANNER
   -------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  font-size: 1.05rem;
  padding: 14px 36px;
}

/* --------------------------------------------
   11. BLOG / NEWS
   -------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.blog-card-body h3 a {
  color: var(--primary);
}

.blog-card-body h3 a:hover {
  color: var(--primary-lighter);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.blog-card-body .btn {
  font-size: 0.85rem;
  padding: 8px 18px;
}

/* --------------------------------------------
   12. PARTNERS / CLIENTS
   -------------------------------------------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  align-items: center;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.partner-item:hover {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: var(--shadow-sm);
}

.partner-item img {
  max-height: 60px;
  width: auto;
}

/* --------------------------------------------
   13. CLIENTS CAROUSEL
   -------------------------------------------- */
.clients-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.clients-carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  overflow: visible;
}

.clients-carousel-track .client-logo {
  flex: 0 0 calc((100% - 96px) / 5) !important;
  min-width: 0 !important;
  max-width: calc((100% - 96px) / 5) !important;
  width: calc((100% - 96px) / 5) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
  box-sizing: border-box;
}

.clients-carousel-track .client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-lighter);
}

.clients-carousel-track .client-logo img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
}

.clients-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  transition: all var(--transition-base);
  z-index: 2;
  box-shadow: 0 3px 12px rgba(26, 58, 92, 0.3);
  line-height: 1;
}

.clients-carousel-btn:hover {
  background: var(--primary-light);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(26, 58, 92, 0.4);
}

.clients-carousel-btn--prev {
  left: 0;
}

.clients-carousel-btn--next {
  right: 0;
}



/* --------------------------------------------
   14. CHATBOT FLOATING BUTTON (right side)
   -------------------------------------------- */
.chatbot-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26, 58, 92, 0.4);
  transition: all var(--transition-base);
}

.chatbot-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(26, 58, 92, 0.5);
}

.chatbot-floating-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.maquimol-chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 997;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 500px;
}

.maquimol-chatbot-container.active {
  display: flex;
}

/* Chatbot Header */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--primary);
  color: var(--white);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.chatbot-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--white);
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.9;
}

.chatbot-toggle-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.chatbot-toggle-btn:hover {
  opacity: 1;
}

/* Chatbot Body */
.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 350px;
}

.chat-message {
  display: flex;
  margin-bottom: 8px;
}

.chat-message--user {
  justify-content: flex-end;
}

.chat-message--bot {
  justify-content: flex-start;
}

.chat-message-content {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-message--user .chat-message-content {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-message--bot .chat-message-content {
  background: var(--gray-100);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

/* Typing indicator */
.chat-message--typing {
  justify-content: flex-start;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Chatbot Footer */
.chatbot-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.chatbot-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chatbot-input:focus {
  border-color: var(--primary);
}

.chatbot-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.chatbot-typing {
  display: flex;
  gap: 3px;
  padding: 8px 0 0;
  align-items: center;
}

.chatbot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.chatbot-typing span:nth-child(1) { animation-delay: -0.32s; }
.chatbot-typing span:nth-child(2) { animation-delay: -0.16s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0s; }

@media (max-width: 768px) {
  .chatbot-floating-btn {
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
  }

  .chatbot-floating-btn img {
    width: 24px;
    height: 24px;
  }

  .maquimol-chatbot-container {
    bottom: 75px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: 450px;
  }

  .chatbot-body {
    max-height: 280px;
    min-height: 150px;
  }

  .clients-carousel-wrapper {
    padding: 0 40px;
  }

  .clients-carousel-track .client-logo {
    flex: 0 0 calc((100% - 48px) / 3);
  }
}

@media (max-width: 576px) {
  .clients-carousel-wrapper {
    padding: 0 35px;
  }

  .clients-carousel-track .client-logo {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .clients-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* --------------------------------------------
   15. ELEMENTOR OVERRIDES — Clases generadas por Elementor
   -------------------------------------------- */

/* Hero section (Elementor) */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2440 0%, #1a3a5c 40%, #2d6da8 100%);
}

.hero-section .hero-overlay {
  display: none !important;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.hero-section .hero-title {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-section .hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-bottom: 36px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.hero-section .hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Clients grid (Elementor) — OCULTO por solicitud del usuario */
.clients-grid,
.elementor-widget-container .clients-grid,
section:has(.clients-grid) {
  display: none !important;
}

/* Service cards (Elementor) — 5 columnas, 1 fila, carrusel */
.services-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 12px !important;
  scrollbar-width: thin !important;
}

.services-grid::-webkit-scrollbar {
  height: 6px;
}
.services-grid::-webkit-scrollbar-thumb {
  background: var(--primary-lighter);
  border-radius: 3px;
}

.services-grid > .elementor-element,
.services-grid > .service-card,
.services-grid > div {
  flex: 0 0 calc((100% - 64px) / 5) !important;
  min-width: 180px !important;
  scroll-snap-align: start !important;
}

/* Why grid (Elementor) — 5 columnas, 1 fila, carrusel */
.why-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 12px !important;
  scrollbar-width: thin !important;
}

.why-grid::-webkit-scrollbar {
  height: 6px;
}
.why-grid::-webkit-scrollbar-thumb {
  background: var(--primary-lighter);
  border-radius: 3px;
}

.why-grid > .elementor-element,
.why-grid > .why-item,
.why-grid > div {
  flex: 0 0 calc((100% - 64px) / 5) !important;
  min-width: 180px !important;
  scroll-snap-align: start !important;
}

/* Responsive para Elementor grids carrusel */
@media (max-width: 992px) {
  .services-grid > .elementor-element,
  .services-grid > .service-card,
  .services-grid > div,
  .why-grid > .elementor-element,
  .why-grid > .why-item,
  .why-grid > div {
    flex: 0 0 calc((100% - 32px) / 3) !important;
  }
}

@media (max-width: 768px) {
  .services-grid > .elementor-element,
  .services-grid > .service-card,
  .services-grid > div,
  .why-grid > .elementor-element,
  .why-grid > .why-item,
  .why-grid > div {
    flex: 0 0 calc((100% - 16px) / 2) !important;
  }
}

@media (max-width: 480px) {
  .services-grid > .elementor-element,
  .services-grid > .service-card,
  .services-grid > div,
  .why-grid > .elementor-element,
  .why-grid > .why-item,
  .why-grid > div {
    flex: 0 0 80% !important;
  }
}



