/* ==========================================================================
   CELINE PORTFOLIO - MAIN STYLESHEET
   Recreación pixel-perfect del portafolio Canva con Nav Superior y Responsive
   ========================================================================== */

/* ---------- 1. FUENTES LOCALES ---------- */
@font-face {
    font-family: 'Horizon';
    src: url('../fonts/Horizon.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- 2. VARIABLES CSS Y RESET ---------- */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-offwhite: #f7f7f7;
    --color-beige: #d3bfa6;
    --color-gray-dark: #121212;
    --color-gray-border: rgba(255, 255, 255, 0.15);
    
    --font-heading: 'Horizon', sans-serif, -apple-system;
    --font-body: 'Montserrat', sans-serif, -apple-system;
    --font-accent: 'Inter', sans-serif;
    
    --header-height: 70px;
    --max-width: 1366px;
    --radius-md: 12px;
    --radius-sm: 6px;
    --collage-gap: clamp(4px, 1vw, 8px);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-black);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

button, a, input, select, textarea {
    touch-action: manipulation;
}

.site-main {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* Offset para el desplazamiento suave de enlaces ancla */
section[id] {
    scroll-margin-top: var(--header-height);
}

/* ---------- 3. BARRA DE NAVEGACIÓN SUPERIOR (STICKY NAV) ---------- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: 1440px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-tag {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    padding: 0.18rem 0.5rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    opacity: 0.85;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.desktop-nav .nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.35rem, 0.9vw, 0.95rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Botones de navegación con efecto de llenado de líquido */
.nav-link {
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 0.82vw, 0.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: clamp(0.06em, 0.08vw, 0.1em);
    color: var(--color-black);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.42rem, 0.55vw, 0.52rem) clamp(0.65rem, 1vw, 1.15rem);
    border-radius: 30px;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    background: transparent;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1.1;
}

/* Ola previa semitransparente (primera capa de líquido) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(0, 0, 0, 0.22);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1),
                border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

/* Masa principal de líquido negro que sube desde abajo */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: var(--color-black);
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1),
                border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

/* Al pasar el cursor: el líquido llena el botón hacia arriba y las letras pasan a blanco */
.nav-link:hover {
    color: var(--color-white);
    border-color: var(--color-black);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.nav-link:hover::after {
    height: 200%;
    border-radius: 0;
}

.nav-link:hover::before {
    height: 200%;
    border-radius: 0;
}

/* Estado activo: resalta el botón sin bloquear el efecto de líquido en hover */
.nav-link.active {
    border-color: var(--color-black);
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

.nav-link.active:hover {
    background-color: transparent;
}

/* Botón Hamburguesa Móvil y Tablet */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    position: absolute;
    right: clamp(1rem, 2.5vw, 1.5rem);
    z-index: 1001;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-black);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.25s ease,
                background-color 0.35s ease,
                width 0.3s ease;
    transform-origin: center;
}

.nav-toggle:hover {
    background-color: rgba(0, 0, 0, 0.09);
    border-color: var(--color-black);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.nav-toggle:active {
    transform: scale(0.95);
}

.nav-toggle.open {
    background-color: var(--color-black);
    border-color: var(--color-black);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.nav-toggle.open .hamburger-bar {
    background-color: var(--color-white);
}

.nav-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 3.1 PANEL LATERAL OFF-CANVAS (TABLET Y MÓVIL) ---------- */
.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.offcanvas-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(390px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #090909 0%, #000000 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.95), -2px 0 15px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.5rem, 3vh, 2.2rem) clamp(1.4rem, 4vw, 2.2rem);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.offcanvas-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botón cerrar offcanvas con animación líquida idéntica al resto del sitio */
.offcanvas-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease;
}

.offcanvas-close svg {
    position: relative;
    z-index: 1;
    stroke: currentColor;
    transition: transform 0.3s ease, stroke 0.4s ease;
}

/* Olas de líquido blanco para la X */
.offcanvas-close::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.32);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1),
                border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

.offcanvas-close::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: #ffffff;
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1),
                border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

.offcanvas-close:hover {
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.45);
    transform: rotate(90deg);
}

.offcanvas-close:hover::after,
.offcanvas-close:hover::before {
    height: 200%;
    border-radius: 0;
}

.offcanvas-close:hover svg {
    stroke: #000000;
}

.offcanvas-close:active {
    transform: rotate(90deg) scale(0.94);
}

/* Lista de navegación */
.offcanvas-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3.5vh, 2.5rem) 0;
}

.offcanvas-nav-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 1.4vh, 1rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: clamp(0.5rem, 1.1vh, 0.75rem) 0.85rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Indicador vertical luminoso en active / hover */
.offcanvas-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 65%;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.offcanvas-nav-link:hover::before,
.offcanvas-nav-link.active::before {
    transform: translateY(-50%) scaleY(1);
}

.offcanvas-nav-link:hover,
.offcanvas-nav-link.active {
    background: rgba(255, 255, 255, 0.05);
}

.nav-num {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.32);
    letter-spacing: 0.15em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3.6vw, 1.35rem);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), text-shadow 0.3s ease;
    display: inline-block;
}

.offcanvas-nav-link:hover .nav-num,
.offcanvas-nav-link.active .nav-num {
    color: #ffffff;
    transform: translateX(2px);
}

.offcanvas-nav-link:hover .nav-title,
.offcanvas-nav-link.active .nav-title {
    color: #ffffff;
    transform: translateX(6px);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.7), 0 0 25px rgba(255, 255, 255, 0.35);
}

/* ---------- 4. SECCIÓN 1: HERO ---------- */
.hero-section {
    background-color: var(--color-black);
    position: relative;
    overflow: hidden;
    padding-bottom: 1.5rem;
}

.hero-top-card {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.4vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: 1.25rem;
}

