/*
Theme Name: Mansoka Theme
Theme URI: https://mauriciocolorado.com/
Description: Tema personalizado CLRD · Mauricio Colorado
Author: Andrés Colorado
Author URI: https://mauriciocolorado.com
Version: 2.3
*/

@font-face {
    font-family: 'NewBlackTypeface';
    src: url('fonts/NewBlackTypeface-UltraLight.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NewBlackTypeface';
    src: url('fonts/NewBlackTypeface-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: 'NewBlackTypeface';
    src: url('fonts/NewBlackTypeface-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NewBlackTypeface';
    src: url('fonts/NewBlackTypeface-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: 'NewBlackTypeface';
    src: url('fonts/NewBlackTypeface-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* =============================================================================
   2. CUSTOM PROPERTIES — Paleta CLRD confirmada, tipografía y espaciado
   ============================================================================= */

:root {

    /* -------------------------------------------------------------------------
       COLORES PRIMARIOS — Paleta CLRD confirmada
       ------------------------------------------------------------------------- */
    --clrd-black:           #000000;   /* Negro principal — texto, elementos base */
    --clrd-dark:            #141414;   /* Capa muy oscura — secciones negras      */
    --clrd-dark-mid:        #1E1E1E;   /* Superficie oscura — cards dark          */
    --clrd-gray-dark:       #3A3A3A;   /* Gris oscuro — texto secundario oscuro   */
    --clrd-gray:            #6B6B6B;   /* Gris medio — texto secundario           */
    --clrd-gray-light:      #C0C0C0;   /* Gris claro — bordes, separadores        */
    --clrd-white:           #FFFFFF;   /* Blanco puro — fondo principal           */
    --clrd-off-white:       #F8F8F8;   /* Blanco suave — fondos alternativos      */

    /* -------------------------------------------------------------------------
       COLOR DE ACENTO — Azul CLRD #3C06FF
       ------------------------------------------------------------------------- */
    --clrd-accent:          #3C06FF;   /* Azul CLRD — acento principal, H2, hover */
    --clrd-accent-hover:    #2A00E8;   /* Azul hover — versión más oscura         */
    --clrd-accent-light:    #8B6BFF;   /* Azul claro — tintes, fondos suaves      */

    /* -------------------------------------------------------------------------
       COLORES SEMÁNTICOS
       ------------------------------------------------------------------------- */
    --clrd-success:         #2ECC71;
    --clrd-error:           #E74C3C;
    --clrd-warning:         #F39C12;
    --clrd-info:            #3498DB;

    /* -------------------------------------------------------------------------
       ALIASES SEMÁNTICOS — Usar estos en los componentes
       ------------------------------------------------------------------------- */
    --color-bg:             var(--clrd-white);       /* Fondo principal — blanco       */
    --color-bg-alt:         var(--clrd-off-white);   /* Fondo alterno — blanco suave  */
    --color-bg-dark:        var(--clrd-black);        /* Fondo secciones oscuras        */
    --color-surface:        var(--clrd-off-white);   /* Superficie — cards, paneles    */
    --color-text:           var(--clrd-black);        /* Texto principal — negro        */
    --color-text-muted:     var(--clrd-gray);         /* Texto secundario — gris        */
    --color-border:         var(--clrd-gray-light);   /* Bordes — gris claro            */
    --color-accent:         var(--clrd-accent);       /* Azul #3C06FF                   */
    --color-accent-hover:   var(--clrd-accent-hover); /* Azul hover #2A00E8            */

    /* -------------------------------------------------------------------------
       TIPOGRAFÍA
       ------------------------------------------------------------------------- */
    --font-primary:         'NewBlackTypeface', 'Helvetica Neue', Arial, sans-serif;
    --font-mono:            'Courier New', Courier, monospace;

    --text-xs:              0.625rem;
    --text-sm:              0.75rem;
    --text-base:            1rem;
    --text-md:              1.125rem;
    --text-lg:              1.375rem;
    --text-xl:              1.75rem;
    --text-2xl:             2.25rem;
    --text-3xl:             3rem;
    --text-4xl:             4rem;
    --text-5xl:             6rem;
    --text-display:         clamp(3.5rem, 8vw, 9rem);

    --leading-tight:        1.1;
    --leading-snug:         1.25;
    --leading-normal:       1.5;
    --leading-relaxed:      1.7;

    --tracking-tight:       -0.03em;
    --tracking-normal:       0em;
    --tracking-wide:         0.05em;
    --tracking-widest:       0.18em;

    /* -------------------------------------------------------------------------
       ESPACIADO
       ------------------------------------------------------------------------- */
    --space-1:              0.25rem;
    --space-2:              0.5rem;
    --space-3:              0.75rem;
    --space-4:              1rem;
    --space-6:              1.5rem;
    --space-8:              2rem;
    --space-10:             2.5rem;
    --space-12:             3rem;
    --space-16:             4rem;
    --space-20:             5rem;
    --space-24:             6rem;
    --space-32:             8rem;
    --space-section:        clamp(4rem, 8vw, 8rem);

    /* -------------------------------------------------------------------------
       BORDES, SOMBRAS, TRANSICIONES
       ------------------------------------------------------------------------- */
    --radius-sm:            2px;
    --radius-md:            4px;
    --radius-lg:            8px;
    --radius-xl:            16px;
    --radius-pill:          9999px;

    --shadow-sm:            0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md:            0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg:            0 12px 40px rgba(0, 0, 0, 0.16);
    --shadow-accent:        0 4px 24px rgba(60, 6, 255, 0.25);

    --transition-fast:      150ms ease;
    --transition-base:      250ms ease;
    --transition-slow:      400ms ease;
    --transition-bounce:    300ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* -------------------------------------------------------------------------
       LAYOUT
       ------------------------------------------------------------------------- */
    --container-max:        1280px;
    --container-wide:       1440px;
    --container-narrow:     720px;
    --gutter:               clamp(1.5rem, 4vw, 4rem);

    --z-below:              -1;
    --z-base:                1;
    --z-float:              10;
    --z-overlay:           100;
    --z-modal:             200;
    --z-nav:               300;
    --z-toast:             400;
}


/* =============================================================================
   3. RESET Y BASE GLOBAL
   ============================================================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

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

a:hover {
    color: var(--clrd-accent);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: var(--font-primary);
}


/* =============================================================================
   4. TIPOGRAFÍA GLOBAL
   ============================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-4xl); color: var(--color-text); }
h2 { font-size: var(--text-3xl); color: var(--color-accent); }  /* Azul #3C06FF */
h3 { font-size: var(--text-2xl); color: var(--color-text); }
h4 { font-size: var(--text-xl);  color: var(--color-text); }
h5 { font-size: var(--text-lg);  color: var(--color-text); }
h6 { font-size: var(--text-md);  color: var(--color-text); }

/* H2 class alias */
.clrd-h2 { color: var(--color-accent); }

/* Titular hero — display adaptativo */
.clrd-display {
    font-size: var(--text-display);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
    color: var(--color-text);
}

/* Párrafo grande introductorio */
.clrd-lead {
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: var(--leading-relaxed);
    color: var(--clrd-gray-dark);
}

p {
    font-size: var(--text-base);
    font-weight: 300;
    line-height: var(--leading-relaxed);
    color: var(--clrd-gray-dark);
}

.clrd-label {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--clrd-accent);
}

.clrd-caption {
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: var(--tracking-wide);
}

.clrd-monogram {
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text);
}

.clrd-name {
    font-size: var(--text-display);
    font-weight: 100;
    line-height: 1;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text);
}


/* =============================================================================
   5. LINKS — Hover en azul #3C06FF
   ============================================================================= */

.clrd-link {
    color: var(--clrd-accent);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-base);
}

.clrd-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--clrd-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.clrd-link:hover {
    color: var(--color-accent-hover);
}

.clrd-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    background-color: var(--color-accent-hover);
}


/* =============================================================================
   6. BOTONES — 6 variantes + tamaños
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75em 2em;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
}

.btn:active  { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Primario — azul sólido */
.btn-primary { background-color: var(--color-accent); color: #FFFFFF; border-color: var(--color-accent); }
.btn-primary:hover,
.btn-primary:focus { background-color: var(--color-accent-hover); border-color: var(--color-accent-hover); box-shadow: var(--shadow-accent); color: #FFFFFF; }

/* Secundario — fondo claro */
.btn-secondary { background-color: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover,
.btn-secondary:focus { background-color: var(--clrd-gray-light); border-color: var(--clrd-gray); color: var(--clrd-black); }

/* Outline azul */
.btn-outline { background-color: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-outline:hover,
.btn-outline:focus { background-color: var(--color-accent); color: #FFFFFF; box-shadow: var(--shadow-accent); }

/* Ghost negro */
.btn-ghost { background-color: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn-ghost:hover,
.btn-ghost:focus { background-color: var(--color-text); color: var(--color-bg); }

/* Dark — relleno negro */
.btn-dark { background-color: var(--clrd-black); color: #FFFFFF; border-color: var(--clrd-black); }
.btn-dark:hover,
.btn-dark:focus { background-color: var(--clrd-dark-mid); border-color: var(--clrd-gray-dark); color: #FFFFFF; }

/* Texto con subrayado animado */
.btn-text {
    background: none;
    border: none;
    color: var(--color-text);
    padding: 0.25em 0;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    position: relative;
    border-radius: 0;
}
.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px;
    background-color: currentColor;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform var(--transition-base);
}
.btn-text:hover { color: var(--color-accent); }
.btn-text:hover::after { transform: scaleX(0); transform-origin: right; }

/* Tamaños */
.btn-sm   { padding: 0.5em 1.25em;  font-size: var(--text-xs);   }
.btn-lg   { padding: 1em 2.5em;     font-size: var(--text-base); }
.btn-xl   { padding: 1.25em 3em;    font-size: var(--text-md);   }
.btn-icon { padding: 0.75em; aspect-ratio: 1 / 1; }
.btn-full { width: 100%; }


/* =============================================================================
   7. DIVISORES
   ============================================================================= */

.clrd-divider              { width: 100%; height: 1px; background-color: var(--color-border); border: none; margin-block: var(--space-8); }
.clrd-divider--accent      { background-color: var(--color-accent); height: 2px; width: 3rem; margin-block: var(--space-6); }
.clrd-divider--vertical    { width: 1px; height: 100%; background-color: var(--color-border); }


/* =============================================================================
   8. TAGS / BADGES
   ============================================================================= */

.clrd-tag {
    display: inline-flex; align-items: center; gap: var(--space-1);
    padding: 0.3em 0.8em;
    font-size: var(--text-xs); font-weight: 500;
    letter-spacing: var(--tracking-wide); text-transform: uppercase;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    color: var(--color-text-muted); background-color: transparent; line-height: 1;
}
.clrd-tag--accent  { border-color: var(--color-accent); color: var(--color-accent); }
.clrd-tag--filled  { background-color: var(--color-accent); border-color: var(--color-accent); color: #FFFFFF; }
.clrd-tag--dark    { background-color: var(--clrd-black); border-color: var(--clrd-black); color: #FFFFFF; }


/* =============================================================================
   9. LAYOUT HELPERS
   ============================================================================= */

.clrd-container         { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.clrd-container--wide   { max-width: var(--container-wide); }
.clrd-container--narrow { max-width: var(--container-narrow); }
.clrd-section           { padding-block: var(--space-section); }

.clrd-grid   { display: grid; gap: var(--space-8); }
.clrd-grid-2 { grid-template-columns: repeat(2, 1fr); }
.clrd-grid-3 { grid-template-columns: repeat(3, 1fr); }
.clrd-grid-4 { grid-template-columns: repeat(4, 1fr); }

.clrd-flex         { display: flex; align-items: center; gap: var(--space-4); }
.clrd-flex-between { justify-content: space-between; }
.clrd-flex-center  { justify-content: center; }
.clrd-flex-col     { flex-direction: column; }
.clrd-flex-wrap    { flex-wrap: wrap; }

@media (max-width: 1024px) {
    .clrd-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .clrd-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .clrd-grid-4, .clrd-grid-3, .clrd-grid-2 { grid-template-columns: 1fr; }
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
}


/* =============================================================================
   10. ANIMACIONES GLOBALES
   ============================================================================= */

@keyframes clrd-fade-up  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes clrd-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes clrd-reveal-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0% 0 0); } }
@keyframes clrd-reveal-y { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0% 0 0 0); } }

.clrd-anim-fade-up  { animation: clrd-fade-up  0.7s ease both; }
.clrd-anim-fade-in  { animation: clrd-fade-in  0.5s ease both; }
.clrd-anim-reveal-x { animation: clrd-reveal-x 0.8s ease both; }

.clrd-delay-1 { animation-delay: 0.1s; }
.clrd-delay-2 { animation-delay: 0.2s; }
.clrd-delay-3 { animation-delay: 0.3s; }
.clrd-delay-4 { animation-delay: 0.4s; }
.clrd-delay-5 { animation-delay: 0.5s; }


/* =============================================================================
   11. UTILIDADES RÁPIDAS
   ============================================================================= */

.clrd-text-accent  { color: var(--color-accent); }
.clrd-text-muted   { color: var(--color-text-muted); }
.clrd-text-white   { color: #FFFFFF; }
.clrd-uppercase    { text-transform: uppercase; }
.clrd-lowercase    { text-transform: lowercase; }
.clrd-text-center  { text-align: center; }
.clrd-text-right   { text-align: right; }
.clrd-text-left    { text-align: left; }
.clrd-ultralight   { font-weight: 100; }
.clrd-light        { font-weight: 300; }
.clrd-regular      { font-weight: 400; }
.clrd-medium       { font-weight: 500; }
.clrd-semibold     { font-weight: 600; }
.clrd-bold         { font-weight: 700; }
.clrd-extrabold    { font-weight: 800; }
.clrd-bg-dark      { background-color: var(--clrd-black); }
.clrd-bg-surface   { background-color: var(--color-surface); }
.clrd-bg-accent    { background-color: var(--color-accent); }
.clrd-relative     { position: relative; }
.clrd-absolute     { position: absolute; }
.clrd-w-full       { width: 100%; }
.clrd-h-full       { height: 100%; }
.clrd-overflow-hidden { overflow: hidden; }

.clrd-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* =============================================================================
   HEADER — CLRD Custom Header
   Reemplaza el header nativo de OceanWP mediante hook ocean_header
   ============================================================================= */

:root {
    --header-height: 100px;
}

/* ── Base ───────────────────────────────────────────────────────────────────────────── */
.clrd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--clrd-black);
    border-bottom: 1px solid transparent;
    transition: background-color .3s ease,
                border-color .3s ease,
                box-shadow .3s ease,
                transform .35s ease;
}

/* Offset al cuerpo para no tapar contenido */
body {
    padding-top: var(--header-height);
}

/* Estado: con scroll */
.clrd-header--scrolled {
    border-bottom-color: var(--clrd-gray-light);
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

/* --- Header text colors on dark background --- */
.clrd-header .clrd-nav__list > li > a {
    color: var(--clrd-white) !important;
}
.clrd-header .clrd-nav__list > li > a:hover,
.clrd-header .clrd-nav__list > li.current-menu-item > a {
    color: var(--clrd-accent) !important;
}
/* Invert logo image so black PNG shows white on dark header */
.clrd-header .clrd-logo-img {
    filter: invert(1);
}
/* In home-hero transparent mode, show logo un-inverted (logo invisible anyway) */
.clrd-header--home-hero .clrd-logo-img {
    filter: none;
}

/* Estado: oculto (scroll hacia abajo) */
.clrd-header--hidden {
    transform: translateY(-100%);
}

/* Estado: transparente en portada */
.clrd-header--transparent {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

/* ── Inner container ─────────────────────────────────────────────────────────── */
.clrd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max, 1280px);
    margin: 0 auto;
    padding: 28px var(--spacing-lg, 2rem) 10px;
    height: var(--header-height);
    gap: 1.5rem;
}

/* ── Logo ────────────────────────────────────────────────────────────────────────────── */
.clrd-header__logo {
    flex-shrink: 0;
    line-height: 1;
}

.clrd-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.clrd-header__logo .custom-logo,
.clrd-header__logo .clrd-logo-img {
    display: block;
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 180px;
    transition: opacity .2s ease;
}

.clrd-header__logo .custom-logo:hover {
    opacity: .8;
}

.clrd-logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    letter-spacing: -.02em;
    text-transform: uppercase;
}

/* ── Navegación ────────────────────────────────────────────────────────────────────── */
.clrd-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.clrd-nav__list {
    display: flex;
    align-items: center;
    gap: 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.clrd-nav__list > li {
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.clrd-nav__list > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0 0 6px 0;
    font-family: var(--font-primary);
    font-size: .875rem;
    font-weight: 400;
    letter-spacing: .04em;
    color: var(--color-text);
    text-decoration: none;
    text-transform: lowercase;
    white-space: nowrap;
    transition: color var(--transition-fast, .15s ease);
    position: relative;
}

.clrd-nav__list > li > a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: .875rem;
    right: .875rem;
    height: 2px;
    background-color: var(--clrd-accent);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.clrd-nav__list > li > a:hover,
.clrd-nav__list > li.current-menu-item > a,
.clrd-nav__list > li.current_page_item > a {
    color: var(--clrd-accent);
}

.clrd-nav__list > li > a:hover::after,
.clrd-nav__list > li.current-menu-item > a::after,
.clrd-nav__list > li.current_page_item > a::after {
    transform: scaleX(1);
}

/* ── Acciones del header ───────────────────────────────────────────────────── */
.clrd-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.clrd-header__cta {
    font-size: .8125rem !important;
    padding: .5rem 1.125rem !important;
    white-space: nowrap;
}

/* ── Hamburger ───────────────────────────────────────────────────────────────────────── */
.clrd-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color .2s ease;
}

.clrd-hamburger:hover {
    background-color: var(--clrd-off-white);
}

.clrd-hamburger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
    pointer-events: none;
}

.clrd-hamburger--active .clrd-hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.clrd-hamburger--active .clrd-hamburger__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.clrd-hamburger--active .clrd-hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Overlay mobile ────────────────────────────────────────────────────────────────── */
.clrd-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.clrd-mobile-overlay.clrd-overlay--on {
    opacity: 1;
    pointer-events: auto;
}

/* ── Scroll lock ──────────────────────────────────────────────────────────────────────── */
body.clrd-no-scroll {
    overflow: hidden;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .clrd-nav__list > li > a {
        padding: .5rem .6rem;
        font-size: .8125rem;
    }
}

@media (max-width: 768px) {

    .clrd-hamburger { display: flex; }
    .clrd-header__hamburger { display: flex !important; }

    .clrd-header__nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        width: min(320px, 82vw);
        background-color: var(--clrd-black);
        box-shadow: -4px 0 32px rgba(0,0,0,.12);
        z-index: 1001;
        overflow-y: auto;
        padding: 1.5rem 1.25rem;
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
        justify-content: flex-start;
    }

    .clrd-header__nav.clrd-nav--open {
        transform: translateX(0);
    }

    .clrd-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .clrd-nav__list > li {
        width: 100%;
    }

    .clrd-nav__list > li > a {
        display: block;
        padding: 1rem .5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--clrd-off-white);
        width: 100%;
    }

    .clrd-nav__list > li > a::after {
        display: none;
    }

    .clrd-header__cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .clrd-header__inner {
        padding: 0 1rem;
    }
}

/* ==========================================================================
   HEADER – REDES SOCIALES
   ========================================================================== */

.clrd-header__social {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-right: 24px;
}

.clrd-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--clrd-black);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.clrd-social-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
    shape-rendering: geometricPrecision;
}

