/* ================================================
   GENESIS HERNÁNDEZ — style.css
   Nordic Minimalist Premium  ·  2026
   ================================================ */

/* ── DESIGN TOKENS ──────────────────────────────── */
:root {
    --light:       #F2F2F2;
    --light-alt:   #E9E9E5;
    --dark:        #1a1612;
    --dark-mid:    #242018;
    --dark-card:   #1e1c18;
    --white:       #FFFFFF;
    --text:        #1a1612;
    --text-mid:    #5c5855;
    --text-light:  #9c9896;
    --accent:      #C4A882;
    --border:      rgba(26,22,18,.1);
    --border-dark: rgba(242,242,242,.12);

    --serif:    'Cormorant Garamond', Georgia, serif;
    --sans:     'Outfit', system-ui, -apple-system, sans-serif;

    --announce-h: 40px;
    --header-h:   80px;

    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in:    cubic-bezier(0.4, 0, 1, 1);
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
    background: var(--light);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}
a  { color: inherit; text-decoration: none; cursor: none; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: none; border: none; background: none; }
*, *::before, *::after { cursor: none !important; }
input, select, textarea { font-family: inherit; }

/* ── LAYOUT HELPERS ─────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ── TYPOGRAPHY BASE ────────────────────────────── */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
}
h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); }
em { font-style: italic; }
p  { font-size: clamp(0.92rem, 1.1vw, 1.05rem); line-height: 1.75; }

/* ── CUSTOM CURSOR ──────────────────────────────── */
/* White cursor with a dark hairline outline + soft shadow.
   This reads clearly on ANY background — over the light grey hero,
   the cream sections, and the dark sections alike (mix-blend-mode
   washed out to grey over mid-tones, so it's no longer used).      */
.cursor-dot {
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 0 1.5px rgba(20,18,14,.55), 0 1px 5px rgba(0,0,0,.3);
    transition: opacity .2s;
}
.cursor-ring {
    width: 34px; height: 34px;
    border: 1.5px solid rgba(255,255,255,.95);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 0 1px rgba(20,18,14,.3), 0 2px 10px rgba(0,0,0,.22);
    transition: opacity .2s;
}
.cursor-dot.is-hidden, .cursor-ring.is-hidden { opacity: 0; }

/* Real cursor over form fields — caret for typing, native dropdown behaviour */
input, textarea, select, .cs-option, .cs-trigger { cursor: auto !important; }
.cs-option, .cs-trigger { cursor: pointer !important; }

/* ── ANNOUNCEMENT BAR ───────────────────────────── */
.announce-bar {
    background: var(--dark);
    height: var(--announce-h);
    overflow: hidden;
    white-space: nowrap;
    display: flex; align-items: center;
}
.announce-track {
    display: inline-flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
    animation: marquee 36s linear infinite;
    color: rgba(242,242,242,.75);
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.announce-track .sep { opacity: .35; }
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── HEADER ─────────────────────────────────────── */
/* No backdrop-filter blur — a sticky always-visible blur repaints on
   every scroll frame and was the main source of the lag. Solid/alpha
   backgrounds composite cheaply on the GPU instead.                 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background .45s var(--ease), box-shadow .45s var(--ease), color .35s;
    /* Solid-enough dark so white text stays readable over the hero */
    background: linear-gradient(to bottom, rgba(20,18,14,.82), rgba(20,18,14,.55));
    color: white;
}
.site-header.scrolled {
    background: var(--light);
    box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(26,22,18,.05);
    color: var(--dark);
}
.site-header.scrolled .header-logo { color: var(--dark); }
.site-header.scrolled .nav-link     { color: var(--dark); }
.site-header.scrolled .btn-header-cta {
    border-color: var(--dark);
    color: var(--dark);
}
.site-header.scrolled .hamburger span { background: var(--dark); }

.header-top {
    display: flex;
    justify-content: center;
    padding: .9rem 0 .25rem;
    border-bottom: 1px solid rgba(255,255,255,.18);
    transition: border-color .35s;
}
.site-header.scrolled .header-top { border-color: var(--border); }

.header-logo {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: white;
    transition: color .35s, opacity .2s;
}
.header-logo:hover { opacity: .72; }

.header-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: .45rem 0;
    position: relative;
}

