/* ==========================================================
   IECG — INDEX.CSS
   Página: INICIO

   ÍNDICE
   01. VARIABLES
   02. RESET Y ESTILOS BASE
   03. UTILIDADES
   04. HEADER
   05. LOGO
   06. NAVEGACIÓN
   07. HERO
   08. HERO — TEXTOS
   09. HERO — BOTONES
   10. MANIFESTO / SECCIÓN BLANCA
   11. PRECISION / SECCIÓN CON IMAGEN
   12. PROYECTOS CTA
   13. FOOTER
   14. MENÚ MÓVIL
   15. TABLET
   16. MÓVIL
   17. ACCESIBILIDAD / ANIMACIONES
   ========================================================== */


/* ==========================================================
   01. VARIABLES
   ========================================================== */

:root {
    --paper: #f6f5f1;
    --ink: #111315;
    --soft: #62645f;
    --line: rgba(17, 19, 21, 0.17);

    --blue: #2384bd;
    --deep: #0e2737;

    --max: 1480px;
    --gutter: clamp(24px, 5vw, 84px);
}


/* ==========================================================
   02. RESET Y ESTILOS BASE
   ========================================================== */

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

html {
    scroll-behavior: smooth;

    overflow-x: hidden;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
}


/* ==========================================================
   03. UTILIDADES
   ========================================================== */

.mono {
    font-family: "IBM Plex Mono", monospace;
}

.wrap {
    width: min(100%, var(--max));
    margin: auto;
    padding-inline: var(--gutter);
}


/* ---------- Accesibilidad ---------- */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}


/* ---------- Animaciones ---------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}


/* ==========================================================
   04. HEADER
   ========================================================== */

header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;

    padding: 25px 0;

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

    transition: 0.35s ease;
}

header .header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* ---------- Header al hacer scroll ---------- */

header.scrolled {
    background: rgba(246, 245, 241, 0.94);

    backdrop-filter: blur(14px);

    border-color: var(--line);

    padding: 16px 0;
}


/* ==========================================================
   05. LOGO
   ========================================================== */

.brand img {
    /* EDITAR AQUÍ PARA CAMBIAR TAMAÑO DEL LOGO */
    height: 50px;
    width: auto;
}


/* Logo blanco mientras está encima del Hero */

.hero-dark:not(.scrolled) .brand img {
    filter: brightness(0) invert(1);
}


/* ==========================================================
   06. NAVEGACIÓN
   ========================================================== */

.primary-nav {
    display: flex;
    align-items: center;

    gap: 44px;
}

.primary-nav ul {
    display: flex;
    align-items: center;

    gap: 34px;

    list-style: none;
}

.primary-nav a {
    position: relative;

    padding-block: 5px;

    font-size: 13px;
    font-weight: 500;
}


/* ---------- Línea debajo de navegación ---------- */

.primary-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: 0;

    height: 1px;

    background: currentColor;

    transition: right 0.25s;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    right: 0;
}


/* ---------- Texto derecho del menú ---------- */

.tagline {
    font-family: "IBM Plex Mono", monospace;

    font-size: 10px;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


/* Navegación blanca encima del Hero */

.hero-dark:not(.scrolled) .primary-nav,
.hero-dark:not(.scrolled) .tagline {
    color: #fff;
}


/* ---------- Botón hamburguesa ---------- */

.menu-toggle {
    display: none;

    width: 34px;
}

.menu-toggle span {
    display: block;

    height: 1px;

    margin: 6px 0;

    background: currentColor;
}

.hero-dark:not(.scrolled) .menu-toggle {
    color: #fff;
}


/* ==========================================================
   07. HERO
   ========================================================== */

.hero {
    position: relative;

    display: flex;
    align-items: flex-end;

    min-height: 100svh;

    overflow: hidden;

    color: #fff;

    background:
        #2b3032
        url("https://images.unsplash.com/photo-1487958449943-2429e8be8625?q=85&w=2400&auto=format&fit=crop")
        center / cover
        no-repeat;
}


/* ---------- Oscurecimiento de fotografía ---------- */

.hero-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(7, 10, 12, 0.48) 0%,
            rgba(7, 10, 12, 0.12) 42%,
            rgba(7, 10, 12, 0.76) 100%
        );
}


/* ---------- Retícula técnica ---------- */

.hero-grid {
    position: absolute;
    inset: 0;

    opacity: 0.24;

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

    background-size:
        clamp(56px, 6vw, 104px)
        clamp(56px, 6vw, 104px);

    mask-image:
        linear-gradient(
            to bottom,
            transparent 7%,
            #000 28%,
            #000 90%,
            transparent
        );
}