.clrd-social-link:hover,
.clrd-social-link:focus-visible {
    color: var(--clrd-accent, #3C06FF) !important;
    transform: translateY(-2px);
    outline: none;
}
.clrd-social-link:hover svg,
.clrd-social-link:focus-visible svg {
    fill: var(--clrd-accent, #3C06FF) !important;
}

/* Ajuste de tamaño por red: Instagram queda bien a 20px,
   Behance y LinkedIn son más anchos – se reducen levemente. */
.clrd-social-link--behance  { width: 22px; height: 22px; }
.clrd-social-link--linkedin { width: 18px; height: 18px; }

/* Móvil: los iconos se trasladan al panel de menú */
@media (max-width: 768px) {
    .clrd-header__social {
        margin-right: 0;
        display: none; /* Se re-muestra dentro del panel móvil si se necesita */
    }
}
/* ==========================================================================
   HOMEPAGE HERO – CLRD
   Header transparente + solo iconos sociales visibles al cargar portada.
   Al hacer scroll >80vh el header normal aparece.
   ========================================================================== */

/* --- Header en modo hero (portada, antes del scroll) --- */
.clrd-header--home-hero {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.clrd-header--home-hero .clrd-header__logo,
.clrd-header--home-hero .clrd-header__nav {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.clrd-header--home-hero .clrd-header__social {
    opacity: 1;
    pointer-events: auto;
}

/* Social icons oscuros en home-hero (hero tiene fondo blanco)
.clrd-header--home-hero:hover .clrd-social-link {
    color: var(--clrd-accent-hover) !important;
} */

.clrd-header--home-hero .clrd-social-link {
    color: var(--clrd-accent-hover) !important;
}
.clrd-header--home-hero .clrd-social-link svg {
    fill: var(--clrd-black) !important;
}
.clrd-header--home-hero .clrd-social-link:hover svg {
    fill: var(--clrd-accent, #3C06FF) !important;
}

/* --- Sección hero --- */

.clrd-home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--clrd-white);
    /* Anula el body padding-top para que el hero cubra todo el viewport */
    margin-top: calc(-1 * var(--header-height));
}
.clrd-home-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    width: 100%;
    min-height: 100vh;
    padding: var(--header-height, 80px) 2rem 3rem;
    text-align: center;
}

/* Título principal */
.clrd-home-hero__brand {
    margin-top: 0;
    padding-top: 0.5rem;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.clrd-home-hero__title {
    font-family: var(--font-display, 'NBTypeface', sans-serif);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--clrd-black);
    margin: 0;
}
.clrd-home-hero__dot {
    color: var(--clrd-accent);
}
.clrd-home-hero__title::after {
    content: '.';
    color: var(--clrd-accent);
    display: inline;
}
.clrd-home-hero__subtitle {
    font-family: var(--font-body, sans-serif);
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.06em;
    color: var(--clrd-black);
    margin: 0;
    text-align: right;
    opacity: 0.7;
}

/* Imagen / GIF del diseñador */
.clrd-home-hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}
.clrd-home-hero__media img {
    max-width: 100%;
    max-height: 36vh;
    object-fit: contain;
    display: block;
}

/* Nav en el hero */
.clrd-home-hero__nav {
    margin-top: auto;
}
.clrd-home-hero__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.clrd-home-hero__nav-list a {
    font-family: var(--font-body, sans-serif);
    font-size: 0.9375rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    color: var(--clrd-black);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.clrd-home-hero__nav-list a:hover {
    opacity: 1;
    color: var(--clrd-accent);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .clrd-home-hero__nav-list {
        gap: 1.5rem;
    }
    .clrd-home-hero__inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* ================================================================
   MENU — tipografía lowercase, animación hover azul (v2)
   ================================================================ */

/* Garantizar minúsculas siempre */
.clrd-nav__list > li > a,
.clrd-home-hero__nav-list a {
    text-transform: lowercase !important;
    font-family: var(--font-primary, sans-serif);
}

/* Header nav — fuente y transición de color mejoradas */
.clrd-header .clrd-nav__list > li > a {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--clrd-white) !important;
    transition: color .2s ease;
}

/* Header nav — animación underline pintado de izquierda a derecha */
.clrd-header .clrd-nav__list > li > a {
    position: relative;
    padding-bottom: 6px;
}
.clrd-header .clrd-nav__list > li > a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--clrd-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.clrd-header .clrd-nav__list > li > a:hover::after,
.clrd-header .clrd-nav__list > li.current-menu-item > a::after,
.clrd-header .clrd-nav__list > li.current_page_item > a::after {
    transform: scaleX(1);
}
.clrd-header .clrd-nav__list > li > a:hover,
.clrd-header .clrd-nav__list > li.current-menu-item > a {
    color: var(--clrd-accent) !important;
}

/* Hero bottom nav — animación idéntica, color oscuro sobre fondo blanco */
.clrd-home-hero__nav-list a {
    position: relative;
    display: inline-block;
    color: rgba(0,0,0,.75);
    text-decoration: none !important;
    opacity: 1;
    font-size: .9375rem;
    font-weight: 500;
    letter-spacing: .02em;
    transition: color .2s ease;
}
.clrd-home-hero__nav-list a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--clrd-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.clrd-home-hero__nav-list a:hover {
    color: var(--clrd-accent) !important;
    opacity: 1;
    text-decoration: none !important;
}
.clrd-home-hero__nav-list a:hover::after {
    transform: scaleX(1);
}

/* ================================================================
   HOME PAGE — ocultar contenido por defecto de WordPress
   (titulo Home, sidebar con widgets, entry-content)
   ================================================================ */
body.home #content-wrap,
body.home .page-header,
body.home .entry-header {
    display: none !important;
}
/* ================================================================
   SECCIONES HOME — scroll-snap full screen por bloques
   ================================================================ */
body.home {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
}
.clrd-home-hero,
.clrd-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ================================================================
   SECCIÓN ACERCA DE MÍ
   ================================================================ */
.clrd-about-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    background: var(--clrd-white);
    padding: calc(var(--header-height, 80px) + 5rem) 4rem 8rem;
    box-sizing: border-box;
}
.clrd-about__inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

/* Columna izquierda — nombre tipográfico */
.clrd-about__name {
    display: flex;
    flex-direction: column;
    line-height: 0.85;
    margin-bottom: 0.6rem;
}
.clrd-about__name-bold {
    display: block;
    font-size: clamp(1.7rem, 3vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clrd-black);
    line-height: 0.85;
}
.clrd-about__name-regular {
    display: block;
   font-family: 'NewBlackTypeface';
    font-size: 55px;
    
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--clrd-black);
    line-height: 0.85;
}
.clrd-about__dot { color: var(--clrd-accent); }
.clrd-about__divider {
    width: 120px;
    height: 3px;
    background: var(--clrd-accent);
    border-radius: 2px;
    margin: 0.75rem 0 0.5rem;
}
.clrd-about__role {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    color: var(--clrd-black);
    opacity: 0.75;
    margin: 0;
    max-width: 17ch;
    line-height: 1.35;
}
/* Columna derecha — bio */
.clrd-about__heading {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 900;
    color: var(--clrd-accent);
    text-transform: lowercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.75rem;
}
.clrd-about__bio {
    font-family: var(--font-body, sans-serif);
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--clrd-black);
    text-align: justify;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}