.cat-dot {
    font-size: 0.8em;
    opacity: 0.5;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3.8vw, 3.4rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

/* Título Portfolio en capas superpuestas */
.hero-title-container {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    user-select: none;
}

.hero-year {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-black);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.portfolio-text {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8.8rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: none;
}

.portfolio-back {
    position: absolute;
    top: 6px;
    left: -4px;
    color: var(--color-white);
    -webkit-text-stroke: 4px var(--color-white);
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
    z-index: 1;
    animation: glitchBack 1.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.portfolio-front {
    position: relative;
    color: var(--color-black);
    z-index: 2;
    animation: glitchMain 1.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Capas de Distorsión Glitch en Blanco y Negro */
.portfolio-front[data-text]::before,
.portfolio-front[data-text]::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    background: transparent;
}

.portfolio-front[data-text]::before {
    animation: glitchSlice1 1.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.portfolio-front[data-text]::after {
    animation: glitchSlice2 1.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Animación Principal: Parpadeo y Estabilización a Negro */
@keyframes glitchMain {
    0% {
        opacity: 0;
        transform: translate(0, 0);
        color: #000000;
        filter: brightness(2);
    }
    4% {
        opacity: 1;
        transform: translate(-4px, 1px) skewX(-4deg);
        color: #ffffff;
        text-shadow: 2px 2px 0 #000000, -2px -2px 0 #000000;
    }
    8% {
        opacity: 0.15;
        transform: translate(3px, -1px);
    }
    12% {
        opacity: 1;
        transform: translate(-3px, 0) skewX(3deg);
        color: #000000;
        text-shadow: none;
    }
    18% {
        opacity: 0;
        transform: translate(2px, 1px);
    }
    22% {
        opacity: 1;
        transform: translate(6px, -2px) scaleY(1.03);
        color: #ffffff;
        text-shadow: -3px 0 0 #000000;
    }
    28% {
        opacity: 0.7;
        transform: translate(-4px, 2px) skewX(-3deg);
        color: #000000;
    }
    34% {
        opacity: 0.2;
        transform: translate(0, 0);
    }
    40% {
        opacity: 1;
        transform: translate(4px, 1px) skewX(2deg);
        color: #ffffff;
        text-shadow: 2px 0 0 #000000;
    }
    48% {
        opacity: 0.85;
        transform: translate(-2px, -1px);
        color: #000000;
        text-shadow: none;
    }
    58% {
        opacity: 1;
        transform: translate(3px, 0) skewX(-1.5deg);
        color: #000000;
    }
    68% {
        opacity: 0.75;
        transform: translate(-1.5px, 0.5px);
        color: #000000;
    }
    78% {
        opacity: 1;
        transform: translate(1px, -0.5px) skewX(0.5deg);
        color: #000000;
    }
    88% {
        opacity: 1;
        transform: translate(-0.5px, 0);
        color: #000000;
    }
    94% {
        opacity: 1;
        transform: translate(0, 0) skewX(0);
        color: #000000;
        filter: none;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) skewX(0);
        color: var(--color-black);
        filter: none;
        text-shadow: none;
    }
}

/* Slices Glitch 1: Corte Horizontal Blanco y Negro */
@keyframes glitchSlice1 {
    0% {
        opacity: 0;
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    5% {
        opacity: 1;
        clip-path: inset(18% 0 62% 0);
        transform: translate(-7px, -2px);
        color: #ffffff;
        -webkit-text-stroke: 1.5px #000000;
    }
    12% {
        opacity: 0;
    }
    20% {
        opacity: 1;
        clip-path: inset(48% 0 32% 0);
        transform: translate(8px, 1px);
        color: #000000;
        text-shadow: 2px 0 #ffffff;
    }
    27% {
        opacity: 0;
    }
    36% {
        opacity: 1;
        clip-path: inset(72% 0 8% 0);
        transform: translate(-6px, 2px);
        color: #ffffff;
        -webkit-text-stroke: 1.5px #000000;
    }
    45% {
        opacity: 0;
    }
    54% {
        opacity: 1;
        clip-path: inset(12% 0 74% 0);
        transform: translate(5px, -1px);
        color: #000000;
    }
    64% {
        opacity: 0.8;
        clip-path: inset(58% 0 28% 0);
        transform: translate(-3px, 1px);
        color: #ffffff;
        -webkit-text-stroke: 1px #000000;
    }
    75% {
        opacity: 0.35;
        clip-path: inset(82% 0 4% 0);
        transform: translate(1px, 0);
    }
    85% {
        opacity: 0;
        transform: translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

/* Slices Glitch 2: Corte Horizontal Desfasado */
@keyframes glitchSlice2 {
    0% {
        opacity: 0;
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    8% {
        opacity: 1;
        clip-path: inset(62% 0 18% 0);
        transform: translate(7px, 2px);
        color: #000000;
        text-shadow: -2px 0 #ffffff;
    }
    16% {
        opacity: 0;
    }
    24% {
        opacity: 1;
        clip-path: inset(28% 0 52% 0);
        transform: translate(-6px, -1px);
        color: #ffffff;
        -webkit-text-stroke: 1.5px #000000;
    }
    32% {
        opacity: 0;
    }
    42% {
        opacity: 1;
        clip-path: inset(8% 0 78% 0);
        transform: translate(6px, 1px);
        color: #000000;
    }
    52% {
        opacity: 0;
    }
    62% {
        opacity: 0.9;
        clip-path: inset(38% 0 42% 0);
        transform: translate(-4px, -1px);
        color: #000000;
        text-shadow: 2px 0 #ffffff;
    }
    72% {
        opacity: 0;
    }
    80% {
        opacity: 0.45;
        clip-path: inset(52% 0 34% 0);
        transform: translate(2px, 0);
        color: #ffffff;
        -webkit-text-stroke: 1px #000000;
    }
    88% {
        opacity: 0;
        transform: translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

/* Capa Posterior (Sticker blanco) en Sincronía */
@keyframes glitchBack {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    10% {
        opacity: 0.2;
        transform: translate(-3px, 1px);
    }
    20% {
        opacity: 0;
    }
    30% {
        opacity: 0.85;
        transform: translate(4px, -1px);
    }
    45% {
        opacity: 0.25;
    }
    60% {
        opacity: 0.9;
        transform: translate(-1.5px, 0.5px);
    }
    75% {
        opacity: 0.7;
        transform: translate(0.5px, 0);
    }
    88% {
        opacity: 1;
        transform: translate(0, 0);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-front,
    .portfolio-back,
    .portfolio-front[data-text]::before,
    .portfolio-front[data-text]::after {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        color: var(--color-black) !important;
    }
}

.hero-bottom-bar {
    background-color: var(--color-black);
    padding: 1.8rem 1rem 0.5rem;
    text-align: center;
}

.hero-author {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-white);
}

/* ---------- 5. SECCIÓN 2: SOBRE MÍ ---------- */
.about-section {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: clamp(3.5rem, 7vw, 6.5rem) 1.5rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-headings {
    margin-bottom: 1.75rem;
}

.about-greet {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 5.5vw, 5.2rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: var(--color-black);
    margin-bottom: 0.25rem;
    min-height: 1.15em;
    position: relative;
}

/* Cursor parpadeante estilo máquina de escribir */
.about-greet.typing::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    color: var(--color-black);
    font-style: normal;
    font-weight: 300;
    animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.8vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-black);
    letter-spacing: -0.01em;
}

.about-description {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 620px;
}

.about-description p {
    font-weight: 500;
}

/* Fila de 7 Iconos de Software */
.skills-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.6rem, 1.2vw, 1.1rem);
}

.skill-badge {
    width: clamp(42px, 3.8vw, 52px);
    height: clamp(42px, 3.8vw, 52px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.skill-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transition: var(--transition);
}

.skill-badge:hover {
    transform: translateY(-5px) scale(1.08);
}

/* Visual Columna Derecha: Celular 3D Hiperrealista Interactivo */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1.5rem 1rem;
}

.phone-3d-scene {
    perspective: 1200px;
    perspective-origin: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.phone-device {
    position: relative;
    width: clamp(265px, 24vw, 320px);
    aspect-ratio: 9 / 19.2;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0);
    will-change: transform;
    cursor: pointer;
}

/* Botones laterales físicos del teléfono */
.phone-btn {
    position: absolute;
    background: #202227;
    border-radius: 4px;
    z-index: 1;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.phone-btn-volume-up {
    left: -4px;
    top: 110px;
    width: 4px;
    height: 48px;
}

.phone-btn-volume-down {
    left: -4px;
    top: 170px;
    width: 4px;
    height: 48px;
}

.phone-btn-power {
    right: -4px;
    top: 135px;
    width: 4px;
    height: 68px;
}

/* Chasis de Titanio Oscuro Pulido */
.phone-chassis {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 46px;
    background: linear-gradient(135deg, #2a2c33 0%, #151619 50%, #1c1d22 100%);
    padding: 11px;
    box-sizing: border-box;
    border: 2px solid #282a30;
    box-shadow: 
        0 0 0 1.5px rgba(255, 255, 255, 0.15),
        0 0 0 4px #0c0d0f,
        0 20px 50px -10px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.35),
        inset 0 -1px 2px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
}

/* Pantalla OLED */
.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #000000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Foto de Celine como Wallpaper Fijo dentro de la pantalla */
.phone-wallpaper {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    user-select: none;
    pointer-events: none;
    filter: contrast(1.03) brightness(0.98);
}

/* Barra de Estado Superior */
.phone-status-bar {
    position: absolute;
    top: 13px;
    left: 0;
    right: 0;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.phone-clock {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.phone-status-icons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.phone-5g {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.phone-battery {
    width: 20px;
    height: 10px;
    border: 1.5px solid #ffffff;
    border-radius: 3px;
    padding: 1px;
    position: relative;
    box-sizing: border-box;
}

.phone-battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 4px;
    background: #ffffff;
    border-radius: 0 1px 1px 0;
}

.phone-battery-level {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 1px;
}

/* Dynamic Island */
.phone-dynamic-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 24px;
    background: #000000;
    border-radius: 20px;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.15), 0 2px 5px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.phone-camera-lens {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #182d46 0%, #03080e 70%);
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.4), 0 0 1px rgba(0, 0, 0, 0.8);
}

.phone-sensor {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0d0f14;
    box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Reflejo Especular Dinámico de Cristal */
.phone-glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 12;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 35%, transparent 65%);
    mix-blend-mode: overlay;
    opacity: 0.75;
    will-change: transform, opacity;
    transition: opacity 0.3s ease;
}

/* Barra Táctil Inferior (Home Indicator) */
.phone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 115px;
    height: 4px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Sombra Proyectada Volumétrica y Profundidad */
.phone-shadow {
    position: absolute;
    bottom: -32px;
    left: 10%;
    right: 10%;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 75%);
    filter: blur(14px);
    z-index: -2;
    pointer-events: none;
    transform: translateZ(-60px);
    transition: transform 0.15s ease, opacity 0.2s ease;
    will-change: transform, opacity;
}

/* ---------- 6. SECCIONES CON DIVISOR NEGRO ---------- */
.section-divider {
    background-color: var(--color-black);
    height: clamp(90px, 12vw, 135px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animación de Titileo / Parpadeo (Flicker) para los divisores */
@keyframes titleFlicker {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 22px rgba(255, 255, 255, 0.4);
    }
    3% {
        opacity: 0.2;
        text-shadow: none;
    }
    6% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.5);
    }
    8% {
        opacity: 0.12;
        text-shadow: none;
    }
    10% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 22px rgba(255, 255, 255, 0.4);
    }
    48% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 22px rgba(255, 255, 255, 0.4);
    }
    50% {
        opacity: 0.25;
        text-shadow: none;
    }
    53% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.5);
    }
    78% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.2;
        text-shadow: none;
    }
    82% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 22px rgba(255, 255, 255, 0.4);
    }
}

.divider-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.7vw, 3.2rem);
    letter-spacing: 0.06em;
    color: var(--color-white);
    text-transform: lowercase;
    animation: titleFlicker 3.2s infinite ease-in-out;
    will-change: opacity, text-shadow;
    user-select: none;
}

#modelado-3d .divider-title {
    animation-delay: 0.4s;
}

#branding .divider-title {
    animation-delay: 0.8s;
}

#ilustraciones .divider-title {
    animation-delay: 1.2s;
}

#trabajemos-juntos .divider-title {
    animation-delay: 1.6s;
}

@media (prefers-reduced-motion: reduce) {
    .divider-title {
        animation: none;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

/* ---------- 7. SECCIÓN 3: MODELADO 3D ---------- */
.modeling-section {
    background-color: var(--color-black);
    color: var(--color-white);
    position: relative;
}

.modeling-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5.5rem) 1.5rem;
}

/* Encabezado Editorial (organizado como Ilustraciones) */
.modeling-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto clamp(2.5rem, 5vw, 4.2rem);
}

.modeling-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-beige);
    margin-bottom: 0.85rem;
}

.modeling-desc {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    margin: 0;
}

/* Grilla Editorial de Cards 3D (organizada como Ilustraciones) */
.modeling-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    align-items: stretch;
}

