/* ==================== ARBOTEK FONT ==================== */
@font-face {
    font-family: 'Arbotek';
    src: url('../fonts/Arbotek-LightRounded.woff2') format('woff2'),
         url('../fonts/Arbotek-LightRounded.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ==================== VARIABLES CSS ==================== */
:root {
    --bg-dark: #04030A;
    --bg-section: #080612;
    --purple-main: #392277;
    --purple-mid: #4D2E9E;
    --purple-light: #9873AF;
    --purple-lighter: #C4B5E8;
    --accent: #FFFFFF;
    --accent-dim: rgba(255, 255, 255, 0.75);
    --accent-glow: rgba(196, 181, 232, 0.4);
    --text-white: #FFFFFF;
    --text-muted: #A89EC4;
    --border-color: rgba(255, 255, 255, 0.08);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Dynamic viewport height — fixes mobile browser chrome shrinking/growing */
    height: -webkit-fill-available;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* iOS momentum scrolling */
    -webkit-overflow-scrolling: touch;
    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    /* Safe area for notch / Dynamic Island */
    padding-top: max(1rem, env(safe-area-inset-top));
    background: rgba(4, 3, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 181, 232, 0.12);
    transition: all var(--transition);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar.scrolled {
    padding: var(--spacing-sm) 0;
    background: rgba(4, 3, 10, 0.92);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    transition: transform var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-icon {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.logo-full-img {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-talk {
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    background: rgba(196, 181, 232, 0.12);
    color: var(--accent);
    border: 1px solid rgba(196, 181, 232, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 15px rgba(57, 34, 119, 0.2),
        inset 2px 2px 1px rgba(255, 255, 255, 0.25),
        inset -1px -1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.btn-talk::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.btn-talk:hover::after {
    left: 130%;
}

.btn-talk:hover {
    background: rgba(196, 181, 232, 0.22);
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 20px rgba(57, 34, 119, 0.35),
        inset 2px 2px 1px rgba(255, 255, 255, 0.35),
        inset -1px -1px 1px rgba(255, 255, 255, 0.15);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    /* Glass base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Spring transition */
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

/* Shine sweep on hover */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 1;
}

.btn:hover::after {
    left: 130%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
}

.btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 6px 20px rgba(57, 34, 119, 0.3),
        inset 2px 2px 1px rgba(255, 255, 255, 0.4),
        inset -1px -1px 1px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 12px 30px rgba(57, 34, 119, 0.5),
        inset 2px 2px 1px rgba(255, 255, 255, 0.5),
        inset -1px -1px 1px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(57, 34, 119, 0.2);
    color: var(--purple-lighter);
    border: 1px solid rgba(196, 181, 232, 0.25);
    box-shadow:
        0 6px 20px rgba(57, 34, 119, 0.2),
        inset 2px 2px 1px rgba(255, 255, 255, 0.15),
        inset -1px -1px 1px rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(57, 34, 119, 0.4);
    border-color: rgba(196, 181, 232, 0.5);
    box-shadow:
        0 12px 30px rgba(57, 34, 119, 0.4),
        inset 2px 2px 1px rgba(255, 255, 255, 0.25),
        inset -1px -1px 1px rgba(255, 255, 255, 0.12);
}

.btn-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 2px 2px 1px rgba(255, 255, 255, 0.4),
        inset -1px -1px 1px rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2),
        inset 2px 2px 1px rgba(255, 255, 255, 0.5),
        inset -1px -1px 1px rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 1px 1px 1px rgba(255, 255, 255, 0.25),
        inset -1px -1px 1px rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 2px 2px 1px rgba(255, 255, 255, 0.35),
        inset -1px -1px 1px rgba(255, 255, 255, 0.15);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport — accounts for mobile browser chrome */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #04030a;
}

/* Full-screen background image */
.hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            rgba(4,3,10,0.82) 0%,
            rgba(4,3,10,0.55) 45%,
            rgba(4,3,10,0.30) 100%),
        linear-gradient(to top,
            rgba(4,3,10,0.70) 0%,
            transparent 50%);
}

/* Liquid Metal Canvas (kept for texture) */
.liquid-metal-canvas {
    display: none;
}

/* Main body — flex:1 grows to fill space above services strip */
.hero-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 100px;
}

.hero-body-inner {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    gap: 2rem;
    padding-bottom: 3.5rem;
}

/* LEFT — title block, vertically centered */
.hero-title-block {
    align-self: center;
    min-width: 0;
    overflow: hidden;
}

.hero-intro {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Each line is a block that animates in */
.ht-line {
    display: block;
    opacity: 0;
    transform: translateY(32px);
    animation: htReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ht-line--1 {
    font-weight: 300;
    font-size: clamp(0.8rem, 1.4vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(255,255,255,0.42);
    margin-bottom: 0.6rem;
    animation-delay: 0.1s;
}

.ht-line--2 {
    font-weight: 900;
    font-size: clamp(5.5rem, 14vw, 11rem);
    letter-spacing: -0.04em;
    line-height: 1.0;
    padding-top: 0.05em;
    color: #ffffff;
    animation-delay: 0.28s;
}

.ht-line--3 {
    font-weight: 700;
    font-size: clamp(1.8rem, 3.8vw, 3.2rem);
    letter-spacing: 0.01em;
    font-style: italic;
    color: var(--purple-lighter);
    animation-delay: 0.54s;
}

@keyframes htReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RIGHT — quote block, vertically centered */
.hero-quote-block {
    align-self: center;
    padding-left: 2rem;
    border-left: 1px solid rgba(196,181,232,0.2);
}

.hero-quote-heading {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==================== HERO SERVICES STRIP ==================== */
.hero-services {
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 1.5rem 0;
    background: rgba(4,3,10,0.75);
    backdrop-filter: blur(16px);
}

.hero-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.hero-service-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0 2rem 0 0;
}

.hero-service-item + .hero-service-item {
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.hero-service-num {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--purple-light);
    letter-spacing: 0.06em;
}

.hero-service-name {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ==================== BLOBS DECORATIVOS ==================== */
.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--purple-main);
    top: 10%;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: var(--purple-light);
    top: 50%;
    right: 5%;
    animation: float 7s ease-in-out infinite 2s;
}

/* ==================== SECCIONES GENERALES ==================== */
.about,
.servicios {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-dark);
}

.servicios {
    background: var(--bg-section);
}

.section-title {
    font-family: 'Arbotek', 'Josefin Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== ABOUT SECTION ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--purple-lighter);
    margin-bottom: var(--spacing-xs);
}

.stat p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-shapes {
    position: relative;
    height: 400px;
}

.shape {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.shape-purple {
    width: 300px;
    height: 300px;
    background: var(--purple-light);
    opacity: 0.2;
    top: 50%;
    right: 0;
    animation: float 5s ease-in-out infinite;
}

.shape-yellow {
    width: 200px;
    height: 200px;
    background: var(--accent);
    opacity: 0.15;
    bottom: 0;
    right: 50px;
    animation: float 6s ease-in-out infinite 1s;
}

/* ==================== SERVICIOS BENTO ==================== */
.servicios-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    margin-top: var(--spacing-xl);
}

/* Posicionamiento bento — fila 1: wide+narrow / fila 2: tres iguales */
.sb-card:nth-child(1) { grid-column: span 2; }
.sb-card:nth-child(2) { grid-column: span 1; }
.sb-card:nth-child(3) { grid-column: span 1; }
.sb-card:nth-child(4) { grid-column: span 1; }
.sb-card:nth-child(5) { grid-column: span 1; }

.sb-card {
    position: relative;
    background: rgba(8, 5, 20, 0.78);
    border: 1px solid rgba(196, 181, 232, 0.11);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 24px 60px rgba(57, 34, 119, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.4s cubic-bezier(.22,.68,0,1.2),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

/* Glow edge inferior (inspirado en la referencia) */
.sb-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196,181,232,0.55), transparent);
    box-shadow: 0 0 18px 3px rgba(196,181,232,0.25);
    transition: opacity 0.4s ease;
}

.sb-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 181, 232, 0.28);
    box-shadow:
        0 36px 80px rgba(57, 34, 119, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Área visual SVG */
.sb-visual {
    flex: 0 0 auto;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.sb-visual--center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
}

.sb-visual svg {
    width: 100%;
    height: 100%;
}

.sb-visual--center svg {
    width: 160px;
    height: 160px;
}

/* Separador sutil */
.sb-card .sb-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196,181,232,0.1), transparent);
}

