@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/Aeonik/Aeonik-Bold.eot');
    src: url('../fonts/Aeonik/Aeonik-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Aeonik/Aeonik-Bold.woff2') format('woff2'),
        url('../fonts/Aeonik/Aeonik-Bold.woff') format('woff'),
        url('../fonts/Aeonik/Aeonik-Bold.ttf') format('truetype'),
        url('../fonts/Aeonik/Aeonik-Bold.svg#Aeonik-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/Aeonik/Aeonik-Regular.eot');
    src: url('../fonts/Aeonik/Aeonik-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Aeonik/Aeonik-Regular.woff2') format('woff2'),
        url('../fonts/Aeonik/Aeonik-Regular.woff') format('woff'),
        url('../fonts/Aeonik/Aeonik-Regular.ttf') format('truetype'),
        url('../fonts/Aeonik/Aeonik-Regular.svg#Aeonik-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/Aeonik/Aeonik-Medium.eot');
    src: url('../fonts/Aeonik/Aeonik-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Aeonik/Aeonik-Medium.woff2') format('woff2'),
        url('../fonts/Aeonik/Aeonik-Medium.woff') format('woff'),
        url('../fonts/Aeonik/Aeonik-Medium.ttf') format('truetype'),
        url('../fonts/Aeonik/Aeonik-Medium.svg#Aeonik-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/Aeonik/Aeonik-Light.eot');
    src: url('../fonts/Aeonik/Aeonik-Light.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Aeonik/Aeonik-Light.woff2') format('woff2'),
        url('../fonts/Aeonik/Aeonik-Light.woff') format('woff'),
        url('../fonts/Aeonik/Aeonik-Light.ttf') format('truetype'),
        url('../fonts/Aeonik/Aeonik-Light.svg#Aeonik-Light') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


:root {
    --page-bg: #e6e6e6;
    --page-color: #666666;
    --white: #ffffff;
    --white-80: rgba(255, 255, 255, 0.8);
    --black: #000000;
    --ink: #f5f7ff;
    --muted-white: rgba(255, 255, 255, 0.72);
    --muted-white-soft: rgba(255, 255, 255, 0.78);
    --accent: #1f33ff;
    --accent-dark: #0000ff;
    --cyan: #00f4ff;
    --border-radius: 25px;
    --base-padding: 25px;
}

@media (max-width: 992px) {
    :root {
        --border-radius: 15px;
        --base-padding: 15px;
    }
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100dvh;
    min-height: 100%;
    overflow-x: hidden;
}
body {
    position: relative;
    font-family: "Aeonik", sans-serif;
    background: var(--white);
    color: var(--ink);
    padding: var(--base-padding);
}
body::after {
    content: "";
    position: absolute;
    display: block;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: -1;
    background: var(--white);
}

body.home::after,
body.front-page::after {
    background: transparent;
}
@media (max-width: 767px) {
    body::after {
        height: 30px;
    }
}

/* ────────────────────────────────────────────────────── */
/* MARCO GENERAL: contenedor de escena y marco decorativo fijo */
/* ────────────────────────────────────────────────────── */

.scene-shell {
    position: fixed;
    inset: 0;
    padding: 0;
    pointer-events: none;
    z-index: 20;
}
.scene-shell__frame {
    position: fixed;
    inset: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    z-index: 40;
    --frame-w: var(--border-radius) var(--base-padding) 0 var(--base-padding);
    --frame-inner-r: var(--base-padding) var(--base-padding) 0 0;
}
.scene-shell__frame::before,
.scene-shell__frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.scene-shell__frame::before {
    inset: var(--frame-w);
    border-radius: var(--frame-inner-r);
    box-shadow: 0 0 0 100vmax var(--white);
}
.scene-shell__frame::after {
    top: 0;
    left: 335px;
    width: 100%;
    height: 100px;
    background: var(--white);
}
@media (max-width: 992px) {
    .scene-shell__frame::after {
        left: 224px;
        height: 70px;
    }
}
@media (max-width: 767px) {
    .scene-shell__frame::after {
        left: 165px;
        height: 60px;
    }
}

/* ────────────────────────────────────────────────────── */
/* HEADER: barra superior con logo, título y navegación
/* ────────────────────────────────────────────────────── */

