/* ==========================================================================
   Notiii — Estilos de Plantilla de Bloques con Paleta Oficial & Tipografía Llamativa
   ========================================================================== */
:root {
  /* Tipografías */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Paleta Estricta Oficial Notiii */
  --notiii-navy: #0c192c;
  --notiii-navy-light: #13243f;
  --notiii-blue: #2563eb;
  --notiii-blue-deep: #1d4ed8;
  --notiii-teal: #00c49f;
  --notiii-teal-deep: #00a887;
  --notiii-purple: #7c3aed;
  --notiii-purple-deep: #6d28d9;

  /* Gradientes de Marca Notiii */
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #00c49f 50%, #7c3aed 100%);
  --grad-blue-teal: linear-gradient(135deg, #2563eb 0%, #00c49f 100%);
  --grad-teal-purple: linear-gradient(135deg, #00c49f 0%, #7c3aed 100%);
  --grad-blue-purple: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-hero-bg: linear-gradient(145deg, #0c192c 0%, #172a4d 50%, #1e3a8a 100%);

  /* Radios & Transiciones */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --trans-fast: 0.2s ease;
  --trans-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo Claro (Predeterminado de la plantilla) */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;

  --text-main: #0c192c;
  --text-muted: #64748b;
  --text-logo-not: #0c192c;

  --border-color: rgba(12, 25, 44, 0.08);
  --border-card-highlight: rgba(37, 99, 235, 0.2);
  --header-bg: rgba(255, 255, 255, 0.94);

  --shadow-sm: 0 4px 12px rgba(12, 25, 44, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(12, 25, 44, 0.09);
  --shadow-card-float: 0 25px 50px -12px rgba(12, 25, 44, 0.18);
  --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, 0.25);
  --shadow-glow-teal: 0 0 30px rgba(0, 196, 159, 0.25);
  --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.25);
}

/* Modo Oscuro */
[data-theme="dark"] {
  --bg-body: #080d17;
  --bg-surface: #0f172a;
  --bg-surface-alt: #131d33;
  --bg-card: #111a2e;
  --bg-input: #17233d;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-logo-not: #ffffff;

  --border-color: rgba(255, 255, 255, 0.09);
  --border-card-highlight: rgba(0, 196, 159, 0.3);
  --header-bg: rgba(8, 13, 23, 0.94);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-card-float: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow-blue: 0 0 35px rgba(37, 99, 235, 0.4);
  --shadow-glow-teal: 0 0 35px rgba(0, 196, 159, 0.4);
  --shadow-glow-purple: 0 0 35px rgba(124, 58, 237, 0.4);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--trans-smooth), color var(--trans-smooth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.2;
}

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

ul { list-style: none; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.bg-alt {
  background-color: var(--bg-surface-alt);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--notiii-teal);
  background: rgba(0, 196, 159, 0.12);
  border: 1px solid rgba(0, 196, 159, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ==========================================================================
   Efectos de Texto y Gradientes Tipográficos Llamativos
   ========================================================================== */
.gradient-brand {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.gradient-blue-teal {
  background: var(--grad-blue-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.gradient-teal-purple {
  background: var(--grad-teal-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.gradient-blue-purple {
  background: var(--grad-blue-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.text-blue { color: var(--notiii-blue); }
.text-teal { color: var(--notiii-teal); }
.text-purple { color: var(--notiii-purple); }
.text-muted { color: var(--text-muted); }

.bg-blue-glow { background: rgba(37, 99, 235, 0.12); }
.bg-teal-glow { background: rgba(0, 196, 159, 0.12); }
.bg-purple-glow { background: rgba(124, 58, 237, 0.12); }

/* ==========================================================================
   Logo Notiii Oficial
   ========================================================================== */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
}

.logo-icon-svg {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon-svg.mini {
  width: 36px;
  height: 36px;
}

.notiii-svg-icon {
  width: 100%;
  height: 100%;
  color: var(--text-logo-not);
}

.logo-text {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-word-not { color: var(--text-logo-not); }
.logo-i-blue { color: var(--notiii-blue); }
.logo-i-teal { color: var(--notiii-teal); }
.logo-i-purple { color: var(--notiii-purple); }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 800;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans-smooth);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.btn i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--grad-blue-teal);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 196, 159, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-surface-alt);
  border-color: var(--notiii-teal);
  color: var(--notiii-teal);
}

.btn-sm {
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-light-block {
  background: #ffffff;
  color: var(--notiii-navy);
  border: none;
  font-weight: 800;
}

.btn-light-block:hover {
  background: var(--notiii-teal);
  color: #ffffff;
  transform: translateY(-2px);
}

.shadow-glow {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--trans-smooth);
}

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

.nav-list {
  display: flex;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--grad-blue-teal);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.theme-btn:hover {
  color: var(--notiii-teal);
  border-color: var(--notiii-teal);
}

.theme-btn i { width: 18px; height: 18px; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
}

.nav-toggle i { width: 26px; height: 26px; }
.nav-toggle .close-icon { display: none; }
.nav-toggle.open .open-icon { display: none; }
.nav-toggle.open .close-icon { display: block; }

/* ==========================================================================
   Hero de Bloque Azul con Forma Orgánica & Stickers Flotantes
   ========================================================================== */
.hero-block-section {
  background: var(--grad-hero-bg);
  padding-top: 9rem;
  padding-bottom: 6.5rem;
  position: relative;
  overflow: hidden;
}

.hero-block-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

.hero-visual-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.organic-shape-backdrop {
  position: absolute;
  width: 95%;
  height: 90%;
  background: linear-gradient(135deg, rgba(0, 196, 159, 0.85) 0%, rgba(124, 58, 237, 0.85) 100%);
  border-radius: 65% 35% 75% 25% / 35% 65% 35% 65%;
  z-index: 1;
  opacity: 0.95;
  filter: drop-shadow(0 20px 35px rgba(0, 196, 159, 0.35));
  animation: morphShape 8s ease-in-out infinite alternate;
}

@keyframes morphShape {
  0% { border-radius: 65% 35% 75% 25% / 35% 65% 35% 65%; }
  100% { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
}

.hero-illustration-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.family-team-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  position: relative;
}

.illus-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.95rem;
}

.illus-avatar i {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.member-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.blue-avatar i { background: var(--notiii-blue); }
.blue-avatar span { color: var(--notiii-blue); }

.teal-avatar i { background: var(--notiii-teal); }
.teal-avatar span { color: var(--notiii-teal); }

.purple-avatar i { background: var(--notiii-purple); }
.purple-avatar span { color: var(--notiii-purple); }

.illus-badge {
  position: absolute;
  top: -16px;
  right: -10px;
  background: var(--notiii-teal);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 16px rgba(0, 196, 159, 0.5);
}

.illus-badge i { width: 16px; height: 16px; }

/* Stickers Flotantes Creativos */
.floating-sticker {
  position: absolute;
  background: #ffffff;
  color: var(--notiii-navy);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  z-index: 3;
  animation: floatSticker 4s ease-in-out infinite alternate;
}

.sticker-left {
  bottom: -15px;
  left: 10px;
}

.sticker-right {
  top: 15px;
  left: -15px;
  animation-delay: 1.5s;
}

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

/* Tarjeta Blanca Superpuesta (Hero Overlapping Card) */
.hero-overlapping-card {
  background: var(--bg-card);
  padding: 3.25rem 2.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-float);
  border: 1px solid var(--border-card-highlight);
  position: relative;
  z-index: 10;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--notiii-blue);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 2.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-blue { color: var(--notiii-blue); }
.brand-teal { color: var(--notiii-teal); }
.brand-purple { color: var(--notiii-purple); }

.card-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.btn-block-card {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.card-footer-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-footer-note i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   3. Bloque Azul: Columna Vertebral & Fila de 4 Estadísticas
   ========================================================================== */
.metrics-block-section {
  background: linear-gradient(135deg, #0c192c 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 5.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-intro-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.metrics-main-title {
  font-size: 2.35rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-weight: 900;
}

.metrics-main-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 650px;
  line-height: 1.6;
}

.stats-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.25rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--trans-smooth);
}

.stat-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--notiii-teal);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.stat-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

/* ==========================================================================
   4. Servicios / Pilares sobre Franja de Acento Oficial Notiii
   ========================================================================== */
.services-striped-section {
  padding: 6.5rem 0 7.5rem;
  background-color: var(--bg-body);
}

.striped-cards-container {
  position: relative;
  margin-top: 2.5rem;
}

.horizontal-accent-stripe {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 170px;
  transform: translateY(-50%);
  background: var(--grad-brand);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 196, 159, 0.25);
}

.cards-three-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.striped-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 3.25rem 2.25rem 2.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
  position: relative;
}

.striped-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-blue-accent { border-top: 5px solid var(--notiii-blue); }
.card-teal-accent { border-top: 5px solid var(--notiii-teal); }
.card-purple-accent { border-top: 5px solid var(--notiii-purple); }

.card-icon-header {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon-header i {
  width: 38px;
  height: 38px;
}

.striped-card-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.striped-card-text {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.striped-card-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2.25rem;
  margin-top: auto;
}

.striped-card-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.striped-card-list li i {
  width: 18px;
  height: 18px;
}

.btn-card-action {
  width: 100%;
  color: #ffffff;
  font-weight: 900;
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  letter-spacing: 0.5px;
}

.btn-blue-action {
  background: var(--notiii-blue);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-blue-action:hover { background: var(--notiii-blue-deep); }

.btn-teal-action {
  background: var(--notiii-teal);
  box-shadow: 0 4px 15px rgba(0, 196, 159, 0.3);
}
.btn-teal-action:hover { background: var(--notiii-teal-deep); }

.btn-purple-action {
  background: var(--notiii-purple);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.btn-purple-action:hover { background: var(--notiii-purple-deep); }

/* ==========================================================================
   5. Situaciones Cotidianas en el Hogar (Casos Reales)
   ========================================================================== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.85rem;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-smooth);
  display: flex;
  flex-direction: column;
}

.scenario-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.scenario-header {
  margin-bottom: 1rem;
}

.scenario-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.scenario-badge i { width: 14px; height: 14px; }

.scenario-header h4 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 800;
}

.scenario-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   6. Simulador Interactivo Notiii
   ========================================================================== */
.interactive-simulator-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.simulator-sidebar {
  border-right: 1px solid var(--border-color);
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sim-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.sim-filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sim-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all var(--trans-fast);
}

.sim-btn:hover,
.sim-btn.active {
  background: var(--bg-surface);
  border-color: var(--notiii-teal);
  box-shadow: var(--shadow-sm);
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bg-all { background: var(--grad-brand); }
.bg-blue { background-color: var(--notiii-blue); }
.bg-teal { background-color: var(--notiii-teal); }
.bg-purple { background-color: var(--notiii-purple); }

.count-tag {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sim-add-task-box h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-weight: 700;
}

.sim-input-group {
  display: flex;
  gap: 0.5rem;
}

.sim-input-group input {
  flex-grow: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.875rem;
}

.sim-input-group input:focus {
  border-color: var(--notiii-teal);
}

.sim-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.sim-tab {
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.sim-tab i { width: 18px; height: 18px; }

.sim-tab.active {
  color: var(--notiii-teal);
  background: rgba(0, 196, 159, 0.1);
}

.sim-tab-content { display: none; }
.sim-tab-content.active { display: block; }

.sim-event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sim-event-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--notiii-blue);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  transition: all var(--trans-smooth);
}

.sim-event-card.border-teal { border-left-color: var(--notiii-teal); }
.sim-event-card.border-purple { border-left-color: var(--notiii-purple); }
.sim-event-card.hide { display: none; }

.sim-event-time {
  font-weight: 900;
  font-size: 0.875rem;
  min-width: 110px;
}

.sim-event-info { flex-grow: 1; }
.sim-event-info h4 { font-size: 1.1rem; margin-bottom: 0.25rem; font-weight: 800; }
.sim-event-info p { font-size: 0.875rem; color: var(--text-muted); }

.sim-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

/* Lista de Compras */
.sim-groceries-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.grocery-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.grocery-item:hover { border-color: var(--notiii-teal); }

.grocery-item input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--notiii-teal);
  cursor: pointer;
}

.grocery-item label {
  flex-grow: 1;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.grocery-item.done label {
  text-decoration: line-through;
  color: var(--text-muted);
}

.buyer-tag {
  font-size: 0.8rem;
  font-weight: 800;
}

/* ==========================================================================
   7. Testimonios / Familias Reales
   ========================================================================= */
.testimonials-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-smooth);
}

.testimonial-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.highlight-testi {
  border-color: var(--notiii-teal);
  box-shadow: var(--shadow-glow-teal);
}

.testi-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testi-quote {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  font-style: italic;
  flex-grow: 1;
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testi-avatar i { width: 22px; height: 22px; }

.testi-user strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.testi-user span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. Planes y Precios
   ========================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--trans-smooth);
}

.pricing-card:hover { transform: translateY(-6px); }

.pricing-card.popular {
  border-color: var(--notiii-teal);
  box-shadow: var(--shadow-card-float);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-blue-teal);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 196, 159, 0.4);
}

