/* ==========================================================================
   Fortaleza Ingeniería — estilos del sitio público
   ========================================================================== */

:root {
    --blue: #010ECE;
    --blue-strong: #000A9E;
    --blue-bright: #2735F5;
    --blue-soft: #ECEEFF;

    --ink: #0A0C12;
    --ink-2: #11141C;
    --ink-3: #1A1E29;

    --text: #1B1E26;
    --muted: #5A6070;
    --on-dark: #FFFFFF;
    --on-dark-muted: #A2A8B7;

    --bg: #FFFFFF;
    --bg-soft: #F4F5F8;
    --line: #E2E4EA;
    --line-dark: rgba(255, 255, 255, 0.1);

    --wa: #25D366;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(10, 12, 18, 0.06);
    --shadow: 0 1px 2px rgba(10, 12, 18, 0.05), 0 18px 40px -18px rgba(10, 12, 18, 0.25);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
    --section-y: clamp(72px, 10vw, 128px);

    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--blue-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
}
.eyebrow--light { color: #8F98FF; }

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.015em;
    line-height: 1.08;
    text-wrap: balance;
}

.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    color: var(--text);
    font-weight: 500;
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 0.95em; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(1, 14, 206, 0.7); }
.btn--primary:hover { background: var(--blue-bright); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--blue-soft); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--blue); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue);
}
.link-arrow i { transition: transform 0.25s var(--ease); }

/* ---------- Encabezado ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.is-inner .site-header {
    background: rgba(10, 12, 18, 0.9);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line-dark);
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img { width: auto; height: 34px; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
.site-nav__list {
    display: flex;
    gap: 30px;
}
.site-nav__list a {
    position: relative;
    padding: 6px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s;
}
.site-nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--blue-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a.is-current { color: #fff; }
.site-nav__list a:hover::after,
.site-nav__list a.is-current::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded='true'] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .brand img { height: 30px; }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding: 32px var(--gutter) 40px;
        background: var(--ink);
        border-top: 1px solid var(--line-dark);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
    }
    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.25s, transform 0.25s var(--ease);
    }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__list a {
        display: block;
        padding: 18px 0;
        border-bottom: 1px solid var(--line-dark);
        font-size: 1.5rem;
        font-weight: 700;
        font-stretch: 112%;
        color: #fff;
    }
    .site-nav__list a::after { display: none; }
    .site-nav__cta { padding: 16px; font-size: 1rem; }

    body.nav-open { overflow: hidden; }
    /* backdrop-filter convierte al header en contenedor de los hijos "fixed":
       se quita mientras el menú está abierto para que ocupe toda la pantalla */
    body.nav-open .site-header {
        background: var(--ink);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

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

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-h);
    color: #fff;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    z-index: -2;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 70% at 0% 100%, rgba(1, 14, 206, 0.45), transparent 70%),
        linear-gradient(90deg, rgba(10, 12, 18, 0.92) 0%, rgba(10, 12, 18, 0.7) 45%, rgba(10, 12, 18, 0.15) 100%),
        linear-gradient(0deg, rgba(10, 12, 18, 0.9) 0%, transparent 35%);
}

