/* =============================================================
   Novatic ON · novaticon.es
   1. Tipografías y tokens
   ============================================================= */
@font-face{font-family:'Sora';font-style:normal;font-weight:600 700;font-display:swap;src:url('assets/fonts/sora.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('assets/fonts/inter.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --verde: #173B35;        /* verde bosque: confianza */
  --verde-2: #21524a;
  --ciruela: #604366;      /* ciruela: creatividad */
  --ciruela-tint: #EDE5EE;
  --lima: #D2EF69;         /* lima: energía, solo sobre oscuro o como fondo */
  --lima-tint: #EEF8CC;
  --lima-ink: #6E9419;     /* lima legible sobre crema (logo) */
  --crema: #F7F4EC;
  --carbon: #202525;
  --salvia: #DCE6DB;
  --blanco: #FFFFFF;
  --tarjeta: #FCFBF7;
  --texto: #2B3231;
  --texto-suave: #5A6462;
  --borde: #E3E3D8;

  --display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio: 22px;
  --radio-s: 14px;
  --sombra: 0 1px 2px rgba(23, 59, 53, .05), 0 12px 32px -12px rgba(23, 59, 53, .16);
  --gutter: clamp(16px, 4vw, 40px);
  --ancho: 1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; font-family: var(--display); color: var(--verde); text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
::selection { background: var(--lima); color: var(--verde); }
:focus-visible { outline: 2px solid var(--ciruela); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--verde); color: var(--blanco); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contenedor { width: min(100% - 2 * var(--gutter), var(--ancho)); margin-inline: auto; }
.seccion { padding-block: clamp(64px, 9vw, 120px); }
.seccion--blanca { background: var(--blanco); }
.seccion--salvia { background: var(--salvia); }
.centro { text-align: center; }

.eyebrow {
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--texto-suave);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--lima-ink); }
.centro .eyebrow::before { display: none; }

.titulo-seccion { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-top: .6rem; }
.titulo-seccion em, .hero h1 em { font-style: normal; color: var(--ciruela); }
.entradilla { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--texto-suave); max-width: 62ch; margin-top: 1rem; }
.centro .entradilla { margin-inline: auto; }
.nota { font-size: .85rem; color: var(--texto-suave); }

/* =============================================================
   4. Componentes
   ============================================================= */
/* --- Logo --- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.pie .logo img { height: 38px; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.2;
  transition: transform .35s var(--ease-out), background-color .25s, box-shadow .35s var(--ease-out), color .25s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--lima { background: var(--lima); color: var(--verde); box-shadow: 0 6px 18px -8px rgba(110, 148, 25, .7); }
.btn--lima:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(110, 148, 25, .8); }
.btn--verde { background: var(--verde); color: var(--blanco); }
.btn--verde:hover { background: var(--verde-2); transform: translateY(-2px); }
.btn--borde { border: 1.5px solid var(--verde); color: var(--verde); }
.btn--borde:hover { background: var(--verde); color: var(--blanco); }
.btn--borde-claro { border: 1.5px solid rgba(255,255,255,.5); color: var(--blanco); }
.btn--borde-claro:hover { background: var(--blanco); color: var(--verde); }
.botones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* --- Iconos en círculo --- */
.icono {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ciruela-tint); color: var(--ciruela);
}
.icono svg { width: 26px; height: 26px; }
.icono--lima { background: var(--lima-tint); color: var(--verde); }
.icono--verde { background: var(--verde); color: var(--lima); }

