/* ==========================================================================
   ESTILOS DE MARCA "LATIDO FIEL" — VANILLA CSS (BLOQUEADO EN TEMA CLARO)
   ========================================================================== */

/* Importación de tipografía Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Paleta Latido Fiel (Tema Claro: Pizarra + Coral + Crema/Blanco) */
  --paper: #faf9f6;          /* Crema muy suave */
  --paper-fade: #ffffff;     /* Blanco puro */
  --paper-raised: #ffffff;   /* Blanco para tarjetas */
  --ink: #18252c;            /* Carbón pizarra profundo */
  --ink-soft: #5c6d77;       /* Gris pizarra medio */
  --line: #e4ecef;           /* Línea suave azulada */

  /* Acento: Azul Pizarra del Logo */
  --accent: #2e6e8e; 
  --accent-hover: #22536b;
  --accent-soft: #eef5f8;

  /* Estados semánticos */
  --warm: #e07a5f;           /* Coral del logo (precaución) */
  --warm-soft: #fdf3f0;
  
  --good: #3f7c5e;           /* Verde salvia (saludable/estable) */
  --good-soft: #eefaf4;
  
  --crit: #c83a2a;           /* Rojo terracota (alerta/bajas) */
  --crit-soft: #fdf2f2;

  /* Banda de contraste (IA Assistant) */
  --band-bg: #1c2b33;        /* Azul pizarra oscuro */
  --band-fg: #faf9f6;
  --band-accent: #e07a5f;    /* Coral vibrante */
  --band-accent-ink: #faf9f6;

  /* Sombras y bordes */
  --radius-lg: 1.5rem;
  --radius-md: 0.75rem;
  --radius-full: 9999px;
  
  --shadow-card: 0 4px 20px rgba(24, 37, 44, 0.04), 0 2px 4px rgba(24, 37, 44, 0.02);
  --shadow-card-lg: 0 16px 40px rgba(24, 37, 44, 0.07), 0 4px 16px rgba(24, 37, 44, 0.03);
  --shadow-nav: 0 2px 10px rgba(24, 37, 44, 0.02);
}

/* Reset Básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-fade) 640px);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   ESTRUCTURA Y DISEÑO BASE
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Barra de Navegación */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  transition: transform 0.2s;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-logo img {
  height: 2.25rem;
  width: auto;
  border-radius: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  list-style: none;
}

.nav-links a {
  transition: color 0.2s;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 5rem 0 3.5rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 800;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero h1 span.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0.5rem 0;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .hero p {
    font-size: 1.125rem;
  }
}

/* Botones */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-card);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-lg);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--paper-raised);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sección de métricas */
.metrics-section {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 60rem;
  margin: 0 auto;
}

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

.metric-card {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--paper-raised) 0%, var(--paper) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.metric-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-lg);
  border-color: rgba(46, 110, 142, 0.4);
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.5rem;
}

.metric-desc {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

/* Sección de Historia real (Agata) */
.story-section {
  background: linear-gradient(135deg, var(--paper-raised) 0%, var(--paper-fade) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 48rem;
  margin: 4rem auto 0 auto;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s;
}

.story-section:hover {
  border-color: rgba(46, 110, 142, 0.2);
}

.story-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background-color: var(--warm-soft);
  color: var(--warm);
  margin-bottom: 1.25rem;
}

.story-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.7;
}

/* Secciones Generales */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   SERVICIOS INTERACTIVOS (SIMULADORES)
   ========================================================================== */
.services-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .services-layout {
    flex-direction: row;
  }
}

/* Columna Izquierda: Botones de Pestañas */
.services-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .services-tabs {
    width: 33.333%;
  }
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background-color: var(--paper-raised);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.tab-btn:hover {
  border-color: rgba(46, 110, 142, 0.4);
}

.tab-btn-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.tab-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background-color: var(--paper);
  color: var(--accent);
  transition: all 0.25s;
}

.tab-btn.active {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  box-shadow: var(--shadow-card);
}

.tab-btn.active .tab-icon-box {
  background-color: var(--accent);
  color: var(--paper-raised);
}

