/* =========================================
           DESIGN TOKENS
           ========================================= */
:root {
    --bg: #f1f4ff;
    --ink: #2e2e2e;
    --accent: #e92b61;
    --muted: rgba(46, 46, 46, 0.6);
    --white: #ffffff;

    --border-w: 3px;
    --border-w-thick: 6px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 999px;

    --shadow-brutal: 8px 8px 0 var(--ink);
    --shadow-brutal-sm: 4px 4px 0 var(--ink);
    --shadow-brutal-lg: 12px 12px 0 var(--ink);
    --shadow-accent: 8px 8px 0 var(--accent);

    --nav-h: 110px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --t-fast: 0.2s;
    --t-med: 0.4s;
    --t-slow: 0.8s;

    --container: 1400px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Chillax', sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    max-width: 2000px;
    margin: 0 auto;
}

body.custom-cursor-active {
    cursor: none;
}


@media (hover: none) {
    #custom-cursor {
        display: none !important;
    }

    body.custom-cursor-active {
        cursor: auto !important;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--t-med) var(--ease);
}

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

::selection {
    background: var(--accent);
    color: var(--white);
}

/* =========================================
           BACKGROUND SPHERE
           ========================================= */
.bg-sphere {
    position: fixed;
    top: 0;
    left: 0;
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
    background: var(--accent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.5s ease;
}

.bg-sphere.visible {
    opacity: 1;
}

/* =========================================
           CONTAINER
           ========================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

@media (min-width: 1800px) {
    :root {
        --container: 1600px;
    }

    body {
        font-size: 22px;
        /* Slightly larger for far viewing (TVs) */
    }

    .hero-title {
        font-size: clamp(4rem, 8vw, 10rem);
    }

    .service-hero-title {
        font-size: clamp(3rem, 6vw, 7rem);
    }
}

@media (min-width: 2500px) {
    :root {
        --container: 1800px;
    }

    body {
        font-size: 24px;
    }
}

/* =========================================
           NAVBAR
           ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: clamp(10px, 2vw, 24px) 2% 0 1.5%;
    /* Casi al borde */
    transition: background var(--t-med) var(--ease),
        backdrop-filter var(--t-med) var(--ease),
        top var(--t-med) var(--ease);
}

nav.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.nav-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-text {
    font-family: 'Chillax', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    letter-spacing: -0.02em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.25em;
}

.logo-text .maria {
    color: var(--accent);
}

.logo-text .oliver {
    color: var(--ink);
}

.logo-text .dot {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.8em;
    line-height: 0;
    margin-left: -0.15em;
}

.img-logo-part {
    display: none;
    height: 125px;
    width: 125px;
    object-fit: contain;
    background: rgba(241, 244, 255, 0.85);
    /* Lavanda transparente */
    border-radius: 50%;
    padding: 10px;
    border: 3px solid var(--ink);
    /* Opcional: un toque de definición */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled .logo-text span {
    display: none;
}

nav.scrolled .logo-text .img-logo-part {
    display: block;
}

/* Zona derecha del navbar: píldora + botón CV */
.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 16px);
}

/* Píldora de navegación */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Bola-home del navbar: ahora más grande y clickable */
.nav-home {
    width: 74px;
    height: 74px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
    flex-shrink: 0;
}

.nav-home svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    transition: transform var(--t-med) var(--ease);
}

.nav-home:hover {
    transform: rotate(-10deg) scale(1.05);
}

.nav-home:hover svg {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    background: rgba(241, 244, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 4px solid var(--ink);
    color: var(--ink);
    padding: 16px clamp(26px, 3vw, 40px) 16px clamp(36px, 4.5vw, 56px);
    border-radius: var(--radius-pill);
    margin-left: -32px;
    list-style: none;
    height: 56px;
}

.nav-links a {
    font-size: clamp(0.72rem, 1vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, 0.65);
    position: relative;
    padding: 4px 0;
    transition: color var(--t-med) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 50%;
    z-index: -1;
}

/* Botón CV destacado aparte del menú */
.nav-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: var(--white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 24px;
    height: 56px;
    border: 4px solid var(--ink);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all var(--t-med) var(--ease);
    white-space: nowrap;
}

.nav-cv::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform var(--t-med) var(--ease);
}

.nav-cv:hover {
    background: var(--ink);
    color: var(--accent);
}

.nav-cv:hover::after {
    transform: scale(1.4);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    width: 56px;
    height: 56px;
    background: var(--ink);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.menu-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2px;
    background: var(--white);
    transform: translate(-50%, -50%);
    transition: all var(--t-fast) var(--ease);
}

.menu-toggle span:nth-child(1) {
    transform: translate(-50%, -8px);
}

.menu-toggle span:nth-child(3) {
    transform: translate(-50%, 6px);
}

.menu-toggle.open span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* =========================================
           HERO
           ========================================= */
.hero {
    min-height: 100vh;
    /* Un poco menos para que no desborde tanto */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 20px) 20px 40px;
    position: relative;
    overflow: hidden;
}



.hero-portfolio-text {
    font-family: 'Chillax', sans-serif;
    font-weight: 500;
    font-size: clamp(1.4rem, 3.2vw, 2.1rem);
    letter-spacing: 0.3em;
    margin-right: -0.5em;
    color: var(--ink);
    text-align: center;
    line-height: 1;
    margin-top: 12.5px;
    padding-bottom: 20px;
    z-index: 2;
    position: relative;
    text-transform: uppercase;
}

/* Anotaciones editoriales laterales (estilo revista) */
.hero-marginalia {
    position: absolute;
    top: 50%;
    writing-mode: vertical-rl;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.45;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
    pointer-events: none;
}

.hero-marginalia.left {
    left: clamp(16px, 2.5vw, 36px);
    transform: translateY(-50%) rotate(180deg);
}

.hero-marginalia.right {
    right: clamp(16px, 2.5vw, 36px);
    transform: translateY(-50%);
}

.hero-marginalia .num {
    font-weight: 600;
    color: var(--accent);
    opacity: 1;
}

@media (max-width: 900px) {
    .hero-marginalia {
        display: none;
    }
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.6;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--ink);
    opacity: 0.4;
}

/* Logo M. GIF */
.hero-logo {
    position: relative;
    width: clamp(200px, 35vw, 400px);
    margin: 0 auto;
}

.hero-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Pilares debajo del logo */
.hero-pillars {
    margin-top: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    font-family: 'Chillax', sans-serif;
    font-weight: 600;
    font-size: clamp(0.95rem, 1.6vw, 1.3rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-pillars a {
    position: relative;
    padding: 8px 4px;
    transition: color var(--t-med) var(--ease);
}

.hero-pillars a:hover {
    color: var(--ink);
}

.hero-pillars .sep {
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.hero-mobile-title {
    display: none;
    font-family: 'Chillax', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 5.5vw, 1.8rem);
    /* Reducido para mejor ajuste en móviles */
    letter-spacing: -0.04em;
    color: var(--ink);
    text-align: center;
    line-height: 1.1;
    margin-top: 20px;
    text-transform: lowercase;
}

@media (max-width: 768px) {

    /* Navbar móvil: Solo logo, no texto */
    .logo-text span {
        display: none !important;
    }

    .logo-text .img-logo-part {
        display: block !important;
        height: 80px;
        width: 80px;
        padding: 10px;
    }

    /* Hero móvil: No pilares, sí nombre */
    .hero-pillars {
        display: none !important;
    }

    .hero-mobile-title {
        display: block;
    }
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    animation: bounce 2.5s var(--ease) infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* =========================================
           SECCIÓN CATEGORÍAS (Grid 2x2)
           ========================================= */
.categories {
    padding: clamp(60px, 8vw, 100px) 0;
    position: relative;
    background: rgb(255, 255, 255, 0.5);
    /* Fondo blanco */
    border-top: 1px solid rgba(46, 46, 46, 0.08);
    /* Línea divisoria sutil */
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.7;
}

.section-label::before {
    content: '';
    width: 40px;
    height: var(--border-w);
    background: var(--accent);
}

.section-title {
    font-family: 'Chillax', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.2rem);
    /* Reducido para mejor respiro */
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: clamp(30px, 4vw, 50px);
    max-width: 800px;
}

.section-title .accent-word {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

.section-title .underline {
    position: relative;
    display: inline-block;
}

.section-title .underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.08em;
    width: 100%;
    height: 0.12em;
    background: var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3vw, 36px);
}

.category-card {
    position: relative;
    background: var(--bg);
    border: var(--border-w-thick) solid var(--ink);
    border-radius: var(--radius-md);
    aspect-ratio: 16 / 8;
    /* Más apaisado */
    overflow: hidden;
    cursor: none;
    display: block;
}

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

/* =========================================
           SOBRE MÍ
           ========================================= */
/* =========================================
   SOBRE MÍ (Versión Avanzada Cortina)
   ========================================= */
.sm {
    min-height: 500px;
    /* Altura más contenida */
    width: 90%;
    max-width: 1200px;
    margin: 120px auto;
    position: relative;
    overflow: hidden;
    border: 6px solid var(--ink);
    border-radius: 20px;
    background: var(--bg);
}

.sm-cols {
    display: flex;
    width: 100%;
    min-height: 500px;
    /* Coincide con el padre */
    position: relative;
    z-index: 10;
}

.sm-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 60px);
}