/* Área de texto */
.sb-content {
    padding: 1.4rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

/* Keyword grande (como "400%" en la referencia) */
.sb-kw {
    font-family: 'Arbotek', 'Josefin Sans', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1;
    background: linear-gradient(135deg, var(--purple-lighter), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.sb-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.sb-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==================== PORTAFOLIO ==================== */
.portafolio {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-section);
}

/* Portafolio Hero — cover de imagen tipo hero principal */
.portafolio-hero .hero-intro,
.portafolio-hero .hero-title,
.portafolio-hero .ht-line,
.portafolio-hero .hero-quote-heading,
.portafolio-hero .hero-subtitle {
    text-align: left;
}

.portafolio-hero {
    padding: 0;
    background: transparent;
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portafolio-hero .hero-bg-img {
    transform-origin: center center;
    will-change: transform;
    transition: none;
}

.portafolio-bg-overlay {
    background:
        linear-gradient(135deg, rgba(10,3,32,0.78) 0%, rgba(57,34,119,0.4) 55%, rgba(10,3,32,0.55) 100%),
        linear-gradient(to bottom, rgba(10,3,32,0.25) 0%, rgba(10,3,32,0.55) 100%) !important;
}

.filtros {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.filtro-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    cursor: pointer;
    position: relative;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        inset 1px 1px 1px rgba(255, 255, 255, 0.18),
        inset -1px -1px 1px rgba(255, 255, 255, 0.08);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.filtro-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.filtro-btn:hover::after {
    left: 130%;
}

.filtro-btn:hover,
.filtro-btn.active {
    background: rgba(196, 181, 232, 0.15);
    color: var(--text-white);
    border-color: rgba(196, 181, 232, 0.4);
    box-shadow:
        0 6px 18px rgba(57, 34, 119, 0.3),
        inset 2px 2px 1px rgba(255, 255, 255, 0.3),
        inset -1px -1px 1px rgba(255, 255, 255, 0.12);
    transform: scale(1.04);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 1;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-lg);
}

.badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--purple-lighter);
}

.portfolio-overlay p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.arrow {
    font-size: 1.5rem;
    color: var(--purple-lighter);
}

/* ==================== INSTAGRAM ==================== */
.instagram-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-section);
}

.instagram-container {
    margin: var(--spacing-xl) 0;
}

.lightwidget-widget {
    max-width: 100%;
}

/* ==================== CTA FINAL ==================== */
.cta-final {
    position: relative;
    padding: var(--spacing-2xl) 0;
    overflow: hidden;
    background: var(--bg-dark);
}

/* Glow de fondo sutil — igual que el about */
.cta-glow-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(57,34,119,0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Layout 2 columnas (espejo del about-grid) */
.cta-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* ---- Columna izquierda ---- */
.cta-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cta-hero-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0.1em;
}

.cht-md {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.cht-xl {
    font-family: "Poppins", sans-serif;
    font-size: clamp(3.5rem, 7.5vw, 6.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.cta-body {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 420px;
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* ---- Columna derecha: tarjetas ---- */
.cta-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    background: rgba(8, 5, 20, 0.78);
    border: 1px solid rgba(196,181,232,0.11);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 16px 40px rgba(57,34,119,0.28),
        inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196,181,232,0.5), transparent);
    box-shadow: 0 0 14px 2px rgba(196,181,232,0.2);
}

.cta-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196,181,232,0.28);
    box-shadow:
        0 28px 60px rgba(57,34,119,0.45),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.cta-card-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196,181,232,0.1);
    border: 1px solid rgba(196,181,232,0.14);
    border-radius: 10px;
    color: var(--purple-lighter);
}

.cta-card-icon svg {
    width: 18px;
    height: 18px;
}

.cta-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cta-card-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.cta-card-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: visible;
    word-break: break-all;
}