.header {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100px;
    z-index: 99;
    padding: 25px 25px 0 25px;
}
.header::after {
    content: "";
    position: absolute;
    top: calc(100% - 1px);
    right: 24px;
    width: 26px;
    height: 26px;
    background: var(--white);
    background: radial-gradient(circle at bottom left, transparent 70%, var(--white) 71%);
}
.header__inner{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 25px;
}
.header-logo {
    position: relative;
    display: block;
    padding: var(--base-padding) var(--base-padding) 0 var(--base-padding);
    width: 260px;
}
.header-logo::after{
    content: "";
    position: absolute;
    top: -1px;
    right: -51px;
    width: 51px;
    height: 76px;
    background: url(../img/headerline.svg) no-repeat top right / contain;
}
.header-logo img,
.header-logo .custom-logo {
    display: block;
    width: 100%;
    height: auto;
}
.header-right{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    padding-right: 25px;
}
.header-title{
    display: inline-block;
    font-size: 16px;
    line-height: 16px;
    color: #666666;
    font-weight: 300;
}
.header-button {
    display: inline-block;
    height: 28px;
    padding: 6px 10px;
    color: #666666;
    font-size: 13px;
    line-height: 14px;
    font-weight: 300;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid #999999;
    transition: background-color 0.3s ease, color 0.3s ease
}
.header-language{
    display: inline-flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 1px;
    list-style: none;
    height: 28px;
    padding: 2px;
    color: #666666;
    border-radius: 25px;
    text-transform: uppercase;
    border: 1px solid #999999;
    margin: 0;
}
.header-language__indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 23px;
    height: 23px;
    background: #0000FE;
    border-radius: 50%;
    transition: left 0.25s ease, width 0.25s ease;
    z-index: 0;
    pointer-events: none;
}
.header-language li{
    display: inline-block;
    position: relative;
    z-index: 1;
}
.header-language li a{
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2px;
    cursor: pointer;
    width: 23px;
    height: 23px;
    font-size: 12px;
    line-height: 12px;
    font-weight: 300;
    border-radius: 50%;
    color: #666666;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.header-language li.current-lang a,
.header-button:hover {
    color: var(--white);
    background-color: #0000FE;
    border-color: #0000FE;
}
.header-language li a:focus-visible {
    outline: 2px solid rgba(0, 0, 255, 0.6);
    outline-offset: 2px;
}
@media (max-width: 992px) {
    .header {
        height: 70px;
        padding: var(--base-padding) var(--base-padding) 0 var(--base-padding);
    }
    .header::after {
        right: 14px;
        width: 16px;
        height: 16px;
    }
    .header-logo {
        padding: 15px 20px 0 20px;
        width: 180px;
    }
    .header-logo::after{
        right: -31px;
        width: 36px;
        height: 56px;
    }
    .header-right{
        gap: 10px;
        padding-top: 12px;
        padding-right: 15px;
    }
}
@media (max-width: 767px) {
    .header {
        height: 60px;    
    }
    .header-logo {
        padding: 15px 15px 0 15px;
        width: 130px;
    }
    .header-logo::after{
        right: -21px;
        width: 31px;
        height: 46px;
    }
    .header-title {
        display: none;
    }
    .header-right{
        padding-top: 5px;
        padding-right: 5px;
    }
}


/* ────────────────────────────────────────────────────── */
/* FOOTER: área de contacto y enlaces al final de la página */
/* ────────────────────────────────────────────────────── */

.footer {
    position: relative;
    overflow: hidden;
    background: url('../img/footer-background.svg') no-repeat center center/cover;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100dvh - 50px);
    padding: 0px 100px;
    gap: 60px;
}
.footer__brand {
    flex: 0 0 65%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer__logo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -100px;
}
.footer__content {
    flex: 1 1 auto;
    color: var(--white);
}
.footer__title {
    font-size: 70px;
    line-height: 66px;
    color: var(--white);
    margin-bottom: 80px;
}
.footer__subtitle {
    font-size: 32px;
    line-height: 30px;
    color: var(--white);
    margin-bottom: 5px;
}
.footer__email {
    display: block;
    font-size: 28px;
    color: #7af3ff;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 50px;
}
.footer__email:hover {
    text-decoration: underline;
}
.footer__links {
    font-size: 12px;
    line-height: 14px;
    color: var(--muted-white);
}
.footer__links a {
    display: block;
    margin-bottom: 5px;
    color: inherit;
    text-decoration: none;
}
.footer__links a:hover {
    color: var(--white);
    text-decoration: underline;
}
.footer__links span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted-white);
}