/* Nav occupies the AUTO (center) column */
.site-nav {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.nav-link {
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(242,242,242,.8);
    transition: color .25s, opacity .25s;
}
.nav-link:hover { color: white; opacity: 1; }
.site-header.scrolled .nav-link { color: var(--text-mid); }
.site-header.scrolled .nav-link:hover { color: var(--dark); }

/* CTA button sits in the third column (right side) */
.btn-header-cta {
    grid-column: 3;
    justify-self: end;
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    border: 1px solid rgba(242,242,242,.5);
    color: white;
    padding: .45rem 1rem;
    border-radius: 2px;
    transition: background .25s, color .25s, border-color .25s, opacity .2s;
}
.btn-header-cta:hover { background: white; color: var(--dark); border-color: white; }
.site-header.scrolled .btn-header-cta:hover { background: var(--dark); color: white; border-color: var(--dark); }

/* Hamburger — right column, mobile only */
.hamburger {
    display: none;
    grid-column: 3;
    justify-self: end;
    flex-direction: column; gap: 5px;
    padding: .4rem;
}
.hamburger span {
    display: block; width: 22px; height: 1.5px;
    background: white;
    transition: transform .35s var(--ease-out), opacity .25s;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ────────────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease-out);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; }
.mobile-link {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 300;
    color: rgba(242,242,242,.85);
    padding: .6rem 2rem;
    width: 100%; text-align: center;
    transition: color .2s;
    border-bottom: 1px solid rgba(242,242,242,.06);
}
.mobile-link:hover { color: white; }
.mobile-cta {
    margin-top: 2.5rem;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(242,242,242,.5);
    border: 1px solid rgba(242,242,242,.15);
    padding: .75rem 2rem;
    transition: color .25s, border-color .25s;
}
.mobile-cta:hover { color: white; border-color: rgba(242,242,242,.5); }

/* ── HERO SECTION ───────────────────────────────── */
.s-hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    /* Local WebP — 61KB, zero external dependency, instant load */
    background:
        url('/images/hero-genesis.webp') center 20% / cover no-repeat;
    background-color: var(--dark);
}

.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(20,18,14,.25) 0%,
            rgba(20,18,14,.45) 55%,
            rgba(20,18,14,.85) 100%),
        linear-gradient(to right,
            rgba(20,18,14,.3) 0%,
            transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: min(900px, 88vw);
    margin: 0 auto;
    text-align: center;
    /* Subir el contenido para que los botones no queden pegados/tapados abajo */
    padding: 0 0 clamp(7rem, 17vh, 12rem);
    color: white;
}

.hero-eyebrow {
    font-size: .64rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(242,242,242,.92);
    margin-bottom: 1.75rem;
    /* Subtle shadow keeps it legible over the lighter parts of the photo */
    text-shadow: 0 1px 12px rgba(20,18,14,.55);
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    font-weight: 300;
    line-height: 1.02;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -.02em;
}
.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: rgba(242,242,242,.85);
}

.hero-sub {
    font-size: clamp(.9rem, 1.2vw, 1.1rem);
    color: rgba(242,242,242,.7);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: white;
    color: var(--dark);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: .9rem 2.25rem;
    border-radius: 2px;
    transition: background .25s, color .25s, transform .2s var(--ease-out), opacity .2s;
    font-weight: 500;
}
.btn-hero-primary:hover { background: var(--accent); color: var(--dark); }
.btn-hero-primary:active { transform: scale(.97); transition-duration: 100ms; }