/* --- Tarjetas de servicio --- */
.servicios-grid { display: grid; gap: 18px; margin-top: 3rem; }
.tarjeta {
  position: relative; display: flex; flex-direction: column; gap: .9rem;
  padding: 28px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
a.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: transparent; }
.tarjeta h3 { font-size: 1.2rem; }
.tarjeta p { color: var(--texto-suave); font-size: .95rem; }
.tarjeta .flecha {
  margin-top: auto; align-self: flex-end; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ciruela-tint); color: var(--ciruela);
  transition: background-color .3s, color .3s, transform .4s var(--ease-out);
}
.tarjeta .flecha svg { width: 16px; height: 16px; }
a.tarjeta:hover .flecha { background: var(--verde); color: var(--lima); transform: translateX(3px); }
.tarjeta .etiqueta { font-size: .78rem; font-weight: 600; color: var(--verde); background: var(--lima-tint); border-radius: 999px; padding: .25em .8em; align-self: flex-start; }

/* --- Huecos de foto (pendientes) --- */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(210, 239, 105, .45), transparent 60%),
    radial-gradient(90% 80% at 90% 90%, rgba(96, 67, 102, .30), transparent 60%),
    var(--salvia);
  color: var(--verde); border-radius: var(--radio);
}
.ph::after {
  content: attr(data-foto); position: absolute; left: 14px; bottom: 14px; right: 14px;
  font-size: .75rem; font-weight: 500; line-height: 1.35; color: var(--verde);
  background: rgba(255,255,255,.78); padding: .45em .8em; border-radius: 10px; width: fit-content;
}
.ph svg { width: 44px; height: 44px; opacity: .35; }

/* --- Fotos --- */
.foto { position: relative; margin: 0; overflow: hidden; border-radius: var(--radio); background: var(--salvia); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto figcaption { position: absolute; left: 14px; bottom: 14px; font-size: .78rem; font-weight: 500; color: var(--verde); background: rgba(255,255,255,.85); padding: .4em .8em; border-radius: 10px; }

.bloque .bloque-titulo { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: .7rem 0 0; }
.bloque-titulo em { font-style: normal; color: var(--ciruela); }
.bloque .checks { margin-top: 1rem; }
.bloque .botones { margin-top: 1.3rem; }

/* --- Listas con check --- */
.checks { list-style: none; padding: 0; display: grid; gap: .7rem; margin-top: 1.4rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173B35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* --- Preguntas frecuentes --- */
.faq { display: grid; gap: 12px; margin-top: 2.5rem; max-width: 820px; }
.faq details { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio-s); padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-family: var(--display); font-weight: 600; color: var(--verde); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--ciruela); border-bottom: 2.5px solid var(--ciruela);
  transform: rotate(45deg); transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 18px; color: var(--texto-suave); }

/* --- Tabla de precios --- */
.tabla { width: 100%; border-collapse: collapse; margin-top: 1.4rem; background: var(--tarjeta); border-radius: var(--radio-s); overflow: hidden; border: 1px solid var(--borde); }
.tabla th, .tabla td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--borde); }
.tabla th { font-family: var(--display); font-weight: 600; color: var(--verde); background: var(--salvia); font-size: .9rem; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla td:last-child { font-weight: 600; color: var(--verde); white-space: nowrap; }

/* --- Formulario --- */
.form { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campos-fila { display: grid; gap: 14px; }
@media (min-width: 540px) { .campos-fila { grid-template-columns: 1fr 1fr; } }
.campo label { font-size: .85rem; font-weight: 600; color: var(--verde); }
.campo input, .campo select, .campo textarea {
  font: inherit; color: var(--texto); background: var(--blanco);
  border: 1.5px solid var(--borde); border-radius: 12px; padding: .8em 1em; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(210, 239, 105, .55); }
.casilla { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--texto-suave); }
.casilla input { margin-top: .25em; width: 18px; height: 18px; accent-color: var(--verde); flex: none; }
.casilla a { color: var(--ciruela); text-decoration: underline; }
.info-datos { font-size: .78rem; color: var(--texto-suave); line-height: 1.5; background: var(--crema); border-radius: 12px; padding: .8em 1em; }
.form-estado { font-size: .92rem; border-radius: 12px; padding: .9em 1.1em; display: none; }
.form-estado.is-ok { display: block; background: var(--lima-tint); color: var(--verde); }
.form-estado.is-error { display: block; background: var(--ciruela-tint); color: var(--ciruela); }
.form .btn { justify-self: start; }

/* =============================================================
   5. Cabecera y navegación
   ============================================================= */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, .97);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