.clrd-about__bio p { margin: 0 0 0.5em; }
.clrd-about__bio p:last-child { margin-bottom: 0; }
.clrd-about__illustration {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible;
    margin-top: 1.5rem;
    max-height: 340px;
}
.clrd-about__illustration img {
    display: block;
    width: auto;
    height: auto;
    max-height: 340px;
    max-width: 100%;
    border: none !important;
    box-shadow: none !important;
}

/* Responsive — about section */
@media (max-width: 900px) {
    .clrd-about-section { height: auto; min-height: 100vh; padding: calc(var(--header-height, 80px) + 3rem) 1.5rem 6rem; overflow: visible; }
    .clrd-about__inner { grid-template-columns: 1fr; gap: 2rem; max-height: none; overflow: visible; }
    .clrd-about__name-col { order: -1; }
    .clrd-about__bio-col  { order:  1; }
    .clrd-about__name-bold,
    .clrd-about__name-regular { font-size: clamp(2rem, 9vw, 4rem); }
    .clrd-about__illustration { max-height: 260px; }
    .clrd-about__illustration img { max-height: 260px; }
}

.clrd-home-hero__inner {
    justify-content: flex-start;   /* era space-between */
    padding-bottom: 3rem;
}

.clrd-home-hero__media {
    margin-top: auto;
    margin-bottom: 1.75rem;
}