.btn-hero-secondary {
    border: 1px solid rgba(242,242,242,.45);
    color: rgba(242,242,242,.85);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: .9rem 2.25rem;
    border-radius: 2px;
    transition: border-color .25s, color .25s, transform .2s var(--ease-out);
}
.btn-hero-secondary:hover { border-color: white; color: white; }
.btn-hero-secondary:active { transform: scale(.97); transition-duration: 100ms; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-line {
    display: block;
    width: 1px; height: 52px;
    background: rgba(242,242,242,.2);
    position: relative; overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute; top: -52px; left: 0;
    width: 100%; height: 100%;
    background: rgba(242,242,242,.8);
    animation: scroll-drop 1.9s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes scroll-drop {
    0%   { transform: translateY(0); }
    100% { transform: translateY(104px); }
}

/* Floating card */
.hero-float-card {
    position: absolute;
    bottom: clamp(2rem, 5vw, 3.5rem);
    right: clamp(1.5rem, 4vw, 3.5rem);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .85rem;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    opacity: 0;
    transform: scale(.85);
    filter: blur(6px);
    transition: border-color .3s;
}
.hero-float-card:hover { border-color: rgba(255,255,255,.4); }
.hero-float-card svg { flex-shrink: 0; opacity: .8; }
.float-label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .03em;
}
.float-sub {
    display: block;
    font-size: .7rem;
    color: rgba(242,242,242,.55);
    margin-top: .1rem;
}

/* ── ABOUT SECTION ──────────────────────────────── */
.s-about {
    background: var(--light);
    padding: clamp(5rem, 9vw, 10rem) 0;
}

.about-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.about-label {
    font-size: .62rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-content .about-headline {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--dark);
    margin-bottom: 2rem;
}

.about-text {
    color: var(--text-mid);
    margin-bottom: 1.25rem;
    max-width: 52ch;
}

.btn-about {
    display: inline-block;
    margin-top: 1rem;
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dark);
    border-bottom: 1px solid var(--dark);
    padding-bottom: .25rem;
    transition: opacity .25s, transform .2s var(--ease-out);
}
.btn-about:hover { opacity: .6; }
.btn-about:active { transform: scale(.97); }

.about-photo {
    overflow: hidden;
    border-radius: 2px;
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .9s var(--ease-out);
}
.about-photo:hover img { transform: scale(1.03); }

/* ── SERVICES SECTION ───────────────────────────── */
.s-servicios {
    background: var(--dark);
    padding: clamp(5rem, 9vw, 10rem) 0;
}

.svc-intro {
    margin-bottom: clamp(3rem, 5vw, 5rem);
}
.svc-intro h2 {
    color: rgba(242,242,242,.9);
    font-size: clamp(2.2rem, 3.8vw, 3.8rem);
}
.svc-intro h2 em {
    font-style: italic;
    color: var(--accent);
}

/* 3-column vertical card grid */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(242,242,242,.06);
    border: 1px solid rgba(242,242,242,.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1px;
}

.svc-card {
    position: relative;
    min-height: clamp(540px, 66vh, 700px);
    overflow: hidden;
    background: var(--dark-card);
    display: flex; flex-direction: column;
    transition: background .4s;
}
.svc-card:hover { background: var(--dark-mid); }

/* Background image with Ken Burns */
.svc-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 20%;
    opacity: .12;
    transform: scale(1.04);
    transition: transform 12s linear, opacity .5s;
}
.svc-card:hover .svc-bg { transform: scale(1.12); opacity: .18; }

.svc-bg-1 { background-image: url('/images/genesis-bench.webp'); }
.svc-bg-2 { background-image: url('/images/genesis-stool.webp'); }
.svc-bg-3 { background-image: url('/images/genesis-fullbody.webp'); }

.svc-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,18,14,.95) 40%, rgba(20,18,14,.5) 100%);
}

.svc-body {
    position: relative; z-index: 2;
    flex: 1; display: flex; flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2.25rem 2.5rem;
    color: var(--light);
}

.svc-num {
    font-size: .58rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(242,242,242,.3);
}

.svc-bottom { display: flex; flex-direction: column; }

.svc-name {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 2.5vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.25rem;
}

/* Smooth height reveal with CSS grid trick */
.svc-reveal-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .55s var(--ease-out);
}
.svc-card:hover .svc-reveal-wrap { grid-template-rows: 1fr; }

.svc-reveal { overflow: hidden; }

.svc-features {
    display: flex; flex-direction: column; gap: .7rem;
    margin-bottom: 1.75rem;
    padding-top: .75rem;
    opacity: 0; transform: translateY(10px);
    transition: opacity .4s ease .12s, transform .4s var(--ease-out) .12s;
}
.svc-card:hover .svc-features { opacity: 1; transform: translateY(0); }
.svc-features li {
    font-size: .94rem;
    line-height: 1.45;
    color: rgba(242,242,242,.65);
    padding-left: 1.1rem;
    position: relative;
}
.svc-features li::before {
    content: '—';
    position: absolute; left: 0;
    color: var(--accent); opacity: .6;
    font-size: .7rem;
}

