/* =========================================================
   FarenheitLabs — Corporate Website
   ========================================================= */


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

:root {
    --bg: #0a0d12;
    --bg-soft: #11161e;
    --surface: #171d26;

    --text: #f4f7fb;
    --text-soft: #aeb8c6;

    --accent: #ff6b35;
    --accent-hover: #ff8255;

    --border: rgba(255, 255, 255, 0.1);

    --max-width: 1200px;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.6;
}

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


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

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(10, 13, 18, 0.9);

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

    backdrop-filter: blur(12px);
}

.navbar {
    width: 100%;
    max-width: var(--max-width);

    min-height: 72px;

    margin: 0 auto;
    padding: 0 24px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   BRAND / WORDMARK
   ========================================================= */

.brand {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    font-size: 1rem;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.brand span {
    color: var(--text);
}

.brand strong {
    color: var(--accent);

    font-weight: 900;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 28px;
}

.nav-links a {
    color: var(--text-soft);

    font-size: 0.9rem;

    transition:
        color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}


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

.hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding:
        120px
        24px
        70px;

    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(255, 107, 53, 0.15),
            transparent 35%
        ),
        var(--bg);
}


/* ---------------------------------------------------------
   Hero grid
   --------------------------------------------------------- */

.hero-grid {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, 0.9fr);

    align-items: center;

    gap: 60px;
}


/* ---------------------------------------------------------
   Hero content
   --------------------------------------------------------- */

.hero-content {
    position: relative;

    z-index: 5;

    width: 100%;
}

.eyebrow {
    margin-bottom: 20px;

    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;

    margin-bottom: 28px;

    font-size:
        clamp(
            3rem,
            5.6vw,
            5.8rem
        );

    line-height: 0.98;

    letter-spacing: -0.05em;
}

.hero-text {
    max-width: 650px;

    margin-bottom: 32px;

    color: var(--text-soft);

    font-size:
        clamp(
            1rem,
            1.5vw,
            1.2rem
        );
}


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

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 16px;
}

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 24px;

    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);

    color: #ffffff;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    border: 1px solid var(--border);

    color: var(--text);
}

.button-secondary:hover {
    border-color:
        rgba(255, 255, 255, 0.3);
}


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

.hero-signature {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 28px;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.16em;
}

.hero-signature > span {
    display: block;

    width: 48px;
    height: 2px;

    flex-shrink: 0;

    background: var(--accent);
}

.hero-signature b {
    color:
        rgba(255, 255, 255, 0.25);
}


/* =========================================================
   HERO SIDE LABEL
   ========================================================= */

.hero-side-label {
    position: absolute;

    left: 28px;
    bottom: 70px;

    z-index: 2;

    writing-mode: vertical-rl;

    transform: rotate(180deg);

    color:
        rgba(255, 255, 255, 0.32);

    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 0.25em;
}

.hero-side-label::before {
    content: "";

    display: block;

    width: 2px;
    height: 48px;

    margin-bottom: 18px;

    background: var(--accent);
}


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

.hero-visual {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 500px;
}

.visual-frame {
    position: relative;

    width: min(100%, 460px);

    aspect-ratio: 0.82;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 107, 53, 0.12),
            transparent 45%
        ),
        #10151c;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.45);

    transform: rotate(2deg);
}


/* ---------------------------------------------------------
   Technical grid
   --------------------------------------------------------- */

.visual-frame::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    pointer-events: none;
}


/* ---------------------------------------------------------
   Orange glow
   --------------------------------------------------------- */

.visual-frame::after {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -90px;
    bottom: -90px;

    border-radius: 50%;

    background: var(--accent);

    filter: blur(100px);

    opacity: 0.22;

    pointer-events: none;
}


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

.visual-header {
    position: relative;

    z-index: 2;

    height: 48px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 0 18px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.visual-header span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.45);
}


/* =========================================================
   VISUAL CONTENT
   ========================================================= */