@supports (backdrop-filter: blur(10px)) { .cabecera { background: rgba(247, 244, 236, .82); backdrop-filter: blur(14px) saturate(1.2); } }
.cabecera.is-scrolled { border-color: var(--borde); box-shadow: 0 6px 24px -18px rgba(23, 59, 53, .4); }
.cabecera-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.nav { display: none; }
.nav-lista { list-style: none; padding: 0; display: flex; align-items: center; gap: .3rem; }
.nav-lista > li { position: relative; }
.nav-enlace { display: inline-flex; align-items: center; gap: .3em; padding: .55em .85em; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--texto); transition: background-color .2s, color .2s; }
.nav-enlace:hover, .nav-enlace[aria-current="page"] { background: var(--salvia); color: var(--verde); }
.nav-enlace svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 300px; list-style: none; padding: 10px;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: 18px; box-shadow: var(--sombra);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .35s var(--ease-out), visibility .25s;
}
.submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.tiene-sub:hover .submenu, .tiene-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.tiene-sub:hover .nav-enlace svg, .tiene-sub:focus-within .nav-enlace svg { transform: rotate(180deg); }
.submenu a { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 12px; font-size: .92rem; font-weight: 500; color: var(--verde); }
.submenu a:hover { background: var(--crema); }
.submenu .icono { width: 36px; height: 36px; }
.submenu .icono svg { width: 18px; height: 18px; }
.cabecera-acciones { display: flex; align-items: center; gap: .6rem; }
.cabecera-acciones .btn { display: none; padding: .7em 1.2em; font-size: .88rem; }
.enlace-campus {
  display: none; align-items: center; gap: .5em; font-size: .85rem; font-weight: 600; color: var(--verde);
  padding: .3em .8em .3em .3em; border: 1.5px solid var(--salvia); border-radius: 999px; background: var(--blanco);
  transition: border-color .2s, background-color .2s;
}
.enlace-campus:hover { border-color: var(--ciruela); background: var(--ciruela-tint); }
.campus-icono { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ciruela); color: var(--blanco); flex: none; }
.campus-icono svg { width: 16px; height: 16px; }
.salida { width: 13px; height: 13px; opacity: .6; flex: none; }
.menu-movil .campus-movil {
  display: flex; align-items: center; gap: .8rem; margin-top: 18px; padding: 14px 16px; border-radius: 16px;
  background: var(--ciruela-tint); color: var(--ciruela); font-family: var(--display); font-weight: 600; font-size: 1.05rem; border: 0;
}
.campus-movil .campus-icono { width: 40px; height: 40px; }
.campus-movil .campus-icono svg { width: 22px; height: 22px; }
.campus-movil small { display: block; font-family: var(--sans); font-weight: 400; font-size: .82rem; color: var(--texto-suave); }
.campus-movil .salida { margin-left: auto; width: 16px; height: 16px; }
.campus-pie { display: inline-flex; align-items: center; gap: .45em; }
.campus-pie svg { width: 16px; height: 16px; color: var(--lima); }

.menu-boton { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--verde); color: var(--lima); }
.menu-boton svg { width: 22px; height: 22px; }
.menu-boton .cerrar { display: none; }
.menu-abierto .menu-boton .abrir { display: none; }
.menu-abierto .menu-boton .cerrar { display: block; }

.menu-movil {
  position: fixed; inset: 76px 0 0 0; z-index: 49; background: var(--crema); overflow-y: auto;
  padding: 18px var(--gutter) 40px; display: none;
}
.menu-abierto .menu-movil { display: block; }
.menu-abierto { overflow: hidden; }
.menu-movil ul { list-style: none; padding: 0; }
.menu-movil > ul > li > a { display: block; padding: 14px 4px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--verde); border-bottom: 1px solid var(--borde); }
.menu-movil .sub a { display: flex; align-items: center; gap: .7rem; padding: 10px 4px 10px 8px; font-weight: 500; color: var(--texto); }
.menu-movil .sub .icono { width: 34px; height: 34px; }
.menu-movil .sub .icono svg { width: 17px; height: 17px; }
.menu-movil .btn { margin-top: 24px; width: 100%; }