/* Card 1: Formato vertical nativo del video 1080x1920 (9:16) en 2 filas */
.project-card-1 {
    grid-column: span 4;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-1 .series-card-media {
    aspect-ratio: 9 / 16;
    width: 100%;
    height: auto;
}

/* Distribución armónica: Fila 1 (Card 2 y 3) y Fila 2 (Card 4 y 5) */
.project-card-2,
.project-card-3,
.project-card-4,
.project-card-5 {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-2 .series-card-media,
.project-card-3 .series-card-media,
.project-card-4 .series-card-media,
.project-card-5 .series-card-media {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

/* Tarjeta de Proyecto */
.project-card {
    background: #0d0d0d;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.85);
    transform: translateY(-8px);
}

/* Carrusel de Medios */
.project-carousel {
    position: relative;
    width: 100%;
    background: #000;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    user-select: none;
}

.carousel-viewport.horizontal-viewport {
    aspect-ratio: 16 / 9;
}

/* Pista Deslizante (Track) */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Diapositiva Individual */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .carousel-slide.is-active img {
    transform: scale(1.03);
}

/* Diapositiva de Video */
.carousel-slide.slide-video .video-wrapper {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    position: relative;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.slide-video video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: #000000;
}

/* Card 1: Preservar ancho y alto nativo (relación de aspecto) sin recorte */
.project-card-1 .carousel-slide.slide-video .video-wrapper {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-1 .carousel-slide.slide-video video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    background: #000000;
}

.carousel-video-tag {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-beige);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 4;
}

/* Flechas de Navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-arrow:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.carousel-arrow-prev {
    left: 1rem;
}

.carousel-arrow-next {
    right: 1rem;
}

/* Barra Inferior del Carrusel (Dots + Contador) */
.carousel-bottom-bar {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 5;
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.carousel-dot.is-active {
    width: 22px;
    border-radius: 10px;
    background: var(--color-white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}

.carousel-counter {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: auto;
}

/* Información del Proyecto */
.project-info {
    padding: 1.5rem 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    background: #0e0e0e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-beige);
}

.project-title {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.project-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

/* ---------- 8. SECCIÓN 4: MOTION GRAPHICS (CARRUSEL INTERACTIVO) ---------- */
.motion-section {
    background-color: var(--color-white);
    position: relative;
    overflow-x: clip;
}

.motion-carousel-container {
    max-width: min(94vw, 1200px);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5.5rem) 1.5rem;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    overflow-x: clip;
}

.motion-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.motion-tag {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gray-dark);
}

.motion-desc {
    font-family: var(--font-body);
    font-size: clamp(0.88rem, 1vw, 1.02rem);
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Escenario Central del Carrusel 3D con Perspectiva */
.motion-carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    user-select: none;
    perspective: 1200px;
    -webkit-perspective: 1200px;
    perspective-origin: center center;
}

.motion-stage-viewport {
    position: relative;
    width: min(840px, 72%);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: visible;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.motion-stage-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.motion-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    will-change: transform, filter, opacity;
    transform-origin: center center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Slide Central / Dominante (Nítido, en primer plano, sin blur) */
.motion-slide.is-center {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
    filter: blur(0px) brightness(1);
    -webkit-filter: blur(0px) brightness(1);
    z-index: 10;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Slide Lateral Izquierdo (Segundo plano, desenfocado e inclinado) */
.motion-slide.is-prev {
    opacity: 0.65;
    pointer-events: auto;
    cursor: pointer;
    transform: translate3d(-56%, 0, -100px) rotateY(18deg) scale(0.82);
    filter: blur(7px) brightness(0.85);
    -webkit-filter: blur(7px) brightness(0.85);
    z-index: 4;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
}

/* Slide Lateral Derecho (Segundo plano, desenfocado e inclinado) */
.motion-slide.is-next {
    opacity: 0.65;
    pointer-events: auto;
    cursor: pointer;
    transform: translate3d(56%, 0, -100px) rotateY(-18deg) scale(0.82);
    filter: blur(7px) brightness(0.85);
    -webkit-filter: blur(7px) brightness(0.85);
    z-index: 4;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
}

/* Slides adicionales ocultos */
.motion-slide.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 0, -200px) scale(0.6);
    filter: blur(12px);
    -webkit-filter: blur(12px);
    z-index: 0;
}

.motion-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.motion-active-video {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    cursor: pointer;
    background: #000000;
}

/* Los controles flotantes solo se muestran en el video central activo */
.motion-slide:not(.is-center) .modeling-video-controls {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.motion-slide.is-center .motion-video-wrap:hover .modeling-video-controls,
.motion-slide.is-center .motion-video-wrap.is-touch-active .modeling-video-controls {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Flechas de Navegación con animación líquida idéntica al NAV */
.motion-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(46px, 4vw, 56px);
    height: clamp(46px, 4vw, 56px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease;
    outline: none;
}

.motion-carousel-arrow svg {
    position: relative;
    z-index: 1;
    transition: stroke 0.4s ease, transform 0.25s ease;
}

.motion-carousel-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(0, 0, 0, 0.22);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1), border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

.motion-carousel-arrow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: var(--color-black);
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1), border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

.motion-carousel-arrow:hover {
    color: #ffffff;
    border-color: var(--color-black);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.motion-carousel-arrow:hover::after,
.motion-carousel-arrow:hover::before {
    height: 200%;
    border-radius: 0;
}

.motion-carousel-arrow:hover svg {
    stroke: #ffffff;
}

.motion-carousel-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.motion-arrow-prev {
    left: clamp(4px, 1.5vw, 24px);
}

.motion-arrow-next {
    right: clamp(4px, 1.5vw, 24px);
}

/* Pie del Carrusel con Número de Ítem Centrado estilo Modelado 3D */
.motion-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-top: clamp(2rem, 3.5vw, 3.2rem);
    padding-top: 0;
    position: relative;
    z-index: 20;
    clear: both;
}

.motion-footer-badge {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.45rem 1.15rem;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    user-select: none;
    pointer-events: auto;
}

.motion-footer-badge .series-card-cur {
    color: #ffffff;
    font-weight: 800;
}

.motion-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 680px;
}

.motion-footer-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.motion-footer-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.motion-footer-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.32);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 1, 0.3, 1);
    outline: none;
}

.motion-footer-dot:hover {
    border-color: var(--color-black);
    transform: scale(1.2);
}

.motion-footer-dot.is-active {
    background: var(--color-black);
    border-color: var(--color-black);
    width: 32px;
    border-radius: 10px;
}

.motion-footer-counter {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 991px) {
    .motion-stage-viewport {
        width: min(760px, 80%);
    }
    .motion-slide.is-prev {
        transform: translate3d(-52%, 0, -80px) rotateY(15deg) scale(0.84);
    }
    .motion-slide.is-next {
        transform: translate3d(52%, 0, -80px) rotateY(-15deg) scale(0.84);
    }
}

@media (max-width: 768px) {
    .motion-stage-viewport {
        width: min(100%, 86%);
    }
    .motion-slide.is-prev {
        transform: translate3d(-46%, 0, -60px) rotateY(12deg) scale(0.86);
        filter: blur(5px) brightness(0.88);
        -webkit-filter: blur(5px) brightness(0.88);
    }
    .motion-slide.is-next {
        transform: translate3d(46%, 0, -60px) rotateY(-12deg) scale(0.86);
        filter: blur(5px) brightness(0.88);
        -webkit-filter: blur(5px) brightness(0.88);
    }
    .motion-carousel-arrow {
        width: 42px;
        height: 42px;
    }
    .motion-arrow-prev {
        left: 2px;
    }
    .motion-arrow-next {
        right: 2px;
    }
    .motion-carousel-footer {
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-top: 1.5rem;
        padding-top: 0;
    }
}

/* ---------- 8B. SECCIÓN 5: EDICIÓN DE VIDEO (DISPOSITIVOS 3D: LAPTOP & CELULAR) ---------- */
.video-editing-section {
    background-color: #080809;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.video-editing-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5.5rem) 1.5rem;
}

.video-editing-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.video-editing-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--color-beige);
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.video-editing-desc {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.65;
    color: #ffffff;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

/* Grilla de Dispositivos 3D: Laptop (1.28fr) + Celular (1fr) */
.video-devices-grid {
    display: grid;
    grid-template-columns: 1.28fr 1fr;
    gap: clamp(2rem, 3.8vw, 4rem);
    align-items: stretch;
}

/* Tarjeta envolvente para cada dispositivo */
.device-card-wrapper {
    background: #0d0e12;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(1.6rem, 2.6vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
}

.device-card-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.85);
}

.device-card-header {
    margin-bottom: 1.5rem;
}

.device-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
}

.device-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: normal;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0.4rem 0 0.5rem;
    line-height: 1.3;
}

.device-card-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.device-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.55rem 1.15rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease;
}

.device-action-pill svg {
    flex-shrink: 0;
    transition: stroke 0.4s ease, transform 0.3s ease;
    z-index: 1;
}

/* Ola previa semitransparente (líquido) */
.device-action-pill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1),
                border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

/* Masa de líquido blanco que sube desde abajo */
.device-action-pill::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: #ffffff;
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1),
                border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

.device-card-wrapper:hover .device-action-pill,
.device-action-pill:hover {
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
}

.device-card-wrapper:hover .device-action-pill::after,
.device-action-pill:hover::after {
    height: 200%;
    border-radius: 0;
}

.device-card-wrapper:hover .device-action-pill::before,
.device-action-pill:hover::before {
    height: 200%;
    border-radius: 0;
}

.device-card-wrapper:hover .device-action-pill svg,
.device-action-pill:hover svg {
    stroke: #000000;
    transform: scale(1.08);
}

/* ==================== DISPOSITIVO 1: LAPTOP 3D ==================== */
.laptop-3d-scene {
    perspective: 1400px;
    perspective-origin: center 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 0 2rem;
    min-height: 380px;
}

.laptop-device {
    position: relative;
    width: 100%;
    max-width: 500px;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0);
    will-change: transform;
    cursor: pointer;
    user-select: none;
}

/* Tapa / Pantalla inclinada hacia atrás */
.laptop-lid {
    position: relative;
    width: 100%;
    transform-origin: bottom center;
    transform: rotateX(-10deg) translateZ(8px);
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.laptop-screen-bezel {
    position: relative;
    width: 100%;
    background: linear-gradient(145deg, #24262d 0%, #111216 100%);
    border-radius: 14px 14px 2px 2px;
    padding: 10px 12px 14px;
    box-sizing: border-box;
    border: 2px solid #2b2e37;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.35),
        inset 0 -1px 2px rgba(0, 0, 0, 0.8);
    transform-style: preserve-3d;
}

.laptop-camera-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 6px;
    margin: 0 auto 7px;
}

.laptop-lens {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #080809;
    border: 1px solid #1a1b20;
    box-shadow: inset 0 0 2px #00e1d9;
}

.laptop-led {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.7);
    box-shadow: 0 0 4px #00ff88;
}

.laptop-screen-display {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.laptop-screen-display video.device-loop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.laptop-glare {
    position: absolute;
    inset: -30%;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 32%, transparent 60%);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.45;
    will-change: transform, opacity;
    transition: opacity 0.35s ease;
}

