/* =========================================================
   VARIABLES
========================================================= */

:root {

    --black:
        #070706;

    --black-soft:
        #0d0d0b;

    --black-card:
        #11110f;

    --white:
        #f2f0ea;

    --muted:
        #aaa79e;

    --line:
        rgba(242, 240, 234, 0.12);
    
     /* BEAT */
    --beat-yellow: #fcec00;
    --beat-yellow-soft: #e7dd00;
    --beat-yellow-glow: rgba(252, 236, 0, 0.22);


}

/* =========================================================
   RESET
========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {

    background:
        var(--black);

    color:
        var(--white);

    font-family:
        "Manrope",
        sans-serif;

    overflow-x:
        hidden;

}


a {

    color:
        inherit;

    text-decoration:
        none;

}


img {

    display:
        block;

    max-width:
        100%;

}


/* =========================================================
   GRAIN
========================================================= */

.grain {

    position:
        fixed;

    inset:
        0;

    pointer-events:
        none;

    opacity:
        0.035;

    z-index:
        100;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.8'/%3E%3C/svg%3E");

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position:
        fixed;

    top:
        0;

    left:
        0;

    width:
        100%;

    padding:
        10px 3vw;

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    z-index:
        1000;

    /* background:
        rgba(7, 7, 6, 0.32); */

    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 6, 0.98) 0%,
            rgba(7, 7, 6, 0.55) 35%,
            rgba(7, 7, 6, 0.25) 70%,
            rgba(7, 7, 6, 0.3) 100%
        );

    backdrop-filter:
        blur(2px);

    -webkit-backdrop-filter:
        blur(2px);

    border-bottom:
        1px solid rgba(242, 240, 234, 0.08);

}

.menu-toggle {

    display:
        none;

    position:
        relative;

    width:
        54px;

    height:
        54px;

    background:
        rgba(7, 7, 6, 0.35);

    border:
        1px solid rgba(242, 240, 234, 0.15);

    cursor:
        pointer;

    z-index:
        1100;

}


.menu-toggle span {

    position:
        absolute;

    left:
        50%;

    width:
        20px;

    height:
        1px;

    background:
        var(--beat-yellow);

    transition:
        transform 0.3s ease,
        top 0.3s ease;

}

.menu-toggle span:first-child {

    top:
        calc(50% - 4px);

    transform:
        translateX(-50%);

}

.menu-toggle span:last-child {

    top:
        calc(50% + 4px);

    transform:
        translateX(-50%);

}

/* Toggle activo → X */

.menu-toggle.active span:first-child {

    top:
        50%;

    transform:
        translateX(-50%)
        rotate(45deg);

}

.menu-toggle.active span:last-child {

    top:
        50%;

    transform:
        translateX(-50%)
        rotate(-45deg);

}

.brand img {

    width:
        120px;

    height:
        auto;

}


.navigation {

    display:
        flex;

    gap:
        28px;

}


.navigation a {

    font-family:
        "DM Mono",
        monospace;

    font-size:
        11px;

    letter-spacing:
        0.08em;

    color:
        var(--muted);

    transition:
        color 0.25s ease;

}


.navigation a:hover {

    color:
        var(--gold-light);

}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {

    position:
        fixed;

    inset:
        0;

    z-index:
        900;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(7, 7, 6, 0.98);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;

}

.mobile-menu.active {

    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;

}

.mobile-navigation {

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    gap:
        12px;

}

.mobile-navigation a {

    font-size:
        clamp(2.8rem, 12vw, 5rem);

    font-weight:
        400;

    letter-spacing:
        -0.06em;

    color:
        var(--white);

    transition:
        color 0.2s ease,
        transform 0.2s ease;

}

.mobile-navigation a:hover {

    color:
        var(--beat-yellow);

    transform:
        translateX(5px);

}

/* =========================================================
   HERO
========================================================= */

.hero {

    position:
        relative;

    min-height:
        100vh;

    display:
        flex;

    align-items:
        flex-end;

    padding:
        10vw 5vw 8vw;

    overflow:
        hidden;

}

.hero-image {

    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 6, 0.98) 0%,
            rgba(7, 7, 6, 0.75) 35%,
            rgba(7, 7, 6, 0.25) 70%,
            rgba(7, 7, 6, 0.6) 100%
        ),
        url("assets/hero-2.png");

    background-size:
        cover;

    background-position:
        center;

    filter:
        saturate(0.75);

}