.clrd-home-hero__nav {
    margin-top: 0;
    margin-bottom: auto;
    padding-bottom: 0;
}

.clrd-home-hero__nav-list {
    gap: 4rem;
}

.clrd-home-hero__nav-list a {
    font-size: 1.125rem;   /* 18px */
    letter-spacing: 0.03em;
}
.clrd-home-hero__nav {
    width: 100%;          /* sin esto justify-content: center no centra en viewport */
    text-align: center;   /* respaldo */
}

.clrd-home-hero__nav-list {
    gap: 6rem;          
    justify-content: center;
    width: 100%;
}

/* Eliminar subrayado permanente en el ítem activo dentro del hero nav */
.clrd-home-hero__nav-list li.current-menu-item > a::after,
.clrd-home-hero__nav-list li.current_page_item > a::after {
    transform: scaleX(0);  /* no subrayado en reposo, solo en hover */
}
/* =========================================================
   INTERNA: Acerca de mí (.clrd-page-about)
   ========================================================= */
.clrd-about-page-main {
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* =================================================================
   PÁGINA INTERNA: Acerca de mí
   ================================================================= */

/* Sección: quitar min-height y reducir padding inferior */
/* Main wrapper: sin min-height forzado */
body.clrd-page-about .clrd-about-page-main {
    min-height: auto;
}
/* Sección: padding arriba y abajo reducidos */
body.clrd-page-about .clrd-about-section {
    min-height: auto;
    padding-top: calc(var(--header-height, 80px) + 1.5rem);
    padding-bottom: 1.5rem;
}

/* Grid: columna izquierda estrecha, derecha ancha */
body.clrd-page-about .clrd-about__inner {
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    align-items: start;
}

/* Columna nombre */
body.clrd-page-about .clrd-about__name-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
body.clrd-page-about .clrd-about__name {
    line-height: 0.85;
    margin-bottom: 0.6rem;
}
body.clrd-page-about .clrd-about__name-bold {
    font-size: 60px;
    line-height: 90px;
}
body.clrd-page-about .clrd-about__divider {
    margin: 0.5rem 0 0.3rem;
}

/* Columna bio: scroll libre */
body.clrd-page-about .clrd-about__bio-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    padding-top: 0;
}
body.clrd-page-about .clrd-about__heading {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    margin: 0 0 0.75rem;
}
body.clrd-page-about .clrd-about__bio {
    font-size: 0.8125rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
}
body.clrd-page-about .clrd-about__bio p { margin: 0 0 0.5em; }