.svc-price {
    margin-bottom: 1.25rem;
    opacity: 0; transform: translateY(8px);
    transition: opacity .4s ease .2s, transform .4s var(--ease-out) .2s;
}
.svc-card:hover .svc-price { opacity: 1; transform: translateY(0); }
.price-from { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(242,242,242,.4); display: block; }
.price-amount { font-family: var(--serif); font-size: 2rem; color: white; }
.price-amount small { font-size: .9rem; color: rgba(242,242,242,.5); }

.svc-cta {
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid rgba(196,168,130,.3);
    padding-bottom: .2rem;
    align-self: flex-start;
    opacity: 0; transform: translateY(6px);
    transition: opacity .4s ease .28s, transform .4s var(--ease-out) .28s, border-color .25s;
}
.svc-card:hover .svc-cta { opacity: 1; transform: translateY(0); }
.svc-cta:hover { border-color: var(--accent); }

/* Soporte strip */
.soporte-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(242,242,242,.06);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 2rem clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(242,242,242,.03);
}
.soporte-label {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: rgba(242,242,242,.7);
    display: block;
    margin-bottom: .4rem;
    font-style: italic;
}
.soporte-desc {
    font-size: .82rem;
    color: rgba(242,242,242,.4);
    max-width: 55ch;
}
.btn-soporte {
    flex-shrink: 0;
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(242,242,242,.6);
    border: 1px solid rgba(242,242,242,.15);
    padding: .65rem 1.5rem;
    border-radius: 2px;
    transition: color .25s, border-color .25s, transform .2s var(--ease-out);
    white-space: nowrap;
}
.btn-soporte:hover { color: white; border-color: rgba(242,242,242,.45); }
.btn-soporte:active { transform: scale(.97); }

/* ── PORTFOLIO SECTION ──────────────────────────── */
.s-portafolio {
    background: var(--light);
    padding: clamp(5rem, 9vw, 10rem) 0;
}

.port-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
    flex-wrap: wrap;
}
.port-intro h2 { color: var(--dark); }
.port-cta-link {
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dark);
    border: 1px solid rgba(26,22,18,.3);
    padding: .8rem 1.6rem;
    border-radius: 2px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: .55rem;
    transition: background .3s, color .3s, border-color .3s, transform .2s var(--ease-out), box-shadow .3s;
}
.port-cta-link:hover {
    background: var(--dark);
    color: var(--light);
    border-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(26,22,18,.18);
}
.port-cta-link:active { transform: scale(.97); }

/* Masonry grid: row 1 = [2fr | 1fr], row 2 = [1fr 1fr 1fr] */
.port-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 4px;
}

.port-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 3/4;
    background: var(--light-alt);
}
.port-item--featured {
    grid-column: span 2;
    aspect-ratio: 3/2;
}

.port-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .75s var(--ease-out);
}
.port-item:hover img { transform: scale(1.05); }
/* Website screenshots — pre-framed to portrait with the site's own bg,
   so the full page shows complete (no crop) inside the cell */
.port-item--site img { object-fit: cover; object-position: center; }

.port-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(20,18,14,.85) 0%, transparent 100%);
    color: white;
    transform: translateY(4px);
    opacity: 0;
    transition: transform .35s var(--ease-out), opacity .3s ease;
}
.port-item:hover .port-caption { transform: translateY(0); opacity: 1; }

.port-cat {
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(242,242,242,.55);
    display: block;
    margin-bottom: .3rem;
}
.port-name { font-size: .9rem; color: white; font-weight: 400; }

/* ── BLOG SECTION ───────────────────────────────── */
.s-blog {
    background: var(--light-alt);
    padding: clamp(5rem, 9vw, 10rem) 0;
}

.blog-intro { margin-bottom: clamp(2.5rem, 4vw, 4.5rem); }
.blog-intro h2 { color: var(--dark); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.blog-card { display: flex; flex-direction: column; }

.blog-card-img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    position: relative;
    background: var(--light-alt);
}
.blog-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out);
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.05); }
.blog-img-hover {
    position: absolute; inset: 0;
    background: rgba(20,18,14,0);
    transition: background .4s;
}
.blog-card:hover .blog-img-hover { background: rgba(20,18,14,.12); }