.hero-overlay {

    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(7, 7, 6, 0.15) 55%,
            rgba(7, 7, 6, 1) 100%
        );

}

.hero-content {

    position:
        relative;

    max-width:
        100%;

    z-index:
        2;

}

.eyebrow {

    margin-bottom:
        28px;

    color:
        var(--gold);

    font-family:
        "DM Mono",
        monospace;

    font-size:
        11px;

    letter-spacing:
        0.18em;

}

.hero h1 {

    font-size:
        clamp(4.5rem, 10vw, 11rem);

    line-height:
        0.85;

    font-weight:
        400;

    letter-spacing:
        -0.065em;

    margin-bottom:
        42px;

}

.hero-text {

    max-width:
        480px;

    color:
        var(--muted);

    font-size:
        18px;

    line-height:
        1.7;

    margin-bottom:
        38px;

}

.hero-bottom {

    position:
        absolute;

    bottom:
        35px;

    left:
        5vw;

    right:
        5vw;

    display:
        flex;

    justify-content:
        space-between;

    color:
        rgba(242, 240, 234, 0.5);

    font-family:
        "DM Mono",
        monospace;

    font-size:
        10px;

    letter-spacing:
        0.1em;

    z-index:
        2;

}

/* =========================================================
   BUTTONS
========================================================= */

.button {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        40px;

    padding:
        16px 22px;

    font-family:
        "DM Mono",
        monospace;

    font-size:
        11px;

    letter-spacing:
        0.12em;

    transition:
        all 0.25s ease;

}

.button span {

    font-size:
        18px;

}

.button-gold {

    color:
        #0b0a08;

    background:
        var(--beat-yellow);

}

.button-gold:hover {

    background:
        var(--beat-yellow-soft);

    transform:
        translateY(-2px);

}


.button-outline {

    border:
        1px solid var(--beat-yellow);

    color:
        var(--beat-yellow-soft);

}


.button-outline:hover {

    background:
        var(--beat-yellow-glow);

    color:
        var(--black);

}

/* =========================================================
   GENERIC SECTIONS
========================================================= */

.section {

    padding:
        140px 5vw;

}

.section-label {

    color:
        var(--beat-yellow);

    font-family:
        "DM Mono",
        monospace;

    font-size:
        10px;

    letter-spacing:
        0.15em;

}

/* =========================================================
   INTRO
========================================================= */

.section-intro {

    position: relative;
    overflow: hidden;
    border-top:
        1px solid var(--line);

}

.somos-image {

    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            90deg,
             rgba(7, 7, 6, 0.6) 0%,
            rgba(7, 7, 6, 0.25) 35%,
            rgba(7, 7, 6, 0.75) 70%,
            rgba(7, 7, 6, 0.98) 100%
        ),
        url("assets/hero-3.png");

    background-size:
        cover;

    background-position:
        center;

    filter:
        saturate(0.75);
    
    z-index:
        0;

}

.section-label,
.intro-content {

    position:
        relative;

    z-index:
        1;

}

.intro-content {

    margin-top:
        80px;

    display:
        grid;

    grid-template-columns:
        1.5fr 0.7fr;

    gap:
        10vw;

}

.intro-content h2 {

    font-size:
        clamp(3rem, 6vw, 7rem);

    font-weight:
        400;

    line-height:
        0.95;

    letter-spacing:
        -0.055em;

}

.intro-content h2 span {

    display:
        block;

    color:
        var(--beat-yellow);

}

.intro-copy {

    padding-top:
        10px;

}

.intro-copy p {

    color:
        var(--muted);

    font-size:
        17px;

    line-height:
        1.8;

    margin-bottom:
        24px;

}

/* =========================================================
   VALUES
========================================================= */

.values {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);

    z-index:
        1;

}

.value-card {

    padding:
        35px 35px;

    border-right:
        1px solid var(--line);

    min-height:
        250px;

}


.value-card:last-child {

    border-right:
        none;

}


.value-number {

    display:
        block;

    color:
        var(--gold);

    font-family:
        "DM Mono",
        monospace;

    font-size:
        11px;

    margin-bottom:
        30px;

}


.value-card h3 {

    font-size:
        14px;

    font-weight:
        600;

    letter-spacing:
        0.12em;

    margin-bottom:
        22px;

}


.value-card p {

    color:
        var(--muted);

    font-size:
        14px;

    line-height:
        1.8;

}