/* =============================================================
   6. Secciones
   ============================================================= */
/* --- Hero portada --- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); font-weight: 700; margin-top: 1.1rem; }
.hero .entradilla { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.pruebas { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--borde); }
.prueba { display: flex; align-items: baseline; gap: .5rem; font-size: .9rem; color: var(--texto-suave); }
.prueba strong { font-family: var(--display); font-size: 1.5rem; color: var(--verde); font-weight: 700; }

.hero-visual { position: relative; aspect-ratio: 1 / .95; max-width: 600px; width: 100%; justify-self: center; }
.hero-visual .ph, .hero-visual .foto { position: absolute; inset: 6% 0 0 14%; border-radius: 32px; }
.hero-visual .ph::after { left: auto; right: 16px; bottom: 16px; max-width: 55%; }
.forma { position: absolute; border-radius: 999px; }
.forma--ciruela { width: 46%; height: 18%; background: var(--ciruela); top: 8%; left: 0; transform: rotate(-38deg); }
.forma--lima { width: 52%; height: 17%; background: var(--lima); bottom: 7%; left: 0; transform: rotate(-38deg); }
.forma--verde { width: 24%; height: 44%; background: var(--verde); border-radius: 0 32px 0 32px; top: 6%; right: 0; opacity: .95; }
.hero-chip {
  position: absolute; right: -2%; bottom: 22%; background: var(--blanco); border-radius: 18px; box-shadow: var(--sombra);
  padding: 16px 22px; font-family: var(--display); font-weight: 500; color: var(--verde); line-height: 1.45; font-size: .95rem;
}
.hero-chip::before { content: ""; display: block; width: 26px; height: 4px; border-radius: 4px; background: var(--lima-ink); margin-bottom: 10px; }

/* --- Hero de página interior --- */
.hero-pagina { padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 80px); }
.hero-pagina-grid { display: grid; gap: 40px; align-items: center; }
.hero-pagina h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); font-weight: 700; margin-top: 1rem; }
.hero-pagina .ph, .hero-pagina .foto { aspect-ratio: 4 / 3; }
.miga { font-size: .85rem; color: var(--texto-suave); }
.miga a { text-decoration: underline; text-underline-offset: 3px; }

/* --- En regla --- */
.regla-grid { display: grid; gap: 40px; align-items: start; }
.regla-lista { list-style: none; padding: 0; display: grid; gap: 12px; }
.regla-lista li {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
  padding: 18px 20px; background: var(--blanco); border-radius: var(--radio-s); border: 1px solid var(--borde);
}
.regla-lista .num { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--verde); color: var(--lima); font-family: var(--display); font-weight: 600; font-size: .9rem; }
.regla-lista strong { font-family: var(--display); color: var(--verde); font-weight: 600; }
.regla-lista span { color: var(--texto-suave); font-size: .92rem; }

/* --- Pasos --- */
.pasos { display: grid; gap: 18px; margin-top: 3rem; counter-reset: paso; }
.paso { padding: 30px; border-radius: var(--radio); background: var(--tarjeta); border: 1px solid var(--borde); }
.paso::before {
  counter-increment: paso; content: "0" counter(paso);
  display: block; font-family: var(--display); font-weight: 700; font-size: 2.4rem; color: var(--ciruela); line-height: 1; margin-bottom: 1rem;
}
.paso h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.paso p { color: var(--texto-suave); font-size: .95rem; }