.tab-btn-desc {
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Columna Derecha: Panel del Simulador */
.simulator-panel {
  flex: 1;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.sim-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sim-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background-color: var(--accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.sim-info h3 {
  font-size: 1.25rem;
}

.sim-info p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.sim-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
  grid-template-columns: 1fr;
}

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

.sim-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-list-bullet {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Visualizaciones de los Simuladores */
.sim-visual {
  border: 1px solid var(--line);
  background-color: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--ink);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 200px;
}

/* 1. Simulador Historial */
.historial-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.historial-sim-title {
  font-weight: 700;
}

.historial-sim-badge {
  font-size: 0.65rem;
  background-color: var(--line);
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  color: var(--ink-soft);
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin-left: 0.5rem;
}

.timeline-dot {
  position: absolute;
  left: -0.325rem;
  top: 0.375rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--accent);
}

.timeline-item.inactive {
  border-left-color: var(--line);
}

.timeline-item.inactive .timeline-dot {
  background-color: var(--line);
}

.timeline-date {
  font-size: 0.65rem;
  color: var(--ink-soft);
}

.timeline-title {
  font-weight: 600;
  margin: 0.1rem 0;
}

.timeline-detail {
  font-size: 0.65rem;
  color: var(--ink-soft);
}

/* 2. Simulador OCR */
.ocr-sim-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  position: relative;
}

.ocr-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.ocr-idle i, .ocr-idle svg {
  color: var(--ink-soft);
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.ocr-idle-text {
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.ocr-btn {
  border-radius: var(--radius-full);
  background-color: var(--accent);
  color: var(--paper-raised);
  border: none;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background-color 0.2s;
}

.ocr-btn:hover {
  background-color: var(--accent-hover);
}

.ocr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
}

/* Spinner */
.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.ocr-scanner-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  opacity: 0.8;
  box-shadow: 0 0 10px var(--accent);
  animation: scan 1.2s ease-in-out infinite;
}

.ocr-done {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ocr-done-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}

.ocr-success-text {
  font-weight: 700;
  color: var(--good);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ocr-reset-link {
  font-size: 0.65rem;
  color: var(--accent);
  cursor: pointer;
}

.ocr-reset-link:hover {
  text-decoration: underline;
}

.ocr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  font-size: 0.65rem;
  color: var(--ink-soft);
}

.ocr-grid-header {
  font-weight: 700;
  color: var(--ink);
}

.status-badge {
  font-weight: 700;
}

.status-badge.normal {
  color: var(--good);
}

.status-badge.bajo {
  color: var(--crit);
}

.ocr-footnote {
  font-size: 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 0.4rem;
  margin-top: 0.25rem;
}

/* 3. Simulador Chat IA */
.chat-sim-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
}

.chat-history {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 145px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  padding-right: 0.25rem;
}

/* Scrollbar sutil */
.chat-history::-webkit-scrollbar {
  width: 4px;
}
.chat-history::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: 2px;
}

.chat-bubble {
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  line-height: 1.4;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-bubble.assistant {
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  align-self: flex-start;
  margin-right: 2rem;
}

.chat-bubble.user {
  background-color: var(--accent-soft);
  color: var(--accent);
  align-self: flex-end;
  margin-left: 2rem;
}

.chat-typing {
  font-size: 0.6rem;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Puntos de escritura */
.typing-dots {
  display: flex;
  gap: 0.15rem;
}

.typing-dots span {
  width: 3px;
  height: 3px;
  background-color: var(--ink-soft);
  border-radius: 50%;
  animation: typing 1s infinite alternate;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.5rem;
}

.preset-btn {
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 4. Simulador Calendario */
.calendar-sim-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.calendar-status {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 700;
}

.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calendar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
}

.calendar-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calendar-icon-box {
  color: var(--accent);
  display: flex;
  align-items: center;
}

.calendar-text-title {
  font-weight: 600;
  font-size: 0.7rem;
}

.calendar-text-date {
  font-size: 0.6rem;
  color: var(--ink-soft);
  margin-top: 0.05rem;
}

.calendar-badge {
  font-size: 0.6rem;
  color: var(--good);
  font-weight: 700;
}

/* ==========================================================================
   BANDA CTA IA (CTA BAND)
   ========================================================================== */
.cta-band {
  background-color: var(--band-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  color: var(--band-fg);
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cta-band {
    padding: 3.5rem 2.5rem;
  }
}

.cta-band-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--band-accent);
}

.cta-band h3 {
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--band-fg);
}

@media (min-width: 640px) {
  .cta-band h3 {
    font-size: 2rem;
  }
}

.cta-band p {
  font-size: 0.875rem;
  color: #a1b0b9;
  max-width: 32rem;
  line-height: 1.6;
}

