/*
╔═══════════════════════════════════════════════════════════════╗
║  MENÚ EXACTO DE EKSTER.COM                                    ║
║  Replicación fiel del diseño desktop y móvil                  ║
╚═══════════════════════════════════════════════════════════════╝
*/

/* ===========================
   MEGA MENÚ DESKTOP (EKSTER)
   Estilo minimalista profesional
   =========================== */

/* Overlay del mega menú */
.ekster-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.ekster-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Contenedor principal del mega menú */
.ekster-mega-menu {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 92%;
  max-width: 1100px;
  max-height: 85vh;
  background: #FFFFFF;
  border-radius: 32px;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
  display: none; /* Oculto por defecto */
}

.ekster-mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.imagot-desktop{
    box-sizing: border-box;
max-height: 40px;
padding: 6px 0px;
  
}

.imagot-mobile{
    box-sizing: border-box;
    max-height: 30px;
    padding: 4px 0px;
  
}

/* Mostrar solo en desktop */
@media (min-width: 1025px) {
  .ekster-mega-menu {
    display: flex;
  }
}

/* Columna izquierda - Categorías */
.ekster-menu-categories {
  width: 32%;
  background: #F9FAFB;
  padding: 48px 32px;
  border-radius: 32px 0 0 32px;
  overflow-y: auto;
}

.ekster-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
  color: #374151;
  background: transparent;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
}

.ekster-category-item:hover {
  background: #FFFFFF;
  color: #1A1A1A;
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ekster-category-item.active {
  background: #FFFFFF;
  color: #FF6B35;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.12);
}

.ekster-category-arrow {
  font-size: 18px;
  opacity: 0;
  transition: all 0.2s ease;
  color: #FF6B35;
}

.ekster-category-item:hover .ekster-category-arrow,
.ekster-category-item.active .ekster-category-arrow {
  opacity: 1;
}

/* Columna derecha - Contenido */
.ekster-menu-content {
  width: 68%;
  padding: 48px 40px;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 0 32px 32px 0;
}

.ekster-category-content {
  display: none;
}

.ekster-category-content.active {
  display: block;
}

/* Grid de productos */
.ekster-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.ekster-product-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #FAFAFA;
  border: 1px solid transparent;
}

.ekster-product-card:hover {
  background: #FFFFFF;
  border-color: #E5E7EB;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.ekster-product-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ekster-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.ekster-product-badge {
  display: inline-block;
  padding: 5px 12px;
  background: #1A1A1A;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  width: fit-content;
  letter-spacing: 0.8px;
}

.ekster-product-badge.popular {
  background: #1A1A1A;
}

.ekster-product-badge.new {
  background: #FF6B35;
}

.ekster-product-badge.recommended {
  background: #10B981;
}

.ekster-product-name {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.ekster-product-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
}

/* Secciones destacadas (Bestsellers, New drops) */
.ekster-featured-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.ekster-featured-card {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ekster-featured-card:hover {
  transform: scale(1.02);
}

.ekster-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ekster-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.ekster-featured-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Link "View all" */
.ekster-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  background: #F9FAFB;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.2px;
}

.ekster-view-all:hover {
  gap: 14px;
  background: #FFFFFF;
  border-color: #FF6B35;
  color: #FF6B35;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}

.ekster-view-all svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.ekster-view-all:hover svg {
  transform: translateX(2px);
}

/* ===========================
   MENÚ MÓVIL (EKSTER)
   =========================== */

.ekster-mobile-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

@media (max-width: 1024px) {
  /* Ocultar mega menú desktop */
  .ekster-mega-menu {
    display: none;
  }

  /* Mostrar menú móvil */
  .ekster-mobile-menu {
    display: block;
  }
}

.ekster-mobile-menu.active {
  transform: translateY(0);
}

.ekster-mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  border-bottom: 1px solid #E5E5E5;
}

.ekster-mobile-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.ekster-mobile-close:active {
  background: #F5F5F5;
}

.ekster-mobile-close svg {
  width: 24px;
  height: 24px;
}

