/* Sistema visual v3 compartido: "La luz revela el orden" */

:root {
    --carbon: #111111;
    --carbon-2: #16151a;
    --carbon-suave: #2a2633;
    --plomo: #6b637b;
    --niebla: #d9d6de;
    --gris: #bfc4c9;
    --hueso: #f5f4f1;
    --ciruela: #83136c;
    --ciruela-luz: #b04a97;
    /* Solo como luz (lineas, halos, reflejos), nunca como color de interfaz */
    --luz: 232, 172, 104;
    --luz-core: 255, 246, 206;
    /* Luz calida que alcanza las letras junto a una fuente de luz */
    --luz-warm: 255, 206, 140;
    --serif: "Newsreader", "Merriweather", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
    --gutter: clamp(1.5rem, 5.55vw, 5rem);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-curtain: cubic-bezier(.19, 1, .22, 1);
    /* Encendido de piezas (hover y foco tactil): todas sus partes con el mismo ritmo */
    --glow-dur: .8s;
    --glow-ease: cubic-bezier(.45, .05, .25, 1);
}

html { scroll-behavior: smooth; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body.v3 {
    margin: 0;
    overflow-x: clip;
    color: var(--hueso);
    background: var(--carbon);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
/* En pantallas tactiles el encendido llega con el foco central, mas lento y sin hover pegado al dedo */
html.is-touch { --glow-dur: 1.4s; }
:where(.v3) a { color: inherit; text-decoration: none; }
.v3 img { display: block; max-width: 100%; }
.v3 ::selection { color: var(--hueso); background: var(--ciruela); }
.site-gutter { width: 100%; padding-right: var(--gutter); padding-left: var(--gutter); }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 1000; padding: .75rem 1rem; color: #fff; background: var(--carbon); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.home-navigation__separator { width: 7.4rem; height: 1px; margin: .4rem 0 .15rem; background: currentColor; opacity: .34; }
.home-navigation__languages { display: flex; align-items: center; gap: .38rem; margin-top: .15rem; font-size: .56rem; letter-spacing: .08em; }
.home-navigation__languages a { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; opacity: .72; transition: color .25s ease, background-color .25s ease, opacity .25s ease, transform .25s ease; }
.home-navigation__languages a:hover, .home-navigation__languages a:focus-visible { opacity: 1; transform: translateY(-1px); }
.home-navigation__languages a.is-active { color: #111; background: #fff; opacity: 1; }
.mobile-menu-languages { display: flex; align-items: center; gap: .6rem; color: var(--hueso); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.mobile-menu-languages a { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; }
.mobile-menu-languages a.is-active { color: var(--carbon); background: #fff; }
.home-mobile-navigation { gap: clamp(.58rem, 1.55vh, .9rem) !important; padding-top: max(4.8rem, calc(env(safe-area-inset-top) + 4.4rem)) !important; padding-bottom: max(2.25rem, calc(env(safe-area-inset-bottom) + 1.8rem)) !important; }
.home-mobile-navigation > a { font-family: var(--serif) !important; font-weight: 300; font-size: clamp(1.62rem, 6.2vw, 2.2rem) !important; line-height: 1 !important; }
.home-mobile-navigation > a.border-t { margin-top: .35rem !important; padding-top: .8rem !important; }
.home-mobile-navigation > a img { width: 1.15em !important; height: 1.15em !important; object-fit: contain; flex: 0 0 auto; }

#navbar nav {
    transition: opacity .6s ease, transform .8s var(--ease-out), visibility 0s linear 0s;
}

#navbar.is-tucked nav {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .45s ease, transform .6s var(--ease-out), visibility 0s linear .45s;
}

@media (max-width: 767px) {
    #navbar { transition: transform .7s var(--ease-out); }
    #navbar.is-tucked { transform: translateY(-130%); }
}

/* ---------- Tipografia compartida ---------- */

.v3-kicker {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 1.5rem;
    color: rgba(245, 244, 241, .62);
    font-family: var(--sans);
    font-size: .66rem;
    font-style: normal;
    letter-spacing: .3em;
    font-weight: 600;
    text-transform: uppercase;
}

.v3-kicker::before {
    content: "";
    width: 2.2rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--luz), .9), rgba(var(--luz), 0));
}

.v3-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.3rem, 4.1vw, 4.2rem);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.04;
}

.v3-title em,
.v3-hero__title em,
.v3-manifesto__text em {
    color: var(--ciruela-luz);
    font-style: italic;
    font-weight: 300;
}

.v3-title--xl { font-size: clamp(3.6rem, 7vw, 7rem); letter-spacing: -.035em; line-height: .92; }

