@import url('./variables.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. RESET Y CONFIGURACIÓN BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Mapeo dinámico del tema */
:root, [data-theme="light"] {
  --bg-primary: var(--ly-bg-alabaster);
  --bg-secondary: var(--ly-bg-sand-subtle);
  --bg-card: var(--ly-bg-card-light);
  --text-primary: var(--ly-navy-deep);
  --text-secondary: var(--ly-navy-light);
  --border-color: #E2E8F0;
  --navbar-bg: rgba(250, 250, 249, 0.8);
  --grid-color: rgba(14, 22, 41, 0.03);
  --card-shadow: var(--ly-shadow-md);
  --card-shadow-hover: var(--ly-shadow-lg);
  --pill-bg: #E2E8F0;
}

[data-theme="dark"] {
  --bg-primary: var(--ly-navy-deep);
  --bg-secondary: #0A0F1D;
  --bg-card: #151F32;
  --text-primary: var(--ly-bg-alabaster);
  --text-secondary: #94A3B8;
  --border-color: #2D3D5A;
  --navbar-bg: rgba(14, 22, 41, 0.8);
  --grid-color: rgba(255, 255, 255, 0.02);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.4);
  --pill-bg: #1E293B;
}

body {
  font-family: var(--ly-font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--ly-leading-normal);
  transition: background-color var(--ly-transition-normal), color var(--ly-transition-normal);
  overflow-x: hidden;
}

/* Retícula Técnica de Fondo */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   2. ELEMENTOS COMUNES Y CONTENEDORES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ly-space-6);
  position: relative;
  z-index: 1;
}

/* Títulos y tipografía */
h1, h2, h3, h4 {
  font-family: var(--ly-font-headings);
  font-weight: var(--ly-weight-bold);
  line-height: var(--ly-leading-tight);
}

.gradient-text {
  background: var(--ly-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-teal {
  color: var(--ly-teal-science);
}

.section-tag {
  font-family: var(--ly-font-headings);
  font-size: var(--ly-text-xs);
  font-weight: var(--ly-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ly-naranja-lince);
  margin-bottom: var(--ly-space-2);
  display: inline-block;
}

.section-title {
  font-size: var(--ly-text-3xl);
  margin-bottom: var(--ly-space-4);
  font-weight: var(--ly-weight-bold);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--ly-text-4xl);
  }
}

.section-subtitle {
  font-size: var(--ly-text-lg);
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: var(--ly-space-12);
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ly-space-2);
  padding: 0.75rem 1.75rem;
  font-size: var(--ly-text-sm);
  font-weight: var(--ly-weight-semibold);
  font-family: var(--ly-font-headings);
  text-decoration: none;
  border-radius: var(--ly-radius-pill);
  transition: all var(--ly-transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ly-gradient-brand);
  color: #FFFFFF;
  box-shadow: var(--ly-shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--ly-shadow-glow);
}

.btn-secondary {
  background: transparent;
  border-color: var(--ly-teal-science);
  color: var(--ly-teal-science);
}

.btn-secondary:hover {
  background-color: rgba(15, 118, 110, 0.05);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary {
  border-color: #CCFBF1;
  color: #CCFBF1;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: rgba(204, 251, 241, 0.1);
}

/* Tarjetas */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--ly-radius-lg);
  padding: var(--ly-space-8);
  box-shadow: var(--card-shadow);
  transition: transform var(--ly-transition-normal), 
              box-shadow var(--ly-transition-normal), 
              border-color var(--ly-transition-normal), 
              background-color var(--ly-transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(255, 110, 39, 0.3);
}

