/* =================================================================
   creatorsclub® — base styles
   ================================================================= */

:root {
    --c-yellow: #DDFB1F;
    --c-black:  #0A0A0A;
    --c-white:  #FFFFFF;
    --c-gray:   #8E8E8E;
    --c-gray-2: #B5B5B5;
    --c-text:   #111111;

    /* All type uses Helvetica for now — weights/spacing tuned later. */
    --f-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --f-sans:  "Helvetica Neue", Helvetica, Arial, sans-serif;

    --container: 1280px;
    --pad-x: clamp(20px, 4vw, 64px);
    --section-y: clamp(64px, 9vw, 140px);
}

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

html {
    scroll-behavior: smooth;
    /* Contain the 100vw bleed used by pillar #2/#4 BG so the vertical
       scrollbar's width on Windows doesn't trigger a horizontal one.
       `clip` preferred over `hidden` — same effect, but doesn't create
       a new containing block (keeps position: fixed/sticky working). */
    overflow-x: clip;
}
html, body { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--f-sans);
    color: var(--c-text);
    background: var(--c-white);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(16px, 4vw, 48px);
    padding: 22px var(--pad-x);
    background: transparent;
    transition: background-color .25s ease;
}

.header-spacer { display: block; }

.site-header[data-theme="yellow"] { background: var(--c-yellow); }
.site-header[data-theme="white"]  { background: var(--c-white); }
.site-header[data-theme="black"]  { background: var(--c-black); color: var(--c-white); }

.logo {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    height: clamp(14px, 1.3vw, 20px);
}
.logo img {
    height: 100%;
    width: auto;
    display: block;
    /* The source SVG is black artwork. On dark themes (pillars / footer)
       we flip it to white via filter. Keeps a single asset. */
    transition: filter .25s ease;
}
.site-header[data-theme="black"] .logo img { filter: invert(1); }

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
    justify-self: end;
}

.header-line {
    flex: 0 0 clamp(160px, 18vw, 260px);
    height: 16px;
    display: none;
}
.header-line svg {
    width: 100%; height: 100%;
    stroke: currentColor;
    fill: currentColor;
    stroke-width: 1.2;
}
@media (min-width: 768px) { .header-line { display: block; } }

.menu-toggle {
    width: 44px; height: 44px;
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    color: inherit;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: currentColor;
    transition: width .2s ease;
}
.menu-toggle span:nth-child(1) { width: 26px; }
.menu-toggle span:nth-child(2) { width: 22px; }
.menu-toggle span:nth-child(3) { width: 26px; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
    background: var(--c-yellow);
    color: var(--c-black);
    min-height: 100vh;
    padding: 140px var(--pad-x) 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.hero-title {
    font-family: var(--f-sans);
    font-weight: 400;
    font-size: clamp(64px, 12vw, 180px);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.04em;
}
.hero-title .line { display: block; }
.hero-title .line-1 { font-weight: 400; }
.hero-title .line-2 { font-weight: 400; }
.hero-title .line-3 { font-weight: 700; }

.cc-monogram {
    position: absolute;
    top: 47%;
    left: 62%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(70px, 9vw, 130px);
    height: clamp(70px, 9vw, 130px);
    border: 1.5px solid currentColor;
    border-radius: 50%;
    flex: 0 0 auto;
    /* NB: do NOT use percentage padding here. On an absolutely-positioned
       element, % padding resolves against the *containing block's width*
       (~1200px), not the element itself — so `padding: 22%` would blow
       this circle up to ~660px. Size the SVG directly instead. */
}
.cc-monogram img {
    width: 55%;
    height: auto;
    display: block;
}

.side-label {
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    position: absolute;
    margin: 0;
    color: var(--c-black);
}
.side-label.left  { top: 38%; left: 0; text-align: left; }
.side-label.right { top: 52%; right: 0; text-align: right; }

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 38px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-weight: 400;
    font-size: 14px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    margin-top: 48px;
    font-family: inherit;
}
.btn-pill:hover { background: var(--c-black); color: var(--c-yellow); border-color: var(--c-black); }

.btn-pill.filled {
    background: var(--c-black);
    color: var(--c-white);
    border-color: var(--c-black);
}
.btn-pill.filled:hover { background: var(--c-white); color: var(--c-black); border-color: var(--c-black); }

.btn-pill.dark { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }
.btn-pill.dark:hover { background: var(--c-yellow); color: var(--c-black); border-color: var(--c-yellow); }

/* =================================================================
   CONECTAMOS
   -----------------------------------------------------------------
   Full-bleed section: no max-width and no horizontal padding so the
   yellow R can hug the viewport's left edge on desktop. Each column
   carries its own internal padding instead. Stacks on mobile with
   the image clamped so it doesn't dominate a phone screen.
   ================================================================= */