.v3-body {
    max-width: 31rem;
    margin: 0;
    color: rgba(245, 244, 241, .7);
    font-size: clamp(.98rem, 1.05vw, 1.08rem);
    font-weight: 300;
    line-height: 1.7;
}

.v3-aside {
    margin: 0;
    padding-left: 1.2rem;
    border-left: 1px solid rgba(var(--luz), .45);
    color: rgba(245, 244, 241, .64);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .26em;
    line-height: 2;
    text-transform: uppercase;
}

/* ---------- Botones ---------- */

.v3-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    min-height: 3.4rem;
    padding: .95rem 2rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--ciruela);
    font: 600 .82rem/1 var(--sans);
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 18px 44px -20px rgba(131, 19, 108, .9);
    transition: color .5s var(--ease-curtain), box-shadow .5s ease, transform .5s var(--ease-out);
}

.v3-button__curtain {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--hueso);
    transform: translateY(102%);
    transition: transform .6s var(--ease-curtain);
}

.v3-button__label { display: inline-flex; align-items: center; gap: .9rem; }
.v3-button svg { width: 1rem; height: 1rem; transition: transform .6s var(--ease-curtain); }

.v3-button:hover,
.v3-button:focus-visible {
    color: var(--carbon);
    box-shadow: 0 0 0 1px rgba(var(--luz), .5), 0 22px 50px -18px rgba(var(--luz), .45);
}

.v3-button:hover .v3-button__curtain,
.v3-button:focus-visible .v3-button__curtain { transform: translateY(0); }
.v3-button:hover svg,
.v3-button:focus-visible svg { transform: translateX(.35rem); }
.v3-button:focus-visible { outline: 2px solid rgba(var(--luz), .8); outline-offset: 4px; }
.v3-button[disabled] { cursor: wait; opacity: .6; }

.v3-textlink {
    position: relative;
    padding: .4rem 0;
    color: rgba(245, 244, 241, .82);
    font-size: .84rem;
    font-weight: 500;
    transition: color .35s ease;
}

.v3-textlink::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(.3);
    transform-origin: left;
    transition: transform .6s var(--ease-curtain);
}

.v3-textlink:hover,
.v3-textlink:focus-visible { color: var(--hueso); }
.v3-textlink:hover::after,
.v3-textlink:focus-visible::after { transform: scaleX(1); }

/* ---------- Entradas ---------- */

.v3-line { display: block; overflow: hidden; padding-bottom: .08em; }
.v3-line > span { display: inline-block; transform: translateY(110%); }
.v3-reveal { opacity: 0; transform: translateY(16px); }

.is-lit .v3-line > span { animation: v3Rise 1.3s var(--ease-out) var(--d, 0s) forwards; }
.is-lit .v3-reveal { animation: v3Fade 1.2s var(--ease-out) var(--d, 0s) forwards; }

@keyframes v3Rise { to { transform: translateY(0); } }
@keyframes v3Fade { to { opacity: 1; transform: none; } }

.v3-scrollhint { display: inline-flex; align-items: center; gap: .9rem; }
.v3-scrollhint b { position: relative; width: 1px; height: 2.6rem; overflow: hidden; background: rgba(245, 244, 241, .18); }
.v3-scrollhint b::after { content: ""; position: absolute; inset: 0; background: rgba(var(--luz), .95); transform: translateY(-100%); animation: v3Drip 2.8s cubic-bezier(.65, 0, .35, 1) infinite; }