/* Ilustración */
body.clrd-page-about .clrd-about__illustration {
    margin-top: 1rem;
    max-height: 340px;
}
body.clrd-page-about .clrd-about__illustration img {
    width: auto;
    height: auto;
    max-height: 340px;
    max-width: 100%;
    object-fit: contain;
}


/* =========================================================
   HEADER INTERNO — fondo blanco, texto oscuro
   (.clrd-header--inner se agrega en todas las páginas
    excepto el home)
   ========================================================= */
.clrd-header--inner {
    background-color: var(--clrd-white) !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none;
}

/* Logo: mostrar negro natural (sin invertir) */
.clrd-header--inner .clrd-logo-img {
    filter: none !important;
}

/* Nav links oscuros */
.clrd-header--inner .clrd-nav__list > li > a {
    color: var(--clrd-black) !important;
}
.clrd-header--inner .clrd-nav__list > li > a:hover,
.clrd-header--inner .clrd-nav__list > li.current-menu-item > a,
.clrd-header--inner .clrd-nav__list > li.current_page_item > a {
    color: var(--clrd-accent) !important;
}

/* Iconos sociales oscuros */
.clrd-header--inner .clrd-social-link {
    color: var(--clrd-black);
}
.clrd-header--inner .clrd-social-link svg {
    fill: var(--clrd-black);
}