.cta-band .btn-primary {
  background-color: var(--band-accent);
  color: var(--band-accent-ink);
}

.cta-band .btn-primary:hover {
  background-color: #f28c70;
}

/* ==========================================================================
   SOBRE NOSOTROS / EQUIPO
   ========================================================================== */
.about-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

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

.about-card {
  border: 1px solid var(--line);
  background-color: var(--paper-raised);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.about-card:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-card-lg);
  border-color: rgba(46, 110, 142, 0.3);
}

.about-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ==========================================================================
   PLANES DE SUSCRIPCIÓN
   ========================================================================== */
.planes-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 60rem;
  margin: 0 auto;
}

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

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background-color: var(--paper-raised);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-lg);
  border-color: rgba(46, 110, 142, 0.3);
}

.plan-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-card-lg);
}

.plan-card.featured:hover {
  transform: translateY(-4px) scale(1.01);
}

.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--accent);
  color: var(--paper-raised);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.plan-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0.5rem 0 1rem 0;
  line-height: 1.2;
}

.plan-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.plan-features {
  list-style: none;
  font-size: 0.75rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features li.strong {
  font-weight: 600;
  color: var(--ink);
}

.plan-features-bullet {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background-color: var(--accent);
}

.plan-card .btn {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   CONTACTO Y FORMULARIO
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

.contact-card {
  border: 1px solid var(--line);
  background-color: var(--paper-raised);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-card h3 svg {
  color: var(--accent);
}

.contact-desc {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background-color: var(--paper);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 110, 142, 0.15);
}

.form-control-has-icon {
  padding-left: 2.25rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

textarea.form-control {
  resize: vertical;
}

/* Notificaciones del Formulario */
.form-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  line-height: 1.5;
  display: none;
}

.form-notice.good {
  background-color: var(--good-soft);
  color: var(--good);
  border: 1px solid rgba(63, 124, 94, 0.2);
}

.form-notice.crit {
  background-color: var(--crit-soft);
  color: var(--crit);
  border: 1px solid rgba(200, 58, 42, 0.2);
}

/* Tarjeta lateral de Información */
.info-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  border: 1px solid var(--line);
  background-color: var(--paper-raised);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card h3 svg {
  color: var(--accent);
}

.info-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.info-detail-row {
  display: flex;
  gap: 0.75rem;
}

.info-detail-label {
  font-weight: 700;
  color: var(--ink);
  min-width: 5.5rem;
}

.info-detail-value.underline {
  text-decoration: underline;
  user-select: all;
  -webkit-user-select: all;
}

.protection-box {
  background-color: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.7rem;
  color: var(--accent);
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.protection-box-title {
  font-weight: 700;
  color: var(--ink);
}

.protection-box-desc {
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Representación esquemática de Mapa */
.map-card {
  border: 1px solid var(--line);
  background-color: var(--paper-raised);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  height: 12rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-bg-globe {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url('globe.svg');
  background-size: cover;
  background-position: center;
}

.map-pin-container {
  z-index: 10;
  text-align: center;
}

.map-bounce-pin {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--paper-raised);
  box-shadow: var(--shadow-card);
  animation: bounce 2s infinite ease-in-out;
}

.map-pin-title {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ink);
}

.map-pin-desc {
  font-size: 0.65rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background-color: var(--paper-raised);
  padding: 2.5rem 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 0.5rem;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-disclosure {
  font-size: 0.625rem;
  line-height: 1.6;
  max-width: 32rem;
  color: var(--ink-soft);
}

.footer-copy {
  font-size: 0.625rem;
  color: rgba(92, 109, 119, 0.6);
  margin-top: 0.25rem;
}

/* ==========================================================================
   ANIMACIONES KEYFRAMES
   ========================================================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0%, 100% { top: 0%; }
  50% { top: 100%; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes typing {
  from { opacity: 0.3; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-2px); }
}

/* ==========================================================================
   ESTILOS DE PÁGINA LEGAL (PROSE LEGAL)
   ========================================================================== */
.legal-body {
  background: var(--paper);
  color: var(--ink);
  padding: 3rem 0;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.legal-back-btn:hover {
  color: var(--accent-hover);
}

.legal-container {
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.legal-container h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 1rem;
}

.legal-container p.legal-date {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.legal-prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.legal-prose ul, .legal-prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: 1.7;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.legal-prose li {
  margin-bottom: 0.4rem;
}

.legal-prose strong {
  color: var(--ink);
}