@keyframes v3Drip { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ---------- Luz ---------- */

/* Intensidad de la luz calida sobre un texto (0-1), interpolable */
@property --on {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

/* Luz compartida por el rail y el manifiesto: tres capas como la rendija de pause-on.webp */
.v3-beam {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70px;
    width: 140px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 min(70px, calc(var(--fill, 0px) * .5)), #000 calc(var(--fill, 0px) - 60px), transparent var(--fill, 0px));
    mask-image: linear-gradient(180deg, transparent 0, #000 min(70px, calc(var(--fill, 0px) * .5)), #000 calc(var(--fill, 0px) - 60px), transparent var(--fill, 0px));
}

.v3-beam::before,
.v3-beam::after,
.v3-beam i {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
}

.v3-beam::before {
    width: 18px;
    margin-left: -9px;
    background: rgba(190, 128, 64, .55);
    filter: blur(14px);
}

.v3-beam::after {
    width: 5px;
    margin-left: -2.5px;
    background: rgba(232, 176, 108, .9);
    filter: blur(2.5px);
}

.v3-beam i {
    z-index: 1;
    width: 2px;
    margin-left: -1px;
    background: rgb(254, 243, 202);
}

/* Luz cálida en un texto, solo desde el lado de la fuente (regla 3). --lit-dir: 270deg si la fuente está a la derecha (por defecto), 90deg si está a la izquierda.
   La página enciende --on (0-1) cuando el texto recibe la luz */
.v3-lit {
    padding-right: .12em;
    color: transparent;
    background-image:
        linear-gradient(var(--lit-dir, 270deg), rgba(var(--luz-warm), var(--on)) 0%, rgba(var(--luz-warm), calc(var(--on) * .5)) 14%, rgba(var(--luz-warm), 0) 42%),
        linear-gradient(var(--hueso), var(--hueso));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    --on: 0;
    filter: drop-shadow(8px 0 22px rgba(var(--luz), calc(var(--on) * .3)));
    transition: --on 1.6s ease .2s;
}

/* Línea de luz de los gráficos (SVG con un path): núcleo claro y halo cálido; aparece de izquierda a derecha con el borde fundido según --t (0-1) */
.v3-lightline {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--t) * 104% - 6%), transparent calc(var(--t) * 104%));
    mask-image: linear-gradient(90deg, #000 calc(var(--t) * 104% - 6%), transparent calc(var(--t) * 104%));
    filter: drop-shadow(0 0 6px rgba(var(--luz), .7)) drop-shadow(0 0 18px rgba(190, 128, 64, .45));
}

.v3-lightline path {
    fill: none;
    stroke: rgb(254, 243, 202);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

/* ---------- La hora de la oficina (.v3-now): una luz encendida si estamos trabajando, en brasa si no. Texto y estado, en v3-system.js ---------- */

.v3-now {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    max-width: 30rem;
    margin: 2.2rem 0 0;
    color: rgba(245, 244, 241, .62);
    font-size: .8rem;
    font-weight: 300;
    line-height: 1.6;
}

.v3-now i {
    position: relative;
    top: -.05rem;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(var(--luz), .5);
    box-shadow: 0 0 8px 1px rgba(var(--luz), .18);
    transition: background-color 1.2s ease, box-shadow 1.2s ease;
}

.v3-now.is-open i {
    background: rgb(var(--luz-core));
    box-shadow: 0 0 9px 2px rgba(var(--luz), .6), 0 0 24px 6px rgba(190, 128, 64, .24);
    animation: v3Breathe 4.2s ease-in-out infinite;
}

@keyframes v3Breathe { 50% { box-shadow: 0 0 6px 1px rgba(var(--luz), .42), 0 0 16px 4px rgba(190, 128, 64, .14); } }

@media (prefers-reduced-motion: reduce) {
    .v3-now.is-open i { animation: none; }
}

/* ---------- Contacto ---------- */

.v3-contact {
    position: relative;
    padding: clamp(7rem, 16vh, 10rem) var(--gutter);
    overflow: hidden;
    isolation: isolate;
}

.v3-contact__media { position: absolute; inset: 0; z-index: -1; }
.v3-contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.v3-contact__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 17, 17, .92) 0%, rgba(17, 17, 17, .74) 45%, rgba(17, 17, 17, .38) 100%),
        linear-gradient(180deg, var(--carbon) 0%, transparent 20%);
}

/* Centrado: en pantallas anchas (más de ~1470 px) sobraba todo el espacio a la derecha del formulario */
.v3-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
    max-width: 82rem;
    margin-inline: auto;
}

.v3-contact__intro .v3-body { margin-top: 1.8rem; }

.v3-contact__note {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 2.6rem 0 0;
    color: rgba(245, 244, 241, .58);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .26em;
    line-height: 1.9;
    text-transform: uppercase;
}

.v3-contact__note b { width: 3.2rem; height: 1px; background: linear-gradient(90deg, rgba(var(--luz), .85), rgba(var(--luz), 0)); }

.v3-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem 2rem;
    padding: clamp(2rem, 3.5vw, 3rem);
    border: 1px solid rgba(245, 244, 241, .1);
    border-radius: 1.25rem;
    background: linear-gradient(160deg, rgba(42, 38, 51, .55), rgba(17, 17, 17, .45));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.v3-form label { position: relative; display: block; }
.v3-form__full { grid-column: 1 / -1; }

.v3-form label > span:not(.contact-form__field-error) {
    position: absolute;
    left: 0;
    top: .7rem;
    color: rgba(245, 244, 241, .5);
    font-size: .95rem;
    font-weight: 300;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .45s var(--ease-out), color .35s ease, letter-spacing .45s ease;
}

.v3-form input,
.v3-form textarea {
    width: 100%;
    padding: .7rem 0 .75rem;
    border: 0;
    border-bottom: 1px solid rgba(245, 244, 241, .22);
    border-radius: 0;
    color: var(--hueso);
    background: transparent;
    font: 300 1rem/1.5 var(--sans);
    outline: none;
    resize: vertical;
    transition: border-color .35s ease, box-shadow .35s ease;
}