.plan-name { font-size: 1.6rem; margin-bottom: 0.35rem; font-weight: 900; }
.plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.plan-price .currency { font-size: 1.6rem; font-weight: 800; }
.plan-price .amount { font-size: 3.25rem; font-weight: 900; font-family: var(--font-heading); }
.plan-price .period { color: var(--text-muted); font-size: 0.9rem; }

.price-local-note {
  display: block;
  font-size: 0.8rem;
  color: var(--notiii-teal);
  font-weight: 700;
  margin-bottom: 2rem;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.plan-features li i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   9. Preguntas Frecuentes (FAQ)
   ========================================================================= */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--trans-fast);
}

.faq-item.active { border-color: var(--notiii-teal); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  background: transparent;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--notiii-teal);
  transition: transform var(--trans-smooth);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-smooth);
}

.faq-answer p {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   10. CTA / Early Access
   ========================================================================= */
.cta-box-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card-float);
  position: relative;
  overflow: hidden;
}

.cta-box-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--grad-brand);
}

.cta-box-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.12);
  color: var(--notiii-purple);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.cta-title { font-size: 2.45rem; margin-bottom: 1rem; font-weight: 900; }
.cta-desc { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2.5rem; line-height: 1.6; }

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: flex; gap: 1rem; }

.input-field-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.input-field-wrapper input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  font-size: 0.95rem;
  transition: all var(--trans-fast);
}