/* =========================================================
   ESSENCE
========================================================= */

.essence {

    position:
        relative;

    min-height:
        850px;

    display:
        flex;

    align-items:
        center;

    padding:
        10vw 5vw;

    overflow:
        hidden;

}


.essence-image {

    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            90deg,
            var(--black) 20%,
            rgba(7, 7, 6, 0.6) 55%,
            rgba(7, 7, 6, 0.2) 100%
        ),
        url("assets/hero-4.png");

    background-size:
        cover;

    background-position:
        center;

    opacity:
        0.8;

}


.essence-content {

    position:
        relative;

    z-index:
        2;

    max-width:
        760px;

}


.essence-content h2 {

    margin:
        45px 0 40px;

    font-size:
        clamp(3.5rem, 7vw, 8rem);

    line-height:
        0.9;

    font-weight:
        400;

    letter-spacing:
        -0.06em;

}


.essence-content h2 span {

    display:
        block;

    color:
        var(--gold);

}


.essence-content p {

    max-width:
        520px;

    color:
        var(--muted);

    font-size:
        18px;

    line-height:
        1.8;

    margin-bottom:
        20px;

}


/* =========================================================
   SERVICES
========================================================= */

.services {

    padding:
        140px 5vw;

    background:
        var(--black-soft);
    
    position:
        relative;

    overflow:
        hidden;

}

.section-services {

    position: relative;
    overflow: hidden;
    border-top:
        1px solid var(--line);

}

.services-image {

    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            90deg,
             rgba(7, 7, 6, 0.6) 0%,
            rgba(7, 7, 6, 0.45) 35%,
            rgba(7, 7, 6, 0.85) 70%,
            rgba(7, 7, 6, 0.98) 100%
        ),
        url("assets/hero-5.png");

    background-size:
        cover;

    background-position:
        center;

    filter:
        saturate(0.75);
    
    z-index:
        0;

}

.service-image {

    position:
        absolute;

    inset:
        0;

    background-size:
        cover;

    background-position:
        center;

    z-index:
        0;

    transform:
        scale(1.01);

    transition:
        transform 0.7s ease;

}

.service-image-1 {

 background-image:
        url("assets/services-0.png");

}

.service-image-2 {

 background-image:
        url("assets/services-3.png");

}

.service-image-3 {

 background-image:
        url("assets/services-2.png");

}

.service-image-4 {

 background-image:
        url("assets/services-4.png");

}

.service-image-5 {

 background-image:
        url("assets/services-5.png");

}

.service-image-6 {

 background-image:
        url("assets/services-6.png");

}

.services-content{

    display:
        flex;

    justify-content:
        space-between;

    gap:
        40px;

    align-items:
        flex-start;

    margin-bottom:
        100px;

    z-index:
        1;

}

.services-content h2 {

    max-width:
        850px;

    text-align:
        right;

    font-size:
        clamp(3rem, 6vw, 7rem);

    line-height:
        0.9;

    font-weight:
        400;

    letter-spacing:
        -0.055em;

    z-index:
        1;

}

.services-content h2 span {

    display:
        block;

    color:
        var(--gold);

}

.services-grid {

    position:
        relative;

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top:
        1px solid var(--line);

    border-left:
        1px solid var(--line);
    
    z-index:
        1;

}

.service {

    position:
        relative;

    overflow:
        hidden;

    isolation:
        isolate;

    padding:
        48px 36px;

    min-height:
        360px;

    border-right:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);

}

.service-image::after {

    content:
        "";

    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            180deg,
            rgba(7, 7, 6, 0.50) 0%,
            rgba(7, 7, 6, 0.88) 100%
        );

}

.service > span,
.service > h3,
.service > p {

    position:
        relative;

    z-index:
        1;

}

.service:hover {

    background:
        rgba(184, 154, 91, 0.05);

}

.service span {

    color:
        var(--gold);

    font-family:
        "DM Mono",
        monospace;

    font-size:
        10px;

}

.service h3 {

    margin:
        75px 0 20px;

    font-size:
        16px;

    font-weight:
        500;

    letter-spacing:
        0.08em;

}

.service p {

    color:
        var(--muted);

    font-size:
        20px;

    line-height:
        1.7;

}

/* =========================================================
   CLOSING
========================================================= */