.v3-form textarea { min-height: 5.5rem; }

/* Autorrelleno del navegador: Chrome fuerza un fondo azul claro y texto negro. No se puede sustituir,
   así que su fondo tarda "para siempre" en aplicarse, lo que quede se recorta al texto y el texto mantiene el color del diseño.
   Vale para cualquier campo de las páginas v3 (--v3-field-text permite otro color en formularios claros) */
.v3 input:-webkit-autofill,
.v3 input:-webkit-autofill:hover,
.v3 input:-webkit-autofill:focus,
.v3 textarea:-webkit-autofill,
.v3 select:-webkit-autofill {
    -webkit-text-fill-color: var(--v3-field-text, var(--hueso));
    caret-color: var(--v3-field-text, var(--hueso));
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-color 600000s 0s, color 600000s 0s, border-color .35s ease, box-shadow .35s ease;
}
.v3 input:autofill { background-clip: text; }

.v3-form input:focus,
.v3-form textarea:focus {
    border-bottom-color: rgba(var(--luz), .85);
    box-shadow: 0 1px 0 rgba(var(--luz), .6), 0 10px 18px -14px rgba(var(--luz), .6);
}

.v3-form label:focus-within > span:not(.contact-form__field-error),
.v3-form label:has(input:not(:placeholder-shown)) > span:not(.contact-form__field-error),
.v3-form label:has(textarea:not(:placeholder-shown)) > span:not(.contact-form__field-error) {
    color: rgba(var(--luz), .9);
    letter-spacing: .18em;
    transform: translateY(-1.35rem) scale(.66);
    text-transform: uppercase;
    font-weight: 600;
}