/* Hamburger oscuro en móvil */
.clrd-header__hamburger { display: none; }
.clrd-header--inner .clrd-header__hamburger {
    color: var(--clrd-black);
}
.clrd-header--inner .clrd-header__hamburger svg path {
    fill: var(--clrd-black);
}

/* Al hacer scroll en internals: borde más visible */
.clrd-header--inner.clrd-header--scrolled {
    border-bottom-color: rgba(0,0,0,.14) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
/* Home (header oscuro): social icons + hamburger en blanco */
.clrd-header:not(.clrd-header--inner) .clrd-social-link {
    color: var(--clrd-white);
}
.clrd-header:not(.clrd-header--inner) .clrd-social-link svg {
    fill: var(--clrd-white);
}
.clrd-header:not(.clrd-header--inner) .clrd-header__hamburger {
    color: var(--clrd-white);
}
.clrd-header:not(.clrd-header--inner) .clrd-header__hamburger svg path {
    fill: var(--clrd-white);
}
/* Logo-text también blanco en home */
.clrd-header:not(.clrd-header--inner) .clrd-logo-text {
    color: var(--clrd-white);
}

/* ====================================================
   RESPONSIVE GLOBAL — Mauricio Colorado
   Breakpoints: 1024px | 768px | 480px | 375px
   ==================================================== */

/* ---- 1024px: tablet landscape ---- */
@media (max-width: 1024px) {
    :root { --header-height: 90px; }

    .clrd-header__inner {
        padding: 20px 1.5rem 10px;
    }

    .clrd-nav__list {
        gap: 2.5rem;
    }

    .clrd-header__logo .custom-logo,
    .clrd-header__logo .clrd-logo-img {
        max-height: 52px;
    }
}

/* ---- 768px: tablet portrait / mobile ---- */
@media (max-width: 768px) {
    :root { --header-height: 72px; }

    .clrd-header__inner {
        padding: 14px 1.25rem 10px;
    }

    .clrd-header__logo .custom-logo,
    .clrd-header__logo .clrd-logo-img {
        max-height: 44px;
    }

    /* Redes sociales: ocultar en móvil (están en menú) */
    .clrd-header__social {
        display: none !important;
    }

    /* Nav horizontal del home-hero */
    .clrd-home-hero__nav-list {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .clrd-home-hero__nav-list a {
        font-size: 1rem;
    }
}

/* ---- 480px: mobile ---- */
@media (max-width: 480px) {
    :root { --header-height: 64px; }

    .clrd-header__inner {
        padding: 10px 1rem 8px;
    }

    .clrd-header__logo .custom-logo,
    .clrd-header__logo .clrd-logo-img {
        max-height: 38px;
    }

    .clrd-home-hero__nav-list {
        gap: 1.5rem;
    }
}

/* ====================================================
   RESPONSIVE ABOUT PAGE
   ==================================================== */
@media (max-width: 1024px) {
    .clrd-about-section {
        padding: calc(var(--header-height, 90px) + 3rem) 2.5rem 5rem;
    }
    .clrd-about__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .clrd-about__name-regular { font-size: 44px; }
}

@media (max-width: 768px) {
    .clrd-about-section {
        padding: calc(var(--header-height, 72px) + 2rem) 1.5rem 3rem;
        min-height: unset;
    }
    .clrd-about__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .clrd-about__name-regular { font-size: 38px; }
    .clrd-about__name-bold { font-size: clamp(1.4rem, 5vw, 2.2rem); }
    .clrd-about__illustration {
        max-height: 220px;
        margin-top: 0;
        order: -1;
    }
    .clrd-about__illustration img { max-height: 220px; }
    .clrd-about__role { font-size: 1rem; }
    .clrd-about__heading { font-size: 1.1rem; }
    .clrd-about__bio { font-size: 0.875rem; }
}

@media (max-width: 480px) {
    .clrd-about-section {
        padding: calc(var(--header-height, 64px) + 1.5rem) 1rem 2.5rem;
    }
    .clrd-about__name-regular { font-size: 30px; }
    .clrd-about__name-bold { font-size: clamp(1.2rem, 6vw, 1.8rem); }
    .clrd-about__illustration {
        max-height: 180px;
    }
    .clrd-about__illustration img { max-height: 180px; }
}

/* ====================================================
   ACCESSIBILITY — Screen Reader Text
   ==================================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}