/* Bisagra central */
.laptop-hinge {
    position: relative;
    width: 38%;
    height: 6px;
    margin: 0 auto;
    background: linear-gradient(to right, #141518, #3e414c 30%, #4a4e5c 50%, #3e414c 70%, #141518);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* Base de teclado / deck con perspectiva horizontal */
.laptop-base {
    position: relative;
    width: 104%;
    margin-left: -2%;
    background: linear-gradient(to bottom, #1d1f25 0%, #292b34 25%, #18191f 100%);
    border-radius: 2px 2px 14px 14px;
    padding: 10px 14px 14px;
    box-sizing: border-box;
    border: 1.5px solid #333642;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 12px 28px rgba(0, 0, 0, 0.6);
    transform-origin: top center;
    transform: rotateX(24deg) translateY(-2px);
    transform-style: preserve-3d;
}

.laptop-keyboard-deck {
    position: relative;
    width: 100%;
}

.laptop-notch {
    width: 48px;
    height: 4px;
    background: #0d0e12;
    border-radius: 0 0 5px 5px;
    margin: -10px auto 7px;
    box-shadow: inset 0 1.5px 2px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Altavoces laterales perforados Pro */
.laptop-speaker-grill {
    position: absolute;
    top: 4px;
    width: clamp(10px, 2.2vw, 16px);
    height: 74px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0.85px, transparent 0.95px);
    background-size: 3px 3px;
    border-radius: 2px;
    opacity: 0.85;
    pointer-events: none;
}

.laptop-speaker-left {
    left: 4px;
}

.laptop-speaker-right {
    right: 4px;
}

/* Cavidad embutida del teclado */
.laptop-keyboard-well {
    margin: 0 clamp(16px, 3.8vw, 24px);
    background: #090a0d;
    border-radius: 5px;
    padding: clamp(3px, 0.7vw, 5px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.95),
        inset 0 0 0 1px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(255, 255, 255, 0.02);
}

.laptop-keyboard {
    display: flex;
    flex-direction: column;
    gap: 2.5px;
    width: 100%;
}

.kbd-row {
    display: flex;
    gap: 2.5px;
    width: 100%;
    height: 8.5px;
}

.kbd-row-fn {
    height: 5.5px;
}

.kbd-row-bottom {
    height: 9.5px;
}

/* Teclas Chiclet 3D individuales */
.key {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: linear-gradient(180deg, #272a34 0%, #15161b 75%, #0f1013 100%);
    border-radius: 1.6px;
    border: 0.5px solid #333644;
    box-shadow: 
        0 1px 0 #07080a,
        0 1.5px 2px rgba(0, 0, 0, 0.6),
        inset 0 0.6px 0 rgba(255, 255, 255, 0.22);
    box-sizing: border-box;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.key:hover {
    background: linear-gradient(180deg, #323746 0%, #1c1d25 100%);
    box-shadow: 
        0 0.5px 0 #07080a,
        0 0 4px rgba(255, 255, 255, 0.28),
        inset 0 0.6px 0 rgba(255, 255, 255, 0.4);
}

/* Proporciones de teclas ergonómicas */
.key-esc { flex: 1.4; }
.key-touchid { 
    flex: 1.4; 
    border-radius: 50% / 30%; 
    background: radial-gradient(circle, #1e2027 0%, #0c0d10 100%);
    border: 0.8px solid #484c5e;
}
.key-backspace { flex: 1.65; }
.key-tab { flex: 1.5; }
.key-pipe { flex: 1.25; }
.key-caps { flex: 1.8; }
.key-enter { flex: 1.85; }
.key-shift-l { flex: 2.25; }
.key-shift-r { flex: 2.25; }
.key-mod { flex: 1.1; }
.key-cmd { flex: 1.35; }
.key-space { 
    flex: 5.6; 
    background: linear-gradient(180deg, #2b2e38 0%, #15161c 100%);
}

.key-arrows {
    flex: 2.8;
    display: flex;
    gap: 1.5px;
    height: 100%;
}

.key-arr-l, .key-arr-r {
    flex: 1;
    height: 100%;
}

.key-arr-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    height: 100%;
}

.key-arr-u, .key-arr-d {
    flex: 1;
    height: 50%;
}

.laptop-trackpad {
    width: 32%;
    height: 26px;
    margin: 8px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: linear-gradient(180deg, #1e2027 0%, #15161c 100%);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    cursor: default;
}

.laptop-trackpad::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    height: 80%;
    border-radius: 2px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.035) 0%, transparent 80%);
}

.laptop-base-lip {
    position: absolute;
    bottom: -3px;
    left: 8px;
    right: 8px;
    height: 4px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #101115 0%, #08090b 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.laptop-shadow {
    position: absolute;
    bottom: -22px;
    left: 4%;
    right: 4%;
    height: 38px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 72%);
    filter: blur(14px);
    transform: translate3d(0, 0, -40px);
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==================== DISPOSITIVO 2: SMARTPHONE REEL 3D ==================== */
.reel-phone-scene {
    perspective: 1200px;
    perspective-origin: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 0 2rem;
    min-height: 380px;
}

.reel-phone-device {
    position: relative;
    width: clamp(235px, 20vw, 275px);
    aspect-ratio: 9 / 18.8;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0);
    will-change: transform;
    cursor: pointer;
    user-select: none;
}

/* Botones laterales físicos */
.reel-btn {
    position: absolute;
    background: #202227;
    border-radius: 4px;
    z-index: 1;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.reel-btn-vol-up {
    left: -4px;
    top: 90px;
    width: 4px;
    height: 42px;
}

.reel-btn-vol-down {
    left: -4px;
    top: 145px;
    width: 4px;
    height: 42px;
}

.reel-btn-power {
    right: -4px;
    top: 110px;
    width: 4px;
    height: 56px;
}

/* Chasis de titanio exterior */
.reel-phone-chassis {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 44px;
    background: linear-gradient(135deg, #2a2c33 0%, #151619 50%, #1c1d22 100%);
    padding: 10px;
    box-sizing: border-box;
    border: 2px solid #282a30;
    box-shadow: 
        0 0 0 1.5px rgba(255, 255, 255, 0.15),
        0 0 0 4px #0c0d0f,
        0 20px 50px -10px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.35),
        inset 0 -1px 2px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
}

/* Pantalla OLED */
.reel-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.reel-phone-screen video.device-loop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Barra de estado superior */
.reel-status-bar {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.reel-clock {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.reel-status-icons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.reel-net {
    font-size: 0.6rem;
    font-weight: 700;
}

.reel-battery {
    width: 18px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    padding: 1px;
    display: flex;
    align-items: center;
    position: relative;
}

.reel-battery::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 1px 1px 0;
}

.reel-battery-fill {
    width: 75%;
    height: 100%;
    background: #ffffff;
    border-radius: 1px;
}

/* Dynamic Island */
.reel-dynamic-island {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 78px;
    height: 20px;
    background: #000000;
    border-radius: 20px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    box-sizing: border-box;
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.reel-cam-lens {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 35% 35%, #1a1e36 0%, #05060b 80%);
    border-radius: 50%;
    box-shadow: inset 0 0 1px #0077cc;
}

.reel-sensor {
    width: 6px;
    height: 6px;
    background: #0a0a0f;
    border-radius: 50%;
}

/* UI Overlay tipo Reel */
.reel-ui-overlay {
    position: absolute;
    bottom: 24px;
    left: 14px;
    right: 14px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

.reel-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reel-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-beige);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.reel-handle {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.reel-glare {
    position: absolute;
    inset: -30%;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.08) 32%, transparent 60%);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.45;
    will-change: transform, opacity;
    transition: opacity 0.35s ease;
}

.reel-home-bar {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    height: 3.5px;
    background: #ffffff;
    border-radius: 3px;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.reel-shadow {
    position: absolute;
    bottom: -22px;
    left: 12%;
    right: 12%;
    height: 36px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 72%);
    filter: blur(14px);
    transform: translate3d(0, 0, -40px);
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Badge flotante de indicación dentro de la pantalla */
.device-video-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    z-index: 14;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.device-card-wrapper:hover .device-video-hint {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    border-color: #ffffff;
    transform: scale(1.04);
}

/* ==================== MODAL / LIGHTBOX DE VIDEO CON AUDIO ==================== */
.video-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-lightbox-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==================== MODAL / LIGHTBOX DE EDICIÓN DE VIDEO (UNIFICADO CON MODELADO 3D) ==================== */
.video-lightbox-modal {
    /* Hereda comportamiento de .series-carousel-modal */
}

.video-stage-viewport {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 90vw;
    transition: aspect-ratio 0.35s ease, width 0.35s ease, max-height 0.35s ease;
}

.video-stage-viewport.format-horizontal {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 72vh;
    width: clamp(320px, 78vw, 1060px);
}

.video-stage-viewport.format-vertical {
    aspect-ratio: 9 / 16;
    height: 100%;
    max-height: 74vh;
    width: auto;
    max-width: min(85vw, 420px);
}

/* ---------- 8C. SECCIÓN 6: BRANDING (LUNA ROJA - ESCENA 3D) ---------- */
.branding-section {
    background-color: #17161d;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

#branding .section-divider {
    background-color: #17161d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.branding-scene-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Escenario interactivo */
.branding-3d-scene {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem clamp(3rem, 6vw, 5rem);
    box-sizing: border-box;
    gap: clamp(2.5rem, 4vw, 3.8rem);
}

/* Resplandor ambiental de iluminación nocturna */
.branding-ambient-glow {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(850px, 90vw);
    height: min(650px, 70vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 75, 45, 0.16) 0%, rgba(211, 191, 166, 0.06) 38%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

/* ==================== NÚCLEO CENTRAL PROTAGONISTA ==================== */
.branding-center-hero {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    pointer-events: auto;
}

.branding-project-id {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    display: block;
}

.branding-hero-desc {
    font-family: var(--font-body);
    font-size: clamp(0.92rem, 1.15vw, 1.05rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

.branding-logo-box {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branding-hero-logo {
    width: clamp(220px, 26vw, 320px);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 50px rgba(211, 191, 166, 0.15));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.branding-hero-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 70px rgba(211, 191, 166, 0.28));
}

.branding-hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin: 0 0 2rem;
    max-width: 420px;
    font-weight: 400;
}

/* ==================== GALERÍA DE MOCKUPS (SIN SOLAPAMIENTO) ==================== */
.branding-floating-mockups {
    position: relative;
    inset: auto;
    width: 100%;
    pointer-events: auto;
}

.branding-gallery-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Luna Roja: Grilla de 6 columnas equilibrada */
.branding-luna-grid {
    grid-template-columns: repeat(6, 1fr);
}

.branding-luna-grid .mockup-pos-1 {
    grid-column: span 3;
    aspect-ratio: 16 / 10;
}

.branding-luna-grid .mockup-pos-4 {
    grid-column: span 3;
    aspect-ratio: 16 / 10;
}

.branding-luna-grid .mockup-pos-2 {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
}

.branding-luna-grid .mockup-pos-5 {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
}

.branding-luna-grid .mockup-pos-3 {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
}

.branding-mockup-item {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    animation: none !important;
    transform: none;
    pointer-events: auto;
    cursor: pointer;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, filter 0.35s ease;
}

.branding-mockup-item:hover {
    transform: translateY(-6px) scale(1.015);
}

.mockup-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0e0d13;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 0, 0, 0.4);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.mockup-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.mockup-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 40%, transparent 100%);
    pointer-events: none;
    border-radius: inherit;
}

.branding-mockup-item:hover .mockup-card-inner {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(211, 191, 166, 0.25);
}

/* ==================== MODAL DE INFORMACIÓN DETALLADA ==================== */
.branding-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
    box-sizing: border-box;
}

.branding-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.branding-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 9, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
}

.branding-modal-container {
    position: relative;
    z-index: 2;
    background: #1c1b24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 0, 0, 0.5);
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(2rem, 4vw, 3rem);
    box-sizing: border-box;
    transform: translateY(25px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
}

.branding-modal.is-open .branding-modal-container {
    transform: translateY(0) scale(1);
}

.branding-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.branding-modal-close:hover {
    background: #ffffff;
    color: #000000;
    transform: rotate(90deg);
}

.branding-modal-cat {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-beige);
    display: block;
    margin-bottom: 0.5rem;
}

.branding-modal-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.95rem);
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.branding-modal-lead {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 2rem;
}

/* Tarjeta conceptual destacada */
.branding-modal-concept-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--color-beige);
}

.concept-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-beige);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.concept-card-text {
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Cuadrícula de 4 pilares */
.branding-modal-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.pillar-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
}