.cta-card-arrow {
    font-size: 0.85rem;
    color: var(--purple-lighter);
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.cta-card:hover .cta-card-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    /* Safe area bottom for home indicator */
    padding-bottom: max(var(--spacing-lg), env(safe-area-inset-bottom));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== RESPONSIVE ==================== */
/* ============================================================
   TABLET — 768px
   ============================================================ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .navbar-content { gap: var(--spacing-md); }

    /* Hero */
    .hero-body-inner { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
    .hero-quote-block { padding-left: 0; border-left: none; border-top: 1px solid rgba(196,181,232,0.15); padding-top: 1.5rem; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .hero-cta .btn { width: 100%; max-width: 300px; }
    .hero-services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }

    /* Sections */
    .section-title { font-size: 2.2rem; letter-spacing: 0.03em; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-shapes { display: none; }

    /* Servicios bento */
    .servicios-bento { grid-template-columns: 1fr 1fr; gap: 12px; }
    .sb-card:nth-child(1) { grid-column: span 2; }
    .sb-card:nth-child(2),
    .sb-card:nth-child(3),
    .sb-card:nth-child(4),
    .sb-card:nth-child(5) { grid-column: span 1; }

    /* About floating cards — hide all on tablet */
    .ath-float, .ath-float--a, .ath-float--b, .ath-float--c { display: none !important; }
    .about-typo-hero { min-height: 200px; padding-bottom: 1rem; }

    /* Founders */
    .founders-duo { gap: 10px; }
    .founder-card { transform: rotate(-1.5deg) translateY(-4px); }
    .founder-card--right { transform: rotate(1.5deg) translateY(8px); }

    /* CTA */
    .cta-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .cta-cards { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .cta-buttons { flex-direction: column; align-items: flex-start; }
    .cta-buttons .btn { width: 100%; max-width: 300px; }
}

/* ============================================================
   MOBILE — 480px
   ============================================================ */
@media (max-width: 480px) {

    /* ── GLOBAL ── */
    /* Horizontal safe area: sides for notched devices in landscape */
    .container {
        padding-left: max(1.1rem, env(safe-area-inset-left) + 0.8rem);
        padding-right: max(1.1rem, env(safe-area-inset-right) + 0.8rem);
    }

    /* ── NAVBAR ── */
    .logo-full-img { height: 36px; }
    /* Minimum 44px touch target on Hablemos button */
    .btn-talk {
        padding: 0.55rem 1.1rem;
        font-size: 0.8rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    /* Hamburger touch target */
    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ── HERO ── */
    .hero-title { font-size: clamp(2.4rem, 13vw, 4rem); letter-spacing: -0.01em; }
    .ht-line--1 { font-size: 0.6rem; letter-spacing: 0.28em; margin-bottom: 0.3rem; }
    .ht-line--2 { font-size: clamp(4rem, 20vw, 7rem); line-height: 0.92; }
    .ht-line--3 { font-size: clamp(1.5rem, 8vw, 2.8rem); }
    .hero-quote-heading { font-size: 1.1rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .hero-services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
    .hero-service-name { font-size: 0.72rem; }

    /* ── STATS ── */
    .stats-strip { padding: 2rem 0; }
    .stats-grid { gap: 0; justify-content: center; width: 100%; }
    .stat-item { padding: 0 1rem !important; flex: 1; }
    .stat-number {
        font-size: clamp(3rem, 14vw, 4.5rem) !important;
        letter-spacing: 0.02em;
    }
    .stat-item p { font-size: 0.72rem; line-height: 1.4; }
    .stat-divider { height: 56px; flex-shrink: 0; width: 1px; }

    /* ── REVEAL ANIMATIONS — disable on mobile so all elements show ── */
    .reveal-scale,
    .reveal,
    .reveal-left,
    .reveal-right,
    .anim-blur-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* ── SERVICIOS ── */
    .servicios { padding: 3rem 0; }
    .section-title { font-size: 1.8rem; letter-spacing: 0.04em; }
    .section-subtitle { font-size: 0.88rem; }
    .servicios-bento {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .sb-card:nth-child(1),
    .sb-card:nth-child(2),
    .sb-card:nth-child(3),
    .sb-card:nth-child(4),
    .sb-card:nth-child(5) { grid-column: span 1; }
    .sb-card { padding: 1.1rem; min-height: 0; }
    .sb-visual { min-height: 100px; height: 120px; }
    .sb-kw { font-size: 2rem; letter-spacing: 0.06em; }
    .sb-info h3 { font-size: 0.92rem; }
    .sb-info p { font-size: 0.78rem; }

    /* ── NOSOTROS ── */
    .about { padding: 3rem 0; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .aht-xs { font-size: 0.65rem; letter-spacing: 0.22em; }
    .aht-md { font-size: clamp(1.4rem, 7vw, 2.2rem); letter-spacing: 0.02em; }
    .aht-xl { font-size: clamp(2.6rem, 14vw, 4.5rem); letter-spacing: 0.02em; line-height: 1.0; overflow: visible; }
    .about-hero-title { overflow: visible; }
    .about-typo-hero { min-height: 0; padding-bottom: 0.5rem; overflow: visible; }
    .ath-float, .ath-float--a, .ath-float--b, .ath-float--c { display: none !important; }
    .about-body-text { font-size: 0.9rem; }

    /* Founders — stack vertical */
    .founders-duo {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
        width: 100% !important;
        transform: none !important;
        margin-bottom: 0 !important;
    }
    .founder-card,
    .founder-card--right {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }
    .founder-name { font-size: 1.8rem; }
    .founder-role { font-size: 0.7rem; letter-spacing: 0.18em; }

    /* Team CTA */
    .founders-team-cta { padding: 1.2rem; margin-top: 1.5rem; position: relative; z-index: 2; }
    .founders-team-title { font-size: 1.25rem; }
    .founders-team-sub { font-size: 0.82rem; }

    /* ── PORTAFOLIO HERO ── */
    .portafolio-hero {
        min-height: 52vh;
        min-height: 52dvh;
    }
    .portafolio-hero .hero-title { font-size: clamp(2rem, 10vw, 4rem); }
    .portafolio { padding: 2rem 0; }

    /* ── VIDEOS ── */
    .vid-section { padding: 2.5rem 0; }
    .local-vid-card { border-radius: var(--radius-md); }
    .lvc-info-overlay { padding: 1rem 1.2rem; }
    .lvc-title { font-size: clamp(1.4rem, 7vw, 2rem); }
    .lvc-desc { display: none; }
    .lvc-tags { gap: 0.35rem; margin-bottom: 0.5rem; }
    .lvc-tag { font-size: 0.65rem; padding: 3px 8px; }
    .lvc-play-btn { width: 60px; height: 60px; }

    .vid-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    /* reset span overrides — mobile is single column */
    .vid-card:nth-child(1),
    .vid-card:nth-child(4) { grid-column: span 1; }
    .vid-card { border-radius: var(--radius-md); }
    .vid-desc { font-size: 0.76rem; }
    .vid-title { font-size: 0.85rem; }
    .vid-stats-row { gap: 0.75rem; }

    /* ── GALERÍA ── */
    .foto-cats-section { padding: 2.5rem 0; }
    .foto-folder-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    /* 5th tab: rows 1-2 are 2x2, row 3 has card 5 centered */
    .foto-folder-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: calc(50% - 5px);
        justify-self: center;
    }
    .foto-folder-name { font-size: 0.75rem; }
    .foto-folder-count { font-size: 0.7rem; }
    .foto-folder-num { font-size: 0.72rem; }
    .foto-panel-title { font-size: 1.1rem; }
    .foto-collage--3col { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .foto-item:first-child { grid-column: span 2; }

    /* ── CTA ── */
    .cta-final { padding: 2.5rem 0; }
    .cta-layout { gap: 1.5rem; } /* reduce gap between left and right columns */
    .cta-left { gap: 1rem; } /* tighter internal spacing */
    .cht-md { font-size: clamp(1.5rem, 7vw, 2.5rem); }
    .cht-xl { font-size: clamp(2.8rem, 14vw, 5rem); line-height: 1.0; }
    .cta-body { font-size: 0.88rem; }
    .cta-cards {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .cta-card {
        padding: 0.9rem 1rem;
        min-height: 64px;
    }
    .cta-card-value {
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-word;
    }
    /* CTA buttons: 48px min height for comfortable tapping */
    .cta-buttons .btn,
    .hero-cta .btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ── FOOTER ── */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-section ul { align-items: center; }
    .footer-brand { align-items: center; display: flex; flex-direction: column; }
}

/* ============================================================
   LANDSCAPE MOBILE — safe areas when rotated
   ============================================================ */
@media (max-width: 900px) and (orientation: landscape) {
    .container {
        padding-left: max(1.25rem, env(safe-area-inset-left) + 1rem);
        padding-right: max(1.25rem, env(safe-area-inset-right) + 1rem);
    }
    .hero {
        min-height: 100dvh;
    }
    .navbar {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    .footer {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-bottom: max(var(--spacing-lg), env(safe-area-inset-bottom));
    }
}

/* ==================== TEXT GRADIENT ==================== */
.text-gradient {
    background: linear-gradient(135deg, var(--purple-lighter), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== HERO EXTRAS ==================== */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(4,3,10,0.25) 0%, rgba(4,3,10,0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196,181,232,0.08);
    border: 1px solid rgba(196,181,232,0.2);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--purple-light);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(152,115,175,0.7);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes shiny-sweep {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ==================== ANIM-BLUR-UP ==================== */
.anim-blur-up {
    opacity: 0;
    transform: translateY(24px);
    animation: blurUp 0.85s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes blurUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-blur-up[data-delay="0"]   { animation-delay: 0.1s; }
.anim-blur-up[data-delay="150"] { animation-delay: 0.25s; }
.anim-blur-up[data-delay="300"] { animation-delay: 0.4s;  }
.anim-blur-up[data-delay="450"] { animation-delay: 0.55s; }
.anim-blur-up[data-delay="600"] { animation-delay: 0.7s;  }

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(196,181,232,0.6));
    animation: scrollLine 2s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ==================== HERO SHOWCASE ==================== */
.hero-showcase {
    margin-top: 3rem;
    position: relative;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(57,34,119,0.45) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.showcase-frame {
    position: relative;
    z-index: 1;
    background: rgba(8,6,18,0.85);
    border: 1px solid rgba(196,181,232,0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.showcase-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(196,181,232,0.08);
}

.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }

.showcase-url {
    margin-left: 10px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    font-family: monospace;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 180px 180px;
    gap: 2px;
    background: rgba(0,0,0,0.4);
    padding: 2px;
}

.showcase-item {
    position: relative;
    overflow: hidden;
}

.showcase-item--tall  { grid-row: span 2; }
.showcase-item--wide  { grid-column: span 2; }

.showcase-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.55);
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 5;
}

/* ==================== SECTION LABEL ==================== */
.section-label {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--purple-lighter);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.75rem;
    display: block;
}

/* ==================== STATS STRIP ==================== */
.stats-strip {
    padding: 3rem 0;
    background: rgba(255,255,255,0.015);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 0 5rem;
}

.stat-number {
    font-family: 'Arbotek', 'Josefin Sans', sans-serif;
    font-size: clamp(4.5rem, 9vw, 7rem);
    font-weight: 300;
    color: var(--purple-lighter);
    line-height: 1;
    display: block;
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.stat-divider {
    width: 1px;
    height: 72px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* ==================== ABOUT TYPO HERO ==================== */
.about-typo-hero {
    position: relative;
    padding: 1rem 0 2.5rem;
    min-height: 300px;
}

.about-hero-title {
    margin: 0;
    line-height: 1;
}

.aht-md {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1;
}

.aht-xs {
    display: block;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0.3em 0 0.15em;
}

.aht-xl {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: clamp(3.8rem, 8.5vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* Tarjetas flotantes */
.ath-float {
    position: absolute;
    background: rgba(10, 6, 24, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(196, 181, 232, 0.14);
    border-radius: 11px;
    padding: 0.65rem 0.9rem;
    min-width: 170px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ath-float-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ath-float-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-white);
}

.ath-float-icon {
    font-size: 0.72rem;
    color: var(--purple-lighter);
    opacity: 0.9;
}

.ath-float-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ath-float-val {
    font-size: 0.65rem;
    color: var(--purple-lighter);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.ath-float--a {
    top: 0;
    right: 0;
    transform: rotate(2deg);
}

.ath-float--b {
    top: 46%;
    right: -8px;
    transform: rotate(-1.5deg);
}

.ath-float--c {
    bottom: 4px;
    left: 0;
    transform: rotate(1.5deg);
}

.about-body-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 480px;
}

/* ==================== FOUNDERS DUO ==================== */
.founders-duo {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    transform: scale(1.3);
    transform-origin: center top;
    margin-bottom: 18%;
}

.founder-card {
    position: relative;
    width: 52%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(196,181,232,0.18);
    box-shadow: 0 24px 60px rgba(57,34,119,0.5);
    transform: rotate(-3deg) translateY(-10px);
    transition: transform 0.4s cubic-bezier(.22,.68,0,1.2), box-shadow 0.4s ease, z-index 0s;
    cursor: pointer;
    text-decoration: none;
}

.founder-card--right {
    transform: rotate(3deg) translateY(18px);
}

.founder-card:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.03);
    box-shadow: 0 36px 90px rgba(57,34,119,0.7);
    z-index: 3;
}

.founder-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.founder-name-block {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.1rem 1.1rem;
    background: linear-gradient(to top, rgba(4,2,12,0.95) 0%, rgba(4,2,12,0.55) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.founder-name-block::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--purple-lighter, #c4b5e8);
    margin-bottom: 6px;
    opacity: 0.9;
}

.founder-name {
    font-family: 'Arbotek', 'Josefin Sans', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    line-height: 1;
    display: block;
}

.founder-role {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--purple-lighter, #c4b5e8);
    opacity: 0.8;
    display: block;
}

/* Instagram badge on founder card */
.founder-ig-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(10, 6, 24, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 181, 232, 0.2);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.founder-card:hover .founder-ig-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Team CTA block */
.founders-team-cta {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    background: rgba(57, 34, 119, 0.12);
    border: 1px solid rgba(196, 181, 232, 0.14);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.founders-team-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--purple-lighter);
    opacity: 0.7;
    margin-bottom: 0.4rem;
}

.founders-team-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.founders-team-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.2rem;
    max-width: 360px;
}

.founders-team-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.founders-ig-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid rgba(196, 181, 232, 0.3);
    color: var(--purple-lighter);
    background: rgba(196, 181, 232, 0.07);
}

.founders-ig-btn:hover {
    background: rgba(196, 181, 232, 0.18);
    border-color: rgba(196, 181, 232, 0.6);
    color: #fff;
    transform: translateY(-2px);
}

/* ==================== SERVICIO CARD EXTRAS ==================== */
.servicio-icon {
    width: 48px;
    height: 48px;
    background: rgba(57,34,119,0.35);
    border: 1px solid rgba(196,181,232,0.18);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.servicio-icon svg {
    width: 22px;
    height: 22px;
    color: var(--purple-lighter);
}

.servicio-arrow {
    margin-top: 1.25rem;
    color: var(--purple-lighter);
    font-size: 1.1rem;
    opacity: 0.55;
    transition: opacity var(--transition), transform var(--transition);
    display: block;
}

.servicio-card:hover .servicio-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ==================== PORTFOLIO GRID LAYOUT ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: var(--spacing-md);
}

.portfolio-item {
    height: auto;
}

.portfolio-item--featured {
    grid-row: span 2;
}

.portfolio-item--featured-right {
    grid-column: span 2;
}

/* ==================== PORTFOLIO ITEM EXTRAS ==================== */
/* Imágenes reales en el portfolio */
.portfolio-img--photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--bg-dark);
}

.portfolio-img--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img--photo img {
    transform: scale(1.07);
}

.portfolio-tech-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196,181,232,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,181,232,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
}

.portfolio-overlay-content { position: relative; }

.portfolio-cat {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--purple-lighter);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.4rem;
}

/* ==================== CTA EXTRAS ==================== */
.cta-badge {
    display: inline-block;
    background: rgba(196,181,232,0.1);
    border: 1px solid rgba(196,181,232,0.22);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 0.78rem;
    color: var(--purple-lighter);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.cta-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196,181,232,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,181,232,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.cta-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.cta-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
}

.cta-info-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-info-dot {
    width: 4px;
    height: 4px;
    background: rgba(196,181,232,0.3);
    border-radius: 50%;
}

/* ==================== FOOTER BRAND ==================== */
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

/* ==================== MOBILE MENU TOGGLE ==================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(4,3,10,0.96);
        backdrop-filter: blur(20px);
        padding: 2rem;
        /* Safe area sides for landscape notch */
        padding-left: max(2rem, env(safe-area-inset-left) + 1rem);
        padding-right: max(2rem, env(safe-area-inset-right) + 1rem);
        border-bottom: 1px solid var(--border-color);
        gap: var(--spacing-md);
        z-index: 100;
    }
    /* Each nav link: minimum 44px touch area */
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    top: env(safe-area-inset-top, 0px); /* below notch */
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #392277, #9873AF, #C4B5E8);
    z-index: 9999;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 6px rgba(196,181,232,0.5);
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ==================== PORTFOLIO MOCKUPS ==================== */
.portfolio-mockup {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

/* --- Video Editor --- */
.mk-editor {
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 10px;
}

.mk-screen {
    flex: 1;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(196,181,232,0.18);
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 14%;
    background: rgba(0,0,0,0.5);
    border-radius: 6px 6px 0 0;
}

.mk-screen::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 14%;
    background: rgba(0,0,0,0.5);
    border-radius: 0 0 6px 6px;
}

.mk-play-icon {
    width: 36px;
    height: 36px;
    background: rgba(196,181,232,0.12);
    border: 1.5px solid rgba(196,181,232,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mk-timecode {
    position: absolute;
    bottom: 18%;
    right: 10px;
    font-family: monospace;
    font-size: 0.52rem;
    color: rgba(196,181,232,0.7);
    background: rgba(0,0,0,0.6);
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 2;
}

.mk-timeline {
    height: 58px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(196,181,232,0.1);
    border-radius: 4px;
    padding: 5px 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.mk-tl-ruler {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.42rem;
    color: rgba(196,181,232,0.38);
    flex-shrink: 0;
}

.mk-track {
    height: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
}

.mk-track-audio { height: 7px; opacity: 0.7; }

.mk-clip {
    position: absolute;
    top: 0; height: 100%;
    background: linear-gradient(90deg, #392277, #7B5BBF);
    border-radius: 2px;
    border-left: 2px solid rgba(196,181,232,0.6);
}

.mk-clip-a {
    position: absolute;
    top: 0; height: 100%;
    background: linear-gradient(90deg, rgba(57,34,119,0.55), rgba(152,115,175,0.4));
    border-radius: 2px;
    border-left: 1.5px solid rgba(152,115,175,0.45);
}

.mk-playhead {
    position: absolute;
    top: 0; bottom: 0;
    width: 1.5px;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 0 4px rgba(255,255,255,0.3);
}

.mk-playhead::before {
    content: '';
    position: absolute;
    top: -2px; left: -4px;
    width: 9px; height: 5px;
    background: rgba(255,255,255,0.8);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* --- Photography --- */
.mk-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-viewfinder {
    position: absolute;
    inset: 18px;
}

.mk-vf-corner {
    position: absolute;
    width: 18px; height: 18px;
    border-color: rgba(196,181,232,0.7);
    border-style: solid;
}

.mk-vf-corner.tl { top: 0; left: 0;  border-width: 2px 0 0 2px; }
.mk-vf-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.mk-vf-corner.bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.mk-vf-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.mk-vf-grid {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(196,181,232,0.08);
}

.mk-vf-grid::before {
    content: '';
    position: absolute;
    top: 33.3%; bottom: 33.3%; left: 0; right: 0;
    border-top: 1px solid rgba(196,181,232,0.1);
    border-bottom: 1px solid rgba(196,181,232,0.1);
}

.mk-vf-grid::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 33.3%; right: 33.3%;
    border-left: 1px solid rgba(196,181,232,0.1);
    border-right: 1px solid rgba(196,181,232,0.1);
}

.mk-focus-point {
    width: 22px; height: 22px;
    border: 1.5px solid rgba(196,181,232,0.8);
    border-radius: 2px;
    position: relative;
}

.mk-focus-point::before {
    content: '';
    position: absolute;
    top: 50%; left: -9px; right: -9px;
    height: 1px;
    background: rgba(196,181,232,0.7);
    transform: translateY(-50%);
}

.mk-focus-point::after {
    content: '';
    position: absolute;
    left: 50%; top: -9px; bottom: -9px;
    width: 1px;
    background: rgba(196,181,232,0.7);
    transform: translateX(-50%);
}

.mk-photo-meta {
    position: absolute;
    bottom: 12px; left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.mk-meta-item {
    font-family: monospace;
    font-size: 0.48rem;
    color: rgba(196,181,232,0.7);
    background: rgba(0,0,0,0.55);
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* --- Documentary --- */
.mk-documentary {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mk-letterbox-top, .mk-letterbox-bottom {
    position: absolute;
    left: 0; right: 0;
    height: 17%;
    background: rgba(0,0,0,0.88);
    z-index: 2;
}

.mk-letterbox-top    { top: 0; }
.mk-letterbox-bottom { bottom: 0; }

.mk-film-strip-left, .mk-film-strip-right {
    position: absolute;
    top: 17%; bottom: 17%;
    width: 17px;
    background: rgba(0,0,0,0.55);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
}

.mk-film-strip-left  { left: 0; }
.mk-film-strip-right { right: 0; }

.mk-sprocket {
    width: 7px; height: 5px;
    background: rgba(196,181,232,0.18);
    border-radius: 1px;
}

.mk-doc-title {
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    text-align: center;
    z-index: 3;
    padding: 0 24px;
}

.mk-doc-title-text {
    font-family: "Josefin Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.mk-doc-subtitle-text {
    font-size: 0.48rem;
    color: rgba(196,181,232,0.6);
    letter-spacing: 2px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* --- Social Reel --- */
.mk-reel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-phone {
    width: 66px; height: 118px;
    border: 2px solid rgba(196,181,232,0.5);
    border-radius: 14px;
    position: relative;
    background: rgba(0,0,0,0.4);
    overflow: hidden;
    box-shadow: 0 0 18px rgba(196,181,232,0.15), 0 8px 24px rgba(0,0,0,0.4);
}

.mk-phone::before {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 3px;
    background: rgba(196,181,232,0.35);
    border-radius: 2px;
    z-index: 2;
}

.mk-phone-screen {
    position: absolute;
    inset: 3px;
    border-radius: 11px;
    background: linear-gradient(160deg, #150530 0%, #4D2E9E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-phone-play {
    width: 22px; height: 22px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-phone-play::after {
    content: '';
    width: 0; height: 0;
    border-left: 7px solid rgba(255,255,255,0.8);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

.mk-reel-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mk-reel-icon {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    text-align: center;
    line-height: 1;
}

.mk-reel-count {
    font-size: 0.4rem;
    color: rgba(196,181,232,0.6);
    display: block;
    margin-top: 2px;
}

/* --- Product Photography --- */
.mk-product {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
}

.mk-studio-light-left, .mk-studio-light-right {
    position: absolute;
    top: 10%;
    width: 65px; height: 130px;
    border-radius: 50%;
}

.mk-studio-light-left  { left: -10px;  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%); }
.mk-studio-light-right { right: -10px; background: radial-gradient(ellipse, rgba(196,181,232,0.16) 0%, transparent 70%); }

.mk-product-pedestal {
    position: relative;
    width: 78px; height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-product-ring {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
}

.mk-ring-1 { width: 78px; height: 78px; border-width: 1px; border-color: rgba(196,181,232,0.12); }
.mk-ring-2 { width: 54px; height: 54px; border-width: 1px; border-color: rgba(196,181,232,0.22); }
.mk-ring-3 { width: 32px; height: 32px; border-width: 1px; border-color: rgba(196,181,232,0.4); background: rgba(196,181,232,0.06); }

.mk-product-dot {
    width: 8px; height: 8px;
    background: rgba(196,181,232,0.8);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(196,181,232,0.5);
    z-index: 1;
}

.mk-product-shadow {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    width: 52px; height: 7px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    filter: blur(5px);
}

.mk-product-specs {
    position: absolute;
    bottom: 14px; left: 0; right: 0;
    text-align: center;
}

/* --- Event Trailer --- */
.mk-event {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-event-bars-top, .mk-event-bars-bottom {
    position: absolute;
    left: 0; right: 0;
    height: 13%;
    background: rgba(0,0,0,0.85);
    z-index: 2;
}

.mk-event-bars-top    { top: 0; }
.mk-event-bars-bottom { bottom: 0; }

.mk-event-badge {
    position: absolute;
    top: 20%; left: 50%;
    transform: translateX(-50%);
    background: rgba(57,34,119,0.55);
    border: 1px solid rgba(196,181,232,0.4);
    border-radius: 3px;
    padding: 2px 10px;
    font-size: 0.42rem;
    color: rgba(196,181,232,0.9);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    z-index: 3;
    white-space: nowrap;
}

.mk-event-title-main {
    font-family: "Josefin Sans", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(196,181,232,0.35);
    position: relative;
    z-index: 3;
}

.mk-event-play {
    position: absolute;
    bottom: 30%; left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 32px;
    background: rgba(196,181,232,0.12);
    border: 1.5px solid rgba(196,181,232,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.mk-event-play::after {
    content: '';
    width: 0; height: 0;
    border-left: 9px solid rgba(255,255,255,0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 3px;
}

.mk-event-subtitle {
    position: absolute;
    bottom: 20%; left: 0; right: 0;
    text-align: center;
    font-size: 0.45rem;
    color: rgba(196,181,232,0.6);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    z-index: 3;
}

/* ==================== SHOWCASE MINI MOCKUPS ==================== */
.sk-mini {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.sk-timeline {
    width: 85%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sk-tl-row {
    height: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.sk-tl-clip {
    position: absolute;
    top: 0; height: 100%;
    background: linear-gradient(90deg, #392277, #9873AF);
    border-radius: 2px;
}

.sk-vf {
    position: absolute;
    inset: 14px;
}

.sk-vf-c {
    position: absolute;
    width: 14px; height: 14px;
    border-color: rgba(196,181,232,0.65);
    border-style: solid;
}

.sk-vf-c.tl { top: 0; left: 0;  border-width: 2px 0 0 2px; }
.sk-vf-c.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.sk-vf-c.bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.sk-vf-c.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.sk-fp {
    width: 14px; height: 14px;
    border: 1.5px solid rgba(196,181,232,0.8);
    border-radius: 2px;
    position: relative;
}

.sk-fp::before {
    content: '';
    position: absolute;
    top: 50%; left: -6px; right: -6px;
    height: 1px;
    background: rgba(196,181,232,0.7);
    transform: translateY(-50%);
}

.sk-fp::after {
    content: '';
    position: absolute;
    left: 50%; top: -6px; bottom: -6px;
    width: 1px;
    background: rgba(196,181,232,0.7);
    transform: translateX(-50%);
}

.sk-film {
    position: absolute;
    inset: 0;
}

.sk-lb-top, .sk-lb-bot {
    position: absolute;
    left: 0; right: 0;
    height: 20%;
    background: rgba(0,0,0,0.8);
}

.sk-lb-top { top: 0; }
.sk-lb-bot { bottom: 0; }

.sk-film-text {
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    text-align: center;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 3;
}

.sk-phones {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sk-phone {
    width: 32px; height: 56px;
    border: 1.5px solid rgba(196,181,232,0.45);
    border-radius: 7px;
    background: linear-gradient(160deg, #150530, #4D2E9E);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sk-phone::before {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 2px;
    background: rgba(196,181,232,0.3);
    border-radius: 2px;
}

.sk-phone-play {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sk-phone-play::after {
    content: '';
    width: 0; height: 0;
    border-left: 4px solid rgba(255,255,255,0.75);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    margin-left: 1px;
}
/* ==================== COLLAGE GALERÍA ==================== */
.galeria-section {
    padding: var(--spacing-xxl) 0 0;
    overflow: hidden;
}

/* Masonry con columnas CSS — fotos a proporción natural, sin fondo */
.collage-grid {
    columns: 4;
    column-gap: 6px;
    padding: 2rem 0;
}

.collage-item {
    break-inside: avoid;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: zoom-in;
    display: block;
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.7s ease;
    z-index: 1;
    opacity: 0;
}

.collage-item.collage-visible {
    opacity: 1;
}

/* Algunos ítems más anchos ocupan 2 columnas */
.collage-wide,
.collage-featured,
.collage-featured-sm {
    column-span: none; /* columnas CSS no soportan span; usamos break */
}

.collage-item:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 50px rgba(57, 34, 119, 0.55);
    z-index: 10;
}

.collage-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.4s ease;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0px));
}

.collage-item:hover img {
    filter: brightness(0.72);
    transform: scale(1.06) translateY(var(--parallax-y, 0px));
}

/* Overlay */
.collage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,3,32,0.85) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.collage-item:hover .collage-overlay {
    opacity: 1;
}

.collage-overlay span {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-lighter);
}

/* Tilt via JS */
.collage-item[data-tilt] { transform-style: preserve-3d; }

/* Responsive */
@media (max-width: 1024px) {
    .collage-grid { columns: 3; }
}
@media (max-width: 640px) {
    .collage-grid { columns: 2; column-gap: 4px; }
    .collage-item { margin-bottom: 4px; }
}

/* Logo sin fondo — asegurar visibilidad */
.logo-icon, .about-logo-icon, .logo-img {
    filter: brightness(0) invert(1);
    mix-blend-mode: normal;
}

/* ==================== LIGHTBOX ==================== */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 2, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox.active {
    display: flex;
    animation: lb-in 0.25s ease;
}

@keyframes lb-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.8);
    animation: lb-zoom 0.3s cubic-bezier(0.34,1.56,0.64,1);
    cursor: default;
}

@keyframes lb-zoom {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

#lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    background: none;
    border: none;
    z-index: 10000;
}

#lightbox-close:hover {
    color: #fff;
    transform: scale(1.2) rotate(90deg);
}

#lightbox-prev, #lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 1.2rem;
    transition: color 0.2s, transform 0.2s;
    z-index: 10000;
    user-select: none;
}

#lightbox-prev { left: 0.5rem; }
#lightbox-next { right: 0.5rem; }

#lightbox-prev:hover, #lightbox-next:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.2);
}

/* ==================== ACORDEÓN FOTOGRÁFICO ==================== */
.acordeon-section {
    padding: var(--spacing-xxl) 0 0;
}

.acordeon {
    display: flex;
    height: 520px;
    gap: 4px;
    margin-top: 2.5rem;
    overflow: hidden;
}

.acord-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.acord-item.active {
    flex: 5;
}

.acord-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    pointer-events: none;
}

.acord-item:not(.active) img {
    filter: brightness(0.35) saturate(0.4);
    transform: scale(1.1);
}

.acord-item.active img {
    filter: brightness(1) saturate(1);
    transform: scale(1);
}

/* Número */
.acord-label {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.acord-item.active .acord-label {
    opacity: 0;
}

.acord-label span {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.45);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Gradiente inferior en el activo */
.acord-item.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,2,18,0.5) 0%, transparent 40%);
    pointer-events: none;
}

/* Hover en los no-activos */
.acord-item:not(.active):hover img {
    filter: brightness(0.6) saturate(0.7);
}

@media (max-width: 768px) {
    .acordeon {
        height: 300px;
    }
}

/* Acordeón oculto por defecto, visible solo con filtro Fotografía */
.acordeon-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s cubic-bezier(0.4,0,0.2,1), opacity 0.5s ease, padding 0.5s ease;
    padding-top: 0 !important;
}

.acordeon-section.visible {
    max-height: 900px;
    opacity: 1;
    padding-top: var(--spacing-xxl) !important;
}

/* ==================== GALERÍA CATEGORÍAS ==================== */
.foto-cats-section {
    padding: var(--spacing-2xl) 0 var(--spacing-2xl);
    background: var(--bg-section);
    overflow: hidden;
}

/* --- Folder Cards Grid --- */
.foto-folder-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.foto-folder-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    cursor: pointer;
    border-radius: 3px;
    background: #0d0d0d;
    border: none;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.foto-folder-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    filter: grayscale(30%) brightness(0.65);
}

.foto-folder-card:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(0.8);
}

.foto-folder-card.active img {
    filter: grayscale(0%) brightness(0.75);
    transform: scale(1.02);
}

.foto-folder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.02) 35%,
        rgba(0,0,0,0.72) 100%
    );
    pointer-events: none;
}

.foto-folder-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0.9rem;
    pointer-events: none;
}

.foto-folder-num {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.38);
    font-weight: 600;
    transition: color 0.3s;
}

.foto-folder-card.active .foto-folder-num,
.foto-folder-card:hover .foto-folder-num {
    color: rgba(196,181,232,0.85);
}

.foto-folder-bottom {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.foto-folder-name {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

.foto-folder-count {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.06em;
    font-family: 'Poppins', sans-serif;
}

.foto-folder-card.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--purple-light);
}

@media (max-width: 1024px) {
    .foto-folder-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .foto-folder-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .foto-folder-name { font-size: 0.95rem; }
}

/* --- Panels --- */
.foto-panels {
    position: relative;
}

.foto-panel {
    display: none;
}

.foto-panel.active {
    display: block;
    animation: fotoPanelIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fotoPanelIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Panel header --- */
.foto-panel-head {
    padding: 0 0 var(--spacing-md);
}

.foto-panel-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.foto-panel-num {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(196, 181, 232, 0.25);
    letter-spacing: -0.02em;
    user-select: none;
}

.foto-panel-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purple-lighter);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.foto-panel-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Collage grid — editorial tight grid, object-fit cover --- */
.foto-collage {
    display: grid;
    gap: 3px;
    padding: 0;
}

.foto-collage--3col { grid-template-columns: repeat(3, 1fr); }
.foto-collage--2col { grid-template-columns: repeat(2, 1fr); }

.foto-item {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    background: #0a0817;
    aspect-ratio: 3 / 4;
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
                filter 0.4s ease;
}

/* Orphan item alone starting a new row → stretch full width */
.foto-collage--3col .foto-item:last-child:nth-child(3n + 1) {
    grid-column: span 3;
    aspect-ratio: 16 / 7;
}

/* Orphan item as second in final row → stretch remaining 2 cols */
.foto-collage--3col .foto-item:last-child:nth-child(3n + 2) {
    grid-column: span 2;
    aspect-ratio: 8 / 5;
}

.foto-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.68);
}

.foto-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 10, 54, 0.72) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.75rem;
}