.conectamos {
    background: var(--c-white);
    padding-block: clamp(40px, 6vw, 96px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

@media (min-width: 900px) {
    .conectamos {
        grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
        gap: clamp(32px, 5vw, 96px);
    }
}

.conectamos-art {
    width: 100%;
    padding-inline: var(--pad-x);
}
@media (min-width: 900px) {
    .conectamos-art {
        padding-inline: 0;          /* bleed to viewport edge */
    }
}
.conectamos-art img {
    width: 100%;
    display: block;
    max-width: 480px;
    margin-inline: auto;            /* center on mobile */
}
@media (min-width: 900px) {
    .conectamos-art img {
        max-width: 720px;
        margin-inline: 0;
    }
}

.conectamos-copy {
    padding-inline: var(--pad-x);
    max-width: 480px;
}
@media (min-width: 900px) {
    .conectamos-copy {
        padding-left: 0;
        padding-right: var(--pad-x);
    }
}

.conectamos-copy h2 {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
}
.conectamos-copy p {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--c-gray);
    margin: 0;
    letter-spacing: 0.04em;
}

/* =================================================================
   5 PILARES DIVIDER
   ================================================================= */
.pilares-divider {
    background: var(--c-white);
    padding: 0 var(--pad-x) var(--section-y);
}
.pilares-divider img {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

/* =================================================================
   PILLARS
   ================================================================= */
.pillars {
    background: var(--c-black);
    color: var(--c-white);
    padding: 0;                /* let each .pillar own its rhythm */
}

.pillar {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 88px) var(--pad-x);
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
}
@media (min-width: 900px) {
    .pillar { grid-template-columns: 1fr 1.1fr; gap: 64px; }
}

.pillar-art img { width: 100%; }
.pillar-art.wide { grid-column: 1 / -1; }

.pillar h3,
.pillar .pillar-heading {
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: clamp(40px, 6.5vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--c-white);
}
.pillar p {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--c-gray-2);
    letter-spacing: 0.03em;
}
.pillar p strong {
    color: var(--c-white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* -----------------------------------------------------------------
   Pillar #1 — Creative Match
   3-column layered grid: heading | image | text all in the same
   grid row, with text z-stacked on top of the image and pulled in
   with negative margins so they overlap into the image's dark zones.
   ----------------------------------------------------------------- */
.pillar--1 {
    grid-template-columns: 1fr;
    gap: 24px;
}
.pillar--1 .pillar-heading { margin-bottom: 0; }

@media (min-width: 900px) {
    .pillar--1 {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-rows: auto;
        column-gap: clamp(32px, 5vw, 96px);
        align-items: center;
    }
    .pillar--1 > .pillar-heading,
    .pillar--1 > .pillar-art,
    .pillar--1 > .pillar-text {
        grid-row: 1 / 2;
    }
    .pillar--1 .pillar-heading {
        grid-column: 1 / 2;
        justify-self: end;
        text-align: right;
        z-index: 2;
        align-self: center;
    }
    .pillar--1 .pillar-art {
        grid-column: 2 / 3;
        z-index: 1;
        width: clamp(360px, 30vw, 500px);
    }
    .pillar--1 .pillar-art img {
        width: 100%;
        display: block;
    }
    .pillar--1 .pillar-text {
        grid-column: 3 / 4;
        z-index: 2;
        justify-self: start;
        align-self: center;
        max-width: 320px;
    }
    .pillar--1 .pillar-text p { max-width: none; }
}

/* -----------------------------------------------------------------
   Pillars #2, #3, #4 — mirror of #1's widened layout
   text-right | image-center | heading-left
   1fr | auto | 1fr — image keeps a fixed size, side columns absorb
   the remaining horizontal space and push to outer edges.
   ----------------------------------------------------------------- */
.pillar--2,
.pillar--3,
.pillar--4 {
    grid-template-columns: 1fr;
    gap: 24px;
}
.pillar--2 .pillar-heading,
.pillar--3 .pillar-heading,
.pillar--4 .pillar-heading { margin-bottom: 0; }

@media (min-width: 900px) {
    .pillar--2,
    .pillar--3,
    .pillar--4 {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        column-gap: clamp(32px, 5vw, 96px);
        align-items: center;
    }
    .pillar--2 > .pillar-heading,
    .pillar--2 > .pillar-art,
    .pillar--2 > .pillar-text,
    .pillar--3 > .pillar-heading,
    .pillar--3 > .pillar-art,
    .pillar--3 > .pillar-text,
    .pillar--4 > .pillar-heading,
    .pillar--4 > .pillar-art,
    .pillar--4 > .pillar-text {
        grid-row: 1 / 2;
    }
    .pillar--2 .pillar-text,
    .pillar--3 .pillar-text,
    .pillar--4 .pillar-text {
        grid-column: 1;
        justify-self: end;
        text-align: right;
        align-self: center;
        max-width: 320px;
        z-index: 2;
    }
    .pillar--2 .pillar-text p,
    .pillar--3 .pillar-text p,
    .pillar--4 .pillar-text p { max-width: none; }
    .pillar--2 .pillar-art,
    .pillar--3 .pillar-art,
    .pillar--4 .pillar-art {
        grid-column: 2;
        z-index: 1;
        width: clamp(360px, 30vw, 520px);
    }
    .pillar--2 .pillar-art img,
    .pillar--3 .pillar-art img,
    .pillar--4 .pillar-art img {
        width: 100%;
        display: block;
    }
    .pillar--2 .pillar-heading,
    .pillar--3 .pillar-heading,
    .pillar--4 .pillar-heading {
        grid-column: 3;
        justify-self: start;
        text-align: left;
        align-self: center;
        z-index: 2;
    }
}

/* -----------------------------------------------------------------
   Pillars #2 and #4 — "stage spotlight" background
   BG.png + radial gradient bleed to viewport edges via ::before.
   We use position: absolute on the pseudo-element with
   left: 50% / width: 100vw / translateX(-50%) so it ignores the
   parent's 1440px max-width and spans the full viewport.
   ----------------------------------------------------------------- */
.pillar--2,
.pillar--4 {
    position: relative;
    isolation: isolate;
}
.pillar--2::before,
.pillar--4::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
        url("../img/update1/BG.png") center / clamp(420px, 55vw, 1000px) auto no-repeat,
        radial-gradient(ellipse 65% 55% at center,
                        rgba(255, 255, 255, 0.05) 0%,
                        rgba(255, 255, 255, 0)   70%);
    z-index: -1;
    pointer-events: none;
}

/* -----------------------------------------------------------------
   Pillar #5 — Creative experience
   Top row: heading-left + text-right. Bottom: full-width phones image.
   ----------------------------------------------------------------- */
.pillar--5 {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-inline: var(--pad-x);
}
.pillar--5 .pillar-heading { margin-bottom: 0; }

@media (min-width: 900px) {
    .pillar--5 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        column-gap: clamp(40px, 6vw, 96px);
        row-gap: clamp(32px, 4vw, 64px);
        align-items: start;
    }
    .pillar--5 .pillar-heading {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
        align-self: end;
    }
    .pillar--5 .pillar-text {
        grid-column: 2;
        grid-row: 1;
        max-width: 360px;
        align-self: end;
    }
    .pillar--5 .pillar-text p { max-width: none; }
    .pillar--5 .pillar-art.wide {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .pillar--5 .pillar-art.wide img {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
}


/* =================================================================
   LOGOS
   ================================================================= */
.logos {
    background: var(--c-white);
    padding: var(--section-y) var(--pad-x);
}
.logos img {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

/* =================================================================
   CTA BANNER
   ================================================================= */
.cta-banner { background: var(--c-white); }
.cta-banner img { width: 100%; }

/* =================================================================
   CONTACT
   ================================================================= */
.contact {
    background: var(--c-white);
    padding: var(--section-y) var(--pad-x);
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 900px) {
    .contact { grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
}

.contact-title {
    font-family: var(--f-sans);
    font-weight: 400;
    font-size: clamp(64px, 10vw, 140px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--c-text);
}
.contact-title span { display: block; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}
.field-label { color: var(--c-gray); font-size: 13px; }
.field input,
.field textarea {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--c-text);
    padding: 4px 0;
    outline: none;
    resize: vertical;
    width: 100%;
}
.field input:focus,
.field textarea:focus { border-bottom: 0; }
.field:focus-within { border-bottom-color: var(--c-black); }

.contact-form .btn-pill { align-self: flex-start; margin-top: 12px; }
.form-status { font-size: 13px; color: var(--c-gray); margin: 0; min-height: 1em; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
    background: var(--c-black);
    color: var(--c-white);
    padding: 32px var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-footer .cc-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    padding: 10px;
    flex: 0 0 auto;
}
.site-footer .cc-mark img,
.footer-logo {
    /* Black-on-white artwork → invert to render in white on the dark footer */
    filter: invert(1);
}
.site-footer .cc-mark img {
    width: 100%;
    height: auto;
    display: block;
}
.footer-logo {
    height: 18px;
    width: auto;
    display: block;
}

/* =================================================================
   RESPONSIVE TWEAKS
   ================================================================= */
@media (max-width: 600px) {
    .side-label.left  { top: 4%;  left: 0; }
    .side-label.right { top: auto; bottom: 22%; right: 0; }
    .hero { padding-top: 110px; }
    .cc-monogram { top: 44%; left: 68%; }
    .pillar--2 .pillar-heading,
    .pillar--3 .pillar-heading { grid-column: 1; text-align: left; justify-self: start; }
    .field { grid-template-columns: 80px 1fr; }
    .contact-title { font-size: 84px; }
}