.pillar-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-beige);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.35rem;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}

.pillar-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Paleta institucional */
.branding-modal-palette {
    margin-top: 1.5rem;
}

.palette-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-beige);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
}

.palette-banner-frame {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.palette-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== PROYECTO 2: BRABBO (STREETWEAR & BRANDING) ==================== */
.branding-project-separator {
    text-align: center;
    padding: clamp(3.5rem, 6vw, 5.5rem) 1.5rem 1rem;
    position: relative;
    z-index: 5;
}

.branding-project-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 85vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.project-sep-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.1);
    border: 1px solid rgba(255, 77, 79, 0.3);
    padding: 0.35rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 0.85rem;
}

.project-sep-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    color: #ffffff;
    letter-spacing: 0.02em;
    margin: 0;
}

.brabbo-3d-scene {
    min-height: auto;
}

/* Resplandor ambiental carmesí de Brabbo */
.brabbo-ambient-glow {
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(184, 27, 28, 0.22) 0%, rgba(220, 38, 38, 0.08) 42%, transparent 70%);
    filter: blur(55px);
}

/* Núcleo central Brabbo */
.brabbo-hero-badge {
    color: #ff5252;
}

.brabbo-hero-logo {
    width: clamp(240px, 28vw, 360px);
    filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 50px rgba(184, 27, 28, 0.3));
}

.brabbo-hero-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 75px rgba(239, 68, 68, 0.55));
}

/* --- Grilla BRABBO: 8 piezas en 4 columnas --- */
.brabbo-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.brabbo-gallery-grid .brabbo-mockup-item {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Tarjetas con siluetas orgánicas transparentes (Bebas, Futura, Beanie, Conejo, Bag, Totebag) */
.brabbo-flag-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75));
    transition: filter 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

.brabbo-flag-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    display: block;
}

.branding-mockup-item:hover .brabbo-flag-card {
    border-color: rgba(255, 77, 79, 0.5) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 68, 68, 0.35) !important;
}

/* Mockup de Remera Streetwear */
.mockup-pos-brabbo-1 .brabbo-card-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    overflow: hidden;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.mockup-pos-brabbo-1 .brabbo-card-inner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mockup-pos-brabbo-1:hover .brabbo-card-inner {
    border-color: rgba(255, 77, 79, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 68, 68, 0.35);
}

/* Patrón textil en marco moderno */
.brabbo-pattern-card {
    background: #0e0d13;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.brabbo-pattern-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal Brabbo */
.brabbo-concept-card {
    border-left: 3px solid #ff4d4f;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.brabbo-modal-gallery {
    margin-top: 2rem;
}

/* Grid de productos e indumentaria en el modal */
.brabbo-modal-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.brabbo-product-card {
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.brabbo-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 77, 79, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(184, 27, 28, 0.2);
}

.brabbo-product-img-wrap {
    width: 100%;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.brabbo-product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.brabbo-product-label {
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.brabbo-modal-typo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 0.85rem;
}

.brabbo-typo-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.brabbo-typo-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

/* ==================== RESPONSIVE BRANDING (TABLET Y MÓVIL) ==================== */
@media (max-width: 1024px) {
    .branding-3d-scene {
        padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
    }

    .branding-center-hero {
        margin-bottom: 2rem;
        transform: none !important;
        max-width: 680px;
        width: 100%;
    }

    .branding-luna-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .branding-luna-grid .mockup-pos-1,
    .branding-luna-grid .mockup-pos-4,
    .branding-luna-grid .mockup-pos-2,
    .branding-luna-grid .mockup-pos-5 {
        grid-column: span 1;
    }

    .branding-luna-grid .mockup-pos-3 {
        grid-column: span 2;
    }

    .brabbo-gallery-grid,
    #branding-brabbo .branding-floating-mockups {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .branding-mockup-item {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        animation: none !important;
        transform: none !important;
    }

    .brabbo-modal-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .branding-3d-scene {
        padding: 2.5rem 1rem;
    }

    .branding-center-hero {
        margin-bottom: 1.8rem;
    }

    .branding-luna-grid,
    .brabbo-gallery-grid,
    .branding-floating-mockups,
    #branding-brabbo .branding-floating-mockups {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 520px;
    }

    .branding-luna-grid .mockup-pos-3,
    .mockup-pos-5,
    .mockup-pos-brabbo-4 {
        grid-column: span 2;
    }

    .branding-modal-pillars {
        grid-template-columns: 1fr;
    }

    .brabbo-modal-products-grid {
        grid-template-columns: 1fr;
    }

    .brabbo-modal-typo-grid {
        grid-template-columns: 1fr;
    }

    .branding-modal-container {
        padding: 1.35rem 1.1rem;
        width: 95%;
        max-height: 92vh;
        border-radius: 20px;
    }

    .branding-modal-close {
        top: 0.9rem;
        right: 0.9rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .branding-luna-grid,
    .brabbo-gallery-grid,
    .branding-floating-mockups,
    #branding-brabbo .branding-floating-mockups {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 360px;
    }

    .branding-luna-grid .mockup-pos-1,
    .branding-luna-grid .mockup-pos-4,
    .branding-luna-grid .mockup-pos-2,
    .branding-luna-grid .mockup-pos-5,
    .branding-luna-grid .mockup-pos-3,
    .mockup-pos-5,
    .mockup-pos-brabbo-4 {
        grid-column: span 1;
    }

    .branding-hero-logo {
        width: clamp(180px, 58vw, 250px);
    }

    .branding-hero-tagline {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }

    .branding-action-btn {
        width: 100%;
        max-width: 290px;
        justify-content: center;
        padding: 0.7rem 1.4rem;
    }
}

/* ---------- 9. SECCIÓN 5: ILUSTRACIONES ---------- */
.illustrations-section {
    background-color: var(--color-white);
    color: var(--color-black);
    position: relative;
    overflow: hidden;
}

.illustrations-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(3.5rem, 6vw, 5.5rem) 1.5rem;
}

.illustrations-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto clamp(2.5rem, 4.5vw, 4rem);
}

.illustrations-header:empty {
    display: none;
    margin: 0;
}

.illustrations-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 1.2vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 0.85rem;
}

.illustrations-desc {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.65;
    color: #333333;
    font-weight: 400;
}

/* Grilla Editorial Asimétrica */
.illustrations-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    align-items: stretch;
}

/* Asignación de columnas para ritmo editorial de 8 obras */
.card-item-1 { grid-column: span 4; }
.card-item-2 { grid-column: span 4; }
.card-item-3 { grid-column: span 4; }
.card-item-4 { grid-column: span 8; }
.card-item-5 { grid-column: span 4; }
.card-item-6 { grid-column: span 4; }
.card-item-8 { grid-column: span 4; }
.card-item-7 { grid-column: span 4; }

/* Alturas proporcionales según tipo de obra */
.card-item-1 .illustration-media,
.card-item-2 .illustration-media,
.card-item-3 .illustration-media {
    min-height: 480px;
}

.card-item-4 .illustration-media,
.card-item-5 .illustration-media {
    min-height: 360px;
}

.card-item-6 .illustration-media,
.card-item-6 .series-card-media,
.card-item-6 .carousel-viewport,
.card-item-6 .carousel-slide .video-wrapper,
.card-item-7 .series-card-media,
.card-item-8 .illustration-media {
    min-height: 520px;
}

/* Card con Carrusel Interactivo (Lockwood & Co.) */
.illustration-card.has-carousel {
    cursor: default;
}

.illustration-card.has-carousel .carousel-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.illustration-card.has-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.illustration-card.has-carousel .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.illustration-card.has-carousel .carousel-slide .illustration-media,
.illustration-card.has-carousel .carousel-slide .video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
}

.illustration-card.has-carousel .carousel-slide img,
.illustration-card.has-carousel .carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.illustration-card.has-carousel .carousel-slide:not(.slide-video) .illustration-media {
    cursor: pointer;
}

/* Tarjeta individual de ilustración */
.illustration-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0d0d0d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    outline: none;
}

.illustration-card:focus-visible {
    box-shadow: 0 0 0 3px var(--color-black), 0 15px 35px rgba(0, 0, 0, 0.22);
}

.illustration-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
}

.illustration-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
    display: flex;
}

.card-item-3 .illustration-media {
    min-height: 420px;
}

.illustration-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.illustration-card:hover .illustration-media img {
    transform: scale(1.06);
}

/* Overlay flotante con información */
.illustration-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.05) 80%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    opacity: 0.92;
    transition: opacity 0.35s ease, background 0.35s ease;
}

.illustration-card:hover .illustration-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.12) 85%, transparent 100%);
}

.illustration-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transform: translateY(6px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.illustration-card:hover .illustration-info {
    transform: translateY(0);
}

.illustration-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.illustration-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: var(--color-white);
    letter-spacing: 0.04em;
    line-height: 1.25;
    margin: 0;
}

.illustration-sub {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    margin: 0.15rem 0 0;
}

.illustration-action {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.55rem 1.15rem;
    border-radius: 25px;
    margin-top: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease;
}

.illustration-action svg {
    flex-shrink: 0;
    transition: stroke 0.4s ease, transform 0.3s ease;
    z-index: 1;
}

/* Ola previa semitransparente (líquido) */
.illustration-action::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1),
                border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

/* Masa de líquido blanco que sube desde abajo */
.illustration-action::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: #ffffff;
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1),
                border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

.illustration-card:hover .illustration-action,
.illustration-action:hover {
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
}

.illustration-card:hover .illustration-action::after,
.illustration-action:hover::after {
    height: 200%;
    border-radius: 0;
}

.illustration-card:hover .illustration-action::before,
.illustration-action:hover::before {
    height: 200%;
    border-radius: 0;
}

.illustration-card:hover .illustration-action svg,
.illustration-action:hover svg {
    stroke: #000000;
    transform: scale(1.1);
}

.illustration-action:active {
    transform: scale(0.97);
}

/* ---------- Lightbox Modal de Ilustraciones con Fondo Difuminado Dinámico ---------- */
.illustration-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.illustration-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Fondo Dinámico: Muestra la obra difuminada con sus propios colores (estilo Metamorfosis) */
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: #060606;
    overflow: hidden;
    cursor: pointer;
}

.lightbox-bg-blur {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    filter: blur(45px) brightness(0.40) saturate(1.45);
    transform: scale(1.18);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.illustration-lightbox.is-open .lightbox-bg-blur {
    opacity: 1;
}

.lightbox-bg-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.92) 100%);
    pointer-events: none;
}