.foto-item:hover .foto-item-overlay { opacity: 1; }

.foto-zoom-icon {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .foto-collage--3col { grid-template-columns: repeat(2, 1fr); }
    .foto-collage--3col .foto-item:last-child:nth-child(3n + 1) {
        grid-column: span 2;
        aspect-ratio: 16 / 7;
    }
}
@media (max-width: 640px) {
    .foto-collage--3col,
    .foto-collage--2col { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .foto-panel-num { font-size: 2.5rem; }
}
@media (max-width: 400px) {
    .foto-collage--3col,
    .foto-collage--2col { grid-template-columns: 1fr; }
    .foto-collage--3col .foto-item:last-child:nth-child(3n + 1),
    .foto-collage--3col .foto-item:last-child:nth-child(3n + 2) {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }
}

/* ==================== LIGHTBOX FOTOGRAFÍA ==================== */
.foto-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4, 3, 10, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.foto-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.foto-lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 160px);
    max-height: calc(100vh - 80px);
}

.foto-lightbox-img-wrap img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 6px;
    animation: lbImgIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    display: block;
}

@keyframes lbImgIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.foto-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 2;
}

.foto-lightbox-close:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.25);
}

.foto-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 2;
}

.foto-lightbox-nav:hover {
    background: rgba(57, 34, 119, 0.55);
    border-color: var(--purple-light);
}