.sm-left-col {
    align-items: flex-start;
    border-right: 0px solid var(--ink);
}

.sm-right-col {
    background: transparent;
    align-items: flex-start;
    /* Alineado a la izquierda */
    text-align: left;
    /* Alineado a la izquierda */
    color: var(--ink);
}

.sm-name {
    font-size: clamp(2.5rem, 5vw, 2rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--ink);
    text-transform: lowercase;
    letter-spacing: -0.02em;
    background: rgba(241, 244, 255, 0.7);
    /* Fondo blanco transparente al bloque completo */
    padding: 30px 40px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sm-name .accent-word {
    color: var(--accent);
    padding: 0;
    background: transparent;
}

.sm-content-box {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Alineado a la izquierda */
}

.sm-eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: lowercase;
    color: rgba(46, 46, 46, 0.7);
    /* Ahora oscuro sobre fondo lavanda */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.sm-eyebrow::before,
.sm-eyebrow::after {
    content: '';
    width: 15px;
    height: 2px;
    background: var(--ink);
    /* Oscuro */
    opacity: 0.3;
}

.sm-body {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.6;
    color: var(--ink);
    /* Texto oscuro */
    margin-bottom: 30px;
}

.sm-body p {
    margin-bottom: 1.2em;
}

.sm-body strong {
    font-weight: 700;
    color: var(--accent);
    padding-bottom: 1px;
}

.sm-btn {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 22px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .2s var(--ease);
    white-space: nowrap;
}




.sm-btn:hover {
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-2px);
}

.sm-btn-txt,
.sm-btn-dot {
    position: relative;
    z-index: 1;
}

.sm-btn-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .sm {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        min-height: auto;
    }

    .sm-cols {
        flex-direction: column;
        min-height: auto;
    }

    .sm-col {
        padding: 40px 20px;
        flex: none;
    }

    .sm-left-col {
        align-items: center;
        text-align: center;
    }
}

/* Limpieza de CSS roto completada */

.about-cv-btn:hover {
    background: var(--white);
    color: var(--ink);
}

.about-cv-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.about-cv-btn:hover .about-cv-dot {
    background: var(--accent);
}

/* =========================================
           NÚMEROS BRUTALISTAS
           ========================================= */
.stats {
    padding: clamp(60px, 10vw, 120px) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

.stat-card {
    background: var(--bg);
    border: var(--border-w-thick) solid var(--ink);
    border-radius: var(--radius-md);
    padding: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
    transition: all var(--t-med) var(--ease);
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(1) {
    background: var(--accent);
    color: var(--white);
}

.stat-card:nth-child(3) {
    background: var(--ink);
    color: var(--white);
}

.stat-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-brutal-sm);
}

.stat-number {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.stat-label {
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.85;
}

/* =========================================
           CTA FINAL
           ========================================= */
.cta-final {
    padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px);
    text-align: center;
}

.cta-box {
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(50px, 8vw, 100px) clamp(30px, 5vw, 60px);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.25;
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    border: var(--border-w-thick) solid var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

.cta-title {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.cta-title .accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

.cta-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.75;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--accent);
    color: var(--white);
    padding: 20px 40px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    transition: all var(--t-med) var(--ease);
    border: var(--border-w) solid var(--accent);
}

.cta-button:hover {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--bg);
    transform: translateY(-4px);
}

.cta-button .arrow {
    width: 28px;
    height: 28px;
    background: var(--white);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform var(--t-med) var(--ease);
}

.cta-button:hover .arrow {
    background: var(--ink);
    color: var(--bg);
    transform: rotate(-45deg);
}

/* =========================================
           FOOTER
           ========================================= */
footer {
    border-top: var(--border-w) solid var(--ink);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}


.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a:hover {
    color: var(--ink);
}

/* =========================================
           REVEAL ANIMATIONS
           ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-stagger.in>*:nth-child(1) {
    transition-delay: 0.0s;
}

.reveal-stagger.in>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger.in>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger.in>*:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-stagger.in>* {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
           RESPONSIVE
           ========================================= */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-sticker {
        max-width: 320px;
        margin: 0 auto;
    }

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

    .nav-cv {
        display: none;
    }
}

@media (max-width: 720px) {
    :root {
        --nav-h: 80px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(var(--nav-h) + 10px);
        right: 20px;
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 34px;
        border-radius: var(--radius-md);
        gap: 18px;
        height: auto;
        border: 3px solid var(--accent);
        min-width: 200px;
        z-index: 100;
        background: var(--ink);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-home {
        width: 52px;
        height: 52px;
    }

    .nav-home svg {
        width: 20px;
        height: 20px;
    }

    .menu-toggle {
        width: 52px;
        height: 52px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-pillars {
        gap: 10px;
        font-size: 0.85rem;
    }

    .hero-pillars .sep {
        width: 5px;
        height: 5px;
    }
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Cursor: hiding default handled by body { cursor: none; } above */

/* =========================================
           HERO CV
           ========================================= */
.cv-hero {
    min-height: 90vh;
    padding: calc(var(--nav-h) + 60px) 0 40px;
    position: relative;
    overflow: hidden;
}

.cv-hero::before {
    content: '';
    position: absolute;
    top: 25%;
    right: -8%;
    width: 380px;
    height: 380px;
    border: var(--border-w) solid var(--ink);
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.cv-hero::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -4%;
    width: 220px;
    height: 220px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.cv-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}



.cv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--muted);
}

.cv-eyebrow::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--accent);
}

.cv-eyebrow .live {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.cv-hero h1 {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
}

.cv-hero h1 .accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

.cv-hero h1 .underline {
    position: relative;
    display: inline-block;
}

.cv-hero h1 .underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 0.18em;
    background: var(--accent);
    opacity: 0.25;
    z-index: -1;
}

.cv-tagline {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.5;
    color: var(--ink);
    opacity: 0.85;
    margin-bottom: 36px;
    max-width: 520px;
}

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: all var(--t-med) var(--ease);
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.btn-primary:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--white);
}

.btn .arrow {
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform var(--t-med) var(--ease);
}

.btn-primary:hover .arrow {
    background: var(--white);
    color: var(--accent);
}

.cv-meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.cv-meta-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.cv-meta-list .ico {
    width: 32px;
    height: 32px;
    background: var(--bg);
    border: 2px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cv-meta-list .ico svg {
    width: 14px;
    height: 14px;
    stroke: var(--ink);
    fill: none;
    stroke-width: 2;
}

.cv-meta-list a:hover {
    color: var(--ink);
}

/* CV Hero card lateral (la "tarjeta de identidad") */
.cv-card {
    position: relative;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(36px, 5vw, 60px);
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: var(--shadow-brutal);
}

.cv-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
}

.cv-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    opacity: 0.2;
}