/* Escenario Central que garantiza centrado vertical y horizontal absoluto */
.illustration-modal-stage {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.5rem 0;
    user-select: none;
}

.illustration-modal-stage .lightbox-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.illustration-lightbox.is-open .illustration-modal-stage .lightbox-container {
    transform: scale(1);
}

.lightbox-media-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 74vh;
    max-width: min(92vw, 1150px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: #000000;
}

.lightbox-image {
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

.illustration-modal-footer {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0.5rem 0 0;
    z-index: 5;
}

.lightbox-category-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.2rem;
}

.lightbox-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    letter-spacing: 0.05em;
    margin: 0;
    color: var(--color-white);
}

/* ---------- 9.1 SERIE DE ILUSTRACIONES Y CARRUSEL INMERSIVO ---------- */
.series-card {
    position: relative;
    cursor: pointer;
}

.series-card-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    overflow: hidden;
    background: #000000;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.series-card-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.series-card-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
    z-index: 1;
}

.series-card-slide.is-prev {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.series-card-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.series-card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 5;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.42rem 0.9rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.series-card-cur {
    color: #ffffff;
    font-weight: 800;
}

.series-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.04) 75%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    pointer-events: none;
}

.series-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.series-card-category {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.series-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--color-white);
    letter-spacing: 0.04em;
    margin: 0;
}

.series-card-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    margin: 0.15rem 0 0;
}

.series-card-action {
    margin-top: 0.85rem;
}

.series-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.55rem 1.15rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease;
}

.series-action-btn svg {
    flex-shrink: 0;
    transition: stroke 0.4s ease, transform 0.3s ease;
    z-index: 1;
}

/* Ola previa semitransparente (líquido) */
.series-action-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1),
                border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

/* Masa de líquido blanco que sube desde abajo */
.series-action-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: #ffffff;
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1),
                border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

.series-card:hover .series-action-btn,
.series-action-btn:hover {
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
}

.series-card:hover .series-action-btn::after,
.series-action-btn:hover::after {
    height: 200%;
    border-radius: 0;
}

.series-card:hover .series-action-btn::before,
.series-action-btn:hover::before {
    height: 200%;
    border-radius: 0;
}

.series-card:hover .series-action-btn svg,
.series-action-btn:hover svg {
    stroke: #000000;
    transform: scale(1.1);
}

.series-action-btn:active {
    transform: scale(0.97);
}

/* ==================== MODAL CARRUSEL INMERSIVO ==================== */
.series-carousel-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.series-carousel-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Fondo Dinámico: Donde queda la imagen anterior expandida y desenfocada */
.series-modal-backdrop {
    position: absolute;
    inset: 0;
    background: #060606;
    overflow: hidden;
}

.series-modal-bg-layer {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    filter: blur(45px) brightness(0.38) saturate(1.4);
    transform: scale(1.18);
    opacity: 0;
    transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
}

.series-modal-bg-layer.is-active {
    opacity: 1;
}

.series-modal-bg-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.92) 100%);
    pointer-events: none;
}

/* Contenido / Estructura del Modal */
.series-modal-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    height: 100%;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2.5rem);
    box-sizing: border-box;
}

/* Botón Cerrar con animación de llenado líquido idéntica al NAV */
.series-modal-close-btn,
.lightbox-close-btn {
    position: absolute;
    top: clamp(1.5rem, 3.5vh, 3.5rem);
    right: clamp(1.5rem, 4vw, 4.5rem);
    z-index: 25;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.series-modal-close-btn svg,
.lightbox-close-btn svg {
    position: relative;
    z-index: 1;
    stroke: currentColor;
    transition: color 0.35s ease, transform 0.25s ease, stroke 0.35s ease;
}

.series-modal-close-btn::after,
.lightbox-close-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1), border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

.series-modal-close-btn::before,
.lightbox-close-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: #ffffff;
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1), border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

.series-modal-close-btn:hover,
.lightbox-close-btn:hover {
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.series-modal-close-btn:hover::after,
.series-modal-close-btn:hover::before,
.lightbox-close-btn:hover::after,
.lightbox-close-btn:hover::before {
    height: 200%;
    border-radius: 0;
}

.series-modal-close-btn:hover svg,
.lightbox-close-btn:hover svg {
    stroke: #000000;
    transform: scale(1.1);
}

.series-modal-close-btn:active,
.lightbox-close-btn:active {
    transform: scale(0.95);
}

/* Escenario Central */
.series-modal-stage {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.5rem 0;
    user-select: none;
}

.series-stage-viewport {
    position: relative;
    height: 100%;
    max-height: 74vh;
    aspect-ratio: 576 / 1024;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

#series-lightbox .series-stage-viewport {
    position: relative;
    height: 100%;
    max-height: 74vh;
    aspect-ratio: 576 / 1024;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.series-stage-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen en el Escenario */
.series-stage-image,
img.series-stage-image,
.modeling-stage-frame .series-stage-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: block;
    transform: scale(1);
    filter: blur(0px);
    opacity: 0;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 650ms cubic-bezier(0.22, 1, 0.36, 1), opacity 650ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, filter, opacity;
}

.series-stage-image.is-active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    z-index: 2;
}

/* Imagen anterior: se expande suavemente, se desenfoca y se funde hacia el fondo */
.series-stage-image.is-expanding-leaving {
    opacity: 0 !important;
    transform: scale(1.32) !important;
    filter: blur(26px) !important;
    z-index: 1 !important;
    pointer-events: none;
}

/* Nueva imagen: aparece nítida por encima con suave efecto de profundidad */
.series-stage-image.is-depth-entering {
    opacity: 0;
    transform: scale(0.88);
    filter: blur(5px);
    z-index: 4;
}

.series-stage-image.is-depth-entering.is-active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

/* Flechas de Navegación con animación de llenado líquido idéntica al NAV y márgenes amplios */
.series-stage-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.series-stage-arrow svg {
    position: relative;
    z-index: 1;
    transition: color 0.35s ease, transform 0.25s ease;
}

.series-stage-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1), border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

.series-stage-arrow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: #ffffff;
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1), border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

.series-stage-arrow:hover {
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) translateY(-2px);
}

.series-stage-arrow:hover::after,
.series-stage-arrow:hover::before {
    height: 200%;
    border-radius: 0;
}

.series-stage-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.series-stage-arrow.series-stage-prev {
    left: clamp(1.25rem, 3.5vw, 4.5rem);
}

.series-stage-arrow.series-stage-next {
    right: clamp(1.25rem, 3.5vw, 4.5rem);
}

/* Barra Inferior de Metadatos y Paginación */
.series-modal-footer {
    width: 100%;
    max-width: 920px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 0.75rem;
    color: #ffffff;
}

.series-footer-tag {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.2rem;
}

.series-footer-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    letter-spacing: 0.05em;
    margin: 0;
    color: #ffffff;
    line-height: 1.25;
}

.series-footer-sub {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0.2rem 0 0;
}

.series-footer-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.series-footer-dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.series-footer-dot {
    width: 10px;
    height: 10px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    padding: 0;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
    outline: none;
}

.series-footer-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.series-footer-count {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.78);
}

/* ==================== SECCIÓN MODELADO 3D (ESTILO SERIES-CARD & MODAL INMERSIVO) ==================== */
.modeling-series-card {
    background: #0e0f14;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    min-height: 0 !important;
}

.modeling-series-card:hover {
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(167, 139, 250, 0.12);
    transform: translateY(-6px);
}

/* Contenedor Visual de Medios (Arriba de la Información) */
.modeling-series-card .series-card-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000000;
    flex-shrink: 0;
    min-height: 0 !important;
}

/* Videos e imágenes en el slideshow continuo de la card */
.modeling-series-card .series-card-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modeling-series-card .series-card-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
    z-index: 1;
}

.modeling-series-card .series-card-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.modeling-series-card .series-card-slide.is-prev {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.modeling-series-card .series-card-slide video,
video.series-card-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.project-card-1 .series-card-slide {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Información del Proyecto DEBAJO de la Card Media */
.modeling-series-card .project-info {
    padding: 1.4rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
    justify-content: space-between;
    background: #0e0f14;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modeling-series-card .project-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modeling-series-card .project-tag {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
}

.modeling-series-card .project-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: normal;
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin: 0;
}

.modeling-series-card .project-action {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

/* Botón de la Card con efecto de líquido idéntico al NAV */
.modeling-series-card .series-action-btn {
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 0.82vw, 0.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: clamp(0.06em, 0.08vw, 0.1em);
    color: #ffffff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 0.5vw, 0.55rem);
    padding: clamp(0.42rem, 0.55vw, 0.52rem) clamp(0.75rem, 1vw, 1.25rem);
    border-radius: 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1.1;
    cursor: pointer;
}

.modeling-series-card .series-action-btn svg {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    stroke: currentColor;
    transition: stroke 0.4s ease, transform 0.25s ease;
}

/* Ola previa semitransparente (primera capa de líquido) */
.modeling-series-card .series-action-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.22);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1),
                border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

/* Masa principal de líquido blanco que sube desde abajo */
.modeling-series-card .series-action-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: #ffffff;
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1),
                border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