/* ==========================================================================
   3. CABECERA Y NAVEGACIÓN (LIQUID GLASS)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  transition: height var(--ly-transition-normal), background-color var(--ly-transition-normal);
  display: flex;
  align-items: center;
}

.header.scrolled {
  height: 64px;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--ly-shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 38px;
  transition: height var(--ly-transition-normal);
}

.header.scrolled .logo-img {
  height: 32px;
}

.logo-dark-version {
  display: none;
}

[data-theme="dark"] .logo-light-version {
  display: none;
}

[data-theme="dark"] .logo-dark-version {
  display: block;
}

.nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--ly-space-6);
  align-items: center;
}

.nav-link {
  font-family: var(--ly-font-headings);
  font-size: var(--ly-text-sm);
  font-weight: var(--ly-weight-medium);
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--ly-transition-fast);
  position: relative;
  padding: var(--ly-space-2) 0;
}

.nav-link:hover {
  color: var(--ly-naranja-lince);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ly-gradient-brand);
  transition: width var(--ly-transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--ly-space-4);
}

/* Interruptor de Tema (Dark Mode Toggle) */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background-color var(--ly-transition-fast);
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .nav {
    display: block;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* ==========================================================================
   4. HERO SECTION (CON IMAGEN DEL LINCE HORIZONTE)
   ========================================================================== */
.hero {
  padding-top: 140px;
  padding-bottom: var(--ly-space-16);
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero {
    padding-top: 180px;
    padding-bottom: 180px;
    min-height: 600px;
    display: flex;
    align-items: center;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ly-space-12);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-size: var(--ly-text-4xl);
  margin-bottom: var(--ly-space-6);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--ly-text-5xl);
  }
}

.hero-description {
  font-size: var(--ly-text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--ly-space-8);
  max-width: 580px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ly-space-4);
}

/* Visualizador de la Mascota Reciente */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--ly-radius-xl);
  overflow: hidden;
  box-shadow: var(--ly-shadow-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

@media (min-width: 992px) {
  .hero-image-wrapper {
    aspect-ratio: 1/1;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--ly-transition-slow);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
}

/* Badge de Atribución */
.image-attribution-badge {
  position: absolute;
  bottom: var(--ly-space-4);
  right: var(--ly-space-4);
  background-color: rgba(14, 22, 41, 0.7);
  backdrop-filter: blur(4px);
  padding: var(--ly-space-1) var(--ly-space-3);
  border-radius: var(--ly-radius-pill);
  font-size: 10px;
  color: rgba(250, 250, 249, 0.9);
  text-decoration: none;
  font-family: var(--ly-font-headings);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity var(--ly-transition-fast);
  z-index: 10;
}

.image-attribution-badge:hover {
  background-color: rgba(14, 22, 41, 0.9);
  color: #FFFFFF;
}

/* ==========================================================================
   5. NARRATIVA Y CONCEPTO (EL LINCE Y LA ECONOMÍA DE LA SALUD)
   ========================================================================== */
.about {
  padding: var(--ly-space-16) 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--ly-transition-normal), border-color var(--ly-transition-normal);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ly-space-12);
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--ly-radius-xl);
  overflow: hidden;
  box-shadow: var(--ly-shadow-md);
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ly-transition-slow);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.03);
}

.about-content h2 {
  margin-bottom: var(--ly-space-6);
}

.about-p {
  color: var(--text-secondary);
  margin-bottom: var(--ly-space-4);
}

.about-pillars {
  margin-top: var(--ly-space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ly-space-4);
}

@media (min-width: 576px) {
  .about-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar {
  display: flex;
  gap: var(--ly-space-3);
  align-items: flex-start;
}

.pillar-icon {
  width: 24px;
  height: 24px;
  color: var(--ly-naranja-lince);
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-title {
  font-family: var(--ly-font-headings);
  font-size: var(--ly-text-sm);
  font-weight: var(--ly-weight-bold);
  margin-bottom: var(--ly-space-1);
}

.pillar-desc {
  font-size: var(--ly-text-xs);
  color: var(--text-secondary);
}

/* ==========================================================================
   6. SERVICIOS (TARJETAS INTERACTIVAS CON MICRO-ANIMACIÓN)
   ========================================================================== */
.services {
  padding: var(--ly-space-16) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ly-space-6);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  background: var(--ly-gradient-brand-subtle);
  border-radius: var(--ly-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ly-naranja-lince);
  margin-bottom: var(--ly-space-6);
}

.service-card h3 {
  font-size: var(--ly-text-xl);
  margin-bottom: var(--ly-space-3);
}

.service-card p {
  font-size: var(--ly-text-sm);
  color: var(--text-secondary);
  flex-grow: 1;
}

/* ==========================================================================
   7. BASE DE DATOS (DETALLE Y ACCESO AL BUSCADOR)
   ========================================================================== */
.db-showcase {
  padding: var(--ly-space-16) 0;
  position: relative;
}

.db-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ly-space-12);
  align-items: center;
}

@media (min-width: 992px) {
  .db-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.db-preview-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--ly-radius-xl);
  overflow: hidden;
  box-shadow: var(--ly-shadow-lg);
}