.blog-cat {
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .65rem;
}
.blog-title {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 1.6vw, 1.6rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: .85rem;
}
.blog-title a { color: inherit; }
.blog-title a:hover { opacity: .7; }
.blog-excerpt {
    font-size: .85rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}
.blog-link {
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    padding-bottom: .2rem;
    align-self: flex-start;
    transition: color .25s, border-color .25s;
}
.blog-link:hover { color: var(--dark); border-color: var(--dark); }

/* ── CONTACT SECTION ────────────────────────────── */
.s-contacto {
    background: var(--dark);
    padding: clamp(5rem, 9vw, 10rem) 0;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.contact-hook {
    font-size: .62rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(242,242,242,.35);
    margin-bottom: 1.5rem;
}
.contact-headline {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    color: rgba(242,242,242,.92);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.contact-sub {
    font-size: .9rem;
    color: rgba(242,242,242,.45);
    max-width: 42ch;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.contact-channels { display: flex; flex-direction: column; gap: 1.25rem; }
.channel-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity .25s;
}
.channel-item:hover { opacity: .75; }
.channel-icon {
    width: 40px; height: 40px;
    border: 1px solid rgba(242,242,242,.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(242,242,242,.6);
    flex-shrink: 0;
    transition: border-color .25s, color .25s;
}
.channel-item:hover .channel-icon { border-color: var(--accent); color: var(--accent); }
.channel-label {
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(242,242,242,.35);
    display: block;
    margin-bottom: .2rem;
}
.channel-value {
    font-size: .9rem;
    color: rgba(242,242,242,.75);
    display: block;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(242,242,242,.4);
}
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(242,242,242,.05);
    border: 1px solid rgba(242,242,242,.1);
    color: rgba(242,242,242,.85);
    padding: .85rem 1rem;
    border-radius: 2px;
    font-size: .9rem;
    font-family: var(--sans);
    font-weight: 300;
    transition: border-color .25s, background .25s, box-shadow .25s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(242,242,242,.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(196,168,130,.5);
    background: rgba(242,242,242,.08);
    box-shadow: 0 0 0 3px rgba(196,168,130,.08);
}
.form-group select option { background: var(--dark-mid); color: rgba(242,242,242,.85); }
.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: .75rem;
    background: white;
    color: var(--dark);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    padding: .95rem 2rem;
    border-radius: 2px;
    transition: background .25s, color .25s, transform .2s var(--ease-out), gap .25s;
    margin-top: .5rem;
}
.btn-submit:hover { background: var(--accent); gap: 1.25rem; }
.btn-submit:active { transform: scale(.97); transition-duration: 100ms; }
.btn-submit:disabled { opacity: .55; }

/* Form status message */
.form-status {
    font-size: .85rem;
    margin-top: .25rem;
    min-height: 1.2em;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .3s, transform .3s var(--ease-out);
}
.form-status.show { opacity: 1; transform: translateY(0); }
.form-status.ok    { color: #8fce9b; }
.form-status.error { color: #e0a18a; }

/* ── CUSTOM DROPDOWN (replaces native select) ─────── */
.custom-select { position: relative; }
.cs-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(242,242,242,.05);
    border: 1px solid rgba(242,242,242,.1);
    border-left: 2px solid transparent;
    color: rgba(242,242,242,.85);
    padding: .85rem 1rem;
    border-radius: 2px;
    font-size: .9rem;
    font-weight: 300;
    text-align: left;
    transition: border-color .25s, background .25s, box-shadow .25s, border-left-color .3s;
}
.cs-trigger:hover { background: rgba(242,242,242,.08); }
.custom-select.open .cs-trigger {
    border-color: rgba(196,168,130,.5);
    border-left-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196,168,130,.08);
}
.cs-value.cs-placeholder { color: rgba(242,242,242,.3); }
.cs-arrow { color: rgba(242,242,242,.5); transition: transform .3s var(--ease-out); flex-shrink: 0; }
.custom-select.open .cs-arrow { transform: rotate(180deg); }

.cs-options {
    position: absolute;
    top: calc(100% + 6px); left: 0; right: 0;
    background: var(--dark-mid);
    border: 1px solid rgba(242,242,242,.12);
    border-radius: 4px;
    padding: .4rem;
    z-index: 30;
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}
.custom-select.open .cs-options {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.cs-option {
    padding: .7rem .85rem;
    font-size: .9rem;
    color: rgba(242,242,242,.7);
    border-radius: 3px;
    transition: background .2s, color .2s;
}
.cs-option:hover { background: rgba(196,168,130,.12); color: white; }
.cs-option.selected { background: rgba(196,168,130,.18); color: var(--accent); }

/* Blog "Próximamente" state */
.blog-link--soon {
    display: inline-block;
    align-self: flex-start;
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-light);
    border: 1px solid var(--border);
    padding: .35rem .7rem;
    border-radius: 2px;
}

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
    background: var(--dark-mid);
    border-top: 1px solid rgba(242,242,242,.06);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: clamp(2rem, 4vw, 4rem);
    padding-top: clamp(3.5rem, 6vw, 5.5rem);
    padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.footer-logo {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(242,242,242,.8);
    margin-bottom: .65rem;
}
.footer-tagline {
    font-size: .82rem;
    color: rgba(242,242,242,.35);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    width: 36px; height: 36px;
    border: 1px solid rgba(242,242,242,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(242,242,242,.45);
    transition: color .25s, border-color .25s;
}
.footer-social a:hover { color: white; border-color: rgba(242,242,242,.4); }

.footer-nav h4, .footer-services h4, .footer-contact h4 {
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(242,242,242,.3);
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.footer-nav ul li, .footer-services ul li {
    margin-bottom: .6rem;
    font-size: .85rem;
    color: rgba(242,242,242,.45);
}
.footer-nav ul li a { transition: color .2s; }
.footer-nav ul li a:hover { color: rgba(242,242,242,.8); }
.footer-contact p {
    font-size: .82rem;
    color: rgba(242,242,242,.45);
    margin-bottom: .5rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(242,242,242,.06);
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.footer-bottom p { font-size: .75rem; color: rgba(242,242,242,.3); }
.footer-back {
    font-size: .62rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(242,242,242,.3);
    transition: color .25s;
}
.footer-back:hover { color: rgba(242,242,242,.7); }

/* ── WHATSAPP FLOAT — adaptive color by section ──────
   Auto-contrasts with whatever section is behind it:
   over dark sections → cream button; over light → dark button.
   JS toggles .wa-over-dark / .wa-over-light on scroll.        */
.wa-float {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 500;
    /* base state = over dark (hero) → cream button, dark icon */
    background: var(--light);
    color: var(--dark);
    border: 1px solid rgba(26,22,18,.12);
    box-shadow: 0 6px 22px rgba(26,22,18,.22);
    transition: background .55s var(--ease), color .55s var(--ease),
                border-color .55s var(--ease), transform .25s var(--ease-out), box-shadow .25s;
}
/* Over a DARK section → cream/white button (the "se pone blanco") */
.wa-float.wa-over-dark {
    background: var(--light);
    color: var(--dark);
    border-color: rgba(26,22,18,.1);
}
.wa-float.wa-over-dark:hover {
    background: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0,0,0,.22);
}
/* Over a LIGHT section → dark button, gold icon (the "se pone negro/dorado") */
.wa-float.wa-over-light {
    background: var(--dark);
    color: var(--accent);
    border-color: rgba(196,168,130,.4);
}
.wa-float.wa-over-light:hover {
    background: var(--accent);
    color: var(--dark);
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(196,168,130,.4);
}
.wa-float:active { transform: scale(.95); transition-duration: 100ms; }
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(26,22,18,.18); }
    50%      { box-shadow: 0 6px 24px rgba(26,22,18,.22), 0 0 0 10px rgba(196,168,130,.07); }
}
/* Pulse after 3s delay, repeats every 4s */
.wa-float { animation: wa-pulse 4s ease-in-out 3s infinite; }
.wa-float:hover { animation: none; }

/* ── REVEAL UTILITY ──────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── MICROANIMATIONS ────────────────────────────── */

/* Button press feedback — all interactive elements */
.btn-hero-primary:active,
.btn-about:active,
.btn-soporte:active,
.btn-submit:active,
.blog-link:active,
.wa-float:active         { transform: scale(.97); transition-duration: 100ms !important; }

/* Portfolio items — lift + shadow on hover */
.port-item {
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.port-item:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    transform: translateY(-3px);
}

/* Blog card — subtle lift */
.blog-card {
    transition: transform .4s var(--ease-out);
}
.blog-card:hover { transform: translateY(-4px); }

/* Channel items — slide right on hover */
.channel-item {
    transition: opacity .25s, transform .3s var(--ease-out);
}
.channel-item:hover { opacity: 1 !important; transform: translateX(4px); }

/* Service card name — gold underline appears on hover */
.svc-name {
    position: relative;
    display: inline-block;
}
.svc-name::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .4s var(--ease-out);
}
.svc-card:hover .svc-name::after { width: 100%; }

/* Footer nav links — slide right */
.footer-nav ul li a {
    display: inline-block;
    transition: color .2s, transform .25s var(--ease-out);
}
.footer-nav ul li a:hover { transform: translateX(4px); }

/* About photo — scale + reveal */
.about-photo {
    transition: transform .5s var(--ease-out);
}
.about-photo:hover { transform: scale(1.01); }

/* Announce bar — pause on hover */
.announce-bar:hover .announce-track { animation-play-state: paused; }

/* Nav links — animated underline */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width .3s var(--ease-out);
    opacity: .6;
}
.nav-link:hover::after { width: 100%; }