.v3-form label.is-invalid input,
.v3-form label.is-invalid textarea { border-bottom-color: #e0708f; }

/* El aviso de error va debajo de la línea del campo; no es la etiqueta flotante (también es un span dentro del label) */
.contact-form__field-error { display: block; margin-top: .45rem; color: #f09ab2; font-size: .74rem; font-weight: 400; line-height: 1.4; }
.contact-form__field-error:empty { display: none; }
.contact-form__honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.v3-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: .4rem; }
.v3-form__promise { margin: 0; color: rgba(245, 244, 241, .56); font-size: .72rem; letter-spacing: .06em; }

.contact-form__status {
    grid-column: 1 / -1;
    display: grid;
    gap: .25rem;
    padding: 1rem 1.2rem;
    border-left: 2px solid rgba(var(--luz), .8);
    background: rgba(245, 244, 241, .05);
    font-size: .9rem;
}

.contact-form__status[hidden] { display: none; }
.contact-form__status.is-error { border-left-color: #e0708f; }
.contact-form__status.is-success { border-left-color: var(--ciruela-luz); }
.contact-form__status-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.contact-form__status-body { color: rgba(245, 244, 241, .7); font-weight: 300; }

/* ---------- Formulario: opciones en píldora (el texto va en <b>: el span directo del label es la etiqueta flotante) ---------- */

.v3-choice {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.v3-choice legend {
    width: 100%;
    margin-bottom: .7rem;
    padding: 0;
    color: rgba(245, 244, 241, .6);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.v3-choice label { position: relative; display: inline-flex; cursor: pointer; }

.v3-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.v3-choice label > b {
    padding: .55rem 1rem;
    border: 1px solid rgba(245, 244, 241, .18);
    border-radius: 999px;
    color: rgba(245, 244, 241, .72);
    font-size: .85rem;
    font-weight: 300;
    letter-spacing: 0;
    transition: border-color .5s ease, background-color .5s ease, color .5s ease;
}

.v3-choice label:hover > b { border-color: rgba(245, 244, 241, .4); }
.v3-choice input:checked + b { border-color: var(--ciruela-luz); color: var(--hueso); background: rgba(131, 19, 108, .35); }
.v3-choice input:focus-visible + b { outline: 1px solid rgba(var(--luz), .8); outline-offset: 2px; }

/* =========================================================
   Paginas de servicio v2: piezas comunes
   ========================================================= */

/* ---------- Huecos de imagen ---------- */

.v3-slot {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.v3-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v3-ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .7rem;
    padding: 1.5rem;
    border: 1px dashed rgba(245, 244, 241, .14);
    color: rgba(245, 244, 241, .5);
    text-align: center;
    background:
        radial-gradient(ellipse 60% 55% at 62% 42%, rgba(var(--luz), .08), transparent 70%),
        linear-gradient(160deg, #1c1b21, #111114);
}

.v3-ph b {
    color: rgba(var(--luz), .75);
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 3rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1;
}

.v3-ph span {
    max-width: 22rem;
    font-family: var(--serif);
    font-size: clamp(.95rem, 1.2vw, 1.15rem);
    font-weight: 300;
    line-height: 1.35;
}

.v3-ph i {
    color: rgba(245, 244, 241, .38);
    font-size: .58rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

/* En los fondos a pantalla completa la etiqueta va a la esquina para no tapar los textos */
.v3-ph--corner {
    place-content: end;
    justify-items: end;
    padding: 0 var(--gutter) 5.5rem;
    text-align: right;
}

.v3-ph--light {
    border-color: rgba(17, 17, 17, .16);
    color: rgba(17, 17, 17, .55);
    background:
        radial-gradient(ellipse 60% 55% at 40% 35%, rgba(var(--luz), .22), transparent 70%),
        linear-gradient(160deg, #ebe8e2, #dcd8d0);
}

.v3-ph--light b { color: var(--ciruela); }
.v3-ph--light i { color: rgba(17, 17, 17, .4); }

.v3-ph--warm {
    background:
        radial-gradient(ellipse 30% 30% at 68% 52%, rgba(var(--luz), .45), transparent 70%),
        linear-gradient(160deg, #221d1c, #131115);
}

/* ---------- Cabecera de seccion ---------- */

.v3-head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem 4rem;
    align-items: end;
    margin-bottom: clamp(3rem, 7vh, 4.5rem);
}

.v3-head .v3-title { max-width: 14em; }
.v3-head .v3-body { justify-self: end; }

/* ---------- Portada de pagina de servicio ---------- */

.v3-cover {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 100svh;
    padding: 8rem var(--gutter) 7rem;
    overflow: hidden;
    isolation: isolate;
    --enter: 0;
}

.v3-cover__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: scale(calc(1.02 + var(--enter) * .16));
    /* Cada pagina fija hacia donde avanza la camara */
    transform-origin: var(--cover-focus, 50% 50%);
    will-change: transform;
}

.v3-cover__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 17, 17, .78) 0%, rgba(17, 17, 17, .38) 40%, transparent 66%),
        linear-gradient(0deg, rgba(17, 17, 17, .75) 0%, transparent 30%),
        linear-gradient(180deg, rgba(17, 17, 17, .35) 0%, transparent 22%);
}

.v3-cover__content {
    position: relative;
    max-width: 44rem;
    opacity: calc(1 - var(--enter) * 1.5);
    transform: translateY(calc(var(--enter) * -60px));
}

.v3-cover__title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.2rem, 6.8vw, 7.2rem);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: .98;
}

.v3-cover__title em {
    color: var(--ciruela-luz);
    font-style: italic;
    font-weight: 300;
}

.v3-cover__intro {
    max-width: 31rem;
    margin: 1.8rem 0 2.4rem;
    color: rgba(245, 244, 241, .78);
    font-size: clamp(.98rem, 1.08vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
}

.v3-cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.2rem; }

.v3-cover__foot {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 2.3rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    color: rgba(245, 244, 241, .6);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .26em;
    line-height: 1.9;
    text-transform: uppercase;
}

.v3-cover__motto { display: flex; align-items: center; gap: 1.2rem; }

.v3-cover__motto::before {
    content: "";
    width: 3.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--luz), 0), rgba(var(--luz), .8));
}

/* ---------- Que incluye (seccion clara) ---------- */

.v3-includes {
    padding: clamp(6rem, 14vh, 9rem) var(--gutter);
    color: var(--carbon);
    background:
        radial-gradient(ellipse 45% 55% at 92% 0%, rgba(var(--luz), .18), transparent 70%),
        var(--hueso);
}

.v3-includes .v3-kicker { color: var(--plomo); }
.v3-includes .v3-kicker::before { background: linear-gradient(90deg, var(--ciruela), rgba(131, 19, 108, 0)); }
.v3-includes .v3-title em { color: var(--ciruela); }
.v3-includes .v3-body { color: rgba(17, 17, 17, .66); }

.v3-includes__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(17, 17, 17, .12);
    border-left: 1px solid rgba(17, 17, 17, .12);
}

.v3-include {
    position: relative;
    padding: clamp(1.6rem, 2.4vw, 2.2rem);
    overflow: hidden;
    isolation: isolate;
    border-right: 1px solid rgba(17, 17, 17, .12);
    border-bottom: 1px solid rgba(17, 17, 17, .12);
}

.v3-include::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle 18rem at 0% 0%, rgba(var(--luz), .3), rgba(var(--luz), .08) 45%, transparent 75%);
    opacity: 0;
    transition: opacity var(--glow-dur) var(--glow-ease);
}

html:not(.is-touch) .v3-include:hover::before,
.v3-include.is-focus::before { opacity: 1; }