.cv-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.cv-card-name {
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cv-card-name .second {
    color: var(--accent);
    font-weight: 500;
    font-style: italic;
}

.cv-card-role {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.75;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.cv-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.cv-card-stats .stat {
    text-align: left;
}

.cv-card-stats .num {
    font-weight: 700;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1;
    color: var(--accent);
    margin-bottom: 4px;
}

.cv-card-stats .lbl {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    line-height: 1.3;
}

/* =========================================
           SECCIONES GENERALES (CV)
           ========================================= */
section.cv-section {
    padding: clamp(60px, 10vw, 120px) 0;
    position: relative;
}

.section-label .num {
    color: var(--accent);
    font-weight: 700;
}

/* =========================================
           SOBRE MÍ (CV overrides)
           ========================================= */
.cv-section .about-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
}

.pull-quote {
    background: var(--ink);
    color: var(--white);
    padding: clamp(30px, 4vw, 50px);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    line-height: 1.4;
    position: relative;
    margin-top: 20px;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Chillax', sans-serif;
    font-size: 8rem;
    line-height: 1;
    color: var(--accent);
    font-weight: 700;
}

.pull-quote p {
    position: relative;
    z-index: 1;
    padding-left: 40px;
}

/* =========================================
           EXPERIENCIA — TIMELINE
           ========================================= */
.timeline {
    position: relative;
    padding-left: clamp(30px, 5vw, 70px);
}

.timeline::before {
    content: '';
    position: absolute;
    left: clamp(8px, 1.5vw, 14px);
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--ink);
    opacity: 0.15;
}

.exp-item {
    background-color: #fff;
    position: relative;
    background: var(--bg);
    border: var(--border-w) solid var(--ink);
    border-radius: var(--radius-md);
    padding: clamp(24px, 3vw, 40px);
    margin-bottom: clamp(20px, 3vw, 32px);
    transition: transform var(--t-med) var(--ease),
        box-shadow var(--t-med) var(--ease);
}

.exp-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-brutal-sm);
}

.exp-dot {
    position: absolute;
    left: calc(clamp(30px, 5vw, 70px) * -1 + clamp(2px, 1vw, 8px));
    top: clamp(28px, 3.5vw, 44px);
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--ink);
    z-index: 2;
}

.exp-item.current .exp-dot {
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

.exp-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.exp-role-block {
    flex: 1;
    min-width: 240px;
}

.exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.exp-badge.magenta {
    background: var(--accent);
    color: var(--white);
}

.exp-badge.ink {
    background: var(--ink);
    color: var(--white);
}

.exp-role {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.exp-company {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
}

.exp-date {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    padding-top: 4px;
}

.exp-body-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
    margin-top: 22px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.exp-body {
    list-style: none;
    margin-top: 14px;
}

.exp-body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 0.98rem;
    line-height: 1.6;
}

.exp-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 12px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* =========================================
           STACK / SKILLS
           ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 2.5vw, 28px);
}

.skill-card {
    background: var(--bg);
    border: var(--border-w) solid var(--ink);
    border-radius: var(--radius-md);
    padding: clamp(24px, 3vw, 36px);
    transition: transform var(--t-med) var(--ease),
        box-shadow var(--t-med) var(--ease);
}

.skill-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-brutal-sm);
}

.skill-card.featured {
    background: var(--ink);
    color: var(--white);
}

.skill-card.accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.skill-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid currentColor;
    opacity: 1;
}

.skill-card .skill-head {
    border-color: var(--ink);
}

.skill-card.featured .skill-head {
    border-color: rgba(255, 255, 255, 0.2);
}

.skill-card.accent .skill-head {
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-num {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent);
    line-height: 1;
}

.skill-card.accent .skill-num,
.skill-card.featured .skill-num {
    color: var(--white);
}

.skill-card h3 {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    letter-spacing: -0.01em;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
}

.skill-card.featured .tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.skill-card.accent .tag {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

/* =========================================
           FORMACIÓN
           ========================================= */
.edu-block {
    margin-bottom: clamp(40px, 6vw, 60px);
}

.edu-block:last-child {
    margin-bottom: 0;
}

.edu-block-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    letter-spacing: -0.01em;
}

.edu-block-title::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--accent);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Tres columnas de forma predeterminada */
    gap: clamp(16px, 2vw, 24px);
}

/* Variante de 2 columnas */
.edu-grid.edu-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
    .edu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .edu-grid {
        grid-template-columns: 1fr;
    }
}

.edu-card {
    background: var(--bg);
    border: var(--border-w) solid var(--ink);
    border-radius: var(--radius-md);
    padding: clamp(20px, 2.5vw, 30px);
    transition: transform var(--t-med) var(--ease),
        box-shadow var(--t-med) var(--ease);
    position: relative;
    overflow: hidden;
}

.edu-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-brutal-sm);
}