@media (max-width: 992px) {
    .footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 100dvh;
        padding: 60px 20px;
    }
    .footer__brand {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        display: none;
    }
    .footer__logo{
        margin: 0;
    }
    .footer__content {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }
    .footer__links {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}
@media (max-width: 992px) {
    .footer__title {
        font-size: 50px;
        line-height: 46px;
        margin-bottom: 40px;
    }
    .footer__subtitle {
        font-size: 24px;
        line-height: 22px;
        margin-bottom: 5px;
    }
    .footer__email {
        font-size: 20px;
        margin-bottom: 30px;
    }
}

/* ────────────────────────────────────────────────────── */
/* CONTENEDOR DE ANIMACIONES */
/* ────────────────────────────────────────────────────── */

.experience {
    width: 100%;
    min-height: calc(100dvh - (var(--base-padding) * 2));
    min-height: calc(100vh - (var(--base-padding) * 2));
    overscroll-behavior-y: contain;
    position: relative;
    z-index: 1;
}

.experience::-webkit-scrollbar {
    display: none;
}

.scroll-hint {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 100;
    width: 28px;
    height: auto;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    pointer-events: none;
}

.scroll-hint--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.scroll-hint img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 244, 255, 0.45));
    animation: scrollHintPulse 1.4s ease-in-out infinite;
}

@keyframes scrollHintPulse {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}

@media (max-width: 768px) {
    .scroll-hint {
        width: 28px;
        bottom: 24px;
    }
}

.experience__track {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    background: var(--black) url('../img/background-3.jpg') repeat-y top center/100%;
}


.pin-spacer {
    overflow: hidden !important;
}

/* ────────────────────────────────────────────────────── */
/* PAGE BASE: estructura general de cada página */
/* ────────────────────────────────────────────────────── */

.site-main {
    min-height: 100dvh;
    min-height: 100vh;
    padding: 160px 25px 80px;
    color: var(--page-color);
    background: var(--page-bg);
}

.site-main__inner {
    width: min(920px, 100%);
    margin: 0 auto;
}

.entry + .entry {
    margin-top: 48px;
}

.entry__title{
    font-size: 54px;
    line-height: 60px;
    font-weight: 500;
    text-decoration: none;
    color: var(--accent-dark);
}

.entry__content {
    font-size: 18px;
    line-height: 1.65;
}

/* ────────────────────────────────────────────────────── */
/* Panel base: estructura general de cada sección */
/* ────────────────────────────────────────────────────── */

.panel {
    position: relative;
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.panel__inner {
    position: relative;
    max-width: min(760px, 72vw);
    z-index: 2;
}

/* ────────────────────────────────────────────────────── */
/* Panel HERO: área de spotlight con texto revelado */
/* ────────────────────────────────────────────────────── */

.panel--hero {
    justify-items: center;
}
/* contenedor padre debe ser relativo */
.panel--hero .hero-spotlight {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  cursor: none;
}
.panel--hero .panel__inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  /* Tamaño base del círculo visible */
  --spot-size: 200px;
  /* Escala del anillo SVG respecto al círculo */
  --spot-scale: 0.8;
}
/* el heading ocupa todo el área del hero */
.panel--hero .hero-spotlight__heading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 1.25rem; /* opcional: margen lateral para evitar recortes */
  z-index: 1;
  color: transparent; /* el texto visible viene por ::after */
  max-width: none;    /* anula cualquier max-width previo */
  --spot-x: 50%;
  --spot-y: 50%;
  text-rendering: geometricPrecision;
  font-size: 42px;
  line-height: 50px;
  letter-spacing: 2px;
  text-align: center;
  opacity: 0;
}
/* texto revelado dentro del círculo */
.panel--hero .hero-spotlight__heading::after {
  white-space: pre-wrap; /* respeta saltos de línea en data-text */
  display: grid;
  place-items: center;
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--ink);
  pointer-events: none;
  z-index: 2;
  clip-path: circle(calc(var(--spot-size) * var(--spot-scale)) at var(--spot-x) var(--spot-y));
  -webkit-clip-path: circle(calc(var(--spot-size) * var(--spot-scale)) at var(--spot-x) var(--spot-y));
  display: grid;
  place-items: center;
}
.panel--hero .hero-spotlight__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  width: calc(var(--spot-size) * 2 * var(--spot-scale));
  height: calc(var(--spot-size) * 2 * var(--spot-scale));
  transform: translate3d(-50%, -50%, 0); /* centra el SVG/PNG en su punto */
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  will-change: transform, width, height;
  image-rendering: auto;
  opacity: 0;
}
@media (max-width: 1024px) {
    .panel--hero,
    .panel--hero .hero-spotlight{
        min-height: 90vh;
    }
    .panel--hero .hero-spotlight__heading::after {
        padding: 0 20vw;
        white-space: normal;
    }
    .panel--hero .panel__inner {
        --spot-size: 300px;   
    }
}
@media (max-width: 767px) {
    .panel--hero .hero-spotlight__heading {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 1px;
    }
     .panel--hero .panel__inner {
        --spot-size: 250px;   
    }
    .panel--hero .hero-spotlight__heading::after {
        padding: 0 30px;
    }
}