/* Header CTA — fill on hover */
.btn-header-cta {
    overflow: hidden;
    position: relative;
}
.btn-header-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    transform: translateX(-101%);
    transition: transform .3s var(--ease-out);
    z-index: -1;
}
.btn-header-cta:hover::before { transform: translateX(0); }

/* WhatsApp float — icon spin on hover */
.wa-float svg {
    transition: transform .35s var(--ease-out);
}
.wa-float:hover svg { transform: rotate(8deg) scale(1.08); }

/* Scroll indicator — pulse opacity */
.scroll-indicator { animation: indicator-fade 2.8s ease-in-out 2s infinite; }
@keyframes indicator-fade {
    0%, 100% { opacity: .6; }
    50%       { opacity: 1; }
}

/* Hero buttons — staggered entrance hover lift */
.btn-hero-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,.15); }
.btn-hero-secondary:hover { transform: translateY(-2px); }

/* Submit button — arrow slides on hover */
.btn-submit .btn-arrow {
    display: inline-block;
    transition: transform .25s var(--ease-out);
}
.btn-submit:hover .btn-arrow { transform: translateX(5px); }

/* Form inputs — left border accent on focus */
.form-group input,
.form-group select,
.form-group textarea {
    border-left: 2px solid transparent;
    transition: border-color .3s, background .25s, box-shadow .25s, border-left-color .3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-left-color: var(--accent);
}