.hero__inner {
    padding-block: 64px 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero__title {
    max-width: 15ch;
    font-size: clamp(2.2rem, 9vw, 5.6rem);
    font-weight: 800;
    font-stretch: 118%;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-wrap: balance;
}
.hero__title span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
}
.hero__lead {
    max-width: 46ch;
    margin: 28px 0 40px;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255, 255, 255, 0.78);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__strip {
    border-top: 1px solid var(--line-dark);
    background: rgba(10, 12, 18, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero__strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.hero__fact {
    padding: 24px 24px 26px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero__fact + .hero__fact {
    padding-left: 24px;
    border-left: 1px solid var(--line-dark);
}
.hero__fact strong {
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    font-weight: 800;
    font-stretch: 112%;
}
.hero__fact span {
    font-size: 0.82rem;
    color: var(--on-dark-muted);
    letter-spacing: 0.04em;
}

@media (max-width: 720px) {
    .hero__title span { -webkit-text-stroke-width: 1px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__strip-grid { grid-template-columns: 1fr; }
    .hero__fact,
    .hero__fact + .hero__fact {
        padding: 14px 72px 14px 0;
        border-left: 0;
    }
    .hero__fact + .hero__fact { border-top: 1px solid var(--line-dark); }
}

/* ---------- Secciones ---------- */

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--soft { background: var(--bg-soft); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.section-head--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px 64px;
    align-items: end;
}
.section-head__text { color: var(--muted); font-size: 1.05rem; }

@media (max-width: 860px) {
    .section-head--split { grid-template-columns: 1fr; }
}

/* ---------- Nosotros ---------- */

.about__intro {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}
.about__intro .section-title { margin-bottom: 24px; }
.about__intro p:not(.lead):not(.eyebrow) { color: var(--muted); }

.stat-card {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 4vw, 48px);
    border-radius: var(--radius);
    background:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--blue);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 300px;
    justify-content: flex-end;
    box-shadow: 0 30px 60px -30px rgba(1, 14, 206, 0.6);
}
.stat-card__mark {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 64px;
    opacity: 0.9;
}
.stat-card__number {
    font-size: clamp(4.5rem, 9vw, 7rem);
    font-weight: 800;
    font-stretch: 125%;
    line-height: 0.9;
    letter-spacing: -0.03em;
}
.stat-card__label {
    max-width: 22ch;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pillar {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.pillar:hover {
    border-color: rgba(1, 14, 206, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.pillar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.pillar__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 1.3rem;
}
.pillar__num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #B5BAC6;
    letter-spacing: 0.1em;
}
.pillar__title {
    font-size: 1.4rem;
    font-weight: 800;
    font-stretch: 112%;
    margin-bottom: 12px;
}
.pillar p { color: var(--muted); font-size: 0.98rem; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.chips li {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 960px) {
    .about__intro { grid-template-columns: 1fr; }
    .stat-card { min-height: 240px; }
    .pillars { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 960px) {
    .pillars { grid-template-columns: 1fr 1fr; }
    .pillars .pillar:last-child { grid-column: 1 / -1; }
}

/* ---------- Servicios ---------- */

.services {
    position: relative;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
        var(--ink);
    color: #fff;
}
.services .section-head__text { color: var(--on-dark-muted); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 32px 32px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}
.service::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--blue-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.service:hover { border-color: rgba(39, 53, 245, 0.55); transform: translateY(-4px); }
.service:hover::before { transform: scaleX(1); }

.service__num {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 3.4rem;
    font-weight: 800;
    font-stretch: 125%;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}
.service__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 12px;
    background: var(--blue);
    font-size: 1.35rem;
    box-shadow: 0 12px 30px -10px rgba(1, 14, 206, 0.8);
}
.service__title {
    font-size: 1.35rem;
    font-weight: 800;
    font-stretch: 112%;
    margin-bottom: 14px;
}
.service p { color: var(--on-dark-muted); font-size: 0.98rem; flex: 1; }
.service__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-dark);
}
.service__tags li {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
    .services__grid { grid-template-columns: 1fr; }
}

/* ---------- Portafolio ---------- */

.project-featured {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}
.project-featured__media {
    position: relative;
    display: block;
    min-height: 380px;
    overflow: hidden;
    background: var(--ink-3);
}
.project-featured__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.project-featured:hover .project-featured__media img { transform: scale(1.04); }

.project-featured__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(28px, 4vw, 56px);
}
.project-featured__title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    font-stretch: 112%;
    margin-bottom: 16px;
}
.project-featured__title a { text-decoration: none; }
.project-featured__title a:hover { color: var(--blue); }
.project-featured__body > p:not(.eyebrow) { color: var(--muted); }
.project-featured__body .btn { margin-top: 28px; }

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}
.meta-list i { color: var(--blue); margin-right: 6px; }
.meta-list--light { color: var(--on-dark-muted); }
.meta-list--light i { color: #8F98FF; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    margin-top: 24px;
}
.section-head + .project-grid { margin-top: 0; }

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: box-shadow 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.project-card:hover .link-arrow i { transform: translateX(4px); }
.project-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink-3);
}
.project-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(10, 12, 18, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}
.project-card__count i { margin-right: 4px; }
.project-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.project-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    font-stretch: 108%;
}

.empty-state {
    padding: 64px 24px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}
.empty-state i { font-size: 2rem; color: var(--blue); margin-bottom: 16px; }

@media (max-width: 860px) {
    .project-featured { grid-template-columns: 1fr; }
    .project-featured__media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Banda CTA ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 8vw, 96px);
    color: #fff;
    background:
        url('../img/rook-white.png') no-repeat right 6% center / auto 130%,
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
        var(--blue);
    background-blend-mode: soft-light, normal, normal, normal;
}
.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta-band__title {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 800;
    font-stretch: 112%;
    margin-bottom: 10px;
}
.cta-band p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 720px) {
    .cta-band { background-size: auto 90%, 40px 40px, 40px 40px, auto; background-position: right -40px center, 0 0, 0 0, 0 0; }
    .cta-band__actions .btn { flex: 1 1 100%; }
}

/* ---------- Contacto ---------- */