.hero-grid::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.9) 1.1px,
            transparent 1.4px
        );

    background-size:
        clamp(56px, 6vw, 104px)
        clamp(56px, 6vw, 104px);
}


/* ---------- Contenedor principal ---------- */

.hero-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: var(--max);

    margin: auto;

    padding:
        0
        var(--gutter)
        clamp(112px, 14vh, 160px);
}


/* ==========================================================
   08. HERO — TEXTOS
   ========================================================== */

.hero-eyebrow {
    display: block;

    margin-bottom: 20px;

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

    font-size: 11px;
    letter-spacing: 0.14em;
}


/* ---------- TÍTULO PRINCIPAL ---------- */

.hero h1 {
    max-width: 10.5ch;

    font-family: Archivo, sans-serif;

    font-size: clamp(3rem, 6.3vw, 6.5rem);
    font-weight: 500;

    line-height: 0.94;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


/* ---------- Descripción ---------- */

.hero .sub {
    max-width: 53ch;

    margin-top: 26px;

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

    font-size: clamp(0.98rem, 1.15vw, 1.12rem);

    line-height: 1.65;
}


/* ==========================================================
   09. HERO — BOTONES
   ========================================================== */

.hero-actions {
    display: flex;
    align-items: center;

    gap: 26px;

    margin-top: 34px;
}


/* ---------- Botón principal ---------- */

.hero-cta {
    display: inline-flex;
    align-items: center;

    gap: 18px;

    padding: 14px 18px;

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

    font-size: 13px;

    transition: 0.25s;
}

.hero-cta:hover {
    background: #fff;
    color: #111;
}


/* ---------- Botón secundario ---------- */

.hero-link {
    padding-bottom: 4px;

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

    font-size: 13px;
}


/* ==========================================================
   10. MANIFESTO / SECCIÓN BLANCA
   ========================================================== */

.manifesto {
    min-height: 70vh;

    display: flex;
    align-items: center;

    padding: 20px 0;

    background: var(--paper);
}

/* CONTENEDOR GENERAL */

.manifesto .wrap {
    width: 100%;
}


/* DISTRIBUCIÓN INTERNA */

.manifesto-grid {
    display: grid;

grid-template-columns:
    1fr
    1fr;

    align-items: center;

    gap: 10px;
}


/* ÍNDICE */

.manifesto-index {
    padding-top: 10px;

    color: #24536e;

    font-size: 10px;
    letter-spacing: 0.13em;
}


/* TÍTULO */

.manifesto h2 {
    max-width: 14ch;

    font-family: Archivo, sans-serif;

    font-size: clamp(2.25rem, 4.1vw, 4.5rem);
    font-weight: 500;

    line-height: 1.02;
    letter-spacing: -0.04em;
}


/* TEXTO DERECHO */

.manifesto-copy {
    padding-top: 8px;
}

.manifesto-copy p {
    max-width: 42ch;

    color: var(--soft);

    font-size: 1rem;
    line-height: 1.75;
}


/* ENLACE */

.manifesto-copy a {
    display: inline-flex;

    gap: 14px;

    margin-top: 32px;
    padding-bottom: 5px;

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

    font-size: 13px;
}

/* ==========================================================
   11. PRECISION / SECCIÓN CON IMAGEN
   ========================================================== */

.precision {
    position: relative;

    display: flex;
    align-items: flex-end;

    min-height: 78svh;

    overflow: hidden;

    background: #1b2226;
}


/* ---------- Imagen ---------- */

.precision-image {
    position: absolute;
    inset: 0;

    background:
        url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?q=85&w=2400&auto=format&fit=crop")
        center / cover
        no-repeat;

    filter: saturate(0.58);
}


/* ---------- Oscurecimiento ---------- */

.precision-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 13, 17, 0.8),
            rgba(7, 13, 17, 0.15) 62%
        ),
        linear-gradient(
            0deg,
            rgba(7, 13, 17, 0.45),
            transparent 50%
        );
}


/* ---------- Contenido ---------- */

.precision-content {
    position: relative;
    z-index: 2;

    width: 100%;

    padding-bottom: clamp(54px, 7vw, 94px);
}

.precision-card {
    max-width: 620px;

    padding-left: clamp(22px, 3vw, 40px);

    border-left: 1px solid rgba(255, 255, 255, 0.58);

    color: #fff;
}

.precision-card .mono {
    color: rgba(255, 255, 255, 0.65);

    font-size: 10px;

    letter-spacing: 0.14em;
}