.visual-content {
    position: relative;

    z-index: 2;

    height: calc(100% - 48px);

    padding: 45px 36px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.visual-label {
    margin-bottom: 30px;

    color: var(--accent);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.2em;
}

.visual-title {
    font-size:
        clamp(
            3rem,
            6vw,
            5rem
        );

    font-weight: 300;

    line-height: 0.9;

    letter-spacing: -0.06em;
}

.visual-title strong {
    font-weight: 900;
}

.visual-title span {
    color: var(--accent);
}


/* =========================================================
   VISUAL LINES
   ========================================================= */

.visual-lines {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 45px;
}

.visual-lines span {
    display: block;

    height: 2px;

    background:
        rgba(255, 255, 255, 0.18);
}

.visual-lines span:nth-child(1) {
    width: 72%;
}

.visual-lines span:nth-child(2) {
    width: 48%;
}

.visual-lines span:nth-child(3) {
    width: 61%;
}


/* =========================================================
   VISUAL CORNER
   ========================================================= */

.visual-corner {
    position: absolute;

    right: 20px;
    bottom: 18px;

    z-index: 3;

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 0.65rem;

    letter-spacing: 0.15em;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 120px 24px;

    background: var(--bg);
}

.section-dark {
    background: var(--bg-soft);
}

.section-content {
    max-width: var(--max-width);

    margin: 0 auto;
}

.section h2 {
    max-width: 800px;

    margin-bottom: 28px;

    font-size:
        clamp(
            2.3rem,
            5vw,
            4.5rem
        );

    line-height: 1.05;

    letter-spacing: -0.04em;
}

.section p {
    max-width: 720px;

    margin-bottom: 20px;

    color: var(--text-soft);

    font-size: 1.1rem;
}


/* =========================================================
   TEXT LINKS
   ========================================================= */

.text-link {
    display: inline-block;

    margin-top: 20px;

    color: var(--accent);

    font-weight: 700;

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

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

    transform: translateX(4px);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    min-height: 70vh;

    display: flex;

    align-items: center;
}


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

.site-footer {
    padding:
        60px
        24px
        30px;

    background: #07090d;

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

.footer-content {
    max-width: var(--max-width);

    margin: 0 auto;

    padding-bottom: 40px;

    display: flex;

    justify-content: space-between;

    gap: 40px;
}

.footer-brand {
    display: inline-flex;

    font-size: 1rem;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.footer-brand span {
    color: var(--text);
}

.footer-brand strong {
    color: var(--accent);

    font-weight: 900;
}

.footer-content p {
    margin-top: 10px;

    color: var(--text-soft);
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 24px;

    color: var(--text-soft);
}

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

.footer-bottom {
    max-width: var(--max-width);

    margin: 0 auto;

    padding-top: 24px;

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

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: #778291;

    font-size: 0.85rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hero {
        padding-top: 110px;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .hero-visual {
        min-height: 420px;
    }

    .visual-frame {
        width: min(100%, 420px);
    }

}


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

@media (max-width: 800px) {

    .navbar {
        min-height: 64px;

        padding:
            0
            20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding:
            110px
            20px
            70px;
    }

    .hero-side-label {
        display: none;
    }

    .hero h1 {
        font-size:
            clamp(
                3rem,
                15vw,
                5rem
            );
    }

    .hero-visual {
        min-height: 400px;
    }

    .section {
        padding:
            90px
            20px;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        gap: 16px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .hero-grid {
        gap: 45px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-signature {
        flex-wrap: wrap;

        gap: 9px;
    }

    .visual-frame {
        width: 100%;

        transform: none;
    }

    .visual-content {
        padding:
            35px
            28px;
    }
/* =========================================================
   CAPABILITIES — Qué hacemos
   ========================================================= */

.capabilities-section {
    background: var(--bg-soft);

    border-top:
        1px solid
        rgba(255, 255, 255, 0.04);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.04);
}


/* ---------------------------------------------------------
   Section heading
   --------------------------------------------------------- */

.section-heading-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(280px, 0.8fr);

    align-items: end;

    gap: 70px;

    margin-bottom: 70px;
}

.section-heading-row h2 {
    margin-bottom: 0;
}

.section-intro {
    max-width: 500px !important;

    margin-bottom: 5px !important;

    color: var(--text-soft);

    font-size: 1rem !important;
}


/* ---------------------------------------------------------
   Capability grid
   --------------------------------------------------------- */

.capabilities-grid {
    display: grid;

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

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

    border-left:
        1px solid
        var(--border);
}


/* ---------------------------------------------------------
   Capability card
   --------------------------------------------------------- */

.capability-card {
    position: relative;

    min-height: 330px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

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

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

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            transparent 60%
        );

    overflow: hidden;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.capability-card::after {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    right: -70px;
    bottom: -70px;

    border-radius: 50%;

    background: var(--accent);

    filter: blur(70px);

    opacity: 0;

    transition:
        opacity 0.3s ease;
}

.capability-card:hover {
    background:
        linear-gradient(
            145deg,
            rgba(255, 107, 53, 0.08),
            transparent 65%
        );

    transform: translateY(-4px);
}

.capability-card:hover::after {
    opacity: 0.15;
}


/* ---------------------------------------------------------
   Number
   --------------------------------------------------------- */

.capability-number {
    color: var(--accent);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.16em;
}


/* ---------------------------------------------------------
   Content
   --------------------------------------------------------- */

.capability-content {
    position: relative;

    z-index: 2;
}

.capability-content h3 {
    margin-bottom: 16px;

    font-size: 2rem;

    line-height: 1;

    letter-spacing: -0.03em;
}

.capability-content p {
    max-width: 330px;

    margin-bottom: 0;

    color: var(--text-soft);

    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   Arrow
   --------------------------------------------------------- */

.capability-arrow {
    position: relative;

    z-index: 2;

    align-self: flex-end;

    color: var(--accent);

    font-size: 1.4rem;

    transition:
        transform 0.25s ease;
}

.capability-card:hover .capability-arrow {
    transform: translateX(6px);
}


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

@media (max-width: 900px) {

    .section-heading-row {
        grid-template-columns: 1fr;

        gap: 25px;

        margin-bottom: 50px;
    }

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

    .capability-card {
        min-height: 280px;
    }

}


@media (max-width: 600px) {

    .section-heading-row {
        margin-bottom: 40px;
    }

    .capability-card {
        min-height: 260px;

        padding: 25px;
    }
}

}