@import url("../fuentes/rethink-sans.css");
@import url("../fuentes/fraunces.css");

/* =========================================================================
   Giampaolo Sponza — hoja de estilo
   Un azul profundo de fondo, mucho aire, tipografia grande y movimientos
   suaves. Todo el movimiento se apaga solo si el visitante pide menos.
   ========================================================================= */

:root {
    /* color */
    --marino:    #002b52;
    --marino-900:#001b35;
    --azul:      #0a6fc2;
    --celeste:   #3ea1f0;
    --celeste-200:#9ccdf7;
    --tinta:     #0d1117;
    --gris:      #5b6672;
    --linea:     #e4e9ef;
    --hueso:     #f6f8fb;
    --blanco:    #ffffff;

    /* medidas */
    --ancho:     1200px;
    --ancho-texto: 760px;
    --radio:     14px;
    --radio-s:   8px;

    /* tipografia */
    --sans: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --t-gigante: clamp(2.7rem, 5.6vw, 4.6rem);
    --t-grande:  clamp(2rem, 3.2vw, 2.9rem);
    --t-medio:   clamp(1.3rem, 1.9vw, 1.7rem);
    --t-base:    clamp(1.02rem, 1.05vw, 1.13rem);

    /* movimiento */
    --curva: cubic-bezier(.22, 1, .36, 1);
    --tiempo: .7s;

    /* sombra */
    --sombra:    0 1px 2px rgba(13, 17, 23, .04), 0 12px 32px rgba(13, 17, 23, .08);
    --sombra-alta: 0 2px 4px rgba(13, 17, 23, .06), 0 28px 60px rgba(13, 17, 23, .16);
}

/* ------------------------------------------------------------- cimientos */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: var(--t-base);
    line-height: 1.72;
    color: #1b222b;
    background: var(--blanco);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--azul); text-underline-offset: .18em; }