/* Cabecera simulada del buscador */
.db-preview-header {
  background-color: var(--ly-navy-deep);
  padding: var(--ly-space-4) var(--ly-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1E293B;
}

.db-preview-title {
  color: #FFFFFF;
  font-family: var(--ly-font-headings);
  font-size: var(--ly-text-sm);
  font-weight: var(--ly-weight-bold);
  display: flex;
  align-items: center;
  gap: var(--ly-space-2);
}

.db-preview-title-dot {
  width: 8px;
  height: 8px;
  background-color: var(--ly-naranja-lince);
  border-radius: 50%;
}

.db-preview-controls {
  display: flex;
  gap: var(--ly-space-1);
}

.db-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #475569;
}

.db-preview-dot.red { background-color: #EF4444; }
.db-preview-dot.yellow { background-color: #F59E0B; }
.db-preview-dot.green { background-color: #10B981; }

.db-preview-body {
  padding: var(--ly-space-6);
  background-color: var(--bg-primary);
  font-family: var(--ly-font-body);
}

.db-preview-search-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--ly-radius-pill);
  padding: var(--ly-space-2) var(--ly-space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ly-space-6);
}

.db-preview-search-text {
  font-size: var(--ly-text-xs);
  color: var(--text-secondary);
}

.db-preview-search-btn {
  background: var(--ly-gradient-brand);
  color: white;
  font-size: 10px;
  font-family: var(--ly-font-headings);
  padding: 4px 12px;
  border-radius: var(--ly-radius-pill);
  border: none;
}

/* Tabla simulada */
.db-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ly-text-xs);
  margin-bottom: var(--ly-space-4);
  border: 1px solid var(--border-color);
}

.db-preview-table th {
  background-color: var(--ly-navy-deep);
  color: white;
  text-align: left;
  padding: var(--ly-space-2);
  font-family: var(--ly-font-headings);
  font-weight: var(--ly-weight-bold);
}

.db-preview-table td {
  padding: var(--ly-space-2);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.db-preview-table tr:nth-child(even) td {
  background-color: var(--bg-secondary);
}

.db-preview-table .number {
  font-family: var(--ly-font-data);
  text-align: right;
  font-weight: var(--ly-weight-semibold);
}

.db-stat-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--ly-radius-sm);
  font-weight: var(--ly-weight-bold);
  font-size: 10px;
}

.db-stat-badge.success {
  background-color: var(--ly-teal-light);
  color: var(--ly-teal-science);
}

/* Tarjetas de estadísticas de la base de datos */
.db-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ly-space-3);
  margin-top: var(--ly-space-6);
}

.db-stat-card {
  padding: var(--ly-space-3);
  text-align: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: var(--ly-radius-md);
}

.db-stat-val {
  font-family: var(--ly-font-data);
  font-size: var(--ly-text-sm);
  font-weight: var(--ly-weight-bold);
  color: var(--ly-naranja-lince);
}

.db-stat-lbl {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.db-content h2 {
  margin-bottom: var(--ly-space-6);
}

.db-features {
  list-style: none;
  margin-bottom: var(--ly-space-8);
}

.db-features li {
  display: flex;
  gap: var(--ly-space-3);
  align-items: center;
  font-size: var(--ly-text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--ly-space-3);
}

.db-features svg {
  width: 18px;
  height: 18px;
  color: var(--ly-teal-science);
  flex-shrink: 0;
}

/* ==========================================================================
   8. FORMULARIO DE CONTACTO
   ========================================================================== */
.contact {
  padding: var(--ly-space-16) 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--ly-transition-normal), border-color var(--ly-transition-normal);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ly-space-12);
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-title {
  margin-bottom: var(--ly-space-4);
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: var(--ly-space-8);
  max-width: 480px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--ly-space-4);
}

.contact-item {
  display: flex;
  gap: var(--ly-space-4);
  align-items: center;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ly-naranja-lince);
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
}

.contact-item-val {
  font-size: var(--ly-text-sm);
  color: var(--text-primary);
  font-weight: var(--ly-weight-medium);
}

/* Formulario */
.contact-form-card {
  padding: var(--ly-space-8);
}

.form-group {
  margin-bottom: var(--ly-space-4);
}