.edu-card .corner {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.edu-title {
    font-family: 'Chillax', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.4vw, 1rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    padding-right: 20px;
}

.edu-meta {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

/* =========================================
           FOOTER CTA (CV)
           ========================================= */
.cv-footer {
    padding: clamp(60px, 10vw, 120px) 0;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.cta-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-contacts a:hover {
    background: var(--ink);
    border-color: var(--ink);
}

/* =========================================
           PIE DE PÁGINA (CV)
           ========================================= */
footer.page-footer {
    border-top: var(--border-w) solid var(--ink);
    padding: 30px 0;
}

.footer-inner a:hover {
    color: var(--ink);
}

/* =========================================
           RESPONSIVE
           ========================================= */
@media (max-width: 900px) {
    .cv-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cv-card {
        transform: rotate(0deg);
        max-width: 480px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-cv {
        display: none;
    }
}

@media (max-width: 720px) {
    .exp-head {
        flex-direction: column;
    }

    .timeline {
        padding-left: 30px;
    }

    .exp-dot {
        left: -28px;
    }
}

/* =========================================
           PRINT — A4 limpio para descargar
           ========================================= */
@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        cursor: auto !important;
        background: white !important;
        font-size: 10pt;
        line-height: 1.4;
        color: #000;
    }

    #custom-cursor,
    nav,
    .scroll-hint,
    .cv-actions,
    .cv-footer,
    footer.page-footer,
    .menu-toggle {
        display: none !important;
    }

    .cv-hero {
        min-height: auto;
        padding: 0 0 12pt 0;
        page-break-after: avoid;
    }

    .cv-hero::before,
    .cv-hero::after {
        display: none;
    }

    .cv-hero-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 16pt;
        align-items: start;
    }

    .cv-eyebrow {
        display: none;
    }

    .cv-hero h1 {
        font-size: 22pt;
        margin-bottom: 8pt;
    }

    .cv-tagline {
        font-size: 10pt;
        margin-bottom: 8pt;
    }

    .cv-meta-list {
        font-size: 8.5pt;
    }

    .cv-meta-list li {
        margin-bottom: 2pt;
    }

    .cv-meta-list .ico {
        display: none;
    }

    .cv-card {
        transform: none !important;
        box-shadow: none !important;
        padding: 14pt !important;
        background: #2e2e2e !important;
        color: white !important;
        border-radius: 8pt;
    }

    .cv-card::before,
    .cv-card::after {
        display: none;
    }

    .cv-card-name {
        font-size: 14pt;
        margin-bottom: 6pt;
    }

    .cv-card-role {
        font-size: 8.5pt;
        margin-bottom: 10pt;
    }

    .cv-card-stats {
        gap: 6pt;
        padding-top: 8pt;
    }

    .cv-card-stats .num {
        font-size: 12pt;
    }

    .cv-card-stats .lbl {
        font-size: 6pt;
    }

    section.cv-section {
        padding: 10pt 0 !important;
        page-break-inside: avoid;
    }

    .section-label {
        font-size: 8pt;
        margin-bottom: 6pt;
    }

    .section-title {
        font-size: 16pt;
        margin-bottom: 10pt;
    }

    .about-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 16pt;
    }

    .about-text p {
        font-size: 9.5pt;
        margin-bottom: 6pt;
    }

    .pull-quote {
        padding: 12pt !important;
        font-size: 9.5pt;
        background: #f1f4ff !important;
        color: #2e2e2e !important;
        border-left: 3pt solid #e92b61;
    }

    .pull-quote::before {
        display: none;
    }

    .pull-quote p {
        padding-left: 0;
    }

    .timeline {
        padding-left: 16pt;
    }

    .timeline::before {
        left: 4pt;
    }

    .exp-item {
        padding: 10pt 12pt !important;
        margin-bottom: 8pt !important;
        box-shadow: none !important;
        transform: none !important;
        page-break-inside: avoid;
        border-width: 1pt;
        border-radius: 6pt;
    }

    .exp-dot {
        left: -14pt !important;
        top: 14pt !important;
        width: 10pt !important;
        height: 10pt !important;
        box-shadow: 0 0 0 1pt #2e2e2e !important;
    }

    .exp-role {
        font-size: 11pt;
        margin-bottom: 2pt;
    }

    .exp-company {
        font-size: 9pt;
    }

    .exp-date {
        font-size: 7.5pt;
    }

    .exp-body li {
        font-size: 8.5pt;
        margin-bottom: 3pt;
    }

    .exp-body li::before {
        top: 7pt;
    }

    .exp-badge {
        font-size: 6.5pt;
        padding: 2pt 8pt;
        margin-bottom: 4pt;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8pt;
    }

    .skill-card {
        padding: 10pt !important;
        box-shadow: none !important;
        transform: none !important;
        page-break-inside: avoid;
        border-width: 1pt;
        border-radius: 6pt;
    }

    .skill-card h3 {
        font-size: 10pt;
    }

    .skill-head {
        padding-bottom: 6pt;
        margin-bottom: 6pt;
    }

    .tag {
        font-size: 7.5pt;
        padding: 2pt 8pt;
        border-width: 0.5pt;
    }

    .edu-block {
        margin-bottom: 10pt;
    }

    .edu-block-title {
        font-size: 11pt;
        margin-bottom: 8pt;
    }

    .edu-grid {
        gap: 6pt;
    }

    .edu-card {
        padding: 8pt 10pt !important;
        box-shadow: none !important;
        transform: none !important;
        border-width: 1pt;
        border-radius: 5pt;
    }

    .edu-title {
        font-size: 9pt;
    }

    .edu-meta {
        font-size: 8pt;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
           SERVICE PAGE (Desarrollo, Diseño...)
           ========================================= */
.service-page-wrapper {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 80px;
}

.service-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: var(--border-w-thick) solid var(--ink);
    border-radius: var(--radius-lg);
    min-height: 340px;
    margin-bottom: 40px;
    background: var(--white);
    overflow: hidden;
}

.service-hero-text {
    padding: clamp(30px, 4vw, 60px) clamp(20px, 4vw, 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--ink);
    color: var(--white);
    border-right: var(--border-w-thick) solid var(--ink);
}

/* Theme Modifiers */
/* Theme Modifiers - Refined for Dark Background */
.theme-magenta .service-hero-eyebrow span {
    background: var(--accent);
}

.theme-magenta .service-hero-title .italic-accent {
    color: var(--accent);
}

.theme-dark .service-hero-eyebrow span {
    background: #03CF94;
}

.theme-dark .service-hero-title .italic-accent {
    color: #03CF94;
}

.theme-green .service-hero-title .italic-accent {
    color: #03CF94;
}

.theme-light .service-hero-text {
    background: var(--bg);
    color: var(--ink);
}

.theme-light .service-hero-title {
    color: var(--ink);
}

.theme-light .service-hero-desc {
    color: var(--ink);
}

.theme-ia .service-hero-text {
    background: #03CF94;
    color: var(--ink);
}

.theme-ia .service-hero-title {
    color: var(--white);
}

.theme-ia .service-hero-title .italic-accent {
    color: var(--ink);
}

.theme-ia .service-hero-desc {
    color: var(--ink);
}

.theme-formacion .service-hero-text {
    background: #e92b61;
    color: var(--ink);
}

.theme-formacion .service-hero-title {
    color: var(--white);
}

.theme-formacion .service-hero-title .italic-accent {
    color: var(--ink);
}

.theme-formacion .service-hero-desc {
    color: var(--ink);
}

.service-hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-hero-eyebrow span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent);
}

.service-hero-title {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--white);
    margin-bottom: 24px;
}

.service-hero-title .italic-accent {
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
}

.service-hero-desc {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    max-width: 500px;
}

.service-hero-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(46, 46, 46, 0.12);
    padding-top: 20px;
    margin-top: 30px;
}

.service-hero-stat-col {
    flex: 1;
    border-right: 1px solid rgba(46, 46, 46, 0.1);
    padding-right: 14px;
    margin-right: 14px;
}

.service-hero-stat-col:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.service-hero-stat-num {
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
}

.service-hero-stat-lbl {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, 0.4);
    margin-top: 6px;
}

.service-hero-img {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vw, 40px);
    position: relative;
    overflow: hidden;
}

.service-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: var(--border-w-thick) solid var(--ink);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    overflow: hidden;
}

.service-pillar-card {
    background: var(--white);
    padding: clamp(30px, 4vw, 45px) clamp(20px, 3vw, 32px);
    border-right: var(--border-w-thick) solid var(--ink);
    border-bottom: var(--border-w-thick) solid var(--ink);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: clamp(380px, 45vh, 520px);
}

.service-pillar-card:nth-child(2n) {
    border-right: none;
}

.service-pillar-card:nth-child(n+3) {
    border-bottom: none;
}

.service-pillar-card.dark {
    background: var(--ink);
    color: var(--bg);
}

.service-pillar-card.light {
    background: var(--bg);
}

.service-pillar-bg-num {
    font-size: clamp(4rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
    color: rgba(46, 46, 46, 0.04);
    position: absolute;
    right: 4px;
    top: 0;
    pointer-events: none;
}

.service-pillar-card.dark .service-pillar-bg-num {
    color: rgba(241, 244, 255, 0.04);
}

.service-pillar-eyebrow {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, 0.42);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-pillar-card.dark .service-pillar-eyebrow {
    color: rgba(241, 244, 255, 0.4);
}

.service-pillar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #03CF94;
    display: block;
    flex-shrink: 0;
}

.service-pillar-dot.green {
    background: #03CF94;
}

.service-pillar-title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-pillar-title {
    font-weight: 700;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0;
    color: var(--ink);
}

.service-pillar-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #03CF94;
    opacity: 0.8;
}

.service-pillar-card.dark .service-pillar-icon {
    color: #03CF94;
}

.service-pillar-card.dark .service-pillar-title {
    color: var(--bg);
}

.service-pillar-title em {
    color: #03CF94;
    font-style: italic;
    font-weight: 500;
}

.service-pillar-card.dark .service-pillar-title em {
    color: #03CF94;
}

.service-pillar-desc {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    color: rgba(46, 46, 46, 0.58);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.service-pillar-card.dark .service-pillar-desc {
    color: rgba(241, 244, 255, 0.58);
}

.service-pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-pillar-tag {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1.5px solid rgba(46, 46, 46, 0.18);
    border-radius: var(--radius-pill);
    color: rgba(46, 46, 46, 0.6);
}

.service-pillar-card.dark .service-pillar-tag {
    border-color: rgba(241, 244, 255, 0.18);
    color: rgba(241, 244, 255, 0.6);
}

.service-portfolio {
    padding: clamp(30px, 4vw, 50px);
    background: var(--bg);
    border: var(--border-w-thick) solid var(--ink);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.service-portfolio-header {
    margin-bottom: 30px;
}

.service-portfolio-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.service-portfolio-eyebrow span {
    width: 20px;
    height: 2px;
    background: var(--accent);
    display: block;
}

.service-portfolio-title {
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.service-portfolio-title em {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

.service-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.sp-card {
    border: var(--border-w-thick) solid var(--ink);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
}

.sp-card.span-2 {
    grid-column: span 2;
}

.sp-card-visual {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sp-card-visual.dark {
    background: var(--ink);
}

.sp-card-visual.accent {
    background: var(--accent);
}

.sp-card-visual.green {
    background: #03CF94;
}

.sp-card-visual.black {
    background: #1a1a1a;
}

.sp-card-body {
    padding: 16px 20px;
    flex: 1;
}

.sp-card-meta {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, 0.5);
    margin-bottom: 6px;
}

.sp-card-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--ink);
}

.sp-card-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.sp-card-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.service-footer {
    padding: 20px clamp(20px, 4vw, 40px);
    border-top: var(--border-w) solid var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
}

.service-footer-logo {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
}

.service-footer-logo span {
    color: var(--accent);
}

.service-footer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.service-footer-meta span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: block;
}

@media (max-width: 900px) {
    .service-hero {
        grid-template-columns: 1fr;
    }

    .service-hero-text {
        border-right: none;
        border-bottom: var(--border-w) solid var(--ink);
    }

    /* Ya es 2x2 por defecto */

    .service-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .sp-card.span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .service-pillars {
        grid-template-columns: 1fr;
    }

    .service-pillar-card {
        border-right: none !important;
        border-bottom: var(--border-w) solid var(--ink);
    }

    .service-pillar-card:last-child {
        border-bottom: none;
    }
}

/* =========================================
           ACORDEÓN CV
           ========================================= */
.cv-accordion-section {
    padding: 20px 0 clamp(60px, 8vw, 120px);
}

.cv-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg);
    border: var(--border-w-thick) solid var(--ink);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.accordion-item:hover {
    box-shadow: var(--shadow-brutal-sm);
    transform: translateY(-2px);
}