a:hover { color: var(--marino); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.015em;
    margin: 0 0 .6em;
    text-wrap: balance;
    font-optical-sizing: auto;
}
h1 { font-weight: 700; }
h4 { font-size: 1.12rem; }
h1 { font-size: var(--t-gigante); }
h2 { font-size: var(--t-grande); }
h3 { font-size: var(--t-medio); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.contenedor {
    width: min(100% - 2.5rem, var(--ancho));
    margin-inline: auto;
}
.contenedor--estrecho { width: min(100% - 2.5rem, var(--ancho-texto)); }

.visualmente-oculto {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saltar {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--marino); color: #fff; padding: .8rem 1.2rem;
}
.saltar:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- botones */

.boton {
    --fondo-boton: var(--celeste);
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .95rem 1.7rem;
    border: 1px solid transparent;
    border-radius: 100px;
    background: var(--fondo-boton);
    color: #fff;
    font-weight: 600;
    font-size: .97rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--curva), box-shadow .25s var(--curva), background .25s;
    box-shadow: 0 6px 16px rgba(10, 111, 194, .22);
    letter-spacing: .005em;
}
.boton:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(10, 111, 194, .3);
}
.boton:active { transform: translateY(0); }
.boton--alterno { --fondo-boton: var(--azul); box-shadow: 0 8px 20px rgba(10, 111, 194, .28); }
.boton--linea {
    background: transparent;
    border-color: currentColor;
    color: var(--marino);
    box-shadow: none;
}
.boton--linea:hover { background: var(--marino); border-color: var(--marino); color: #fff; }
.boton--claro { color: #fff; border-color: rgba(255, 255, 255, .55); }
.boton--claro:hover { background: #fff; color: var(--marino); border-color: #fff; }
.boton--pequeno { padding: .6rem 1.15rem; font-size: .88rem; }

.acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }

/* -------------------------------------------------------------- cabecera */

.cabecera {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.cabecera.es-pegada {
    border-bottom-color: var(--linea);
    box-shadow: 0 6px 24px rgba(13, 17, 23, .06);
}
.cabecera__interior {
    width: min(100% - 2.5rem, var(--ancho));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 76px;
}
.marca { display: flex; align-items: center; flex: 0 0 auto; }
/* el tamano del sello lo fija .marca__sello */

.nav { margin-left: auto; }
.nav__lista {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__enlace {
    position: relative;
    color: var(--tinta);
    text-decoration: none;
    font-weight: 500;
    font-size: .97rem;
    padding: .35rem 0;
}
.nav__enlace::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--celeste);
    transition: right .35s var(--curva);
}
.nav__enlace:hover::after, .nav__enlace.es-activo::after { right: 0; }

.cabecera__extra { display: flex; align-items: center; gap: 1rem; }

.idiomas { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0 .8rem 0 0; border-right: 1px solid var(--linea); }
.idiomas__enlace {
    display: block;
    padding: .3rem .45rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gris);
    text-decoration: none;
    border-radius: 6px;
}
.idiomas__enlace:hover { color: var(--marino); background: var(--hueso); }
.idiomas__enlace.es-activo { color: var(--marino); background: var(--hueso); }

.hamburguesa {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--linea);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    position: relative;
}
.hamburguesa__raya,
.hamburguesa__raya::before,
.hamburguesa__raya::after {
    position: absolute;
    left: 50%; top: 50%;
    width: 18px; height: 2px;
    margin-left: -9px;
    background: var(--tinta);
    transition: transform .3s var(--curva), opacity .2s;
}
.hamburguesa__raya::before { content: ""; transform: translateY(-6px); margin-left: 0; left: 0; top: 0; }
.hamburguesa__raya::after  { content: ""; transform: translateY(6px);  margin-left: 0; left: 0; top: 0; }
.menu-abierto .hamburguesa__raya { background: transparent; }
.menu-abierto .hamburguesa__raya::before { transform: rotate(45deg); }
.menu-abierto .hamburguesa__raya::after  { transform: rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

.hero {
    position: relative;
    min-height: min(92vh, 860px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--marino-900);
    color: #fff;
}
.hero__foto {
    position: absolute;
    inset: -8% 0 -8% 0;
    width: 100%;
    height: 116%;
    object-fit: cover;
    will-change: transform;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}
.hero__foto.es-visible { opacity: 1; }
/* si no hay javascript, al menos se ve la primera */
.hero:not([data-pase]) .hero__foto { opacity: 1; }
.hero__velo {
    position: absolute;
    inset: 0;
    /* el texto va sobre la foto: el velo tiene que garantizar que se lea
       sea cual sea la foto que se ponga despues desde el panel */
    background:
        linear-gradient(100deg, rgba(0, 20, 40, .94) 0%, rgba(0, 20, 40, .86) 42%, rgba(0, 20, 40, .45) 78%, rgba(0, 20, 40, .35) 100%),
        linear-gradient(0deg, rgba(0, 20, 40, .7), rgba(0, 20, 40, 0) 55%);
}
.hero__interior { position: relative; padding: 7rem 0 6rem; max-width: 56rem; }
.hero__titulo {
    font-size: var(--t-gigante);
    margin: 0 0 .35em;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 16, 32, .35);
}
.hero__subtitulo {
    font-family: var(--sans);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 500;
    color: rgba(255, 255, 255, .95);
    margin: 0 0 1.1rem;
    max-width: 38ch;
    line-height: 1.45;
}
/* una raya corta de acento bajo el titular, como firma */
.hero__subtitulo::before {
    content: "";
    display: block;
    width: 3.2rem;
    height: 3px;
    margin-bottom: 1.1rem;
    border-radius: 2px;
    background: var(--celeste);
}
.hero__entrada {
    font-size: 1.03rem;
    color: rgba(255, 255, 255, .78);
    max-width: 54ch;
    line-height: 1.7;
}
.hero__acciones { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__flecha {
    position: absolute;
    left: 50%; bottom: 2rem;
    width: 26px; height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 14px;
}
.hero__flecha::after {
    content: "";
    position: absolute;
    left: 50%; top: 8px;
    width: 3px; height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #fff;
    animation: rueda 2.2s infinite;
}
@keyframes rueda {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* las palabras del titular entran una detras de otra */
.palabra { display: inline-block; overflow: hidden; vertical-align: top; }
.palabra > span {
    display: inline-block;
    transform: translateY(110%);
    animation: subir .9s var(--curva) forwards;
    animation-delay: calc(var(--i) * .07s);
}
@keyframes subir { to { transform: translateY(0); } }

/* ----------------------------------------------- cabecera de las paginas */

.portada-pagina {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(360px, 52vh, 560px);
    padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
    background:
        radial-gradient(90rem 40rem at 15% -20%, rgba(62, 161, 240, .16), transparent 60%),
        linear-gradient(180deg, var(--hueso), #fff);
    overflow: hidden;
}
/* la cabecera sin foto tampoco queda sosa: lleva su propio dibujo de fondo */
.portada-pagina:not(.portada-pagina--foto):not(.portada-pagina--color)::after {
    content: "";
    position: absolute;
    right: -6rem; top: -8rem;
    width: 34rem; height: 34rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(10, 111, 194, .12), transparent 62%);
    pointer-events: none;
}
.portada-pagina__titulo {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
    letter-spacing: -.03em;
}
.portada-pagina--color .portada-pagina__titulo,
.portada-pagina--foto .portada-pagina__titulo { text-shadow: 0 2px 28px rgba(0, 16, 32, .3); }

/* una raya de acento bajo el titulo, como en la portada */
.portada-pagina .contenedor::after {
    content: "";
    display: block;
    width: 3.4rem;
    height: 3px;
    margin-top: 1.4rem;
    border-radius: 2px;
    background: var(--celeste);
}
.portada-pagina--centrada .contenedor::after,
.portada-pagina--color .contenedor::after,
.portada-pagina--foto .contenedor::after { margin-inline: auto; }
.portada-pagina--color,
.portada-pagina--foto { background: var(--fondo, var(--marino)); color: #fff; }
.portada-pagina--color .portada-pagina__titulo,
.portada-pagina--foto .portada-pagina__titulo { color: #fff; }
.portada-pagina--color .contenedor,
.portada-pagina--foto .contenedor { position: relative; z-index: 2; text-align: center; }
.portada-pagina--color .portada-pagina__titulo,
.portada-pagina--foto .portada-pagina__titulo { max-width: none; }

.portada-pagina__foto {
    position: absolute;
    inset: -6% 0;
    width: 100%; height: 112%;
    object-fit: cover;
    z-index: 0;
}
.portada-pagina--foto::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 20, 40, .35) 0%, rgba(0, 20, 40, .72) 70%, rgba(0, 20, 40, .85) 100%),
        linear-gradient(100deg, rgba(0, 20, 40, .55), transparent 65%);
}

/* el adorno de triangulos que tenia la web anterior, redibujado */
.portada-pagina--color::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: min(62%, 48rem);
    z-index: 1;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20700%20865%22%20preserveAspectRatio%3D%22xMaxYMid%20slice%22%3E%3Cpolygon%20points%3D%220%2C173%20100%2C0%20200%2C173%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.10%22%2F%3E%3Cpolygon%20points%3D%22100%2C0%20300%2C0%20200%2C173%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.05%22%2F%3E%3Cpolygon%20points%3D%22200%2C173%20300%2C0%20400%2C173%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.14%22%2F%3E%3Cpolygon%20points%3D%22300%2C0%20500%2C0%20400%2C173%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.04%22%2F%3E%3Cpolygon%20points%3D%22400%2C173%20500%2C0%20600%2C173%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.08%22%2F%3E%3Cpolygon%20points%3D%22500%2C0%20700%2C0%20600%2C173%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.06%22%2F%3E%3Cpolygon%20points%3D%220%2C173%20200%2C173%20100%2C346%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpolygon%20points%3D%22100%2C346%20200%2C173%20300%2C346%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.03%22%2F%3E%3Cpolygon%20points%3D%22200%2C173%20400%2C173%20300%2C346%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.10%22%2F%3E%3Cpolygon%20points%3D%22300%2C346%20400%2C173%20500%2C346%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.05%22%2F%3E%3Cpolygon%20points%3D%22400%2C173%20600%2C173%20500%2C346%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.14%22%2F%3E%3Cpolygon%20points%3D%22500%2C346%20600%2C173%20700%2C346%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.04%22%2F%3E%3Cpolygon%20points%3D%220%2C519%20100%2C346%20200%2C519%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.08%22%2F%3E%3Cpolygon%20points%3D%22100%2C346%20300%2C346%20200%2C519%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.06%22%2F%3E%3Cpolygon%20points%3D%22200%2C519%20300%2C346%20400%2C519%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpolygon%20points%3D%22300%2C346%20500%2C346%20400%2C519%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.03%22%2F%3E%3Cpolygon%20points%3D%22400%2C519%20500%2C346%20600%2C519%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.10%22%2F%3E%3Cpolygon%20points%3D%22500%2C346%20700%2C346%20600%2C519%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.05%22%2F%3E%3Cpolygon%20points%3D%220%2C519%20200%2C519%20100%2C692%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.14%22%2F%3E%3Cpolygon%20points%3D%22100%2C692%20200%2C519%20300%2C692%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.04%22%2F%3E%3Cpolygon%20points%3D%22200%2C519%20400%2C519%20300%2C692%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.08%22%2F%3E%3Cpolygon%20points%3D%22300%2C692%20400%2C519%20500%2C692%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.06%22%2F%3E%3Cpolygon%20points%3D%22400%2C519%20600%2C519%20500%2C692%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.12%22%2F%3E%3Cpolygon%20points%3D%22500%2C692%20600%2C519%20700%2C692%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.03%22%2F%3E%3Cpolygon%20points%3D%220%2C865%20100%2C692%20200%2C865%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.10%22%2F%3E%3Cpolygon%20points%3D%22100%2C692%20300%2C692%20200%2C865%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.05%22%2F%3E%3Cpolygon%20points%3D%22200%2C865%20300%2C692%20400%2C865%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.14%22%2F%3E%3Cpolygon%20points%3D%22300%2C692%20500%2C692%20400%2C865%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.04%22%2F%3E%3Cpolygon%20points%3D%22400%2C865%20500%2C692%20600%2C865%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.08%22%2F%3E%3Cpolygon%20points%3D%22500%2C692%20700%2C692%20600%2C865%22%20fill%3D%22%23fff%22%20fill-opacity%3D%220.06%22%2F%3E%3C%2Fsvg%3E") right center / cover no-repeat;
    pointer-events: none;
}
.portada-pagina--diagonal::before {
    width: 55%;
    inset: 0 auto 0 0;
    background: var(--azul);
    clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
    opacity: .9;
}