.v3-include__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(17, 17, 17, .14);
    border-radius: 50%;
    color: var(--plomo);
    transition: color var(--glow-dur) var(--glow-ease), border-color var(--glow-dur) var(--glow-ease), background-color var(--glow-dur) var(--glow-ease), box-shadow var(--glow-dur) var(--glow-ease);
}

.v3-include__icon svg { width: 1.2rem; height: 1.2rem; stroke-width: 1.4; }

html:not(.is-touch) .v3-include:hover .v3-include__icon,
.v3-include.is-focus .v3-include__icon {
    color: #fff;
    border-color: var(--ciruela);
    background-color: var(--ciruela);
    box-shadow: 0 10px 26px -12px rgba(131, 19, 108, .8);
}

.v3-include h3 {
    margin: 1.6rem 0 .6rem;
    font-family: var(--serif);
    font-size: clamp(1.2rem, 1.5vw, 1.4rem);
    font-weight: 400;
    line-height: 1.15;
}

.v3-include p {
    margin: 0;
    color: rgba(17, 17, 17, .62);
    font-size: .92rem;
    font-weight: 300;
    line-height: 1.65;
}

.v3-include a {
    color: var(--ciruela);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

/* ---------- Preguntas frecuentes ---------- */

.v3-faq {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
    padding: clamp(6rem, 14vh, 9rem) var(--gutter);
    background: var(--carbon-2);
}

.v3-faq__head { position: sticky; top: clamp(6rem, 12vh, 8rem); }
.v3-faq__head .v3-body { margin-top: 1.4rem; }

.v3-faq__list { border-top: 1px solid rgba(245, 244, 241, .12); }

.v3-faq__item { border-bottom: 1px solid rgba(245, 244, 241, .12); }

.v3-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 0;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    font-weight: 300;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
}

.v3-faq__item summary::-webkit-details-marker { display: none; }
.v3-faq__item summary span { transition: transform .6s var(--ease-out), color .4s ease; }
.v3-faq__item summary:hover span,
.v3-faq__item summary:focus-visible span { transform: translateX(.4rem); }
.v3-faq__item summary:focus-visible { outline: 1px solid rgba(var(--luz), .6); outline-offset: 4px; }

.v3-faq__item summary i {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    transition: transform .6s var(--ease-out);
}

.v3-faq__item summary i::before,
.v3-faq__item summary i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(245, 244, 241, .7);
    transition: background-color .4s ease;
}

.v3-faq__item summary i::after { transform: rotate(90deg); }
.v3-faq__item[open] summary i { transform: rotate(45deg); }
.v3-faq__item[open] summary i::before,
.v3-faq__item[open] summary i::after { background: rgb(var(--luz-core)); }
.v3-faq__item[open] summary span { color: #fff; }

.v3-faq__answer { overflow: hidden; }

.v3-faq__answer p {
    max-width: 40rem;
    margin: 0;
    padding: 0 0 1.7rem;
    color: rgba(245, 244, 241, .66);
    font-size: .98rem;
    font-weight: 300;
    line-height: 1.7;
}

@media (max-width: 1180px) {
    .v3-includes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v3-faq { grid-template-columns: 1fr; }
    .v3-faq__head { position: static; }
}

@media (max-width: 820px) {
    .v3-head { grid-template-columns: 1fr; }
    .v3-head .v3-body { justify-self: start; }

    .v3-cover { align-items: end; padding: 7rem 1.5rem 8.5rem; }
    .v3-cover__media img { object-position: var(--cover-focus-x, 50%) center; }
    .v3-cover__media::after {
        background:
            linear-gradient(0deg, rgba(17, 17, 17, .95) 0%, rgba(17, 17, 17, .78) 48%, rgba(17, 17, 17, .25) 74%, transparent 88%),
            linear-gradient(180deg, rgba(17, 17, 17, .4) 0%, transparent 22%);
    }
    .v3-cover__title { font-size: clamp(2.8rem, 12.5vw, 4rem); }
    .v3-cover__intro { margin: 1.2rem 0 1.8rem; font-size: .96rem; }
    .v3-cover__foot { bottom: 1.8rem; left: 1.5rem; right: 1.5rem; }
    .v3-cover__motto { display: none; }

    /* Variante apilada: la foto ocupa la parte alta y el texto va debajo, para que lo importante de la imagen no quede tras el titular */
    .v3-cover--stack { min-height: 0; padding-top: var(--cover-stack-pad, 47svh); padding-bottom: 6.5rem; }
    .v3-cover--stack .v3-cover__media {
        bottom: auto;
        height: var(--cover-stack-h, 62svh);
        -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    }
    .v3-cover--stack .v3-cover__media img { object-position: var(--cover-stack-pos, 50% 50%); }
    .v3-cover--stack .v3-cover__media::after { background: linear-gradient(180deg, rgba(17, 17, 17, .45) 0%, transparent 24%, transparent 60%, rgba(17, 17, 17, .6) 100%); }
    .v3-cover--stack .v3-cover__foot { display: none; }

    .v3-includes,
    .v3-faq { padding: 5.5rem 1.5rem; }
    .v3-includes__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .v3-cover { --enter: 0 !important; }
}

/* ---------- Agua (v3-water.js): el lienzo WebGL se superpone a la foto y la sustituye cuando ya pinta ---------- */

.v3-water {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .6s ease;
}

.v3-slot.is-water .v3-water { opacity: 1; }

/* ---------- Contacto en escena: primero la imagen limpia a pantalla completa; despues el formulario sube sobre ella ---------- */

.v3-contact.v3-contact--scene {
    padding-top: 0;
    overflow: clip;
    --k: 0;
    --cap: 0;
}

.v3-contact--scene .v3-contact__media {
    position: sticky;
    top: 0;
    height: 100svh;
    margin: 0 calc(var(--gutter) * -1) -100svh;
}

.v3-contact--scene .v3-contact__media img {
    position: absolute;
    inset: 0;
}

/* Base: solo funde el borde superior con la seccion anterior y da contraste a la frase */
.v3-contact--scene .v3-contact__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, var(--carbon-2) 0%, rgba(22, 21, 26, 0) 18%),
        linear-gradient(0deg, rgba(17, 17, 17, .55) 0%, rgba(17, 17, 17, 0) 38%);
}