/* Portfolio caption — reveal with blur */
.port-caption {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Service number — brightens on hover */
.svc-num {
    transition: color .3s, opacity .3s;
}
.svc-card:hover .svc-num { color: var(--accent); opacity: .7; }

/* Soporte label — italic shift */
.soporte-label { transition: letter-spacing .4s var(--ease-out); }
.soporte-strip:hover .soporte-label { letter-spacing: .01em; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
    .about-inner { grid-template-columns: 1fr; }
    .about-photo { order: -1; max-height: 480px; overflow: hidden; }
    .about-photo img { object-position: center 15%; }
    .contact-inner { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: 1fr; }
    .svc-card { min-height: auto; }
    /* Always show svc content on mobile */
    .svc-reveal-wrap { grid-template-rows: 1fr !important; }
    .svc-features, .svc-price, .svc-cta { opacity: 1 !important; transform: translateY(0) !important; }
    .soporte-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .site-nav, .btn-header-cta { display: none; }
    .hamburger { display: flex; }
    .header-bottom { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .port-grid { grid-template-columns: 1fr 1fr; }
    .port-item--featured { grid-column: span 2; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .hero-float-card { display: none; } /* hide on mobile */
    *, *::before, *::after { cursor: auto !important; }
    .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 540px) {
    .port-grid { grid-template-columns: 1fr; }
    .port-item--featured { grid-column: auto; aspect-ratio: 16/10; }
}

/* ── REDUCED MOTION ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .announce-track { animation: none; }
    .scroll-line::after { animation: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