/* ────────────────────────────────────────────────────── */
/* Panel AQUARIUM: sección con peces y logo animado */
/* ────────────────────────────────────────────────────── */

.panel--aquarium {
  position: relative;
  min-height: 250vh;
    z-index: 2;
}

.panel--aquarium::after {
  background: transparent;
}

/* aquarium: posicionado para que su centro coincida con el centro de la ventana.
   Usamos top: 50vh para que cuando ScrollTrigger lo fije (position: fixed) quede centrado. */
.panel--aquarium .aquarium {
  position: absolute;
  left: 50%;
  top: 50%; /* clave: centro de la ventana */
  transform: translate(-50%, -50%);
  z-index: 30;
  width: 100vw;
  height: 100dvh;
  height: 100vh;
  max-width: 1400px;
  max-height: 100dvh;
  max-height: 100vh;
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 1;
  visibility: visible;
  transform-origin: 50% 50%;
}

/* peces: GPU compositing y will-change para rendimiento */
.panel--aquarium .aquarium__fish {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
  color: var(--white);
  text-shadow: 0 0 12px var(--white-80);
}

/* logo: por encima de la bola, animable */
.panel--aquarium .panel__inner {
    position: absolute;
    width: 100%;
    max-width: 100%;
    text-align: center;
    left: 50%;
    top: 50dvh;
    top: 50vh;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
    will-change: transform, opacity;
}