.closing {

    min-height:
        90vh;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

    padding:
        100px 5vw;

    background:
        radial-gradient(
            circle at center,
            rgba(184, 154, 91, 0.08),
            transparent 45%
        );

}


.closing-content {

    max-width:
        1000px;

}

.closing-content h2 span {

    display:
        block;

    color:
        var(--beat-yellow);

}

.closing h2 {

    font-size:
        clamp(5rem, 13vw, 14rem);

    font-weight:
        400;

    line-height:
        0.8;

    letter-spacing:
        -0.075em;

    margin-bottom:
        40px;

}

.closing-text {

    color:
        var(--muted);

    font-size:
        18px;

    line-height:
        1.7;

    margin-bottom:
        40px;

}

.yellow-blob {
  position: fixed;
  /* Use CSS variables for position, defaulting to center screen */
  left: var(--x, 50vw);
  top: var(--y, 50vh);
  
  /* Shift layout so the true center of the blob is exactly under the cursor */
  transform: translate(-50%, -50%);
  
  /* Smooth transition creates a lagging, fluid movement effect */
  transition: left 0.1s ease-out, top 0.1s ease-out;
  
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe600 0%, #ff9900 100%);
  filter: blur(80px);
  opacity: 0.6;
  z-index: -2;
  pointer-events: none; /* Prevents the blob from blocking clicks on text or links */
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    padding:
        40px 5vw;

    display:
        grid;

    grid-template-columns:
        1fr 2fr 1fr;

    align-items:
        center;

    border-top:
        1px solid var(--line);

}

.footer-logo img {

    width:
        100px;

}

.footer-info {

    display:
        flex;

    justify-content:
        center;

    gap:
        35px;

    color:
        var(--muted);

    font-family:
        "DM Mono",
        monospace;

    font-size:
        10px;

}

.footer-social {

    display:
        flex;

    justify-content:
        flex-end;

    gap:
        20px;

}

.footer-social a {

    color:
        var(--muted);

    font-family:
        "DM Mono",
        monospace;

    font-size:
        10px;

    letter-spacing:
        0.08em;

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .navigation {

        display:
            none;

    }

  .menu-toggle {

        display:
            block;

    }

    .hero {

        padding-bottom:
            140px;

    }


    .intro-content {

        grid-template-columns:
            1fr;

        gap:
            50px;

    }


    .values {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .value-card:nth-child(2) {

        border-right:
            none;

    }


    .services-header {

        display:
            block;

    }


    .services-header h2 {

        margin-top:
            40px;

        text-align:
            left;

    }


    .services-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .site-footer {

        grid-template-columns:
            1fr;

        gap:
            30px;

    }


    .footer-info,
    .footer-social {

        justify-content:
            flex-start;

    }

}


@media (max-width: 600px) {

    .site-header {

        padding:
            24px 24px;

    }

    .section-label {
        padding-top: 20px;
    }

    .section-label h2 {
        padding-top: 20px;
    }

    .hero {

        padding:
            140px 24px 120px;

    }


    .section,
    .services {

        padding:
            100px 24px;

    }


    .essence {

        padding:
            120px 24px;

    }


    .hero h1 {

        font-size:
            clamp(3.5rem, 10vw, 6rem);

    }

    .intro-content h2 {

        font-size:
            clamp(3.5rem, 10vw, 5rem);

        letter-spacing:
            -0.06em;
    }

    .intro-content p {

        font-size:
            16px;
        color: var(--white);
    }

     .essence-content h2 {

        font-size:
            clamp(3.2rem, 13vw, 5rem);

        letter-spacing:
            -0.06em;

    }

    .values {

        grid-template-columns:
            1fr;

    }


    .value-card {

        min-height:
            auto;

        border-right:
            none;

        border-bottom:
            1px solid var(--line);

    }


    .value-number {

        margin-bottom:
            50px;

    }


    .services-grid {

        grid-template-columns:
            1fr;

    }


    .service {

        min-height:
            auto;

    }

    .services-content {
        display:
            block;
    }

    .services h2 {

        position:
            relative;

        font-size:
            clamp(3.5rem, 10vw, 5rem);

        letter-spacing:
            -0.06em;
    }

    .services section-label {

        margin-bottom:
            40px;
            padding-bottom: 30px;

    }

    .service h3 {

        margin-top:
            55px;

    }


    .site-footer {

        padding:
            35px 24px;

    }


    .footer-info {

        flex-direction:
            column;

        gap:
            10px;

    }

}