/* --- Banda del asistente --- */
.asistente { border-radius: 32px; overflow: hidden; display: grid; background: var(--salvia); }
.asistente-pantalla { position: relative; padding: clamp(28px, 4vw, 48px); background: linear-gradient(150deg, var(--verde), #0f2b26); display: grid; place-items: center; min-height: 320px; }
.chat { width: min(100%, 380px); background: var(--blanco); border-radius: 22px; padding: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); display: grid; gap: 10px; }
.chat-cab { display: flex; align-items: center; gap: .6rem; padding-bottom: 10px; border-bottom: 1px solid var(--borde); font-family: var(--display); font-weight: 600; color: var(--verde); font-size: .92rem; }
.chat-cab .icono { width: 34px; height: 34px; }
.chat-cab .icono svg { width: 18px; height: 18px; }
.burbuja { background: var(--crema); border-radius: 16px 16px 16px 4px; padding: .7em 1em; font-size: .9rem; color: var(--texto); }
.chat-opcion { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--salvia); border-radius: 999px; padding: .55em 1em; font-size: .88rem; color: var(--verde); font-weight: 500; transition: background-color .2s, border-color .2s; }
.chat-opcion::before { content: "→"; color: var(--ciruela); font-weight: 700; }
.chat-opcion:hover { background: var(--lima-tint); border-color: var(--lima); }
.asistente-texto { padding: clamp(28px, 5vw, 64px); align-self: center; }
.asistente-texto .entradilla { color: var(--texto); }
.pronto { display: inline-block; margin-top: 1.2rem; font-size: .8rem; font-weight: 600; color: var(--ciruela); background: var(--blanco); border-radius: 999px; padding: .35em .9em; }

/* --- Banda oscura (asesorías / llamada final) --- */
.banda {
  position: relative; overflow: hidden; border-radius: 32px; background: var(--verde); color: rgba(255,255,255,.85);
  padding: clamp(32px, 6vw, 72px); display: grid; gap: 32px; align-items: center;
}
.banda h2 { color: var(--blanco); }
.banda h2 em { font-style: normal; color: var(--lima); }
.banda .eyebrow { color: rgba(255,255,255,.7); }
.banda .eyebrow::before { background: var(--lima); }
.banda .entradilla { color: rgba(255,255,255,.8); }
.banda::after { content: ""; position: absolute; width: 380px; height: 120px; border-radius: 999px; background: var(--ciruela); right: -90px; top: -30px; transform: rotate(-38deg); opacity: .9; }
.banda::before { content: ""; position: absolute; width: 300px; height: 96px; border-radius: 999px; background: var(--lima); right: -40px; bottom: -40px; transform: rotate(-38deg); opacity: .9; }
.banda > * { position: relative; z-index: 1; }
.dato-grande { font-family: var(--display); font-weight: 700; font-size: clamp(3.5rem, 9vw, 6rem); color: var(--lima); line-height: 1; }
.dato-grande small { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.85); margin-top: .6rem; max-width: 26ch; line-height: 1.45; }

/* --- Nosotros --- */
.nosotros-grid { display: grid; gap: 40px; align-items: center; }
.nosotros-grid .ph, .nosotros-grid .foto { aspect-ratio: 5 / 4; }
.personas { display: grid; gap: 14px; margin-top: 1.8rem; }
.persona { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radio-s); background: var(--tarjeta); border: 1px solid var(--borde); }
.persona strong { display: block; font-family: var(--display); color: var(--verde); font-weight: 600; }
.persona span { font-size: .92rem; color: var(--texto-suave); }

/* --- Bloques de servicio (páginas interiores) --- */
.dos-col { display: grid; gap: 40px; align-items: start; }
.dos-col > *, .regla-grid > *, .hero-grid > *, .hero-pagina-grid > *, .nosotros-grid > *, .contacto-grid > * { min-width: 0; }
.bloque { padding: 30px; border-radius: var(--radio); background: var(--tarjeta); border: 1px solid var(--borde); }
.bloque h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.bloque p + p { margin-top: .8rem; }
.precio-destacado { font-family: var(--display); font-weight: 700; color: var(--verde); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; margin-top: .4rem; }
.precio-destacado small { font-size: 1rem; font-weight: 500; color: var(--texto-suave); }
.aviso-legal-fundae { font-size: .82rem; color: var(--texto-suave); margin-top: 1rem; }