.foto-lightbox-prev { left: 1.25rem; }
.foto-lightbox-next { right: 1.25rem; }

.foto-lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .foto-lightbox-img-wrap {
        max-width: calc(100vw - 24px);
    }
    .foto-lightbox-nav { display: none; }
}

/* ==================== VIDEO PORTAFOLIO ==================== */
/* ==================== LOCAL VIDEO CARD — DOOM FEST ==================== */
.local-vid-card {
    position: relative;
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(196,181,232,0.12);
}

.lvc-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
}

.lvc-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.lvc-thumb-wrap:hover .lvc-thumb-img {
    transform: scale(1.03);
}

.lvc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(4,3,10,0.95) 0%,
        rgba(4,3,10,0.55) 45%,
        rgba(4,3,10,0.15) 100%
    );
}

.lvc-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 3;
}

.lvc-play-btn:hover {
    background: rgba(196,181,232,0.25);
    border-color: rgba(196,181,232,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.lvc-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(10,6,24,0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(196,181,232,0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-lighter);
    z-index: 3;
}

.lvc-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-lighter);
    animation: recPulse 1.5s ease-in-out infinite;
}

.lvc-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.5rem;
    z-index: 3;
}

.lvc-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.lvc-tag {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--purple-lighter);
    background: rgba(196,181,232,0.1);
    border: 1px solid rgba(196,181,232,0.22);
    border-radius: 4px;
    padding: 3px 9px;
}