.precision-card h2 {
    margin: 17px 0 22px;

    font-family: Archivo, sans-serif;

    font-size: clamp(2rem, 3.8vw, 4rem);
    font-weight: 500;

    line-height: 1.03;

    letter-spacing: -0.035em;
}

.precision-card p {
    max-width: 51ch;

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

    line-height: 1.7;
}

.precision-card a {
    display: inline-flex;

    gap: 15px;

    margin-top: 30px;
    padding-bottom: 5px;

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

    font-size: 13px;
}


/* ==========================================================
   12. PROYECTOS CTA
   ========================================================== */

.project-entry {
    padding: clamp(70px, 8vw, 110px) 0;

    background: #102938;

    color: #fff;
}

.project-entry-grid {
    display: grid;

    grid-template-columns: 1fr auto;

    align-items: end;

    gap: 40px;
}

.project-kicker {
    color: #8fb4c9;

    font-size: 10px;

    letter-spacing: 0.14em;
}

.project-entry h2 {
    max-width: 18ch;

    margin-top: 15px;

    font-family: Archivo, sans-serif;

    font-size: clamp(2rem, 3.6vw, 3.8rem);
    font-weight: 500;

    line-height: 1.03;

    letter-spacing: -0.035em;
}

.project-link {
    display: flex;
    align-items: center;

    gap: 18px;

    font-size: 13px;
}

.project-link .circle {
    display: grid;

    place-items: center;

    width: 52px;
    height: 52px;

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;

    transition: 0.25s;
}

.project-link:hover .circle {
    background: #fff;

    color: #102938;
}


/* ==========================================================
   13. FOOTER
   ========================================================== */

.footer {
    background: #0d1215;
    color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
    min-height: 92px;

    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);

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

    gap: 28px;

    font-size: 13px;
    white-space: nowrap;
}

.footer a {
    color: inherit;
    text-decoration: none;

    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff;
}


/* LOGO */

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: auto;
    height: 27px;
}


/* COPYRIGHT */

.footer-copy {
    color: rgba(255, 255, 255, 0.45);
}


/* ==========================================================
   14. MENÚ MÓVIL
   ========================================================== */

.mobile-panel {
    position: fixed;
    inset: 0;

    z-index: 100;

    padding:
        30px
        var(--gutter);

    background: var(--paper);

    transform: translateX(100%);

    transition: transform 0.35s ease;
}

.mobile-panel.open {
    transform: none;
}

.mobile-close {
    position: absolute;

    top: 28px;
    right: var(--gutter);

    font-size: 13px;
}

.mobile-panel ul {
    margin-top: 100px;

    list-style: none;
}

.mobile-panel li {
    border-top: 1px solid var(--line);
}

.mobile-panel li:last-child {
    border-bottom: 1px solid var(--line);
}

.mobile-panel a {
    display: block;

    padding: 15px 0;

    font-family: Archivo, sans-serif;

    font-size: clamp(2rem, 9vw, 4rem);
}


/* ==========================================================
   15. TABLET
   ========================================================== */

@media (max-width: 980px) {

    /* Header */

    .tagline {
        display: none;
    }


    /* Manifesto */

    .manifesto-grid {
        grid-template-columns: 1fr 2fr;
    }

    .manifesto-copy {
        grid-column: 2;
    }


}


/* ==========================================================
   16. MÓVIL
   ========================================================== */

@media (max-width: 760px) {

    /* ---------- Header ---------- */

    header {
        padding: 20px 0;
    }

    .primary-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    /* ---------- Logo ---------- */

    .brand img {
        height: 26px;
    }


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

    .hero-inner {
        padding-bottom: 105px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.4rem);
    }

    .hero .sub {
        max-width: 38ch;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;

        gap: 18px;
    }


    /* ---------- Manifesto ---------- */

    .manifesto {
        padding: 86px 0;
    }

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

    .manifesto-copy {
        grid-column: auto;
    }

    .manifesto h2 {
        max-width: 12ch;
    }


    /* ---------- Precision ---------- */

    .precision {
        min-height: 74svh;
    }


    /* ---------- Proyectos ---------- */

    .project-entry-grid {
        grid-template-columns: 1fr;
    }

    .project-link {
        justify-self: start;
    }


    /* ---------- Footer ---------- */

    .footer-inner {
        min-height: auto;

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;

        padding: 32px var(--gutter);

        white-space: normal;
    }
}


/* ==========================================================
   17. ACCESIBILIDAD / REDUCIR MOVIMIENTO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    * {
        scroll-behavior: auto !important;

        transition: none !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}