.input-field-wrapper input:focus {
  border-color: var(--notiii-teal);
  box-shadow: 0 0 0 3px rgba(0, 196, 159, 0.2);
}

.btn-submit-cta { flex: 1; white-space: nowrap; }

.error-text { color: #ef4444; font-size: 0.85rem; min-height: 1.2em; font-weight: 600; }

.success-banner {
  display: none;
  background: rgba(0, 196, 159, 0.15);
  border: 1px solid var(--notiii-teal);
  color: var(--notiii-teal);
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  margin-top: 1rem;
}

.success-banner.show { display: block; }

/* ==========================================================================
   11. Footer
   ========================================================================= */
.footer {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.brand-slogan {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  margin: 0.75rem 0 0.5rem;
}

.brand-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-links-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.footer-links-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-links-col a:hover { color: var(--notiii-teal); }

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.social-icons a:hover {
  background: var(--notiii-teal);
  color: #ffffff;
  border-color: var(--notiii-teal);
}

.social-icons i { width: 18px; height: 18px; }

.footer-bottom-bar {
  border-top: 1px solid var(--border-color);
  padding: 1.75rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Botón Volver Arriba
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--notiii-teal);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 196, 159, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--trans-smooth);
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--notiii-teal-deep);
  transform: translateY(-3px);
}

.back-to-top i { width: 20px; height: 20px; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-block-container {
    grid-template-columns: 1fr;
  }

  .metrics-intro-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .stats-four-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-three-grid,
  .testimonials-three-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-accent-stripe {
    display: none;
  }

  .interactive-simulator-wrapper {
    grid-template-columns: 1fr;
  }

  .simulator-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }

  .footer-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 82px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 82px);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    transition: left var(--trans-smooth);
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.open { left: 0; }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-link { font-size: 1.2rem; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .card-title { font-size: 1.95rem; }
  .metrics-main-title { font-size: 1.85rem; }
  .stats-four-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .footer-layout { grid-template-columns: 1fr; }
}

/* Consentimiento del formulario de acceso anticipado.
   Es un dato personal recogido para marketing: sin casilla marcada la RLS del
   backend rechaza el alta con 401, asi que esto no es decorativo. */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .85rem 0 .25rem;
  font-size: .82rem;
  line-height: 1.45;
  opacity: .85;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .12rem;
  cursor: pointer;
  accent-color: currentColor;
}
.consent-row a { text-decoration: underline; }