.lvc-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.lvc-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    max-width: 640px;
}

.lvc-video {
    display: none;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
    outline: none;
}

/* ==================== VID SECTION ==================== */
.vid-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.vid-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 3rem;
}

/* Alternating featured layout */
.vid-card:nth-child(1),
.vid-card:nth-child(4) {
    grid-column: span 2;
}

.vid-card {
    background: #0d0b1a;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.vid-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-mid), var(--purple-light), transparent);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.vid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 64px rgba(57,34,119,0.55);
}

.vid-card:hover::before { opacity: 1; }

/* Thumbnail */
.vid-thumb-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #06040f;
    flex-shrink: 0;
}

.vid-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.22,1,0.36,1),
                filter 0.4s ease;
    filter: brightness(0.85);
}

.vid-card:hover .vid-thumb-img {
    transform: scale(1.05);
    filter: brightness(0.55);
}

/* Play overlay */
.vid-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: rgba(0,0,0,0.12);
}

.vid-card:hover .vid-play-overlay { opacity: 1; }

.vid-play-btn {
    width: 72px;
    height: 72px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(255,0,0,0.45), 0 0 100px rgba(255,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    padding-left: 5px;
}

.vid-card:hover .vid-play-btn { transform: scale(1.12); }

/* Inline iframe player */
.vid-thumb-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Always show play button on touch devices */
@media (hover: none) {
    .vid-play-overlay { opacity: 1; background: rgba(0,0,0,0.18); }
}

/* YT badge */
.vid-yt-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 4px;
    padding: 4px 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.82);
    text-transform: uppercase;
    pointer-events: none;
}