/* La capa oscura llega con el formulario (--k); la frase se retira cuando el titular se le acerca (--cap) */
.v3-contact--scene .v3-contact__media::after {
    z-index: 1;
    opacity: var(--k);
    background:
        linear-gradient(90deg, rgba(17, 17, 17, .9) 0%, rgba(17, 17, 17, .66) 45%, rgba(17, 17, 17, .4) 100%),
        linear-gradient(180deg, var(--carbon) 0%, transparent 20%);
}

.v3-contact__caption {
    position: absolute;
    top: 40%;
    left: var(--gutter);
    z-index: 2;
    margin: 0;
    color: var(--hueso);
    text-shadow: 0 2px 28px rgba(17, 17, 17, .5);
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.08;
    opacity: calc(1 - var(--cap));
    transform: translateY(calc(var(--cap) * -24px));
}

.v3-contact__caption em { color: var(--hueso); font-style: italic; }

.v3-contact--scene .v3-contact__inner { position: relative; padding-top: 100svh; }

/* ---------- Contacto que amanece (.v3-contact--dawn): la foto de noche debajo y la de la mañana encima (img.v3-dawn), que se funde con --dawn
   con la escena ya fija. La frase llega con la luz (--capin), en carbón porque la mañana es clara. Más recorrido antes del formulario
   (150svh) para que la frase repose, y una capa oscura más densa y que llega antes, porque sobre la foto clara el titular blanco no se leía.
   En móvil la sala se oscurece en cuanto asoma el titular (--pre) y la frase se retira a la vez. Lo calcula v3-system.js ---------- */

.v3-contact--dawn { --dawn: 0; --capin: 0; --pre: 0; }
.v3-contact--dawn .v3-dawn { opacity: var(--dawn); }

.v3-contact--dawn .v3-contact__caption {
    color: var(--carbon);
    text-shadow: 0 1px 26px rgba(245, 240, 232, .55);
    opacity: calc(var(--capin) * (1 - var(--cap)));
}

.v3-contact--dawn .v3-contact__caption em { color: var(--ciruela); }

.v3-contact--dawn.v3-contact--scene .v3-contact__media::after {
    opacity: max(var(--k), calc(var(--cap) * .9));
    background:
        linear-gradient(90deg, rgba(17, 17, 17, .93) 0%, rgba(17, 17, 17, .8) 45%, rgba(17, 17, 17, .62) 100%),
        linear-gradient(180deg, var(--carbon) 0%, transparent 20%);
}

.v3-contact--dawn.v3-contact--scene .v3-contact__inner { padding-top: 150svh; }

