/* ==========================================================================
   NOVENTA - HOME PAGE DESIGN SYSTEM
   Colores, Tipografía, Componentes y Animaciones
   ========================================================================== */

:root {
  /* Paleta de Colores de Marca */
  --primary: #5517ff;
  --primary-hover: #450ed6;
  --primary-light: #ece7ff;
  --primary-glow: rgba(85, 23, 255, 0.22);

  --accent-teal: #00c9a7;
  --accent-teal-hover: #00b092;
  --accent-teal-light: #e0f9f5;
  --accent-teal-glow: rgba(0, 201, 167, 0.25);

  --dark-navy: #0b132b;
  --dark-navy-surface: #14213d;
  --dark-navy-card: #1c2b54;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;

  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #5517ff;

  /* WhatsApp Brand Color */
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;

  /* Sombras y Elevación */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 6px 14px -3px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.14), 0 10px 20px -6px rgba(15, 23, 42, 0.08);
  --shadow-purple: 0 12px 30px -4px rgba(85, 23, 255, 0.35);

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Contenedores */
  --container-max: 1220px;
  --container-padding: 24px;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /*desplazamientos suaves after click*/
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden; /*evita el scroll horizontal*/
  -webkit-font-smoothing: antialiased;/*letra fina y nitida para macOS y IOS*/
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ==========================================================================
   HEADER / BARRA DE NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-search {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-search:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

/* Botón Destacado WhatsApp / Contacto */
.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-whatsapp-header:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(85, 23, 255, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(0, 201, 167, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 10% 70%, rgba(85, 23, 255, 0.05) 0%, transparent 40%),
              #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 620px;
}

.hero-headline {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--dark-navy);
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-headline span.accent {
  color: var(--accent-teal);
  background: linear-gradient(135deg, var(--accent-teal) 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-ctas {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 44px;
  max-width: 100%;
}

.hero-ctas .btn-primary,
.hero-ctas .btn-secondary {
  white-space: nowrap;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow-purple);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -4px rgba(85, 23, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--dark-navy);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 600;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Badges de Confianza */
.hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.badge-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Gráfico / Avatar 3D Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.avatar-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  border: 4px solid #ffffff;
}

/* ==========================================================================
   MENSAJE FIJO DEL AVATAR (SPEECH BUBBLE)
   Diseñado según directrices de UX/UI y make-interfaces-feel-better:
   - Fijo (sin animación de flotación suelta)
   - Globo de diálogo con colita direccionada hacia el personaje
   - Sombra en capas (layered shadow), glassmorphism y micro-cabecera de emisor
   ========================================================================== */
.avatar-speech-bubble {
  position: absolute;
  bottom: 28px;
  left: 16px;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 18px 14px 16px;
  border-radius: 18px 18px 18px 6px;
  border: 1px solid rgba(85, 23, 255, 0.14);
  box-shadow: 
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 10px 24px -4px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.avatar-speech-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(15, 23, 42, 0.06),
    0 16px 32px -6px rgba(85, 23, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 1) inset;
}

/* Colita del bocadillo que apunta directamente hacia el avatar */
.avatar-speech-bubble .speech-tail {
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid rgba(85, 23, 255, 0.14);
  border-right: 1px solid rgba(85, 23, 255, 0.14);
}

.speech-bubble-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.speech-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--accent-teal);
  box-shadow: 0 0 0 3px var(--accent-teal-light);
}

.speech-author {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.speech-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--dark-navy);
  line-height: 1.35;
  margin: 0;
  text-wrap: pretty;
}

/* ==========================================================================
   SECCIÓN 3: OPORTUNIDADES DESTACADAS
   ========================================================================== */
.section-opportunities {
  padding: 90px 0;
  background-color: var(--bg-body);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.link-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap var(--transition-fast);
}

.link-all:hover {
  gap: 10px;
  text-decoration: underline;
}

/* Grid de Tarjetas de Oportunidades */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.opp-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.opp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(85, 23, 255, 0.3);
}

.opp-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(85, 23, 255, 0.12);
}

.opp-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 62.5%; /* 16:9 */
  background: var(--bg-alt);
  overflow: hidden;
}

.opp-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.opp-card:hover .opp-card-img-wrap img {
  transform: scale(1.05);
}

.badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-tag.highlight {
  background: #0ea5e9;
  color: #ffffff;
}