/* --- Contacto --- */
.contacto-grid { display: grid; gap: 32px; align-items: start; }
.contacto-datos { display: grid; gap: 12px; }
.dato { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio-s); }
.dato .icono { width: 44px; height: 44px; }
.dato .icono svg { width: 21px; height: 21px; }
.dato small { display: block; font-size: .78rem; color: var(--texto-suave); }
.dato strong { font-family: var(--display); color: var(--verde); font-weight: 600; overflow-wrap: anywhere; }
.dato > div { min-width: 0; }
.form-caja { padding: clamp(22px, 4vw, 40px); background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); }

/* --- Textos legales --- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: var(--texto); }
.legal p + p { margin-top: .8rem; }
.legal ul { padding-left: 1.2rem; margin-top: .6rem; display: grid; gap: .4rem; }
.legal a { color: var(--ciruela); text-decoration: underline; }

/* --- Pie --- */
.pie { background: var(--carbon); color: rgba(255,255,255,.72); padding-block: 64px 28px; font-size: .92rem; }
.pie-grid { display: grid; gap: 36px; }
.pie-marca p { margin-top: 1rem; max-width: 34ch; }
.pie h4 { font-family: var(--display); color: var(--blanco); font-size: .95rem; font-weight: 600; margin-bottom: .9rem; letter-spacing: 0; }
.pie ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.pie a:hover { color: var(--lima); }
.pie-bajo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); }
.pie-bajo nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* =============================================================
   7. Efectos (aparición suave al hacer scroll)
   ============================================================= */
.js .revela { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .revela.is-visible { opacity: 1; transform: none; }

@view-transition { navigation: auto; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .personas { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .pie-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .cabecera-acciones .btn { display: inline-flex; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-pagina-grid { grid-template-columns: 1.1fr .9fr; }
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
  .regla-grid, .nosotros-grid, .dos-col { grid-template-columns: 1fr 1fr; }
  .contacto-grid { grid-template-columns: .85fr 1.15fr; }
  .asistente { grid-template-columns: 1fr 1fr; }
  .banda { grid-template-columns: 1fr auto; }
}
@media (min-width: 1100px) {
  .nav { display: block; }
  .menu-boton { display: none; }
  .enlace-campus { display: inline-flex; }
}
@media (max-width: 1099px) {
  .tiene-sub .submenu { display: none; }
}
@media (max-width: 539px) {
  .hero-chip { right: 0; bottom: 14%; padding: 12px 16px; font-size: .85rem; }
  .tabla th, .tabla td { padding: 12px 10px; font-size: .88rem; }
  .tabla td:last-child { white-space: normal; }
}

/* =============================================================
   8 bis. Asistente Nova
   ============================================================= */
.nova-lanzador {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7em 1.15em .7em .7em; border-radius: 999px;
  background: var(--verde); color: var(--blanco); font-weight: 600; font-size: .95rem;
  box-shadow: 0 14px 30px -12px rgba(23, 59, 53, .55);
  transition: transform .3s var(--ease-out), background .2s;
}
.nova-lanzador:hover { transform: translateY(-2px); background: var(--verde-2); }
.nova-lanzador-icono { width: 34px; height: 34px; border-radius: 50%; background: var(--lima); color: var(--verde); display: grid; place-items: center; }
.nova-lanzador-icono svg { width: 19px; height: 19px; }
body.nova-abierta .nova-lanzador { display: none; }

.nova {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 36px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--crema); border: 1px solid var(--borde); border-radius: 22px;
  box-shadow: 0 30px 70px -20px rgba(23, 59, 53, .45);
  animation: nova-entra .35s var(--ease-out);
}
.nova[hidden] { display: none; }
@keyframes nova-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.nova-cab { display: flex; align-items: center; gap: .75rem; padding: 14px 14px 14px 16px; background: var(--verde); color: var(--blanco); }
.nova-cab h2 { color: var(--blanco); font-size: 1.05rem; letter-spacing: 0; }
.nova-cab p { font-size: .78rem; color: var(--lima); }
.nova-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--lima); color: var(--verde); display: grid; place-items: center; }
.nova-avatar svg { width: 21px; height: 21px; }
.nova-cerrar { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; font-size: 1.6rem; line-height: 1; color: var(--blanco); }
.nova-cerrar:hover { background: rgba(255,255,255,.12); }