.form-label {
  display: block;
  font-family: var(--ly-font-headings);
  font-size: var(--ly-text-xs);
  font-weight: var(--ly-weight-semibold);
  margin-bottom: var(--ly-space-1);
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--ly-radius-md);
  font-family: var(--ly-font-body);
  font-size: var(--ly-text-sm);
  color: var(--text-primary);
  transition: border-color var(--ly-transition-fast), box-shadow var(--ly-transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--ly-naranja-lince);
  box-shadow: 0 0 0 3px rgba(255, 110, 39, 0.15);
}

.contact-submit {
  width: 100%;
  margin-top: var(--ly-space-4);
}

/* ==========================================================================
   9. FOOTER E INSTITUCIONAL
   ========================================================================== */
.footer {
  padding: var(--ly-space-12) 0 var(--ly-space-8) 0;
  position: relative;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--ly-space-8);
  margin-bottom: var(--ly-space-12);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-logo {
  height: 38px;
  margin-bottom: var(--ly-space-4);
}

.footer-brand-desc {
  font-size: var(--ly-text-xs);
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: var(--ly-space-8);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: var(--ly-space-3);
}

.footer-links-col h4 {
  font-size: var(--ly-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.footer-link {
  font-size: var(--ly-text-xs);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--ly-transition-fast);
}

.footer-link:hover {
  color: var(--ly-naranja-lince);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--ly-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--ly-space-4);
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.copyright {
  font-size: var(--ly-text-xs);
  color: var(--text-secondary);
  text-align: center;
}

.attribution-links {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
}

.attribution-links a {
  color: var(--ly-teal-science);
  text-decoration: none;
  transition: color var(--ly-transition-fast);
}

.attribution-links a:hover {
  color: var(--ly-naranja-lince);
}

/* ==========================================================================
   10. MOBILE MENU (OVERLAY)
   ========================================================================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--ly-space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ly-transition-normal);
}

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

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ly-space-12);
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--ly-space-6);
  list-style: none;
  align-items: center;
  margin-bottom: var(--ly-space-12);
}

.mobile-nav-link {
  font-family: var(--ly-font-headings);
  font-size: var(--ly-text-xl);
  font-weight: var(--ly-weight-bold);
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--ly-naranja-lince);
}

/* ==========================================================================
   11. ANIMACIONES DE ENTRADA (REVEAL)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   12. PRODUCT PROOF Y FORMULARIO REAL
   ========================================================================== */
.product-proof {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.product-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.product-proof-copy .section-subtitle {
  margin-bottom: var(--ly-space-6);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
  color: var(--text-secondary);
  font-size: var(--ly-text-sm);
  line-height: 1.6;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ly-teal-science);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.1);
}

.product-shot {
  margin: 0;
}

.product-shot img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 80px rgba(14, 22, 41, 0.16);
  background: var(--bg-secondary);
}

.product-shot figcaption {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: var(--ly-text-xs);
  text-align: right;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.turnstile-wrap {
  min-height: 65px;
  margin: var(--ly-space-4) 0;
  display: flex;
  align-items: center;
}

.form-status {
  min-height: 20px;
  margin-top: var(--ly-space-3);
  font-size: var(--ly-text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

.form-status.is-success {
  color: #047857;
}

.form-status.is-error {
  color: #b91c1c;
}

@media (max-width: 900px) {
  .product-proof-grid {
    grid-template-columns: 1fr;
  }

  .product-shot figcaption {
    text-align: left;
  }
}

/* ==========================================================================
   12. SOPORTE DE IMAGEN DE LINCE DE BORDE SANGRANTE Y MÁSCARA RECTANGULAR
   ========================================================================== */
.hero-image-aside {
  position: absolute;
  right: 0;
  top: 100px;
  bottom: 40px;
  width: 44%;
  z-index: 1;
}

.hero-image-rect {
  width: 100%;
  height: 100%;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  overflow: hidden;
  border-left: 2px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
  background-color: var(--bg-secondary);
  position: relative;
}

.hero-image-rect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--ly-transition-slow);
}

.hero-image-rect img:hover {
  transform: scale(1.02);
}

@media (min-width: 992px) {
  .hero-content {
    max-width: 52%;
  }
}

@media (max-width: 991px) {
  .hero-image-aside {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    height: 380px;
    margin-top: var(--ly-space-8);
  }
  
  .hero-image-rect {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--ly-shadow-md);
  }
}