.accordion-item.active {
    box-shadow: var(--shadow-brutal);
    transform: translateY(-4px);
    border-color: var(--ink);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 3vw, 40px);
    background: var(--bg);
    cursor: pointer;
    text-align: left;
    transition: background var(--t-med) var(--ease);
}

.accordion-item.active .accordion-header {
    border-bottom: var(--border-w) solid var(--ink);
    background: var(--bg);
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accordion-header-left .num {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    font-family: monospace;
}

.accordion-header-left h2 {
    font-family: 'Chillax', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    margin: 0;
    line-height: 1.1;
}

.accordion-header-left h2 .accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

.accordion-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-med) var(--ease), background var(--t-fast) var(--ease);
}

.accordion-item:hover .accordion-icon {
    background: var(--accent);
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--t-med) var(--ease);
}

.accordion-icon::before {
    width: 16px;
    height: 2px;
}

.accordion-icon::after {
    width: 2px;
    height: 16px;
}

.accordion-item.active .accordion-icon {
    background: var(--accent);
    transform: rotate(90deg);
}

.accordion-item.active .accordion-icon::after {
    transform: scaleY(0);
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), opacity 0.5s var(--ease);
}

.accordion-inner {
    padding: clamp(30px, 4vw, 60px) clamp(20px, 3vw, 40px);
    background: var(--bg);
}

/* Fix mobile view */
@media (max-width: 768px) {
    .accordion-header-left {
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .accordion-icon {
        width: 32px;
        height: 32px;
    }

    .accordion-icon::before {
        width: 12px;
    }

    .accordion-icon::after {
        height: 12px;
    }
}

/* =========================================
           PRINT STYLES
           ========================================= */
@media print {
    .accordion-content {
        max-height: none !important;
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
        overflow: visible !important;
        padding: 20px 0 !important;
    }

    .accordion-item {
        page-break-inside: avoid;
        border-bottom: var(--border-w-thick) solid var(--ink) !important;
        margin-bottom: 20px !important;
    }

    .accordion-item .accordion-header {
        border-bottom: var(--border-w) solid var(--ink);
    }

    .accordion-icon {
        display: none !important;
    }
}

/* =========================================
           PORTFOLIO VISUAL UTILS
           ========================================= */
.visual-stats-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 68px;
    margin-right: 20px;
}

.visual-stats-bars .bar {
    width: 9px;
    border-radius: 2px 2px 0 0;
    background: #03CF94;
}

.visual-stats-bars .bar.accent {
    background: var(--accent);
}

.visual-stats-label .num {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #f1f4ff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.visual-stats-label .lbl {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(241, 244, 255, 0.35);
    margin-top: 4px;
}

.visual-dots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.visual-dots-grid span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

.visual-dots-grid span.off {
    background: rgba(255, 255, 255, 0.3);
}

.visual-code-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visual-code-lines .line {
    height: 6px;
    border-radius: 3px;
    background: #03CF94;
}

.visual-code-lines .line.accent {
    background: var(--accent);
}

.visual-code-lines .indent-1 {
    margin-left: 12px;
}

.visual-code-lines .indent-2 {
    margin-left: 24px;
}

.visual-stats-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.visual-stats-flex .stat-item {
    text-align: center;
}

.visual-stats-flex .num {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--ink);
    letter-spacing: -0.05em;
    line-height: 1;
}

.visual-stats-flex .lbl {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, 0.55);
    margin-top: 4px;
}

.visual-stats-flex .stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(46, 46, 46, 0.15);
}

/* =========================================
           DISENO VISUAL UTILS
           ========================================= */
.visual-branding-logo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.visual-branding-logo .logo-shape {
    position: relative;
    width: 52px;
    height: 38px;
}

.visual-branding-logo .logo-shape div {
    position: absolute;
    left: 0;
}

.visual-branding-logo .logo-shape .s1 {
    top: 4px;
    width: 32px;
    height: 30px;
    background: #fff;
    border-radius: 0 50% 50% 0;
    opacity: 0.95;
}

.visual-branding-logo .logo-shape .s2 {
    top: 10px;
    width: 20px;
    height: 18px;
    background: var(--accent);
    border-radius: 0 50% 50% 0;
}

.visual-branding-logo .logo-shape .s3 {
    right: 0;
    top: 22px;
    width: 14px;
    height: 14px;
    background: var(--ink);
    border-radius: 50%;
    left: auto;
}

.visual-branding-logo .logo-palette {
    display: flex;
    gap: 4px;
}

.visual-branding-logo .logo-palette span {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

.visual-branding-logo .logo-palette span:nth-child(1) {
    background: #fff;
}

.visual-branding-logo .logo-palette span:nth-child(2) {
    background: var(--ink);
}

.visual-branding-logo .logo-palette span:nth-child(3) {
    background: #c0143d;
}

.visual-branding-logo .logo-palette span:nth-child(4) {
    background: #f5c4d0;
}

.visual-branding-sep {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
}

.visual-branding-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visual-branding-lines div {
    height: 5px;
    border-radius: 2px;
    background: #fff;
}

.visual-branding-lines .l1 {
    width: 100px;
    height: 8px;
    opacity: 0.9;
}

.visual-branding-lines .l2 {
    width: 70px;
    opacity: 0.5;
}

.visual-branding-lines .l3 {
    width: 85px;
    opacity: 0.35;
    margin-top: 4px;
}

.visual-branding-lines .l4 {
    width: 60px;
    opacity: 0.25;
}

.visual-branding-lines .l-dots {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    background: transparent;
}

.visual-branding-lines .l-dots span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.visual-branding-lines .l-dots span:nth-child(2) {
    background: rgba(255, 255, 255, 0.9);
}

.visual-branding-lines .l-dots span:nth-child(3) {
    background: var(--ink);
}

.visual-naming-text {
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
    text-align: center;
}

.visual-naming-lbl {
    font-size: 6.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, 0.5);
    margin-top: 2px;
}

.visual-art-sheet {
    width: 38px;
    height: 52px;
    background: #f1f4ff;
    border: 2px solid var(--ink);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    margin-right: 10px;
}

.visual-art-sheet div {
    width: 100%;
    border-radius: 1px;
}

.visual-art-sheet .top-line {
    height: 4px;
    background: var(--accent);
}

.visual-art-sheet .mid-line-1 {
    height: 3px;
    background: var(--ink);
    opacity: 0.3;
    width: 75%;
}

.visual-art-sheet .mid-line-2 {
    height: 3px;
    background: var(--ink);
    opacity: 0.2;
    width: 60%;
}

.visual-art-sheet .bottom-block {
    height: 8px;
    background: var(--ink);
}