.contact { background: var(--bg-soft); }
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}
.contact__info .section-title { margin-bottom: 20px; }
.contact__info .lead { color: var(--muted); font-weight: 400; }

.contact-list { margin-top: 36px; display: grid; gap: 14px; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
}
.contact-list__icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--blue-soft);
    color: var(--blue);
}
.contact-list__icon--wa { background: #E3F9EA; color: #128C4A; }
.contact-list__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-list a {
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--blue); }

.quote-form {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.quote-form__title {
    font-size: 1.5rem;
    font-weight: 800;
    font-stretch: 112%;
    margin-bottom: 8px;
}
.quote-form__hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field > span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #D3D6DE;
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(1, 14, 206, 0.12);
}
.quote-form .btn { margin-top: 8px; }

@media (max-width: 860px) {
    .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Página de proyecto ---------- */

.page-head {
    padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(40px, 5vw, 56px);
    color: #fff;
    background:
        radial-gradient(50% 120% at 100% 0%, rgba(1, 14, 206, 0.35), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
        var(--ink);
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--on-dark-muted);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 0.65rem; opacity: 0.6; }
.breadcrumb span { color: #fff; }
.page-head__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    font-stretch: 115%;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.gallery__main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink-3);
}
.gallery__stage {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    aspect-ratio: 16 / 10;
}
.gallery__stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s;
}
.gallery__stage img.is-loading { opacity: 0.35; }
.gallery__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(10, 12, 18, 0.6);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery__main:hover .gallery__zoom,
.gallery__stage:focus-visible .gallery__zoom { opacity: 1; }

.gallery__nav,
.lightbox__nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s, color 0.2s;
}
.gallery__nav:hover,
.lightbox__nav:hover { background: var(--blue); color: #fff; }
.gallery__nav--prev, .lightbox__nav--prev { left: 14px; }
.gallery__nav--next, .lightbox__nav--next { right: 14px; }

.gallery__counter,
.lightbox__counter {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(10, 12, 18, 0.7);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.gallery__thumb {
    flex: none;
    width: 104px;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--ink-3);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--blue); }

.project-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}
.prose {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 28px;
    overflow-wrap: anywhere;
}
.link-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}
.link-back:hover { color: var(--blue); }

@media (max-width: 960px) {
    .project-layout { grid-template-columns: 1fr; }
    .project-aside { position: static; }
}
@media (max-width: 560px) {
    .gallery__nav { width: 40px; height: 40px; margin-top: -20px; }
    .gallery__thumb { width: 84px; }
}

/* ---------- Lightbox ---------- */

.lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(5, 6, 10, 0.96);
    color: #fff;
    overflow: hidden;
}
.lightbox::backdrop { background: rgba(5, 6, 10, 0.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
}
.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.1); }
.lightbox__nav { z-index: 2; }
.lightbox__counter { left: 50%; bottom: 20px; transform: translateX(-50%); }

@media (min-width: 900px) {
    .lightbox__img { max-width: calc(100vw - 200px); }
    .lightbox__nav--prev { left: 32px; }
    .lightbox__nav--next { right: 32px; }
}

/* ---------- Pie de página ---------- */

.site-footer {
    padding: clamp(56px, 8vw, 88px) 0 32px;
    background: var(--ink);
    color: var(--on-dark-muted);
    font-size: 0.95rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand img { height: 36px; width: auto; margin-bottom: 20px; }
.site-footer__brand p { max-width: 38ch; }
.site-footer__title {
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
}
.site-footer__links { display: grid; gap: 12px; }
.site-footer__links a { text-decoration: none; transition: color 0.2s; overflow-wrap: anywhere; }
.site-footer__links a:hover { color: #fff; }
.site-footer__contact li { display: flex; gap: 12px; align-items: baseline; }
.site-footer__contact i { width: 16px; color: #8F98FF; flex: none; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 24px;
    font-size: 0.85rem;
}

@media (max-width: 860px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--wa);
    color: #fff;
    font-size: 1.9rem;
    text-decoration: none;
    box-shadow: 0 12px 28px -8px rgba(18, 140, 74, 0.6);
    transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--wa);
    animation: wa-pulse 2.6s var(--ease) infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70%, 100% { transform: scale(1.5); opacity: 0; }
}
body.nav-open .wa-float { display: none; }

/* ---------- Animaciones de entrada ---------- */

@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    }
    .js .reveal.is-visible { opacity: 1; transform: none; }

    .hero__eyebrow, .hero__title, .hero__lead, .hero__actions {
        animation: rise 0.9s var(--ease) both;
    }
    .hero__title { animation-delay: 0.08s; }
    .hero__lead { animation-delay: 0.16s; }
    .hero__actions { animation-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-float::after { animation: none; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}