.badge-tag.soon {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--border-light);
}

.opp-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.opp-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.opp-card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.opp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.opp-card-link:hover {
  text-decoration: underline;
}

.btn-soon {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-soon:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   SECCIÓN 4: PROPUESTA DE VALOR / TRILOGÍA
   ========================================================================== */
.section-value {
  padding: 90px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.center-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.center-header .section-title {
  margin-bottom: 12px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  background: var(--bg-body);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  text-align: left;
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
  border-color: var(--border-subtle);
}

.value-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.icon-teal {
  background: var(--accent-teal-light);
  color: var(--accent-teal);
}

.icon-purple {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.value-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--dark-navy);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN 5: ASESORÍA CON IA Y ATENCIÓN HUMANA
   ========================================================================== */
.section-advisory {
  padding: 90px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.advisory-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

/* Columna 1: Info y CTA */
.advisory-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advisory-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.advisory-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 440px;
}

.advisory-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.advisory-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--dark-navy);
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.28);
}

.advisory-cta-wrap {
  display: flex;
  align-items: center;
}

.advisory-cta-wrap .btn-primary {
  padding: 14px 28px;
  font-size: 0.98rem;
}

/* Columna 2: Chat Mockup */
.advisory-mockup-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.mockup-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-navy);
}

.mockup-logo-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.mockup-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mockup-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mockup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mockup-bubble {
  background: #f1f5f9;
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--dark-navy);
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mockup-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 48px;
}

.mockup-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 20px;
  border: 1.5px solid #dbeafe;
  background: #ffffff;
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mockup-pill-btn svg {
  color: #3b82f6;
  flex-shrink: 0;
}

.mockup-pill-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

.mockup-footer {
  margin-top: 20px;
}

.mockup-input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  background: #f8fafc;
}

.mockup-placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
}

.mockup-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.mockup-send-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

/* Columna 3: Canales de Atención */
.advisory-channels-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.channels-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--dark-navy);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.channel-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateX(4px);
}

.channel-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.channel-icon-box.channel-whatsapp {
  background: #25D366;
}

.channel-icon-box.channel-web {
  background: #0f172a;
}

.channel-icon-box.channel-email {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.channel-name {
  color: var(--dark-navy);
  font-size: 1rem;
  font-weight: 600;
}

.channels-social-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
}

.channels-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channels-social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.channels-social-links a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.channels-social-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCIÓN 6: RECURSOS PARA EMPRENDEDORES
   ========================================================================== */
.section-resources {
  padding: 90px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  border-color: rgba(85, 23, 255, 0.28);
}

.resource-img-wrap {
  width: 130px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
}

.resource-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.resource-card:hover .resource-img-wrap img {
  transform: scale(1.05);
}

.resource-body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.resource-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 6px;
  line-height: 1.25;
}

.resource-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   SECCIÓN 7: CTA FINAL BANNER
   ========================================================================== */
.section-cta-final {
  padding: 50px 0 80px;
  background: #ffffff;
}

.cta-banner {
  background: linear-gradient(90deg, #07153b 0%, #0d276b 100%);
  border-radius: var(--radius-lg);
  padding: 38px 48px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 14px 36px rgba(7, 21, 59, 0.18);
}

.cta-text h3 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  margin: 0;
  line-height: 1.4;
}

.btn-whatsapp-banner {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  color: var(--dark-navy);
  padding: 6px 28px 6px 12px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
  text-decoration: none;
  flex-shrink: 0;
}