.visual-art-guide {
    width: 38px;
    height: 52px;
    background: #f1f4ff;
    border: 2px dashed rgba(46, 46, 46, 0.3);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-art-guide .guide-circle {
    width: 20px;
    height: 20px;
    background: rgba(233, 43, 97, 0.12);
    border-radius: 50%;
    border: 1.5px dashed rgba(233, 43, 97, 0.5);
}

.visual-grid-swatches {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visual-grid-swatches .row {
    display: flex;
    gap: 3px;
}

.visual-grid-swatches span {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.visual-grid-swatches span.border {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.visual-grid-swatches span.border.dark {
    border-color: rgba(255, 255, 255, 0.1);
}

.visual-identity-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.visual-identity-meta div {
    height: 5px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.visual-identity-meta .l1 {
    width: 88px;
    background: rgba(255, 255, 255, 0.6);
}

.visual-identity-meta .l2 {
    width: 62px;
    background: rgba(255, 255, 255, 0.25);
}

.visual-identity-meta .l3 {
    width: 74px;
}

.visual-identity-meta .pills {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    background: transparent;
}

.visual-identity-meta .pills span {
    width: 34px;
    height: 14px;
    background: var(--accent);
    border-radius: 999px;
}

.visual-identity-meta .pills span.border {
    width: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
           FORMACION VISUAL UTILS
           ========================================= */
.visual-grid-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.visual-grid-icons .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #03CF94;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-grid-icons .icon-box.border {
    background: #f1f4ff;
    border: 2px solid var(--ink);
}

.visual-grid-icons .icon-box.dark {
    background: var(--ink);
}

.visual-grid-icons .icon-box .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ink);
    opacity: 0.8;
}

/* =========================================
   PORTFOLIO HOME — 4 destacados
   ========================================= */

/* =========================================
   SECCIÓN PORTFOLIO (Diseño Asimétrico)
   ========================================= */


.port-section {
    padding: clamp(60px, 10vw, 120px) 0;
    /* Fondo blanco */
    border-top: 1px solid rgba(46, 46, 46, 0.08);
    /* Línea divisoria */
}

.port-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Alineación centrada para que título y botón coincidan */
    margin-bottom: clamp(24px, 4vw, 40px);
    flex-wrap: wrap;
    gap: 16px;
}

.port-header .section-title {
    margin-bottom: 0;
    /* Quitar margen para alineación perfecta */
}

.port-eyebrow {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.port-eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--accent);
    display: block;
}

.port-title {
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: -.03em;
    line-height: 1;
}

.port-title em {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

.port-cta {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 22px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .2s var(--ease);
    white-space: nowrap;
}

.port-cta:hover {
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-2px);
}

.port-cta-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Grid Layout Asimétrico */
.port-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    grid-template-areas:
        "annua"
        "tcs"
        "mpunto"
        "ddonde";
}

@media (min-width: 640px) {
    .port-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        grid-template-areas:
            "annua  ddonde"
            "tcs    ddonde"
            "mpunto ddonde";
        min-height: clamp(500px, 65vw, 800px);
    }
}

.pa {
    grid-area: annua;
}

.pt {
    grid-area: tcs;
}

.pm {
    grid-area: mpunto;
}

.pd {
    grid-area: ddonde;
}

/* Tarjeta de Proyecto (PC) */
.pc {
    position: relative;
    overflow: hidden;
    border: var(--border-w-thick) solid var(--ink);
    border-radius: 18px;
    cursor: pointer;
    height: 100%;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.pc:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0 var(--ink);
}

.pc:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Imagen y Gradiente */
.pc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .6s var(--ease);
}

.pc:hover .pc-img {
    transform: scale(1.08);
}

.pc-grad {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, .55) 75%,
            rgba(0, 0, 0, .9) 100%);
}

/* Overlay Hover */
.pc-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0);
    transition: background .3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc:hover .pc-overlay {
    background: rgba(0, 0, 0, .4);
}

.pc-cta {
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s var(--ease);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #2e2e2e;
    border: 3px solid rgba(0, 0, 0);
    padding: 8px 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f4ff;
}

.pc-cta-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.pc:hover .pc-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Info del Proyecto */
.pc-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    padding: clamp(16px, 3vw, 24px);
    pointer-events: none;
}

.pc-cat {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 6px;
}

.pc-name {
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: -.02em;
    line-height: 1.1;
    color: #fff;
}

.pc-brand-dot {
    position: absolute;
    top: clamp(14px, 2vw, 20px);
    right: clamp(14px, 2vw, 20px);
    z-index: 7;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .2);
}

/* Responsive Mobile Layout — Unificado con estilo escritorio */
@media (max-width: 639px) {
    .pc {
        height: 400px;
        /* Altura suficiente para que se vean bien las imágenes en vertical */
    }
}

/* =========================================
   SISTEMA DE MODALES (AVANZADO)
   ========================================= */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}

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

.modal {
    width: 100%;
    max-width: 1000px;
    max-height: 92vh;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    transform: translateY(30px) scale(.97);
    transition: transform .4s var(--ease);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .1);
}

.overlay.open .modal {
    transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
    .modal {
        grid-template-columns: 1.1fr .9fr;
        grid-template-rows: 1fr;
        max-height: 85vh;
    }
}

/* Botón Cerrar Modal */
.m-close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    transition: all .2s;
}

.m-close:hover {
    background: rgba(255, 255, 255, .15);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, .6);
}

/* Slider y Controles */
.m-left {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.m-slider {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.m-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.m-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s var(--ease);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-slide.on {
    opacity: 1;
}

.m-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.m-ctrl {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, .3);
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.m-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    transition: all .2s;
}

.m-btn:hover {
    background: rgba(255, 255, 255, .2);
}

.m-count {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    color: rgba(255, 255, 255, .8);
    min-width: 45px;
    text-align: center;
}

/* Info Derecha */
.m-right {
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: clamp(30px, 5vw, 50px);
}

.m-title {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.m-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.m-chip {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 6px;
}

.m-copy p {
    font-size: clamp(.85rem, 1.2vw, .95rem);
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 18px;
}

.m-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.m-metric {
    text-align: center;
    padding: 16px 10px;
    background: rgba(0, 0, 0, .03);
    border-radius: 12px;
}

.m-metric-n {
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 4px;
}

.m-metric-l {
    font-size: .55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .6;
}

.m-app-cta-wrap {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.m-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e92b61;
    color: #fff;
    padding: 16px 40px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all var(--t-med) var(--ease);
    box-shadow: 0 10px 25px rgba(233, 43, 97, 0.25);
}

.m-app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(233, 43, 97, 0.35);
    background: #d41d50;
}

.m-app-note {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(46, 46, 46, 0.4);
    text-transform: uppercase;
}

.m-firma {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: .4;
}

.port-modal-bg.open .port-modal {
    transform: translateY(0) scale(1);
}

/* Hero del modal */
.m-hero {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.m-hero img {
    width: 100%;
    display: block;
    transition: transform .38s var(--ease);
}

.m-hero:hover img {
    transform: scale(1.03);
}

.m-hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .5) 0%,
            rgba(0, 0, 0, .0) 38%,
            rgba(0, 0, 0, .0) 55%,
            rgba(0, 0, 0, .82) 100%);
}

.m-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    transition: all .14s;
}

.m-close:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
}

.m-tag {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 2;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
}

.m-year {
    position: absolute;
    top: 16px;
    right: 56px;
    z-index: 2;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .7);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.m-title-block {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.m-title-block h2 {
    font-weight: 700;
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    letter-spacing: -.03em;
    color: #fff;
    line-height: 1.05;
}

.m-title-block p {
    font-size: .72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .5);
    margin-top: 4px;
    letter-spacing: .04em;
}

/* Cuerpo modal */
.m-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.m-desc {
    padding: clamp(16px, 2.5vw, 24px) clamp(18px, 3vw, 26px);
}

.m-desc p {
    font-size: .82rem;
    line-height: 1.72;
    margin-bottom: 10px;
}

.m-desc p:last-child {
    margin: 0;
}

.m-desc p strong {
    font-weight: 600;
}