@media (max-width: 820px) {
    .v3-contact--dawn.v3-contact--scene .v3-contact__media::after {
        opacity: max(var(--k), var(--pre), calc(var(--cap) * .9));
        background: linear-gradient(180deg, var(--carbon) 0%, rgba(17, 17, 17, .86) 26%, rgba(17, 17, 17, .92) 100%);
    }
    .v3-contact--dawn .v3-contact__caption { opacity: calc(var(--capin) * (1 - max(var(--cap), var(--pre)))); }
    .v3-contact--dawn.v3-contact--scene .v3-contact__media::before {
        background:
            linear-gradient(180deg, var(--carbon-2) 0%, rgba(22, 21, 26, 0) 16%),
            linear-gradient(0deg, rgba(17, 17, 17, .9) 0%, rgba(17, 17, 17, .6) 20%, rgba(17, 17, 17, 0) 42%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .v3-contact--dawn { --dawn: 1; --capin: 1; --pre: 1; }
    .v3-contact--dawn.v3-contact--scene .v3-contact__inner { padding-top: clamp(7rem, 16vh, 10rem); }
}

/* ---------- Nota relacionada de Plum Notes (.v3-readnote): cada servicio enlaza su nota del blog, justo antes de sus preguntas.
   La luz del canto está siempre encendida a media intensidad y se enciende del todo al pasar o con el foco táctil ---------- */

.v3-readnote { padding: clamp(5rem, 11vh, 7rem) var(--gutter) 0; background: var(--carbon-2); }

.v3-readnote__link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem 3rem;
    align-items: center;
    max-width: 82rem;
    margin: 0 auto;
    padding: 2rem 2.4rem 2.1rem 2.8rem;
    border: 1px solid rgba(245, 244, 241, .1);
    border-radius: 1rem;
    transition: border-color var(--glow-dur) var(--glow-ease);
}

.v3-readnote__edge { position: absolute; top: 1.3rem; bottom: 1.3rem; left: 1.3rem; width: 1px; }
.v3-readnote__edge .v3-beam { --fill: 100%; opacity: .35; transition: opacity var(--glow-dur) var(--glow-ease); }
.v3-readnote__kicker { color: rgba(var(--luz), .85); font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.v3-readnote__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2.2rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.12; }
.v3-readnote__desc { max-width: 44rem; color: rgba(245, 244, 241, .6); font-size: .92rem; font-weight: 300; line-height: 1.65; }
.v3-readnote__go { grid-column: 2; grid-row: 1 / span 3; display: inline-flex; align-items: center; gap: .7rem; color: var(--hueso); font-size: .82rem; font-weight: 500; white-space: nowrap; }
.v3-readnote__go svg { width: 1rem; height: 1rem; transition: transform var(--glow-dur) var(--glow-ease); }

html:not(.is-touch) .v3-readnote__link:hover,
.v3-readnote.is-focus .v3-readnote__link,
.v3-readnote__link:focus-visible { border-color: rgba(var(--luz), .32); }
html:not(.is-touch) .v3-readnote__link:hover .v3-beam,
.v3-readnote.is-focus .v3-beam,
.v3-readnote__link:focus-visible .v3-beam { opacity: 1; }
html:not(.is-touch) .v3-readnote__link:hover .v3-readnote__go svg,
.v3-readnote.is-focus .v3-readnote__go svg,
.v3-readnote__link:focus-visible .v3-readnote__go svg { transform: translateX(.4rem); }
.v3-readnote__link:focus-visible { outline: 1px solid rgba(var(--luz), .6); outline-offset: 4px; }

@media (max-width: 820px) {
    .v3-readnote { padding: 4.5rem 1.5rem 0; }
    .v3-readnote__link { grid-template-columns: 1fr; padding: 1.6rem 1.3rem 1.7rem 2.3rem; }
    .v3-readnote__edge { left: 1.1rem; }
    .v3-readnote__go { grid-column: 1; grid-row: auto; margin-top: .5rem; }
}

/* ---------- Footer sobre carbon ---------- */

.v3 .site-footer { background: #0c0c0e; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .v3-contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .v3-contact { padding: 6rem 1.5rem; }
    .v3-contact__media::after { background: linear-gradient(180deg, var(--carbon) 0%, rgba(17, 17, 17, .82) 30%, rgba(17, 17, 17, .9) 100%); }
    .v3-form { grid-template-columns: 1fr; gap: 1.9rem; padding: 1.6rem 1.3rem; }
    .v3-form__foot .v3-button { width: 100%; justify-content: center; }
    .v3-contact.v3-contact--scene { padding-top: 0; }
    .v3-contact__caption { top: 18svh; right: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .v3-line > span, .is-lit .v3-line > span { transform: none; animation: none; }
    .v3-reveal, .is-lit .v3-reveal { opacity: 1; transform: none; animation: none; }
    .v3-scrollhint b::after { animation: none; }
    .v3-contact.v3-contact--scene { --k: 1; }
    .v3-contact__caption { display: none; }
    .v3-contact--scene .v3-contact__inner { padding-top: clamp(7rem, 16vh, 10rem); }
    .v3-lit { --on: 1; transition: none; }
}