.btn-whatsapp-banner .whatsapp-icon {
  color: #25D366;
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-whatsapp-banner .arrow-icon {
  width: 20px;
  height: 20px;
  color: var(--dark-navy);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.btn-whatsapp-banner:hover {
  background: #ffffff;
  color: var(--dark-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.btn-whatsapp-banner:hover .arrow-icon {
  transform: translateX(3px);
}

.btn-whatsapp-banner:hover .whatsapp-icon {
  transform: scale(1.1);
}

/* ==========================================================================
   SECCIÓN 8: FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-body);
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.6fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo-footer {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--dark-navy);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.newsletter-form {
  margin-top: 12px;
}

.newsletter-form p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.input-btn-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  box-shadow: var(--shadow-sm);
}

.input-btn-group input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 0.9rem;
  background: transparent;
}

.btn-arrow-submit {
  background: var(--primary);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-arrow-submit:hover {
  background: var(--primary-hover);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   MODAL INTERACTIVO (Quiero ser el primero / Info)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* ==========================================================================
   SECCIÓN 6: PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.section-faq {
  padding: 90px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.faq-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.faq-header-center .section-title {
  margin-top: 12px;
  margin-bottom: 12px;
}

.faq-accordion-wrap {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -4px rgba(85, 23, 255, 0.12);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--dark-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  color: var(--primary);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 28px;
}

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

.faq-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
  margin: 0;
}

.faq-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.faq-contact-box {
  max-width: 840px;
  margin: 36px auto 0;
  background: #ffffff;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faq-contact-box p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-contact-box p strong {
  color: var(--dark-navy);
}

.faq-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.faq-contact-btn:hover {
  background: var(--whatsapp-hover);
}

/* ==========================================================================
   CENTRO LEGAL (legal.html)
   ========================================================================== */
.legal-header {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-light);
}

.legal-header-inner {
  max-width: 820px;
}

.legal-header-title {
  font-size: 2.6rem;
  color: var(--dark-navy);
  margin: 12px 0 10px;
  font-weight: 700;
}

.legal-header-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: start;
  padding: 50px 0 90px;
}

.legal-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-nav-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.legal-nav-card h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 12px 10px;
  margin: 0;
}

.legal-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.legal-nav-link svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.legal-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.legal-nav-link:hover svg {
  color: var(--primary);
}

.legal-nav-link.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.legal-nav-link.active svg {
  color: #ffffff;
}

.legal-company-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.legal-company-card h5 {
  color: var(--dark-navy);
  font-size: 0.98rem;
  margin: 0 0 10px;
  font-weight: 600;
}

.legal-company-card p {
  margin: 0 0 8px;
}

.legal-company-card p:last-child {
  margin-bottom: 0;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-section-block {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}

.legal-section-title-wrap {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.legal-section-title {
  font-size: 1.85rem;
  color: var(--dark-navy);
  margin: 8px 0 4px;
  font-weight: 700;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-article {
  margin-bottom: 28px;
}

.legal-article:last-child {
  margin-bottom: 0;
}

.legal-article h3 {
  font-size: 1.2rem;
  color: var(--dark-navy);
  margin: 0 0 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-article p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
  margin: 0 0 12px;
}

.legal-article ul {
  margin: 0 0 14px 20px;
  padding: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.96rem;
}

.legal-article li {
  margin-bottom: 6px;
}

.legal-callout-info {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 0.92rem;
  color: var(--dark-navy);
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 2.8rem;
  }
  .advisory-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .advisory-info {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-menu, .btn-search {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-headline {
    font-size: 2.3rem;
  }
  .avatar-speech-bubble {
    left: 10px;
    bottom: 12px;
    max-width: 230px;
    padding: 10px 14px;
  }
  .avatar-speech-bubble .speech-text {
    font-size: 0.85rem;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 13px 22px;
  }
  .value-grid, .resources-grid, .opportunities-grid {
    grid-template-columns: 1fr;
  }
  .advisory-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .advisory-info {
    grid-column: 1;
  }
  .advisory-title {
    font-size: 1.95rem;
  }
  .advisory-cta-wrap .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .mockup-pills {
    padding-left: 0;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 22px;
    gap: 20px;
  }
  .cta-text h3 {
    font-size: 1.4rem;
  }
  .btn-whatsapp-banner {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    white-space: normal;   /* el texto puede bajar de línea en vez de empujar los íconos afuera */
    text-align: left;
    font-size: 1rem;
  }
  .btn-whatsapp-banner .whatsapp-icon {
    width: 44px;
    height: 44px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .faq-trigger {
    padding: 18px 20px;
    font-size: 1rem;
  }
  .faq-content {
    padding: 0 20px;
  }
  .faq-item.active .faq-content {
    padding: 0 20px 20px;
  }
  .faq-contact-box {
    flex-direction: column;
    text-align: center;
  }
  .legal-section-block {
    padding: 28px 20px;
  }
  .legal-header-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .resource-card {
    padding: 14px;
    gap: 14px;
  }
  .resource-img-wrap {
    width: 105px;
    height: 90px;
    border-radius: 12px;
  }
  .resource-title {
    font-size: 1.15rem;
  }
  .resource-desc {
    font-size: 0.92rem;
  }
}