.m-meta {
    padding: clamp(16px, 2.5vw, 24px) clamp(14px, 2vw, 20px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mi-lbl {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mi-val {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
}

.m-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.m-chip {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}

/* Banda y métricas */
.m-band {
    padding: 9px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.m-band-label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.m-band-item {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

.m-metrics {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.m-metric-num {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.04em;
    line-height: 1;
}

.m-metric-lbl {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-top: 2px;
}

.m-metric-sep {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, .15);
}

/* Galería */
.m-gal-hd {
    padding: 9px 18px;
    display: flex;
    align-items: center;
}

.m-gal-lbl {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 7px;
}

.g-row1 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
}

.g-stack {
    display: flex;
    flex-direction: column;
}

.g-row2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.g-row-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.gc {
    position: relative;
    overflow: hidden;
}

.gc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform .38s var(--ease);
}

.gc:hover img {
    transform: scale(1.06);
}

.gc.h-big {
    height: clamp(130px, 14vw, 165px);
}

.gc.h-sm {
    height: clamp(62px, 7vw, 82px);
}

.gc.h-mid {
    height: clamp(95px, 11vw, 120px);
}

.gc.h-banner {
    height: clamp(72px, 9vw, 96px);
}

.gc.h-tall {
    height: clamp(155px, 18vw, 210px);
}

.gc-tag {
    position: absolute;
    bottom: 5px;
    left: 7px;
    z-index: 2;
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    pointer-events: none;
}

/* Footer del modal */
.m-foot {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.m-foot-logo {
    font-size: .72rem;
    font-weight: 600;
}

.m-foot-logo span {
    color: var(--accent);
}

.m-foot-url {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

/* Logo Annua */
.annua-logo-hero {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 2;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 300;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .88);
}

.annua-logo-hero::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, .22);
    margin-top: 3px;
}

.mstar {
    width: 11px;
    height: 11px;
    display: inline-block;
    background: var(--accent);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Logo 3CS */
.hero-logo-3cs {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 2;
    background: #0a1a4a;
    padding: 7px 11px;
    border-radius: 7px;
}

.hero-logo-3cs .n {
    font-weight: 700;
    font-size: 1.1rem;
    color: #00aaff;
    letter-spacing: -.02em;
    line-height: 1;
}

.hero-logo-3cs .s {
    font-size: .52rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-top: 2px;
}

/* ddonde split hero */
.m-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.m-hero-split-left {
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    border-right: var(--border-w-thick) solid var(--ink);
}

.m-hero-split-left::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 130px;
    height: 130px;
    background: var(--accent);
    border-radius: 50%;
    opacity: .08;
}

.m-hero-split-left img {
    max-height: 52px;
    width: auto;
    display: block;
}

.m-hero-split-left .tagline {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-top: 10px;
    text-align: center;
}

.m-hero-split-left .stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
    justify-content: center;
}

.m-hero-split-left .sc {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .42);
}

.m-hero-split-left .sc.hi {
    border-color: rgba(233, 43, 97, .4);
    color: var(--accent);
}

.m-hero-split-right {
    position: relative;
    overflow: hidden;
}