/* Info */
.vid-info {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vid-channel-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.vid-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--purple-main);
    flex-shrink: 0;
    display: none;
}
.vid-avatar.loaded { display: block; }

.vid-channel-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--purple-lighter);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vid-channel-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    flex-shrink: 0;
}

.vid-channel-link:hover { color: var(--purple-lighter); }

.vid-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.45;
}

.vid-desc {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    margin-top: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(196,181,232,0.06);
    border: 1px solid rgba(196,181,232,0.14);
    border-radius: 8px;
    position: relative;
}

.vid-stats-row {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.vid-stat {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.vid-stat svg {
    color: var(--purple-light);
    flex-shrink: 0;
    position: relative;
    top: 2px;
}

.vid-stat span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1;
}

.vid-stat em {
    font-style: normal;
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 900px) {
    .vid-card:nth-child(1),
    .vid-card:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 600px) {
    .vid-grid { grid-template-columns: 1fr; gap: 10px; }
    .vid-card:nth-child(1),
    .vid-card:nth-child(4) { grid-column: span 1; }
}

/* ==================== VIDEO FILTER TABS ==================== */
.vid-filter-tabs {
    display: flex;
    gap: 0.45rem;
    margin: 2rem 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.vid-filter-tabs::-webkit-scrollbar { display: none; }

.vid-filter-btn {
    flex-shrink: 0;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.46);
    font-family: 'Poppins', sans-serif;
    font-size: 0.77rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.vid-filter-btn:hover {
    border-color: rgba(196,181,232,0.32);
    color: rgba(255,255,255,0.78);
    background: rgba(196,181,232,0.05);
}
.vid-filter-btn.active {
    border-color: rgba(196,181,232,0.65);
    background: rgba(196,181,232,0.1);
    color: #c4b5e8;
}

.vid-cat-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.17rem 0.48rem;
    border-radius: 3px;
    margin-bottom: 0.45rem;
}
.vid-cat-badge.cat-eventos     { background: rgba(255,130,70,0.12);  color: #ff9060; }
.vid-cat-badge.cat-produccion  { background: rgba(70,180,255,0.12);  color: #56c8ff; }
.vid-cat-badge.cat-gamer       { background: rgba(100,255,140,0.11); color: #72f090; }
.vid-cat-badge.cat-empresarial { background: rgba(196,181,232,0.12); color: #c4b5e8; }

.vid-card.vid-hidden,
.local-vid-card.vid-hidden { display: none; }

.vid-grid--filtered .vid-card:nth-child(1),
.vid-grid--filtered .vid-card:nth-child(4) { grid-column: span 1; }

/* ==================== VIDEO CAROUSELS ==================== */

.vid-carousels {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.vid-carousel-section { position: relative; }

.vid-carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.vid-carousel-meta { flex: 1; }

.vid-carousel-num {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 0.6rem;
}

.vid-carousel-title {
    font-family: 'Arbotek', 'Josefin Sans', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.025em;
    margin: 0 0 0.8rem;
}

.vid-carousel-title .line-w {
    display: block;
    color: #ffffff;
}

.vid-carousel-title .line-p {
    display: block;
    color: #c4b5e8;
}

.vid-carousel-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
    letter-spacing: 0.01em;
}

.vid-carousel-arrows {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-self: flex-end;
    padding-bottom: 0.2rem;
}

.crs-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.22s, color 0.22s, background 0.22s;
    flex-shrink: 0;
}

.crs-arrow:hover {
    border-color: rgba(196,181,232,0.5);
    color: #c4b5e8;
    background: rgba(196,181,232,0.08);
}

.vid-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.vid-carousel-track::-webkit-scrollbar { display: none; }

.vid-carousel-track .vid-card {
    flex-shrink: 0;
    width: min(380px, 82vw);
    scroll-snap-align: start;
    /* Reset grid featured spans */
    grid-column: unset !important;
}

/* Local video card in carousel */
.vid-local-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #06040f;
    flex-shrink: 0;
    cursor: pointer;
}

.vid-local-thumb .vid-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 0.65s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
}

.vid-card--local:hover .vid-local-thumb .vid-thumb-img {
    transform: scale(1.05);
    filter: brightness(0.55);
}

.vid-card--local:hover .vid-play-overlay { opacity: 1; }

.vid-card--local .vid-local-player {
    display: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    flex-shrink: 0;
}

.vid-card--local.playing .vid-local-thumb { display: none; }
.vid-card--local.playing .vid-local-player { display: block; }

/* Divider between carousel sections */
.vid-carousel-section + .vid-carousel-section {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 4rem;
}

/* Reduce gap on parent to match */
.vid-carousels {
    gap: 0;
}

@media (max-width: 600px) {
    .vid-carousels { gap: 3rem; }
    .vid-carousel-title { font-size: clamp(2.2rem, 11vw, 3.5rem); }
    .vid-carousel-track .vid-card { width: min(320px, 88vw); }
    .vid-carousel-header { margin-bottom: 1.25rem; }
    .crs-arrow { width: 40px; height: 40px; }
    .vid-carousel-section + .vid-carousel-section {
        padding-top: 3rem;
        margin-top: -3rem;
    }
}

/* ==================== SERVICIOS BENTO — MK VISUALS ==================== */

/* ---- Keyframe animations ---- */
@keyframes recPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px 2px rgba(255,60,60,0.7); }
    50%       { opacity: 0.2; box-shadow: none; }
}