.nova-mensajes { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.nova-msg { max-width: 88%; padding: .65em .95em; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.nova-msg--nova { align-self: flex-start; background: var(--blanco); border: 1px solid var(--borde); border-bottom-left-radius: 4px; }
.nova-msg--tu { align-self: flex-end; background: var(--verde); color: var(--blanco); border-bottom-right-radius: 4px; }
.nova-msg a { color: var(--ciruela); text-decoration: underline; }
.nova-escribiendo { display: inline-flex; gap: 4px; }
.nova-escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: var(--texto-suave); animation: nova-punto 1s infinite; }
.nova-escribiendo i:nth-child(2) { animation-delay: .15s; } .nova-escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes nova-punto { 50% { opacity: .25; } }
.nova-sugerencias { display: flex; flex-wrap: wrap; gap: 6px; }
.nova-sugerencias button { font-size: .82rem; padding: .45em .85em; border-radius: 999px; border: 1px solid var(--verde); color: var(--verde); background: var(--blanco); text-align: left; }
.nova-sugerencias button:hover { background: var(--lima-tint); }

.nova-contacto { align-self: stretch; background: var(--blanco); border: 1px solid var(--borde); border-radius: 16px; padding: 14px; display: grid; gap: 8px; font-size: .88rem; }
.nova-contacto strong { color: var(--verde); font-family: var(--display); }
.nova-contacto input[type=text] { width: 100%; padding: .6em .75em; border: 1px solid var(--borde); border-radius: 10px; font: inherit; background: var(--crema); }
.nova-contacto input[type=text]:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(210, 239, 105, .55); }
.nova-contacto .casilla { font-size: .78rem; }
.nova-contacto .btn { justify-self: start; padding: .55em 1.1em; font-size: .88rem; }

.nova-descargas { align-self: stretch; display: grid; gap: 6px; }
.nova-descargas .btn { justify-content: center; padding: .55em 1em; font-size: .86rem; background: var(--blanco); }
.nova-contacto input[type=email] { width: 100%; padding: .6em .75em; border: 1px solid var(--borde); border-radius: 10px; font: inherit; background: var(--crema); }
.nova-contacto input[type=email]:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(210, 239, 105, .55); }

.nova-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--borde); background: var(--blanco); }
.nova-form textarea { flex: 1; resize: none; max-height: 120px; border: 1px solid var(--borde); border-radius: 14px; padding: .6em .8em; font: inherit; font-size: .92rem; background: var(--crema); }
.nova-form textarea:focus { outline: none; border-color: var(--verde); }
.nova-form button { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--lima); color: var(--verde); display: grid; place-items: center; }
.nova-form button svg { width: 18px; height: 18px; }
.nova-form button:disabled { opacity: .5; cursor: wait; }
.nova-nota { font-size: .72rem; color: var(--texto-suave); padding: 0 14px 10px; background: var(--blanco); }
.nova-nota a { text-decoration: underline; }

@media (max-width: 539px) {
  .nova { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .nova-lanzador { right: 12px; bottom: 12px; }
  .nova-lanzador span:last-child { display: none; }
  .nova-lanzador { padding: .55em; }
}

/* =============================================================
   9. Movimiento reducido (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nova { animation: none; }
}