/* Hover: sube el líquido blanco, letras e icono pasan a negro */
.modeling-series-card:hover .series-action-btn,
.modeling-series-card .series-action-btn:hover {
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.modeling-series-card:hover .series-action-btn::after,
.modeling-series-card .series-action-btn:hover::after {
    height: 200%;
    border-radius: 0;
}

.modeling-series-card:hover .series-action-btn::before,
.modeling-series-card .series-action-btn:hover::before {
    height: 200%;
    border-radius: 0;
}

.modeling-series-card:hover .series-action-btn svg,
.modeling-series-card .series-action-btn:hover svg {
    stroke: #000000;
    transform: scale(1.1);
}

.modeling-series-card .series-action-btn:active {
    transform: scale(0.97);
}

@media (max-width: 992px) {
    .modeling-series-card .project-info {
        padding: 1.2rem 1.3rem 1.4rem;
    }
}

@media (max-width: 768px) {
    .modeling-series-card .project-info {
        padding: 1.1rem 1.2rem 1.3rem;
    }
}

/* Escenario Adaptable para Modelado 3D (formato dinámico según ratio nativo sin franjas negras) */
.modeling-stage-viewport {
    position: relative;
    width: auto;
    height: auto;
    max-height: 72vh;
    max-width: min(92vw, 1200px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: aspect-ratio 0.35s ease, max-width 0.35s ease;
    margin: 0 auto;
}

.modeling-stage-viewport.format-vertical {
    aspect-ratio: 9 / 16;
    height: min(72vh, calc(92vw * 16 / 9));
    width: auto;
    max-width: calc(72vh * 9 / 16);
}

.modeling-stage-viewport.format-horizontal {
    aspect-ratio: 16 / 9;
    width: min(92vw, calc(72vh * 16 / 9));
    height: auto;
    max-height: calc(92vw * 9 / 16);
    max-width: min(92vw, 1200px);
}

.modeling-stage-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video en el Modal de Modelado 3D */
.modeling-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modeling-active-video,
video.modeling-active-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    display: block;
    background: transparent;
    cursor: pointer;
}

/* Barra de Controles Flotante para Video 3D (panel unificado que aparece y desaparece en bloque) */
.modeling-video-controls {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: calc(100% - 2.5rem);
    max-width: 620px;
    background: rgba(14, 16, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.6rem 1.1rem;
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.modeling-video-wrap:hover .modeling-video-controls,
.modeling-video-wrap.is-touch-active .modeling-video-controls {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Botones de control del video */
.modeling-ctrl-btn {
    border: none;
    outline: none;
    cursor: pointer;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.modeling-play-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.modeling-play-toggle:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.08);
}

.modeling-play-toggle.is-paused .play-icon { display: block; }
.modeling-play-toggle.is-paused .pause-icon { display: none; }
.modeling-play-toggle:not(.is-paused) .play-icon { display: none; }
.modeling-play-toggle:not(.is-paused) .pause-icon { display: block; }

/* Botones Retroceder / Avanzar 10s */
.modeling-seek-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
}

.modeling-seek-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.06);
}

.modeling-seek-btn .seek-label {
    position: absolute;
    font-size: 0.55rem;
    font-weight: 800;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    letter-spacing: -0.05em;
    pointer-events: none;
}

/* Barra de progreso interactiva */
.modeling-scrub-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease;
}

.modeling-scrub-bar:hover {
    height: 9px;
}

.modeling-scrub-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 6px;
    transition: width 0.1s linear;
}

.modeling-time-display {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    flex-shrink: 0;
    min-width: 72px;
    text-align: center;
}

/* Botón Audio Destacado (Silenciado por defecto, solo icono) */
.modeling-audio-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.modeling-audio-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
}

.modeling-audio-toggle:not(.is-muted) {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.modeling-audio-toggle:not(.is-muted):hover {
    background: #ffffff;
    transform: scale(1.08);
}

.modeling-audio-toggle.is-muted .sound-on-icon { display: none; }
.modeling-audio-toggle.is-muted .sound-off-icon { display: block; }
.modeling-audio-toggle:not(.is-muted) .sound-on-icon { display: block; }
.modeling-audio-toggle:not(.is-muted) .sound-off-icon { display: none; }

/* ==================== ADAPTACIÓN PARA VIDEO VERTICAL 9:16 (Agujero negro) ==================== */
/* El panel se adapta perfectamente al ancho angosto del video 9:16 sin sobresalir por ningún lado */
.format-vertical .modeling-video-controls,
.modeling-video-controls.format-vertical-controls {
    width: calc(100% - 1.25rem);
    max-width: calc(100% - 1.25rem);
    bottom: 0.85rem;
    padding: 0.5rem 0.65rem 0.55rem;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 0.4rem;
    column-gap: 0.4rem;
    box-sizing: border-box;
}

.format-vertical .modeling-scrub-bar,
.format-vertical-controls .modeling-scrub-bar {
    order: 1;
    flex: 1 1 calc(100% - 82px);
    height: 5px;
    margin: 0;
    min-width: 70px;
}

.format-vertical .modeling-time-display,
.format-vertical-controls .modeling-time-display {
    order: 2;
    flex: 0 0 auto;
    font-size: 0.65rem;
    min-width: auto;
    letter-spacing: 0.02em;
    margin-left: auto;
    text-align: right;
    display: block !important;
}

.format-vertical .modeling-seek-prev,
.format-vertical-controls .modeling-seek-prev {
    order: 3;
    width: 30px;
    height: 30px;
}

.format-vertical .modeling-seek-prev svg,
.format-vertical-controls .modeling-seek-prev svg {
    width: 15px;
    height: 15px;
}

.format-vertical .modeling-seek-btn .seek-label,
.format-vertical-controls .modeling-seek-btn .seek-label {
    font-size: 0.48rem;
}

.format-vertical .modeling-play-toggle,
.format-vertical-controls .modeling-play-toggle {
    order: 4;
    width: 34px;
    height: 34px;
}

.format-vertical .modeling-play-toggle svg,
.format-vertical-controls .modeling-play-toggle svg {
    width: 16px;
    height: 16px;
}

.format-vertical .modeling-seek-next,
.format-vertical-controls .modeling-seek-next {
    order: 5;
    width: 30px;
    height: 30px;
}

.format-vertical .modeling-seek-next svg,
.format-vertical-controls .modeling-seek-next svg {
    width: 15px;
    height: 15px;
}

.format-vertical .modeling-audio-toggle,
.format-vertical-controls .modeling-audio-toggle {
    order: 6;
    width: 32px;
    height: 32px;
    margin-left: auto;
}

.format-vertical .modeling-audio-toggle svg,
.format-vertical-controls .modeling-audio-toggle svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 640px) {
    .modeling-video-controls:not(.format-vertical-controls) {
        bottom: 0.65rem;
        width: calc(100% - 1.25rem);
        padding: 0.5rem 0.75rem;
        gap: 0.45rem;
    }
    .modeling-video-controls:not(.format-vertical-controls) .modeling-time-display {
        display: none;
    }
}

/* ---------- 9. SECCIÓN 8: TRABAJEMOS JUNTOS ---------- */
.contact-section {
    background-color: var(--color-black);
    color: var(--color-white);
    position: relative;
    padding-bottom: clamp(70px, 10vw, 120px);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 3vw, 2.5rem);
}

.contact-header {
    text-align: center;
    margin-top: clamp(2.8rem, 5.5vw, 4.5rem);
    margin-bottom: clamp(2.8rem, 5.5vw, 4.5rem);
}

.contact-desc {
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
}

/* Grilla de 2 tarjetas de contacto (Instagram, Gmail) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
    margin: 0 auto;
    gap: clamp(1.5rem, 2.8vw, 2.5rem);
    align-items: stretch;
}

/* Tarjeta de contacto */
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: clamp(2.4rem, 4vw, 3.2rem) clamp(1.4rem, 2.5vw, 2rem);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.4s ease,
                background-color 0.4s ease,
                box-shadow 0.4s ease;
    cursor: pointer;
}

.contact-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    z-index: 0;
}

.whatsapp-card .contact-card-glow {
    background: radial-gradient(circle at 50% 20%, rgba(37, 211, 102, 0.14) 0%, transparent 70%);
}

.instagram-card .contact-card-glow {
    background: radial-gradient(circle at 50% 20%, rgba(225, 48, 108, 0.14) 0%, transparent 70%);
}

.gmail-card .contact-card-glow {
    background: radial-gradient(circle at 50% 20%, rgba(234, 67, 53, 0.14) 0%, transparent 70%);
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.065);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 255, 255, 0.08);
}

.contact-card:hover .contact-card-glow {
    opacity: 1;
}

/* Contenedor del ícono */
.contact-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-white);
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.4s ease,
                background-color 0.4s ease,
                box-shadow 0.4s ease,
                color 0.4s ease;
}

.contact-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.35s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.08);
}

/* Colores temáticos al hover del card */
.whatsapp-card:hover {
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(37, 211, 102, 0.18);
}

.whatsapp-card:hover .contact-icon-wrap {
    background: rgba(37, 211, 102, 0.12);
    border-color: #25D366;
    color: #25D366;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.35);
    transform: translateY(-3px);
}

.instagram-card:hover {
    border-color: rgba(225, 48, 108, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(225, 48, 108, 0.18);
}

.instagram-card:hover .contact-icon-wrap {
    background: rgba(225, 48, 108, 0.12);
    border-color: #E1306C;
    color: #E1306C;
    box-shadow: 0 0 25px rgba(225, 48, 108, 0.35);
    transform: translateY(-3px);
}

.gmail-card:hover {
    border-color: rgba(234, 67, 53, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 67, 53, 0.18);
}

.gmail-card:hover .contact-icon-wrap {
    background: rgba(234, 67, 53, 0.12);
    border-color: #EA4335;
    color: #EA4335;
    box-shadow: 0 0 25px rgba(234, 67, 53, 0.35);
    transform: translateY(-3px);
}

/* Contenido de la tarjeta */
.contact-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    width: 100%;
}

.contact-channel-badge {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.65rem;
}

.contact-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 0.85rem;
    text-transform: capitalize;
}

.contact-card-detail {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 300px;
    font-weight: 400;
}

/* Botón con animación líquida idéntica al resto del sitio */
.contact-card-action {
    position: relative;
    z-index: 1;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.65rem 1.45rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease;
}

.contact-btn .btn-text {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.contact-btn svg {
    flex-shrink: 0;
    transition: stroke 0.4s ease, transform 0.3s ease;
    z-index: 1;
    stroke: currentColor;
}

/* Ola previa semitransparente (líquido) */
.contact-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1),
                border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

/* Masa de líquido blanco que sube desde abajo */
.contact-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: #ffffff;
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1),
                border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

.contact-card:hover .contact-btn,
.contact-btn:hover {
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.contact-card:hover .contact-btn::after,
.contact-btn:hover::after {
    height: 200%;
    border-radius: 0;
}

.contact-card:hover .contact-btn::before,
.contact-btn:hover::before {
    height: 200%;
    border-radius: 0;
}

.contact-card:hover .contact-btn svg,
.contact-btn:hover svg {
    stroke: #000000;
    transform: translateX(4px);
}

.contact-btn:active {
    transform: scale(0.97);
}

/* Responsividad para la sección de contacto */
@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 1.75rem;
    }
    
    .contact-card {
        padding: 2.2rem 1.8rem;
    }
}

/* ---------- 10. PIE DE PÁGINA (FOOTER) ---------- */
.site-footer {
    background-color: var(--color-gray-dark);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid var(--color-gray-border);
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-white);
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: capitalize;
}

.footer-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.video-lightbox-modal .series-footer-tag,
.video-lightbox-modal .series-footer-title,
.video-lightbox-modal .series-footer-count {
    color: #ffffff;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 1.25rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--color-gray-border);
    border-radius: 30px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease;
}

.back-to-top svg {
    transition: stroke 0.4s ease, transform 0.3s ease;
    z-index: 1;
}