.panel--aquarium .panel__inner__logo {
  display: inline-block;
  width: 650px;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

/* responsive */
@media (max-width: 992px) {
    .panel--aquarium .panel__inner__logo { 
        width: 500px; 
    }
    .panel--aquarium .aquarium { 
        width: 140vw; 
        height: 80dvh; 
        height: 80vh; 
        top: 50dvh; 
        top: 50vh; 
    }
}
@media (max-width: 767px) {
    .panel--aquarium .panel__inner__logo { 
    width: 250px; 
    }
}




/* ────────────────────────────────────────────────────── */
/* Panel SPLIT: texto dividido con relleno de degradado */
/* ────────────────────────────────────────────────────── */

.panel--split{
    position: relative;
    margin-top: -20vh;
    padding-top: 100px;
    z-index: 3;
    text-align: center;
}
.panel--split .panel__inner{
    max-width: min(830px, 72vw);
}
.panel--split h2,
.panel--split h2 small,
.panel--split p,
.panel--split .split-line {
    color: transparent;
    background-image: linear-gradient(90deg, var(--white) 0%, var(--white) var(--fill, 0%), var(--accent-dark) var(--fill, 0%), var(--accent-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: pre-wrap;
}
.panel--split .split-line {
    display: inline-block;
}
.panel--split h2 {
    font-size: 200px;
    line-height: 170px;
    font-weight: 700;
    margin-bottom: 30px;
}
/*.home .panel--split h2 {
    font-size: 170px;
    line-height: 140px;
}*/
.panel--split h2 small {
    display: block !important;
    font-size: 30px;
    line-height: 34px;
}
.panel--split p {
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}
@media (max-width: 992px) {
    .panel--split h2 {
        font-size: 180px;
        line-height: 150px;
    }
    .panel--split p {
        font-size: 24px;
        line-height: 30px;
    }
}
@media (max-width: 767px) {
    .panel--split .panel__inner {
        max-width: 100%;
    }
    .panel--split h2 small {
        font-size: 16px;
        line-height: 24px;
    }
    .panel--split h2 {
        font-size: 85px;
        line-height: 70px;
    }
     .panel--split p {
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 20px;
    }
}


/* ────────────────────────────────────────────────────── */
/* Panel DECISION: sección intermedia con texto grande */
/* ────────────────────────────────────────────────────── */

.panel--decision{
    min-height: 0;
    padding-top: 100px;
    /*background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 70%
    );*/
}
.panel--decision h2 {
    font-size: 200px;
    line-height: 170px;
    font-weight: 700;
}
@media (max-width: 992px) {
    .panel--decision {
        padding-top: 0px;
    }
    .panel--decision h2 {
        font-size: 150px;
        line-height: 120px;
    }
}
@media (max-width: 767px) {
    .panel--decision h2 {
        font-size: 85px;
        line-height: 75px;
    }
}


/* ────────────────────────────────────────────────────── */
/* Panel ABYSS: área oscura con efecto de profundidad */
/* ────────────────────────────────────────────────────── */

.panel--abyss{
    position: relative;
    min-height: 100dvh;
    min-height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 30%
    );
}
.panel--abyss::after {
    background: transparent;
}
.panel--abyss .panel__inner {
    z-index: 3;
    max-width: min(980px, 86vw);
}
.panel--abyss h2 {
    position: relative;
    text-align: center;
    font-size: 200px;
    line-height: 170px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--cyan);
}
.panel--abyss h2 small {
    display: inline-block;
    font-size: 30px;
    line-height: 34px;
    color: var(--white);
}
.abyss-medusas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.abyss-medusa {
    position: absolute;
    width: clamp(58px, 8vw, 118px);
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 0 20px rgba(0, 244, 255, 0.36));
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}
.abyss-medusa--1 {
    left: 48%;
    bottom: 40vh;
    width: clamp(64px, 7vw, 105px);
}
.abyss-medusa--2 {
    left: 25%;
    bottom: 30vh;
    width: clamp(72px, 8vw, 126px);
}
.abyss-medusa--3 {
    left: 70%;
    bottom: 30vh;
    width: clamp(58px, 6.8vw, 104px);
}
.abyss-medusa--4 {
    left: 66%;
    bottom: -44vh;
    width: clamp(68px, 7.4vw, 112px);
}
.abyss-medusa--5 {
    left: 48%;
    bottom: -30vh;
    width: clamp(76px, 8.4vw, 132px);
}
.abyss-medusa--6 {
    left: 30%;
    bottom: -40vh;
    width: clamp(50px, 6.2vw, 90px);
}
.abyss-medusa--7 {
    left: 50%;
    bottom: -85vh;
    width: clamp(54px, 6.4vw, 96px);
}
@media (max-width: 992px) {
    .panel--abyss{
        min-height: 70vh;
    }
    .panel--abyss h2 {
        font-size: 150px;
        line-height: 120px;
    }
    .panel--abyss h2 small {
        font-size: 24px;
        line-height: 30px;
    }
}
@media (max-width: 767px) {
    .panel--abyss h2 {
        font-size: 85px;
        line-height: 75px;
    }
    .panel--abyss h2 small {
        font-size: 18px;
        line-height: 20px;
    }
}


/* ────────────────────────────────────────────────────── */
/* Panel UNDERWATER: texto y ambiente submarino */
/* ────────────────────────────────────────────────────── */

.panel--underwater {
    min-height: 60vh;
    margin-top: -15vh;
    background: var(--black);
}

.panel--underwater .panel__inner {
    max-width: 1000px;
}
.underwater-text {
    display: block;
    text-align: center;
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--white);
    /*text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);*/
    will-change: filter;
    filter: url(#underwater-distort);
}

.animal-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

@media (max-width: 992px) {
    .underwater-text {
        font-size: 24px;
    }
}
@media (max-width: 767px) { 
    .underwater-text {
        font-size: 18px;
    }
}



/* ────────────────────────────────────────────────────── */
/* Panel KRAKEN: sección con criatura y fondo negro */
/* ────────────────────────────────────────────────────── */