.ekster-mobile-content {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}

/* Links principales */
.ekster-mobile-nav {
  margin-bottom: 32px;
}

.ekster-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
  border-bottom: 1px solid #E5E5E5;
  transition: color 0.2s ease;
}

.ekster-mobile-link:active {
  color: #FF6B35;
}

.ekster-mobile-link svg {
  width: 20px;
  height: 20px;
}

/* Featured sections móvil */
.ekster-mobile-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.ekster-mobile-featured-card {
  position: relative;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
}

.ekster-mobile-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ekster-mobile-featured-title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Footer móvil */
.ekster-mobile-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #E5E5E5;
  padding-bottom: 60px;
}

.ekster-mobile-footer-link {
  font-size: 15px;
  color: #666666;
  text-decoration: none;
  font-weight: 500;
}

/* ===========================
   NAVEGACIÓN INFERIOR MÓVIL
   Sticky bottom bar (Ekster style)
   =========================== */

.ekster-bottom-nav {
  display: none;
  position: fixed;
  bottom: 12px; /* Separación del borde */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px); /* Márgenes laterales */
  max-width: 420px; /* Ancho máximo como Ekster */
  background: #1A1A1A;
  padding: 6px 12px; /* Más delgado */
  border-radius: 24px; /* Bien redondeado */
  z-index: 1100;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  opacity: .97;
}

@media (max-width: 768px) {
  .ekster-bottom-nav {
    display: block;
  }

  /* Ocultar header superior en móvil */
  .header {
    display: none;
  }
}

.ekster-bottom-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ekster-bottom-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 12px;
  flex: 1;
  max-width: 48px;
}

/* Logo en el centro */
.ekster-bottom-nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  cursor: pointer;
  flex: 1;
  justify-content: center;
}

.ekster-bottom-nav-logo svg {
  width: 20px;
  height: 20px;
}

/* Asegurar que los hijos del botón no bloqueen clicks */
.ekster-bottom-nav-item *,
.ekster-bottom-nav-logo * {
  pointer-events: none;
}

.ekster-bottom-nav-item:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
}

.ekster-bottom-nav-item.active {
  color: #FF6B35;
}

.ekster-bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

/* Header sticky superior móvil */
.ekster-mobile-header {
  display: none;
  position: sticky;
  top: 0;
  background: #1A1A1A;
  z-index: 997;
  padding: 0;
}

@media (max-width: 768px) {
  .ekster-mobile-header {
    display: block;
  }
}

.ekster-mobile-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ekster-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.ekster-mobile-tab {
  flex: 0 0 auto;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.ekster-mobile-tab.active {
  color: #FFFFFF;
  border-bottom-color: #FF6B35;
}

/* Ajustes para body cuando hay navegación inferior */
@media (max-width: 768px) {
  body {
    padding-bottom: 0px; /* Espacio para el bottom nav */
  }
}

/* ===========================
   ANIMACIONES
   Sutiles y profesionales
   =========================== */

@keyframes ekster-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ekster-slideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ekster-category-content.active {
  animation: ekster-fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ekster-product-card {
  animation: ekster-slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ekster-product-card:nth-child(1) { animation-delay: 0.05s; }
.ekster-product-card:nth-child(2) { animation-delay: 0.1s; }
.ekster-product-card:nth-child(3) { animation-delay: 0.15s; }
.ekster-product-card:nth-child(4) { animation-delay: 0.2s; }

/* ===========================
   SCROLLBAR PERSONALIZADO
   Estilo minimalista y sutil
   =========================== */

.ekster-menu-categories::-webkit-scrollbar,
.ekster-menu-content::-webkit-scrollbar,
.ekster-mobile-content::-webkit-scrollbar {
  width: 8px;
}

.ekster-menu-categories::-webkit-scrollbar-track,
.ekster-menu-content::-webkit-scrollbar-track,
.ekster-mobile-content::-webkit-scrollbar-track {
  background: transparent;
}

.ekster-menu-categories::-webkit-scrollbar-thumb,
.ekster-menu-content::-webkit-scrollbar-thumb,
.ekster-mobile-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.ekster-menu-categories::-webkit-scrollbar-thumb:hover,
.ekster-menu-content::-webkit-scrollbar-thumb:hover,
.ekster-mobile-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Firefox */
.ekster-menu-categories,
.ekster-menu-content,
.ekster-mobile-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* ===========================
   MODAL CASO DE ÉXITO
   Estilo igual al mega-menú
   =========================== */

.client-case-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1100;
}

.client-case-overlay.active {
  opacity: 1;
  visibility: visible;
}

.client-case-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 92%;
  max-width: 900px;
  max-height: 85vh;
  background: #FFFFFF;
  border-radius: 32px;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1101;
  overflow: hidden;
}

.client-case-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.client-case-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9FAFB;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.client-case-close:hover {
  background: #1A1A1A;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.client-case-close svg {
  width: 20px;
  height: 20px;
}

.client-case-content {
  padding: 48px;
  overflow-y: auto;
  max-height: 85vh;
}

/* Header del caso */
.case-header {
  margin-bottom: 32px;
}

.case-client-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.case-title {
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.case-subtitle {
  font-size: 18px;
  color: #6B7280;
  line-height: 1.6;
}

/* Stats del caso */
.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 32px 0;
  padding: 32px;
  background: #F9FAFB;
  border-radius: 20px;
}

.case-stat {
  text-align: center;
}

.case-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: #FF6B35;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.case-stat-label {
  font-size: 14px;
  color: #6B7280;
  font-weight: 500;
}