.back-to-top span {
    position: relative;
    z-index: 1;
}

/* Ola previa semitransparente (líquido) */
.back-to-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 40% 60% 0 0;
    transition: height 0.38s cubic-bezier(0.25, 1, 0.4, 1),
                border-radius 0.38s ease;
    z-index: -2;
    pointer-events: none;
}

/* Masa de líquido blanco que sube desde abajo */
.back-to-top::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 0%;
    background-color: #ffffff;
    border-radius: 50% 50% 0 0;
    transition: height 0.48s cubic-bezier(0.25, 1, 0.35, 1),
                border-radius 0.48s ease;
    z-index: -1;
    pointer-events: none;
}

.back-to-top:hover {
    color: var(--color-black);
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.back-to-top:hover::after {
    height: 200%;
    border-radius: 0;
}

.back-to-top:hover::before {
    height: 200%;
    border-radius: 0;
}

.back-to-top:hover svg {
    stroke: var(--color-black);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.85rem;
}

/* ---------- 10. RESPONSIVE DESIGN (MEDIA QUERIES) ---------- */

/* Tablets, iPads y pantallas intermedias (<= 1024px) */
@media (max-width: 1024px) {
    :root {
        --header-height: 65px;
    }

    /* Ocultar navegación de escritorio y activar botón hamburguesa */
    .desktop-nav {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        max-width: 720px;
    }

    .about-description {
        margin: 0 auto 2rem;
        max-width: 600px;
    }

    .skills-row {
        justify-content: center;
        gap: 0.85rem;
    }

    .about-visual {
        order: -1;
        padding: 1rem 0;
    }

    .phone-device {
        max-width: min(290px, 80vw);
        margin: 0 auto;
    }

    .modeling-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .project-card-1 {
        grid-column: span 1;
        grid-row: span 2;
        height: 100%;
    }

    .project-card-1 .series-card-media {
        aspect-ratio: 9 / 16;
        width: 100%;
    }

    .project-card-2,
    .project-card-3,
    .project-card-4,
    .project-card-5 {
        grid-column: span 1;
        grid-row: auto;
    }

    .video-devices-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto;
        gap: 2.5rem;
    }

    .laptop-3d-scene,
    .reel-phone-scene {
        min-height: 340px;
        padding: 0.5rem 0 1.5rem;
    }

    .illustrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .card-item-1,
    .card-item-2,
    .card-item-4,
    .card-item-5,
    .card-item-6,
    .card-item-7 {
        grid-column: span 1;
    }

    .card-item-3,
    .card-item-8 {
        grid-column: span 2;
    }

    .card-item-1 .illustration-media,
    .card-item-2 .illustration-media,
    .card-item-5 .illustration-media,
    .card-item-6 .illustration-media,
    .card-item-6 .carousel-viewport,
    .card-item-6 .carousel-slide .video-wrapper,
    .card-item-7 .series-card-media {
        min-height: 420px;
    }

    .card-item-3 .illustration-media,
    .card-item-8 .illustration-media {
        min-height: 270px;
    }

    .card-item-4 .illustration-media {
        min-height: 330px;
    }

    .series-stage-viewport {
        max-height: 68vh;
    }

    .series-modal-close-btn,
    .lightbox-close-btn {
        top: 1.2rem;
        right: 1.2rem;
        width: 44px;
        height: 44px;
    }

    .series-stage-arrow {
        width: 48px;
        height: 48px;
    }

    .contact-grid {
        max-width: 780px;
        gap: 1.5rem;
    }
}

/* Teléfonos móviles (<= 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .portfolio-text {
        font-size: clamp(2.8rem, 12vw, 4.6rem);
    }

    .portfolio-back {
        top: 3px;
        left: -2px;
        -webkit-text-stroke: 2px var(--color-white);
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3.8vw, 1.35rem);
        letter-spacing: 0.12em;
        line-height: 1.25;
    }

    .hero-year {
        font-size: 1.25rem;
    }

    .hero-top-card {
        padding: 2.2rem 1rem 1.8rem;
    }

    .hero-bottom-bar {
        padding: 1.4rem 1rem 0.5rem;
    }

    .hero-author {
        font-size: clamp(1rem, 3.6vw, 1.4rem);
        letter-spacing: 0.16em;
    }

    .section-divider {
        height: clamp(75px, 11vw, 92px);
        padding: 0 1rem;
    }

    .divider-title {
        font-size: clamp(1.4rem, 5.2vw, 2.2rem);
        word-break: break-word;
    }

    .about-section {
        padding: 2.8rem 1rem;
    }

    .about-greet {
        font-size: clamp(2.2rem, 8vw, 3.6rem);
    }

    .about-title {
        font-size: clamp(2rem, 7.5vw, 3.4rem);
    }

    .about-description {
        font-size: clamp(0.92rem, 2.8vw, 1.05rem);
        line-height: 1.65;
        gap: 1rem;
        margin-bottom: 1.8rem;
    }

    .skills-row {
        gap: 0.65rem;
        justify-content: center;
    }

    .skill-badge {
        width: clamp(40px, 9vw, 48px);
        height: clamp(40px, 9vw, 48px);
    }

    .phone-device {
        width: min(265px, 78vw);
    }

    .modeling-container {
        padding: 2.2rem 1rem 3rem;
    }

    .modeling-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.25rem;
    }

    .project-card-1 {
        grid-column: span 1;
        grid-row: auto;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }

    .project-card-1 .series-card-media {
        aspect-ratio: 9 / 16;
        width: 100%;
        max-height: 520px;
    }

    .project-card-2,
    .project-card-3,
    .project-card-4,
    .project-card-5 {
        grid-column: span 1;
        grid-row: auto;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }

    .modeling-series-card .project-info {
        padding: 1.1rem 1.1rem 1.25rem;
    }

    /* Motion Graphics en móvil */
    .motion-section {
        overflow: hidden;
    }

    .motion-carousel-container {
        padding: 2.5rem 1rem 3rem;
    }

    .motion-stage-viewport {
        width: min(100%, 88%);
        aspect-ratio: 16 / 9;
    }

    .motion-slide.is-prev {
        transform: translate3d(-46%, 0, -60px) rotateY(12deg) scale(0.86);
        filter: blur(5px) brightness(0.88);
        -webkit-filter: blur(5px) brightness(0.88);
    }

    .motion-slide.is-next {
        transform: translate3d(46%, 0, -60px) rotateY(-12deg) scale(0.86);
        filter: blur(5px) brightness(0.88);
        -webkit-filter: blur(5px) brightness(0.88);
    }

    .motion-carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .motion-arrow-prev {
        left: 2px;
    }

    .motion-arrow-next {
        right: 2px;
    }

    .motion-carousel-footer {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.85rem;
        text-align: center;
        margin-top: 1.4rem;
        padding-top: 0;
    }

    /* Edición de Video en móvil */
    .video-editing-container {
        padding: 2.5rem 1rem 3.5rem;
    }

    .video-devices-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 2rem;
    }

    .device-card-wrapper {
        padding: 1.4rem 1.1rem 1.6rem;
        border-radius: 20px;
    }

    .laptop-3d-scene {
        min-height: 290px;
        padding: 0.4rem 0 1rem;
    }

    .reel-phone-scene {
        min-height: 320px;
        padding: 0.4rem 0 1rem;
    }

    .reel-phone-device {
        width: min(240px, 72vw);
    }

    .device-action-pill {
        padding: 0.6rem 1.25rem;
        font-size: 0.78rem;
    }

    /* Ilustraciones en móvil */
    .illustrations-container {
        padding: 2.2rem 1rem 3rem;
    }

    .illustrations-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-item-1,
    .card-item-2,
    .card-item-3,
    .card-item-4,
    .card-item-5,
    .card-item-6,
    .card-item-7,
    .card-item-8 {
        grid-column: span 1;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }

    .card-item-1 .illustration-media,
    .card-item-2 .illustration-media,
    .card-item-5 .illustration-media,
    .card-item-6 .illustration-media,
    .card-item-6 .carousel-viewport,
    .card-item-6 .carousel-slide .video-wrapper,
    .card-item-7 .series-card-media,
    .card-item-8 .illustration-media {
        min-height: 340px;
    }

    .card-item-3 .illustration-media {
        min-height: 200px;
    }

    .card-item-4 .illustration-media {
        min-height: 280px;
    }

    /* Trabajemos juntos en móvil */
    .contact-section {
        padding-bottom: clamp(50px, 8vw, 90px);
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-header {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .contact-desc {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
        gap: 1.4rem;
    }

    .contact-card {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        min-height: 46px;
    }

    /* Modales y Lightboxes en móvil */
    .series-modal-wrap {
        padding: 0.6rem;
        max-height: 98vh;
    }

    .series-stage-viewport {
        max-height: 60vh;
    }

    .series-modal-close-btn,
    .lightbox-close-btn {
        top: 0.6rem;
        right: 0.6rem;
        width: 40px;
        height: 40px;
        z-index: 30;
    }

    .series-stage-arrow {
        width: 40px;
        height: 40px;
    }

    .series-stage-arrow.series-stage-prev {
        left: 0.2rem;
    }

    .series-stage-arrow.series-stage-next {
        right: 0.2rem;
    }

    .series-modal-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding-top: 0.4rem;
    }

    .series-footer-controls {
        width: 100%;
        justify-content: space-between;
    }

    .series-footer-title {
        font-size: 1.15rem;
    }

    .lightbox-meta-bar {
        padding-top: 0.6rem;
    }

    .carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .carousel-arrow-prev {
        left: 0.6rem;
    }

    .carousel-arrow-next {
        right: 0.6rem;
    }

    .carousel-bottom-bar {
        bottom: 0.75rem;
        padding: 0 0.85rem;
    }

    .video-card,
    .video-card-1,
    .video-card-2,
    .video-card-3 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2.2rem 1rem;
    }
}

/* Teléfonos pequeños (<= 480px) */
@media (max-width: 480px) {
    .portfolio-text {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .hero-year {
        font-size: 1.15rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        letter-spacing: 0.08em;
    }

    .motion-stage-viewport {
        width: calc(100% - 24px);
    }

    .motion-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .motion-arrow-prev {
        left: -4px;
    }

    .motion-arrow-next {
        right: -4px;
    }

    .skill-badge {
        width: 42px;
        height: 42px;
    }

    .phone-device {
        width: min(240px, 75vw);
    }

    .laptop-device {
        max-width: 100%;
    }

    .device-action-pill {
        width: 100%;
        justify-content: center;
    }

    .illustration-action {
        font-size: 0.74rem;
        padding: 0.46rem 0.95rem;
    }
}