.panel--kraken {
    position: relative;
    align-items: flex-end;
    margin-top: -10vh;
    padding-bottom: 10vh;
    min-height: 120vh;
    background: var(--black);
}
.panel--kraken .kraken-background {
    position: absolute;
    left: 50%;
    bottom: -10%;
    transform: translateX(-50%);
    width: 160vmin;
    pointer-events: none;
    will-change: transform, opacity;
    opacity: 1;
    visibility: visible;
    transform-origin: 50% 50%;
}
.panel--kraken h2 {
    text-align: center;
    font-size: 84px;
    line-height: 76px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 60px;
}
.panel--kraken p {
    text-align: center;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    color: var(--white);
}

@media (max-width: 992px) {
    .panel--kraken {
        min-height: 70vh;
        margin-top: -20vh;
        padding-bottom: 8vh;
    }
    .panel--kraken .kraken-background {    
        width: 120vmin;    
        max-width: 120vmin;
    }
    .panel--kraken h2 {
        font-size: 60px;
        line-height: 60px;
        margin-bottom: 20px;
    }
    .panel--kraken p {
        font-size: 24px;
        line-height: 30px;
    }
}
@media (max-width: 767px) { 
    .panel--kraken {
        padding-bottom: 5vh;
    }
    .panel--kraken .kraken-background {        
        width: 150vmin;     
        max-width: 150vmin;
    }
    .panel--kraken h2 {
        font-size: 44px;
        line-height: 40px;
    }
    .panel--kraken p {
        font-size: 19px;
        line-height: 24px;
    }
}

/* ────────────────────────────────────────────────────── */
/* ── Panel Assembly: letras dispersas → frase compuesta ───── */
/* ────────────────────────────────────────────────────── */

.panel--assembly {
    display: block;
    background: var(--accent);
    /*background: url('../img/background-assembly.svg') no-repeat top center/100%;*/
    padding: 0;
}
.assembly-stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100dvh;
    min-height: 100vh;
    padding-top: 100px;
    overflow: clip;
}
.assembly-content {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 100px;
    padding: 0 72px;
}
.assembly-left {
    flex: 0 0 52%;
    min-width: 0;
}
.panel--assembly h2 {
    font-size: 150px;
    line-height: 143px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    max-width: none;
}
.assembly-char {
    display: inline-block;
    will-change: transform, opacity;
}
.assembly-right {
    flex: 1;
    min-width: 0;
    will-change: opacity;
    position: relative;
}
.assembly-list {
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.assembly-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: var(--white);
    font-size: 16px;
    line-height: 1.4em;
    font-weight: 300;
    transform-origin: center left;
    will-change: transform;
}
.assembly-list__num {
    font-size: 8px;
    flex-shrink: 0;
    padding-top: 0.15em;
}
.assembly-list__body strong {
    display: block;
    font-weight: 700;
    color: var(--white);
}

/* Forzar composición y origen de transform para que scale se aplique correctamente */
.assembly-list__body {
    transform-origin: left center;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    /* usar variable para la escala para evitar sobrescrituras de transform */
    transform: scale(var(--asm-scale, 1));
    transition: transform 0.34s cubic-bezier(.2,.9,.2,1), font-size 0.34s cubic-bezier(.2,.9,.2,1);
}

/* clase para foco: opcional, mantiene compatibilidad */
.assembly-list__body--focus {
    --asm-scale: 1.6;
    font-size: 24px;
}

@media (max-width: 1024px) {
    .assembly-content {
        gap: 40px;
    }
     .panel--assembly h2 {
        font-size: 110px;
        line-height: 100px;
    }
     .assembly-list {
        gap: 40px;
    }
}
@media (max-width: 992px) {
    .assembly-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding: 0 10vw;
    }
    .assembly-left {
        flex: 0 0 60%;
    }
    .panel--assembly h2 {
        font-size: 100px;
        line-height: 90px;
    }
    .assembly-list {
        gap: 40px;
    }
}
@media (max-width: 767px) { 
    .panel--assembly{
        min-height: 70vh;
    }
    .assembly-stage{
        padding-top: 80px;
        padding-bottom: 80px;
        min-height: 70vh;
    }
     .assembly-content {
        padding: 0 30px;
        gap: 0px;
    }
    .assembly-left,
    .assembly-right{
        flex: inherit;
        width: 100%;
    }
    .panel--assembly h2 {
        font-size: 60px;
        line-height: 50px;
    }
    .assembly-list {
        gap: 20px;
    }
    .assembly-list li{
        line-height: 1.2em;
    }
    .assembly-list__body,
    .assembly-list__body--focus {
        --asm-scale: 1;
        transform: none;
    }
}