/* -------------------------------------------------------------- secciones */

.seccion { padding: clamp(4rem, 8vw, 7.5rem) 0; position: relative; }
.seccion--color { background: var(--fondo, var(--hueso)); }
.seccion--oscura { color: #fff; }
.seccion--oscura h2, .seccion--oscura h3, .seccion--oscura h4 { color: #fff; }
.seccion--oscura a { color: var(--celeste-200); }

.seccion--con-foto { color: #fff; isolation: isolate; }
.seccion__foto {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
.seccion--con-foto::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(0, 27, 53, .78), rgba(0, 27, 53, .86));
}

.seccion .titulo { max-width: 22ch; }
.seccion p, .seccion .lista { max-width: 68ch; }

/* el pequeño título que acompaña al de la sección: en la serif de los
   titulares, en minúsculas y sin adornos */
.antetitulo {
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 400;
    font-style: italic;
    color: var(--azul);
    margin: -1.2rem 0 1.8rem;
    max-width: 44ch;
}
.seccion--oscura .antetitulo,
.seccion--con-foto .antetitulo { color: var(--celeste-200); }

.seccion--aviso { padding: clamp(5rem, 12vw, 9rem) 0; text-align: center; }
.aviso__codigo { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; color: var(--linea); margin: 0; line-height: 1; }

/* columnas */
.columnas {
    display: grid;
    gap: clamp(1.8rem, 4vw, 3.5rem);
    align-items: start;
    margin-top: 2.2rem;
}
/* cuando una de las columnas es una foto, el texto va centrado a su lado */
.columnas--centradas { align-items: center; }
.columnas--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columnas--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.columna > :first-child { margin-top: 0; }
.columna--foto {
    aspect-ratio: 7 / 6;
    border-radius: var(--radio);
    background: var(--foto) center/cover no-repeat, var(--hueso);
    box-shadow: var(--sombra);
}

/* rejilla de tarjetas */
.rejilla {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.6rem;
    margin-top: 2.4rem;
}
.tarjeta {
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: 20px;
    padding: 1.8rem;
    transition: transform .35s var(--curva), box-shadow .35s var(--curva), border-color .35s;
}
.tarjeta:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 43, 82, .1); border-color: #dfe6ee; }
.tarjeta h2, .tarjeta h3, .tarjeta h4 { font-size: 1.18rem; line-height: 1.25; }
.tarjeta p { font-size: .97rem; color: #46515e; }
.tarjeta > :first-child { margin-top: 0; }
.tarjeta h3, .tarjeta h2 { font-size: 1.2rem; }
.tarjeta .figura {
    margin: -1.7rem -1.7rem 1.2rem;
    border-radius: var(--radio) var(--radio) 0 0;
    overflow: hidden;
}
.tarjeta .figura img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.seccion--color .tarjeta { background: #fff; }

/* figuras sueltas */
.figura { margin: 1.8rem 0; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.figura img { width: 100%; }

/* listas */
.lista { margin: 1.2rem 0; padding-left: 1.2rem; }
.lista li { margin-bottom: .55rem; }
.lista--marcas { list-style: none; padding-left: 0; }
.lista--marcas li {
    position: relative;
    padding-left: 1.9rem;
}
.lista--marcas li::before {
    content: "";
    position: absolute;
    left: 0; top: .45em;
    width: 1.05rem; height: 1.05rem;
    border-radius: 50%;
    background: var(--celeste);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.6 16.2 4.8 11.4l1.4-1.4 3.4 3.4 8-8 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.6 16.2 4.8 11.4l1.4-1.4 3.4 3.4 8-8 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* tablas */
.tabla-caja { overflow-x: auto; margin: 1.8rem 0; }
.tabla { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabla th, .tabla td { padding: .8rem 1rem; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.tabla th { font-weight: 600; background: var(--hueso); }

/* ------------------------------------------------------- banda de logos */

.banda {
    padding: 2.6rem 0;
    border-block: 1px solid var(--linea);
    overflow: hidden;
    background: #fff;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.banda__pista { display: flex; width: max-content; animation: desfile 70s linear infinite; }
.banda:hover .banda__pista { animation-play-state: paused; }
.banda__fila { display: flex; align-items: center; gap: 3.2rem; list-style: none; margin: 0; padding: 0 1.6rem; }
.banda__fila img {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .55;
    transition: filter .3s, opacity .3s;
}
.banda__fila img:hover { filter: none; opacity: 1; }
@keyframes desfile { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------- pie */

.pie { background: var(--marino-900); color: rgba(255, 255, 255, .78); margin-top: 0; }
.pie a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.pie a:hover { color: #fff; }
.pie__interior {
    width: min(100% - 2.5rem, var(--ancho));
    margin-inline: auto;
    padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr .9fr;
    gap: 2.5rem;
}
.pie__logo { width: 160px; margin-bottom: 1.1rem; }
.pie__titulo {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 1.2rem;
}
.pie__lema { color: #fff; font-weight: 600; margin-bottom: .6rem; }
.pie__dato { font-size: .93rem; margin-bottom: .45rem; }
.pie__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.pie__lista--datos li { display: flex; gap: .6rem; align-items: flex-start; }
.pie__lista--datos .icono { margin-top: .25em; opacity: .75; }

.redes { display: flex; gap: .55rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.redes__enlace {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    transition: background .25s, transform .25s var(--curva);
}
.redes__enlace:hover { background: var(--celeste); transform: translateY(-3px); }

.pie__base {
    width: min(100% - 2.5rem, var(--ancho));
    margin-inline: auto;
    padding: 1.4rem 0 2.4rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
}
.pie__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.pie__copia { margin: 0; }

/* botón flotante */
.flotante {
    position: fixed;
    left: 1.2rem; bottom: 1.2rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.3rem;
    border-radius: 100px;
    background: var(--marino);
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    box-shadow: var(--sombra-alta);
    transform: translateY(0);
    transition: transform .3s var(--curva), background .3s;
}
.flotante:hover { color: #fff; background: var(--azul); transform: translateY(-3px); }

/* ---------------------------------------------------------------- iconos */

.icono {
    display: inline-block;
    width: 1.15em; height: 1.15em;
    background: currentColor;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center;  mask-position: center;
    -webkit-mask-size: contain;     mask-size: contain;
    flex: 0 0 auto;
}
.icono--correo    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.icono--telefono  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2.2 2A16 16 0 0 1 3 6.2 2 2 0 0 1 5 4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2.2 2A16 16 0 0 1 3 6.2 2 2 0 0 1 5 4z'/%3E%3C/svg%3E"); }
.icono--lugar     { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Cpath d='M12 21s7-5.5 7-11a7 7 0 1 0-14 0c0 5.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Cpath d='M12 21s7-5.5 7-11a7 7 0 1 0-14 0c0 5.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E"); }
.icono--estrella  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Cpath d='m12 3.6 2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L3.5 9.8l5.9-.9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Cpath d='m12 3.6 2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L3.5 9.8l5.9-.9z'/%3E%3C/svg%3E"); }
.icono--facebook  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M14 8.5h2.5v-3H14c-2.2 0-4 1.8-4 4V11H8v3h2v7h3v-7h2.4l.6-3H13V9.5c0-.6.4-1 1-1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M14 8.5h2.5v-3H14c-2.2 0-4 1.8-4 4V11H8v3h2v7h3v-7h2.4l.6-3H13V9.5c0-.6.4-1 1-1z'/%3E%3C/svg%3E"); }
.icono--linkedin  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M6.5 9H4v12h2.5V9zM5.25 4a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM20 13.8c0-2.9-1.6-4.3-3.7-4.3-1.7 0-2.5.9-2.9 1.6V9H11v12h2.5v-6.4c0-1.4.7-2.2 1.9-2.2 1.1 0 1.7.7 1.7 2.2V21H20v-7.2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M6.5 9H4v12h2.5V9zM5.25 4a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5zM20 13.8c0-2.9-1.6-4.3-3.7-4.3-1.7 0-2.5.9-2.9 1.6V9H11v12h2.5v-6.4c0-1.4.7-2.2 1.9-2.2 1.1 0 1.7.7 1.7 2.2V21H20v-7.2z'/%3E%3C/svg%3E"); }

/* los emojis del contenido se quedan a tamano de letra */
img.emoji {
    display: inline-block !important;
    width: 1em !important; height: 1em !important;
    margin: 0 .08em; vertical-align: -.12em;
    box-shadow: none !important; border-radius: 0 !important;
}

/* ------------------------------------------------------------ movimiento */

.js [data-animar] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity var(--tiempo) var(--curva), transform var(--tiempo) var(--curva);
    transition-delay: var(--retraso, 0s);
}
.js [data-animar].se-ve { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
    .pie__interior { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
    .hamburguesa { display: block; }
    .nav {
        position: fixed;
        inset: 76px 0 auto 0;
        background: #fff;
        border-bottom: 1px solid var(--linea);
        padding: 1rem 1.25rem 1.6rem;
        transform: translateY(-120%);
        transition: transform .4s var(--curva);
        box-shadow: var(--sombra);
    }
    .menu-abierto .nav { transform: translateY(0); }
    .nav__lista { flex-direction: column; gap: .2rem; }
    .nav__enlace { display: block; padding: .75rem 0; border-bottom: 1px solid var(--linea); }
    .nav__enlace::after { display: none; }
    .cabecera__extra { margin-left: auto; }
    .cabecera__extra .boton { display: none; }
    .columnas--2, .columnas--3 { grid-template-columns: 1fr; }
    .hero__interior { padding: 5.5rem 0 4.5rem; }
}

@media (max-width: 560px) {
    .pie__interior { grid-template-columns: 1fr; }
    .flotante { left: .8rem; bottom: .8rem; padding: .7rem 1rem; font-size: .85rem; }
    .figura { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-animar] { opacity: 1; transform: none; transition: none; }
    .banda__pista { animation: none; }
    .hero__flecha::after { animation: none; }
    .palabra > span { animation: none; transform: none; }
    * { scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ marca */

.marca {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: var(--marino);
    line-height: 1.05;
}
.marca__sello {
    width: 44px; height: 44px;
    border-radius: 11px;
    box-shadow: 0 2px 10px rgba(0, 43, 82, .18);
    flex: 0 0 auto;
}
.marca__texto { display: grid; gap: .1rem; }
.marca__nombre {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -.015em;
}
.marca__punto { color: var(--celeste); }
.marca__oficio {
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .01em;
    color: var(--gris);
}
.marca--pie { margin: 0 0 1.2rem; align-items: center; }
.marca--pie .marca__sello { width: 52px; height: 52px; }
.marca--pie .marca__nombre { color: #fff; font-size: 1.4rem; }

/* ---------------------------------------------------------------- cursos */

.cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.6rem;
    margin-top: 2.4rem;
}
.curso {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: var(--radio);
    transition: transform .35s var(--curva), box-shadow .35s var(--curva), border-color .35s;
}
.curso:hover { transform: translateY(-6px); box-shadow: var(--sombra-alta); border-color: transparent; }
.curso__enlace { text-decoration: none; color: inherit; display: block; }
.curso__foto {
    display: block;
    margin: -1.4rem -1.4rem 1rem;
    border-radius: var(--radio) var(--radio) 0 0;
    overflow: hidden;
}
.curso__foto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.curso__titulo { font-size: 1.08rem; line-height: 1.35; margin: 0; }
.curso__enlace:hover .curso__titulo { color: var(--azul); }
.curso__resumen { font-size: .93rem; color: var(--gris); margin: 0; }
.curso__pie { display: flex; align-items: center; justify-content: space-between; margin: .3rem 0 0; }
.curso__precio { font-weight: 700; color: var(--azul); font-size: 1.15rem; }
.curso__idioma { font-size: 1.1rem; }
.curso .acciones { margin-top: auto; padding-top: .6rem; }

/* ficha de curso */
.ficha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.ficha__entrada { font-size: 1.12rem; color: var(--gris); }
.ficha__texto :is(p, li) { max-width: var(--ancho-texto); }
.ficha__compra {
    position: sticky;
    top: 100px;
    padding: 1.8rem;
    border: 1px solid var(--linea);
    border-radius: var(--radio);
    background: var(--hueso);
    box-shadow: var(--sombra);
}
.ficha__precio { font-size: 2.1rem; font-weight: 800; color: var(--marino); margin: 0 0 .8rem; letter-spacing: -.02em; }
.ficha__incluye { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; font-size: .93rem; }
.ficha__incluye li { position: relative; padding-left: 1.6rem; }
.ficha__incluye li::before {
    content: "";
    position: absolute; left: 0; top: .42em;
    width: 1rem; height: 1rem;
    background: var(--celeste);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.6 16.2 4.8 11.4l1.4-1.4 3.4 3.4 8-8 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.6 16.2 4.8 11.4l1.4-1.4 3.4 3.4 8-8 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ficha__idioma { font-size: .93rem; color: var(--gris); margin: 0 0 .4rem; }
.ficha__nota { font-size: .88rem; margin: 1rem 0 0; }
.portada-pagina__migas { position: relative; z-index: 2; margin: 0 0 .6rem; font-size: .9rem; }
.portada-pagina__migas a { color: rgba(255,255,255,.85); text-decoration: none; }

@media (max-width: 880px) {
    .ficha { grid-template-columns: 1fr; }
    .ficha__compra { position: static; }
}

/* ----------------------------------------------------------- formulario */

.formulario {
    display: grid;
    gap: 1.15rem;
    margin: 2rem 0 0;
    text-align: left;
    max-width: 44rem;
}
.formulario__fila { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.campo { display: grid; gap: .4rem; margin: 0; }
.campo label, .campo__etiqueta { font-size: .92rem; font-weight: 600; }
.campo input, .campo select, .campo textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--linea);
    border-radius: var(--radio-s);
    background: #fff;
    font: inherit;
    color: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
    outline: none;
    border-color: var(--celeste);
    box-shadow: 0 0 0 3px rgba(62, 161, 240, .18);
}
.campo [aria-invalid="true"] { border-color: #c0392b; }
.campo__error { font-size: .85rem; color: #c0392b; }
.opciones { display: flex; gap: 1.2rem; padding-top: .35rem; }
.opcion { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; }
.opcion input { width: auto; }
.campo--acepto .opcion { align-items: flex-start; font-size: .93rem; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aviso {
    padding: 1.1rem 1.3rem;
    border-radius: var(--radio-s);
    border-left: 3px solid var(--celeste);
    background: var(--hueso);
    margin: 1.5rem 0;
}
.aviso--bien { border-left-color: #2e9e5b; }
.aviso--mal { border-left-color: #c0392b; }

@media (max-width: 680px) {
    .formulario__fila { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- compra */

.compra { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.compra .formulario { margin-top: 0; }
.compra__resumen {
    padding: 1.5rem;
    border: 1px solid var(--linea);
    border-radius: var(--radio);
    background: var(--hueso);
    position: sticky;
    top: 100px;
}
.compra__resumen img { border-radius: var(--radio-s); margin-bottom: 1rem; }
.compra__resumen h2 { font-size: 1.05rem; }

.metodos { display: grid; gap: .8rem; margin: 0 0 1.4rem; }
.metodo {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--linea);
    border-radius: var(--radio-s);
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.metodo:has(input:checked) { border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(62,161,240,.15); }
.metodo input { margin-top: .25rem; }
.metodo__cuerpo { display: grid; gap: .15rem; }
.tenue { color: var(--gris); font-size: .92rem; }

.datos-banco {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 3px solid var(--celeste);
    background: var(--hueso);
    border-radius: 0 var(--radio-s) var(--radio-s) 0;
}
.datos-banco p { margin: 0 0 .4rem; }
.iban { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; letter-spacing: .04em; }
.descargas { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .8rem; justify-items: start; }

@media (max-width: 880px) {
    .compra { grid-template-columns: 1fr; }
    .compra__resumen { position: static; }
}

/* ----------------------------------------------------- edición en vivo */

.barra-edicion {
    position: fixed;
    left: 50%; bottom: 1.1rem;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .6rem .7rem .6rem 1.1rem;
    border-radius: 100px;
    background: rgba(13, 17, 23, .94);
    color: #fff;
    box-shadow: var(--sombra-alta);
    font-size: .9rem;
    backdrop-filter: blur(10px);
}
.barra-edicion__estado { white-space: nowrap; }
.barra-edicion__estado.es-bien { color: #7fe0a4; }
.barra-edicion__estado.es-mal  { color: #ff9f98; }
.barra-edicion__boton {
    padding: .4rem .9rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.barra-edicion__boton:hover { background: var(--celeste); color: #fff; }
.barra-edicion__boton--salir { background: transparent; border: 1px solid rgba(255,255,255,.3); }

.editable {
    outline: 1px dashed rgba(62, 161, 240, .5);
    outline-offset: 4px;
    border-radius: 3px;
    transition: outline-color .2s, background .2s;
    cursor: text;
}
.editable:hover { outline-color: var(--celeste); background: rgba(62, 161, 240, .06); }
.editable:focus { outline: 2px solid var(--celeste); background: rgba(62, 161, 240, .08); }
.editable.se-guardo { outline-color: #2e9e5b; background: rgba(46, 158, 91, .1); }


/* ------------------------------------------------- ritmo entre secciones */

/* una de cada dos secciones sin color propio va sobre fondo hueso: asi la
   pagina respira y no es un bloque de texto detras de otro */
.seccion:not(.seccion--color):not(.seccion--con-foto):nth-of-type(even) {
    background: var(--hueso);
}

/* la primera seccion de cada pagina entra mas grande, como presentacion */
main > .seccion:first-of-type .titulo { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
main > .seccion:first-of-type > .contenedor > p:first-of-type {
    font-size: 1.12rem;
    color: var(--gris);
    max-width: 62ch;
}

/* fotos de columna: esquina marcada, como firma visual */
.columna--foto {
    border-radius: 140px 18px 140px 18px;
    box-shadow: 0 24px 60px rgba(0, 43, 82, .14);
}
.columnas--2 .columna--foto:nth-child(odd) { border-radius: 18px 140px 18px 140px; }

.figura img { transition: transform .8s var(--curva); }
.figura:hover img { transform: scale(1.03); }

/* tarjetas: un poco mas de caracter */
.tarjeta { border-radius: 18px; }
.tarjeta .figura { border-radius: 18px 18px 0 0; }
.curso { border-radius: 18px; }
.curso__foto { border-radius: 18px 18px 0 0; }

/* ------------------------------------------------- afinado de las fichas */

/* todas las fichas terminan igual: el botón abajo, aunque el texto sea más
   corto en unas que en otras */
.tarjeta { display: flex; flex-direction: column; }
.tarjeta .acciones { margin-top: auto; padding-top: 1.1rem; }

/* las fichas sin foto no se quedan huérfanas: llevan un filo de color */
.tarjeta:not(:has(.figura)) { padding-top: 2.1rem; position: relative; }
.tarjeta:not(:has(.figura))::before {
    content: "";
    position: absolute;
    left: 1.8rem; right: 1.8rem; top: 0;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--celeste), var(--azul));
}

/* las listas con marca de verificación, un poco más aireadas */
.lista--marcas li { padding-left: 2rem; margin-bottom: .7rem; }
.lista--marcas li::before { top: .4em; }

/* los párrafos de apertura de sección se leen mejor algo más grandes */
.seccion > .contenedor > p:first-of-type { font-size: 1.06rem; }

/* la ficha de curso: el panel de compra con más empaque */
.ficha__compra {
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, var(--hueso));
    border-color: #e8edf3;
}
.ficha__precio { font-family: var(--serif); font-weight: 600; }

/* detalles de la cabecera */
.cabecera__interior { min-height: 84px; }
.nav__enlace { font-size: .96rem; }

/* el pie respira un poco más */
.pie__interior { padding-bottom: 3rem; }
.pie__lema { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }

/* citas y textos destacados que vengan del contenido */
.seccion blockquote {
    margin: 2rem 0;
    padding: 1.2rem 0 1.2rem 1.6rem;
    border-left: 3px solid var(--celeste);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--marino);
}

/* ------------------------------------------------- preguntas frecuentes */

.faq {
    display: grid;
    gap: .7rem;
    margin: 2rem 0;
    max-width: 52rem;
}
.faq__item {
    border: 1px solid var(--linea);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.faq__item[open] { border-color: #d7e3ef; box-shadow: 0 10px 30px rgba(0, 43, 82, .07); }
.faq__pregunta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--marino);
    cursor: pointer;
    list-style: none;
}
.faq__pregunta::-webkit-details-marker { display: none; }
.faq__pregunta::after {
    content: "";
    margin-left: auto;
    width: 1.5rem; height: 1.5rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--hueso);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6fc2' stroke-width='2.2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.1rem;
    transition: transform .3s var(--curva);
}
.faq__item[open] .faq__pregunta::after { transform: rotate(180deg); }
.faq__pregunta:hover { color: var(--azul); }
.faq__respuesta {
    padding: 0 1.4rem 1.3rem;
    color: #46515e;
}
.faq__respuesta p { margin-bottom: .6em; }

/* ------------------------------------------- logos de clientes, más visibles */

.banda { padding: 3.2rem 0; }
.banda__pista { animation-duration: 150s; }     /* mucho más pausado */
.banda__fila { gap: 4.5rem; padding: 0 2.2rem; }
.banda__fila img {
    height: 74px;
    filter: grayscale(1);
    opacity: .62;
}
.banda__fila img:hover { filter: none; opacity: 1; }

@media (max-width: 680px) {
    .banda__fila img { height: 54px; }
    .banda__fila { gap: 2.6rem; }
}

/* fichas de servicio: todas del mismo alto y con el botón al final */
.rejilla--fichas .tarjeta p { min-height: 0; }
.rejilla--fichas { align-items: stretch; }

/* frases destacadas (los titulares demasiado largos del contenido antiguo) */
.destacado {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--marino);
    max-width: 30ch;
    margin: 0 0 1.4rem;
}
.seccion--oscura .destacado, .seccion--con-foto .destacado { color: #fff; }

/* el encabezado que va encima de una rejilla de fichas */
.rejilla--fichas { margin-top: 1.6rem; }
.seccion .rejilla--fichas + * { margin-top: 2rem; }

/* cabecera sencilla (páginas sin foto ni color): más compacta */
.portada-pagina:not(.portada-pagina--foto):not(.portada-pagina--color) {
    min-height: 0;
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 3vw, 2.8rem);
}
.portada-pagina:not(.portada-pagina--foto):not(.portada-pagina--color) .portada-pagina__titulo {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
}

/* --------------------------------------------- fichas: todo del mismo tamaño */

/* la rejilla de fichas se reparte sola y rellena la última fila */
.rejilla--fichas {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
}
.rejilla--fichas > .tarjeta {
    flex: 1 1 17rem;
    min-width: 17rem;
    max-width: 100%;
}

/* mismo cuerpo de letra en todas las fichas, venga del nivel que venga */
.tarjeta :is(h2, h3, h4) {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: .55rem;
}
.tarjeta :is(p, li) { font-size: .97rem; line-height: 1.6; color: #46515e; }
.tarjeta .lista { margin: .8rem 0; padding-left: 1.1rem; }
.tarjeta .lista li { margin-bottom: .4rem; }
.lista__mas { list-style: none; color: var(--gris); margin-left: -.6rem; }

/* los sellos y escudos: enteros, centrados y sin sombra de foto */
.figura--sello {
    box-shadow: none;
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: 16px;
    padding: 1.4rem;
    max-width: 17rem;
    margin-inline: auto;
}
.figura--sello img {
    aspect-ratio: auto;
    object-fit: contain;
    max-height: 13rem;
    width: auto;
    margin-inline: auto;
}
.tarjeta .figura--sello { margin: 0 auto 1rem; border: 0; padding: .6rem; }