/* Secciones del caso */
.case-section {
  margin-bottom: 32px;
}

.case-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-section-icon {
  width: 28px;
  height: 28px;
  background: #FF6B35;
  color: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.case-section-text {
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
}

.case-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: 700;
  font-size: 18px;
}

/* Quote del cliente */
.case-quote {
  background: linear-gradient(135deg, #1A1A1A 0%, #374151 100%);
  color: #FFFFFF;
  padding: 32px;
  border-radius: 20px;
  margin: 32px 0;
  position: relative;
}

.case-quote:before {
  content: """;
  font-size: 120px;
  position: absolute;
  top: -20px;
  left: 20px;
  opacity: 0.1;
  font-family: Georgia, serif;
}

.case-quote-text {
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}

.case-quote-author {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
}

.case-quote-role {
  font-size: 14px;
  opacity: 0.7;
}

/* Responsive Móvil */
@media (max-width: 768px) {
  .client-case-modal {
    width: 95%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    bottom: 0;
    top: auto;
    transform: translate(-50%, 100%);
  }

  .client-case-modal.active {
    transform: translate(-50%, 0);
  }

  .client-case-content {
    padding: 24px 20px;
    padding-bottom: 80px;
    max-height: 90vh;
  }

  .client-case-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .case-client-logo {
    width: 80px;
  }

  .case-title {
    font-size: 22px;
  }

  .case-subtitle {
    font-size: 15px;
  }

  .case-stats {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .case-stat-value {
    font-size: 28px;
  }

  .case-stat-label {
    font-size: 13px;
  }

  .case-section-title {
    font-size: 18px;
  }

  .case-section-text {
    font-size: 15px;
  }

  .case-list li {
    font-size: 15px;
    padding: 10px 0;
    padding-left: 28px;
  }

  .case-quote {
    padding: 24px 20px;
  }

  .case-quote:before {
    font-size: 80px;
    top: -10px;
    left: 10px;
  }

  .case-quote-text {
    font-size: 17px;
  }

  .case-quote-author {
    font-size: 15px;
  }

  .case-quote-role {
    font-size: 13px;
  }
}

/* ===========================
   MENÚ LATERAL MÓVIL (Navegación Principal)
   Slide de izquierda a derecha
   =========================== */

.main-mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1200;
  overflow-y: auto;
}

.main-mobile-sidebar.active {
  transform: translateX(0);
}

.main-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #E5E7EB;
}

.sidebar-logo {
  height: 32px;
  width: auto;
}

.main-sidebar-close {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.main-sidebar-close:hover {
  background: #F3F4F6;
}

.main-sidebar-close svg {
  width: 20px;
  height: 20px;
  color: #1F2937;
}

.main-sidebar-nav {
  padding: 12px 0;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: #1F2937;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
  background: #F9FAFB;
  border-left-color: #0066CC;
  color: #0066CC;
}

.sidebar-nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* Overlay para cerrar el menú */
.main-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1199;
}

.main-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive - Solo visible en móvil */
@media (min-width: 769px) {
  .main-mobile-sidebar,
  .main-sidebar-overlay {
    display: none;
  }
}

/* ===========================
   MEDALLAS DE ANTIGÜEDAD (Clientes)
   Estilo insignia circular tipo achievement
   =========================== */

.client-logo-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.client-medal {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid #FFFFFF;
  background: #FFFFFF;
}

/* Medalla Platino (10+ años) */
.client-medal.platinum {
  background: linear-gradient(135deg, #E5E4E2 0%, #BCC6CC 50%, #E5E4E2 100%);
  box-shadow:
    0 4px 12px rgba(188, 198, 204, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.client-medal.platinum::after {
  content: '🏆';
  filter: grayscale(0.2) brightness(1.1);
}

/* Medalla Oro (7+ años) */
.client-medal.gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  box-shadow:
    0 4px 12px rgba(255, 215, 0, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

.client-medal.gold::after {
  content: '🥇';
}

/* Medalla Plata (3-6 años) */
.client-medal.silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 50%, #C0C0C0 100%);
  box-shadow:
    0 4px 12px rgba(192, 192, 192, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.client-medal.silver::after {
  content: '🥈';
}

/* Medalla Bronce (<3 años) */
.client-medal.bronze {
  background: linear-gradient(135deg, #CD7F32 0%, #B87333 50%, #CD7F32 100%);
  box-shadow:
    0 4px 12px rgba(205, 127, 50, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.client-medal.bronze::after {
  content: '🥉';
}

/* Leyenda de medallas */
.medals-legend {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 24px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.medals-legend-title {
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.medals-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.medal-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #F9FAFB;
  border-radius: 10px;
}

.medal-legend-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.medal-legend-icon.platinum {
  background: linear-gradient(135deg, #E5E4E2 0%, #BCC6CC 50%, #E5E4E2 100%);
}

.medal-legend-icon.gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
}

.medal-legend-icon.silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 50%, #C0C0C0 100%);
}

.medal-legend-icon.bronze {
  background: linear-gradient(135deg, #CD7F32 0%, #B87333 50%, #CD7F32 100%);
}

.medal-legend-text {
  flex: 1;
}

.medal-legend-label {
  font-size: 13px;
  font-weight: 700;
  color: #1F2937;
  display: block;
  margin-bottom: 2px;
}

.medal-legend-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .client-medal {
    width: 36px;
    height: 36px;
    font-size: 18px;
    top: -6px;
    right: -6px;
  }

  .medals-legend {
    padding: 20px;
    margin-top: 24px;
  }

  .medals-legend-grid {
    gap: 12px;
  }

  .medal-legend-item {
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .client-medal {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-width: 2px;
  }

  .medals-legend {
    padding: 16px;
  }

  .medals-legend-title {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .medals-legend-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .medal-legend-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .medal-legend-label {
    font-size: 12px;
  }

  .medal-legend-desc {
    font-size: 11px;
  }
}

/* ===========================
   SECCIÓN LÍNEA DE TIEMPO (How It Works)
   Timeline secuencial del flujo de clientes
   =========================== */

.section-how-it-works {
  padding: 80px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
  position: relative;
  overflow: hidden;
}

.section-how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.workflow-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 60px auto 0;
  position: relative;
}

/* Línea vertical conectora (desktop) */
.workflow-timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 40px;
  bottom: 40px;
  width: 3px;
  background: linear-gradient(180deg, #E5E7EB 0%, #0066CC 50%, #E5E7EB 100%);
  border-radius: 2px;
}

.timeline-step {
  display: flex;
  gap: 24px;
  position: relative;
  padding: 20px 0;
}

.step-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  box-shadow:
    0 4px 12px rgba(0, 102, 204, 0.3),
    0 0 0 4px #FFFFFF,
    0 0 0 6px rgba(0, 102, 204, 0.2);
  z-index: 2;
  position: relative;
}

.step-content {
  flex: 1;
  background: #FFFFFF;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.step-content:hover {
  border-color: #0066CC;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
  transform: translateY(-2px);
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.step-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #6B7280;
  margin: 0 0 16px 0;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #F3F4F6;
  color: #4B5563;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid #E5E7EB;
  transition: all 0.2s ease;
}

.step-tag:hover {
  background: #E0F2FE;
  border-color: #0066CC;
  color: #0066CC;
}

/* Conector entre steps (oculto en desktop porque usamos ::before) */
.timeline-connector {
  display: none;
}

/* Animaciones al hacer scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-step {
  animation: fadeInUp 0.6s ease backwards;
}

.timeline-step:nth-child(2) { animation-delay: 0.1s; }
.timeline-step:nth-child(4) { animation-delay: 0.2s; }
.timeline-step:nth-child(6) { animation-delay: 0.3s; }
.timeline-step:nth-child(8) { animation-delay: 0.4s; }
.timeline-step:nth-child(10) { animation-delay: 0.5s; }

/* Responsive - Tablets */
@media (max-width: 768px) {
  .section-how-it-works {
    padding: 60px 0;
  }

  .workflow-timeline::before {
    left: 23px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .step-content {
    padding: 20px 22px;
  }

  .step-content h3 {
    font-size: 18px;
  }

  .step-content p {
    font-size: 14px;
  }
}

/* Responsive - Móvil */
@media (max-width: 640px) {
  .section-how-it-works {
    padding: 40px 0;
  }

  .workflow-timeline {
    margin-top: 40px;
  }

  .workflow-timeline::before {
    left: 19px;
    top: 30px;
    bottom: 30px;
    width: 2px;
  }

  .timeline-step {
    gap: 16px;
    padding: 12px 0;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
    box-shadow:
      0 2px 8px rgba(0, 102, 204, 0.25),
      0 0 0 3px #FFFFFF,
      0 0 0 5px rgba(0, 102, 204, 0.15);
  }

  .step-content {
    padding: 16px 18px;
    border-radius: 12px;
  }

  .step-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .step-content p {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .step-tags {
    gap: 6px;
  }

  .step-tag {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* ===========================
   SECCIÓN FAQ (Preguntas Frecuentes)
   Diseño discreto tipo acordeón
   =========================== */

.section-faq {
  padding: 80px 0;
  background: #FAFBFC;
}

.faq-grid {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #D1D5DB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #F9FAFB;
}

.faq-question h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
  padding-right: 16px;
  line-height: 1.4;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #9CA3AF;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #0066CC;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px 24px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #6B7280;
  margin: 0;
}

/* Animación sutil al abrir */
@keyframes fadeInAnswer {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active .faq-answer p {
  animation: fadeInAnswer 0.4s ease;
}

/* Responsive - Tablets */
@media (max-width: 768px) {
  .section-faq {
    padding: 60px 0;
  }

  .faq-grid {
    margin-top: 36px;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-question h3 {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 18px 20px;
  }

  .faq-answer p {
    font-size: 14px;
  }
}

/* Responsive - Móvil */
@media (max-width: 640px) {
  body > .section-lg{padding-top: 100px !important;}
  
  .section-faq {
    padding: 40px 0;
  }

  .faq-grid {
    margin-top: 32px;
    gap: 10px;
  }

  .faq-item {
    border-radius: 10px;
  }

  .faq-question {
    padding: 16px 18px;
  }

  .faq-question h3 {
    font-size: 15px;
    padding-right: 12px;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 16px 18px;
  }

  .faq-answer p {
    font-size: 13px;
    line-height: 1.6;
  }
}
body > .section-lg{padding-top: 160px !important;}