.m-hero-split-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.m-hero-split-title {
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.m-hero-split-title h2 {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -.02em;
    line-height: 1;
}

.m-hero-split-title p {
    font-size: .68rem;
    color: var(--muted);
    margin-top: 3px;
}

.pwa-badge {
    background: var(--ink);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.pwa-badge-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

/* Responsive portfolio */
@media (max-width: 900px) {
    .port-grid {
        grid-template-columns: 1fr;
    }

    .m-body {
        grid-template-columns: 1fr;
    }

    .m-desc {
        border-right: none !important;
        border-bottom: var(--border-w-thick) solid var(--ink) !important;
    }

    .m-hero-split {
        grid-template-columns: 1fr;
    }

    .m-hero-split-left {
        border-right: none;
        border-bottom: var(--border-w-thick) solid var(--ink);
        min-height: 160px;
    }

    .g-row1 {
        grid-template-columns: 1fr;
    }

    .g-row2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {

    .g-row2,
    .g-row-3col {
        grid-template-columns: 1fr 1fr;
    }
}

.visual-grid-icons .icon-box .dot.accent {
    background: var(--accent);
    opacity: 0.7;
}

.visual-grid-icons .icon-box .dot.green {
    background: #03CF94;
    opacity: 0.6;
}

/* =========================================
   MODAL THEMES — dark / light / green
   ========================================= */

.modal-wrap {
    border-radius: 18px;
    overflow: hidden;
}

.modal-wrap.theme-dark {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, .08);
}

.modal-wrap.theme-light {
    background: #fff;
    border: 2.5px solid var(--ink);
}

.modal-wrap.theme-dark-alt {
    background: #111;
    border: 1px solid rgba(255, 255, 255, .1);
}

.m-hero.h-std {
    height: clamp(200px, 22vw, 270px);
}

.m-hero.h-short {
    height: clamp(200px, 22vw, 260px);
}

/* Divisores reutilizables */
.bd-dark-t {
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.bd-dark-r {
    border-right: 1px solid rgba(255, 255, 255, .07);
}

.bd-dark-b {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.bd-dark-bxs {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.bd-dark-rxs {
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.bd-light-b {
    border-bottom: 2.5px solid var(--ink);
}

.bd-light-r {
    border-right: 2.5px solid var(--ink);
}

.bd-light-t {
    border-top: 2.5px solid var(--ink);
}

.bd-sep-b {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* Texto */
.t-dk58 {
    color: rgba(255, 255, 255, .58);
}

.t-dk72 {
    color: rgba(255, 255, 255, .72);
}

.t-dk45 {
    color: rgba(255, 255, 255, .45);
}

.t-dk30 {
    color: rgba(255, 255, 255, .3);
}

.t-dk35 {
    color: rgba(255, 255, 255, .35);
}

.t-dk28 {
    color: rgba(255, 255, 255, .28);
}

.t-lt70 {
    color: rgba(46, 46, 46, .7);
}

.t-lt42 {
    color: rgba(46, 46, 46, .42);
}

.t-lt45 {
    color: rgba(46, 46, 46, .45);
}

.t-lt55 {
    color: rgba(46, 46, 46, .55);
}

.t-dk58 strong {
    color: rgba(255, 255, 255, .82);
}

.t-lt70 strong {
    color: var(--ink);
}

/* Meta dot */
.mi-dot {
    width: 8px;
    height: 2px;
    display: block;
    margin-right: 5px;
    flex-shrink: 0;
}

.mi-dot.sm {
    height: 1px;
}

.mi-dot.accent {
    background: var(--accent);
}

.mi-dot.blue {
    background: #00aaff;
}

.mi-dot.green {
    background: #03CF94;
}

/* Chips */
.m-chip.dark {
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .45);
}

.m-chip.blue {
    border: 1.5px solid rgba(0, 170, 255, .35);
    color: #0a1a4a;
}

.m-chip.accent {
    border: 1.5px solid rgba(233, 43, 97, .3);
    color: var(--accent);
}

.m-chip.neutral {
    border: 1.5px solid rgba(46, 46, 46, .16);
    color: rgba(46, 46, 46, .55);
}

/* Galería */
.m-gal-hd.dark-sep {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.m-gal-hd.light-sep {
    border-bottom: 1.5px solid rgba(46, 46, 46, .1);
}

.m-gal-lbl.dark {
    color: rgba(255, 255, 255, .28);
}

.m-gal-lbl.light {
    color: rgba(46, 46, 46, .42);
}

.gc.bd-dr {
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.gc.bd-db {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.gc.bd-lr {
    border-right: 1.5px solid rgba(46, 46, 46, .1);
}

.gc.bd-lb {
    border-bottom: 1.5px solid rgba(46, 46, 46, .1);
}

.gc-tag.dark {
    color: rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .55);
}

.gc-tag.light {
    color: rgba(46, 46, 46, .55);
    background: rgba(255, 255, 255, .9);
}

/* Footer */
.m-foot.f-dark {
    background: rgba(0, 0, 0, .25);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.m-foot.f-light {
    background: var(--bg);
    border-top: 2.5px solid var(--ink);
}

.m-foot.f-dark-alt {
    background: rgba(0, 0, 0, .3);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.m-foot-logo.dark {
    color: rgba(255, 255, 255, .3);
}

.m-foot-logo.light {
    color: rgba(46, 46, 46, .45);
}

.m-foot-url.dark {
    color: rgba(255, 255, 255, .3);
}

.m-foot-url.green {
    color: rgba(255, 255, 255, .35);
}

.m-foot-url.blue {
    color: #0a1a4a;
}

.m-foot-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.m-foot-dot.accent {
    background: var(--accent);
}

.m-foot-dot.blue {
    background: #00aaff;
}

.m-foot-dot.green {
    background: #03CF94;
}

/* Tags temáticos */
.m-tag.annua {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-tag.tcs {
    background: rgba(10, 26, 74, .7);
    border: 1px solid rgba(0, 170, 255, .3);
    color: #00aaff;
}

.m-tag.mpunto {
    background: rgba(3, 207, 148, .15);
    border: 1px solid rgba(3, 207, 148, .35);
    color: #03CF94;
}

/* Métricas verdes */
.m-metrics.green {
    background: #03CF94;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.m-metrics.green .m-metric-num {
    color: #2e2e2e;
}

.m-metrics.green .m-metric-lbl {
    color: rgba(46, 46, 46, .6);
}

.m-metrics.green .m-metric-sep {
    background: rgba(46, 46, 46, .15);
}

/* Logo Mpunto */
.mpunto-logo-hero {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mpunto-logo-icon {
    width: 36px;
    height: 36px;
    background: #111;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
}

.mpunto-logo-icon em {
    color: var(--accent);
    font-style: normal;
}

.mpunto-logo-url {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

/* Variantes m-close */
.m-close.light {
    border: 2px solid #2e2e2e;
    background: rgba(255, 255, 255, .9);
    color: #2e2e2e;
}

/* ddonde split */
.m-hero-split-right.min220 {
    min-height: 220px;
}

.m-hero-split-title.bd-lt {
    border-bottom: 2.5px solid var(--ink);
}

/* g-row separadores */
.g-row1.bd-dark-b {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.g-row2.bd-lt-t {
    border-top: 1.5px solid rgba(46, 46, 46, .1);
}

.m-gal.bd-dark-t {
    border-top: 1px solid rgba(255, 255, 255, .07);
}

/* =========================================
   EDITORIAL CRAFT PORTFOLIO SYSTEM
   ========================================= */
.ec-portfolio {
    padding: clamp(60px, 8vw, 120px) 0;
    background: var(--bg);
}

.ec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.ec-card {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    display: flex;
    flex-direction: column;
}

.ec-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--ink);
}

.ec-card-img {
    height: 280px;
    overflow: hidden;
    border-bottom: 2px solid var(--ink);
    position: relative;
}

.ec-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.ec-card:hover .ec-card-img img {
    transform: scale(1.05);
}

.ec-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ink);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.ec-card-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 2;
    border: 2px solid var(--ink);
}

.ec-card-foot {
    padding: 24px;
    background: var(--white);
}

.ec-card-cat {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    display: block;
}

.ec-card-name {
    font-family: 'Chillax', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ec-card-year {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 10px;
    display: block;
}

@media (max-width: 850px) {
    .ec-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Compacto */
.gal-hero {
    background-color: var(--hero-bg);
    padding-top: clamp(120px, 15vw, 180px);
    padding-bottom: clamp(40px, 6vw, 64px);
    padding-left: clamp(20px, 4vw, 60px);
    padding-right: clamp(20px, 4vw, 60px);
}

.gal-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.gal-hero-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.gal-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 16px;
}

.gal-hero-title em {
    font-style: italic;
    color: var(--accent);
}

.gal-hero-subtitle {
    font-size: 1rem;
    color: rgba(46, 46, 46, 0.6);
    max-width: 600px;
}

/* Filter Bar Sticky */
.filter-bar {
    position: sticky;
    top: var(--nav-h);
    z-index: 100;
    background: rgba(241, 244, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(46, 46, 46, 0.08);
    padding: 14px clamp(20px, 4vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.filter-btns {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 4px;
}

.filter-btns::-webkit-scrollbar {
    display: none;
    /* Safari/Chrome */
}

.filter-btn {
    background: transparent;
    border: 1.5px solid rgba(46, 46, 46, 0.15);
    color: rgba(46, 46, 46, 0.5);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
}

.filter-btn:hover {
    border-color: rgba(46, 46, 46, 0.4);
    color: var(--ink);
}

.filter-btn.active {
    background-color: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.filter-counter {
    font-size: .75rem;
    color: rgba(46, 46, 46, 0.4);
    font-weight: 500;
    white-space: nowrap;
}

/* Gallery Grid */
.gal-section {
    background-color: var(--gal-bg);
    padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 60px);
}

.gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.gal-item {
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gal-item.gal-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.gal-card {
    position: relative;
    border: 2px solid var(--ink);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
    background-color: var(--hero-bg);
    /* Lavender loading placeholder */
    height: 100%;
}

.gal-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--ink);
}

.gal-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.gal-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s var(--ease);
}

.gal-card:hover .gal-img img {
    transform: scale(1.04);
}

.gal-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.gal-label-tag {
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Video Card Specifics */
.gal-card-video .gal-video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gal-card-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gal-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s var(--ease);
}

.gal-card-video:hover .gal-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
}

/* Lightbox */
.lb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s var(--ease);
}

.lb-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.lb-container {
    width: 90vw;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.96);
    transition: transform 0.26s var(--ease);
}

.lb-overlay.open .lb-container {
    transform: scale(1);
}

.lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.lb-video {
    width: min(90vw, 960px);
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: #000;
}

.lb-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9600;
    transition: background 0.2s;
}

.lb-close:hover {
    background: var(--accent);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 9550;
}

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lb-prev {
    left: 20px;
}

.lb-next {
    right: 20px;
}

/* Responsive Columns */
@media (min-width: 1024px) {
    .gal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .gal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) and (max-width: 639px) {
    .gal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .gal-grid {
        grid-template-columns: 1fr;
    }

    .lb-nav {
        display: none;
    }

    .gal-card {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Reconocimientos Section */
.rec-section {
    background-color: var(--hero-bg);
    padding-bottom: clamp(48px, 8vw, 88px);
}

.rec-head {
    padding: clamp(48px, 8vw, 88px) clamp(20px, 4vw, 60px) 0;
}

.rec-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .3em;
    color: rgba(46, 46, 46, .42);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.rec-eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    background-color: var(--accent);
}

.rec-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 16px;
}

.rec-section-title em {
    font-style: italic;
    color: var(--accent);
}

.rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 60px) clamp(48px, 8vw, 88px);
}

.rec-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--ink);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.rec-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--ink);
}

.rec-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.rec-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}

.rec-card:hover .rec-img img {
    transform: scale(1.04);
}

.rec-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: 999px;
}

.rec-badge span {
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.rec-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s var(--ease);
}

.rec-card:hover .rec-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.rec-body {
    padding: clamp(16px, 3vw, 24px) clamp(16px, 3vw, 22px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 2px solid var(--ink);
    flex-grow: 1;
}

.rec-publisher {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(46, 46, 46, 0.4);
}

.rec-title {
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--ink);
}

.rec-desc {
    font-size: clamp(.76rem, 1.1vw, .86rem);
    line-height: 1.72;
    color: rgba(46, 46, 46, 0.6);
    margin-top: 2px;
}

.rec-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.rec-meta-tag {
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid rgba(46, 46, 46, 0.12);
    border-radius: 999px;
    color: rgba(46, 46, 46, 0.4);
    transition: all 0.2s var(--ease);
}

.rec-card:hover .rec-meta-tag {
    border-color: rgba(233, 43, 97, 0.3);
    color: rgba(46, 46, 46, 0.6);
}

.rec-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ink);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.rec-card:hover .rec-link {
    opacity: 1;
}

.rec-link-bar {
    width: 14px;
    height: 1.5px;
    background: var(--accent);
    display: block;
}

@media (max-width: 700px) {
    .rec-grid {
        grid-template-columns: 1fr;
    }
}