@keyframes irisRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

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

/* ---- Card 1: Grabación ---- */
.mk-grabacion {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem 0.4rem;
    gap: 6px;
}

.mk-rec-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,40,40,0.07);
    border: 1px solid rgba(255,60,60,0.18);
    border-radius: 5px;
    padding: 4px 10px;
    width: 100%;
    font-family: monospace;
}

.mk-rec-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff3c3c;
    animation: recPulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.mk-rec-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff5555;
    letter-spacing: 0.12em;
}

.mk-rec-tc {
    font-size: 0.76rem;
    color: rgba(196,181,232,0.7);
    letter-spacing: 0.06em;
    flex: 1;
    text-align: right;
}

.mk-rec-fmt {
    font-size: 0.7rem;
    color: rgba(196,181,232,0.45);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.mk-lens-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.mk-waveform-row {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
    width: 100%;
    padding: 0 4px;
}

.mk-wv-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(196,181,232,0.6), rgba(196,181,232,0.2));
    border-radius: 2px 2px 0 0;
    animation: wvPulse 2.4s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.12s);
}

/* ---- Card 2: Fotografía ---- */
.mk-foto-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mk-iris-svg g {
    animation: irisRotate 8s linear infinite;
    transform-origin: 60px 60px;
}

.mk-expo-strip {
    display: flex;
    gap: 10px;
    font-family: monospace;
    font-size: 0.82rem;
    color: rgba(196,181,232,0.65);
    letter-spacing: 0.06em;
}

.mk-expo-strip span:nth-child(3) {
    color: rgba(196,181,232,0.95);
    font-weight: 700;
}

/* ---- Card 3: Edición ---- */
.mk-edit-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
}

.mk-cw-row {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.mk-cwheel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mk-cwheel span {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem;
    color: rgba(196,181,232,0.5);
    letter-spacing: 0.05em;
}

.mk-cw-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    position: relative;
}

.mk-cw-s {
    background: conic-gradient(
        #0a0022 0%, #1a0055 20%, #4400aa 50%, #8822ff 75%, #0a0022 100%
    );
    border-color: rgba(196,181,232,0.18);
}

.mk-cw-m {
    background: conic-gradient(
        #1a0044 0%, #552299 30%, #aa55ff 60%, #ccaaff 80%, #1a0044 100%
    );
    border-color: rgba(196,181,232,0.22);
}

.mk-cw-h {
    background: conic-gradient(
        #6633cc 0%, #cc99ff 30%, #ffffff 60%, #cc99ff 80%, #6633cc 100%
    );
    border-color: rgba(196,181,232,0.3);
}

/* ---- Card 4: Motion Graphic ---- */
.mk-motion-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0.75rem 0.85rem 0.5rem;
    gap: 6px;
}

.mk-mo-layers {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.mk-mo-layer {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 18px;
}

.mk-mo-lname {
    font-family: monospace;
    font-size: 0.68rem;
    color: rgba(196,181,232,0.55);
    letter-spacing: 0.04em;
    width: 52px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-mo-track {
    flex: 1;
    height: 4px;
    background: rgba(196,181,232,0.06);
    border-radius: 2px;
    position: relative;
}

.mk-mo-kf {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 7px;
    height: 7px;
    background: rgba(196,181,232,0.85);
    border: 1px solid rgba(196,181,232,0.5);
}

/* ---- Card 5: Diseño Gráfico ---- */
.mk-diseno-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
}

.mk-palette-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mk-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mk-swatch-add {
    background: transparent;
    border: 1.5px dashed rgba(196,181,232,0.35);
    color: rgba(196,181,232,0.45);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
