/* ==========================================================================
   PROYECTOS LANTVIK, C.A.
   Sistema de diseno. Todo el color pasa por variables: cambiando el bloque
   :root se retematiza el sitio entero sin tocar una sola regla de abajo.
   ========================================================================== */

/* --- Tokens: tema oscuro (base) ------------------------------------------ */
:root {
    /* Marca: los dos colores del logo.
       --brand    rojo, para acentos (botones, iconos, cifras)
       --brand-2  version mas clara del rojo, SOLO para texto sobre fondo oscuro
                  (el rojo pleno no contrasta lo suficiente para leerse)
       --on-brand lo que va encima del rojo
       --ink      azul marino, para los bloques oscuros                        */
    --brand:        #b81817;
    --brand-2:      #ea4d49;
    --on-brand:     #ffffff;
    --ink:          #13152d;
    --ink-2:        #1e2145;
    --brand-soft:   rgba(184, 24, 23, .13);

    /* Superficies */
    --bg:          #0f0f11;
    --bg-alt:      #141417;
    --surface:     #17171a;
    --surface-2:   #1e1e22;
    --surface-3:   #26262b;
    --border:      #33333a;

    /* Texto */
    --text:        #cfcfd4;
    --text-muted:  #a6a6ad;
    --text-dim:    #7d7d86;
    --heading:     #ffffff;

    --shadow:      0 18px 40px -18px rgba(0, 0, 0, .55);
    --shadow-sm:   0 4px 14px -6px rgba(0, 0, 0, .5);

    /* Geometria */
    --radius:      10px;
    --radius-lg:   16px;
    --container:   1200px;
    --header-h:    76px;
    --transition:  .28s cubic-bezier(.4, 0, .2, 1);
}

/* --- Tokens: tema claro -------------------------------------------------- */
:root[data-theme="light"] {
    /* Sobre blanco, el rojo del logo ya contrasta bien; se oscurece un punto
       para que el texto pequeno se lea comodo. */
    --brand-2:      #9e1413;
    --brand-soft:   rgba(184, 24, 23, .09);

    --bg:          #f5f6f8;
    --bg-alt:      #eef1f5;
    --surface:     #ffffff;
    --surface-2:   #f3f5f8;
    --surface-3:   #eceff3;
    --border:      #e0e4ea;

    --text:        #4a4f57;
    --text-muted:  #6b7280;
    --text-dim:    #8b909a;
    --heading:     #1a1d23;

    --shadow:      0 18px 40px -20px rgba(30, 40, 60, .22);
    --shadow-sm:   0 4px 14px -6px rgba(30, 40, 60, .16);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--heading);
    line-height: 1.25;
    font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

/* --- Layout -------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }

/* --- Anatomia de seccion: eyebrow -> titulo (con .accent) -> lead --------- */
.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--brand-2);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 18px;
}
.section-title .accent { color: var(--brand-2); }

.lead { color: var(--text-muted); max-width: 640px; }

.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* --- Botones ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: .93rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand);
    color: var(--on-brand);
    border-color: var(--brand);
}
.btn-primary:hover {
    background: #d02523;
    border-color: #d02523;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(184, 24, 23, .65);
}

.btn-outline {
    background: transparent;
    color: var(--heading);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand-2);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.header.scrolled {
    background: var(--surface);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--heading);
    letter-spacing: .02em;
}
.brand-tag {
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--brand-2);
    font-weight: 600;
}

.menu { display: flex; align-items: center; gap: 30px; }
.menu a {
    position: relative;
    font-size: .93rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 0;
    transition: var(--transition);
}
.menu a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--brand);
    transition: var(--transition);
}
.menu a:hover, .menu a.active { color: var(--heading); }
.menu a:hover::after, .menu a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}
.icon-btn:hover { color: var(--brand-2); border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }

/* Solo se ve el icono del tema al que se puede cambiar */
:root[data-theme="light"] .icon-sun  { display: none; }
:root[data-theme="dark"]  .icon-moon { display: none; }

/* Selector de idioma */
.lang { position: relative; }
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    transition: var(--transition);
}
.lang-toggle:hover { color: var(--brand-2); border-color: var(--brand); }
.lang-toggle svg { width: 14px; height: 14px; }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition);
    z-index: 10;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 5px;
    font-size: .88rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.lang-menu a:hover { background: var(--surface-2); color: var(--heading); }
.lang-menu a.active { color: var(--brand-2); font-weight: 600; }

.hamburger { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 90px) 0 90px;
    overflow: hidden;
    background:
        radial-gradient(900px 460px at 78% 12%, var(--brand-soft), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
/* Trama diagonal sutil: da textura sin pedir una foto */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        var(--border) 0 1px,
        transparent 1px 11px
    );
    opacity: .22;
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    margin-bottom: 22px;
    letter-spacing: -.01em;
}
.hero h1 .accent { color: var(--brand-2); }

.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Panel derecho: composicion geometrica en vez de foto de archivo */
.hero-visual { position: relative; }

.hero-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 34px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), transparent);
}

.hero-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}
.hero-card > p {
    font-size: .9rem;
    color: var(--text-dim);
    margin-bottom: 26px;
}

.hero-list { display: grid; gap: 14px; }
.hero-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .92rem;
    color: var(--text-muted);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.hero-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-list svg {
    flex-shrink: 0;
    width: 18px; height: 18px;
    color: var(--brand);
}

/* Badge flotante de anios */
.hero-badge {
    position: absolute;
    left: -18px;
    bottom: -22px;
    background: var(--brand);
    color: var(--on-brand);
    border-radius: var(--radius);
    padding: 16px 22px;
    text-align: center;
    box-shadow: 0 14px 30px -12px rgba(184, 24, 23, .55);
}
.hero-badge strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--on-brand);
}
.hero-badge span {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { background: var(--surface); border-block: 1px solid var(--border); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat {
    padding: 40px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
.stat strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-2);
    line-height: 1.1;
}
.stat span {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    font-weight: 500;
}

/* ==========================================================================
   PILARES (Mision / Vision / Objetivo ...)
   ========================================================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.pillar {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    overflow: hidden;
}
.pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.pillar:hover {
    border-color: var(--brand);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand-2);
    margin-bottom: 20px;
}
.pillar-icon svg { width: 24px; height: 24px; }

.pillar h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pillar p { font-size: .92rem; color: var(--text-muted); }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.card-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--surface-3);
}
.card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    /* La foto es gris: el sitio le pone el color */
    filter: saturate(0) brightness(.78);
}
.card:hover .card-media img {
    transform: scale(1.06);
    filter: saturate(0) brightness(.9);
}
/* Vela dorada sobre la foto */
.card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(184, 24, 23, .30) 0%,
        rgba(19, 21, 45, .72) 100%);
    transition: var(--transition);
}
.card:hover .card-media::after { background: linear-gradient(180deg, rgba(184, 24, 23, .14) 0%, rgba(19, 21, 45, .55) 100%); }

.card-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }

.card-icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 10px;
    background: var(--brand);
    color: var(--on-brand);
    margin-top: -52px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.12rem; margin-bottom: 12px; }

.card-items {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}
.card-items li {
    font-size: .78rem;
    padding: 4px 11px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .87rem;
    font-weight: 600;
    color: var(--brand-2);
}
.card-link svg { width: 15px; height: 15px; transition: var(--transition); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ==========================================================================
   OBRAS
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 24px;
}

.project {
    display: flex;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: var(--transition);
}
.project:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-num {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-2);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .95rem;
}

.project p {
    font-size: .93rem;
    color: var(--text);
    margin-bottom: 12px;
}

.project-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-dim);
    font-weight: 500;
}
.project-loc svg { width: 14px; height: 14px; color: var(--brand); }

/* ==========================================================================
   CLIENTES
   ========================================================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    align-items: center;
}
.client {
    display: grid;
    place-items: center;
    padding: 24px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.client img {
    max-height: 54px;
    width: auto;
    filter: grayscale(1);
    opacity: .55;
    transition: var(--transition);
}
.client:hover { border-color: var(--brand); }
.client:hover img { filter: grayscale(0); opacity: 1; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
    background:
        radial-gradient(700px 300px at 20% 20%, var(--brand-soft), transparent 70%),
        var(--surface);
    border-block: 1px solid var(--border);
    text-align: center;
    padding: 76px 0;
}
.cta h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 14px; }
.cta p { color: var(--text-muted); max-width: 620px; margin: 0 auto 28px; }

/* ==========================================================================
   CONTACTO  (panel azul marino + formulario rojo: los dos colores del logo)
   ========================================================================== */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    background: var(--ink);
    color: #c9cbdb;
    padding: 54px 46px;
}
.contact-info h2 { color: #fff; font-size: 1.7rem; margin-bottom: 16px; }
.contact-info > p { color: #9ba0bd; margin-bottom: 34px; font-size: .95rem; }

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.info-item:last-child { margin-bottom: 0; }
.info-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 8px;
    background: var(--brand);
    color: var(--on-brand);
}
.info-icon svg { width: 18px; height: 18px; }
.info-item strong {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    /* Sobre el azul marino hace falta el rojo claro, no el pleno. */
    color: #ea4d49;
    margin-bottom: 3px;
    font-weight: 600;
}
.info-item span, .info-item a {
    font-size: .92rem;
    color: #c9cbdb;
    line-height: 1.55;
}
.info-item a:hover { color: #fff; }

/* Formulario sobre rojo: el golpe visual de la pagina */
.contact-form {
    background: var(--brand);
    padding: 54px 46px;
}
.contact-form h3 {
    color: var(--on-brand);
    font-size: 1.35rem;
    margin-bottom: 26px;
}

.field { margin-bottom: 17px; }
.field label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--on-brand);
    margin-bottom: 7px;
}
.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(19, 21, 45, .18);
    border-radius: 6px;
    color: #13152d;
    font-size: .93rem;
    transition: var(--transition);
}
.field input::placeholder,
.field textarea::placeholder { color: #8e93a8; }
.field input:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(19, 21, 45, .18);
}
.field textarea { resize: vertical; min-height: 110px; }

/* Ojo: estos avisos viven SOBRE el rojo de la marca, asi que no pueden ser
   rojos ni verdes tenues (se perderian). Van sobre blanco. */
.field-error {
    display: block;
    margin-top: 5px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: rgba(19, 21, 45, .55);
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}
.field input.has-error,
.field textarea.has-error { border-color: #13152d; border-width: 2px; }

/* Honeypot: invisible para humanos, irresistible para bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
    margin-bottom: 16px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 600;
    display: none;
}
.form-status.show { display: block; }
.form-status.ok  { background: #fff; color: #15803d; border: 1px solid rgba(21, 128, 61, .45); }
.form-status.err { background: #13152d; color: #fff;    border: 1px solid rgba(255, 255, 255, .3); }

.contact-form .btn { width: 100%; margin-top: 6px; }
.contact-form .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 66px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 46px;
}
.footer-brand p {
    font-size: .9rem;
    color: var(--text-dim);
    margin-top: 16px;
    max-width: 300px;
}
.footer h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--heading);
    margin-bottom: 18px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: .9rem;
    color: var(--text-dim);
    transition: var(--transition);
    display: inline-block;
}
.footer-links a:hover { color: var(--brand-2); padding-left: 4px; }

.footer-contact li {
    font-size: .9rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer-contact a:hover { color: var(--brand-2); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; color: var(--text-dim); }
.footer-bottom .rif { color: var(--text-dim); }

/* ==========================================================================
   PAGINA INTERNA: cabecera
   ========================================================================== */
.page-head {
    position: relative;
    padding: calc(var(--header-h) + 64px) 0 64px;
    background:
        radial-gradient(700px 320px at 80% 0%, var(--brand-soft), transparent 70%),
        var(--bg-alt);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.page-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, var(--border) 0 1px, transparent 1px 11px);
    opacity: .2;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.page-head h1 .accent { color: var(--brand-2); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-dim);
}
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb span { color: var(--brand-2); }

/* Bloque institucional largo (Quienes somos) */
.prose { max-width: 780px; }
.prose p { margin-bottom: 18px; color: var(--text-muted); }
.prose p:last-child { margin-bottom: 0; }

/* ==========================================================================
   ANIMACION: reveal on scroll
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 70px; }
    .hero p { max-width: none; }
    .hero-badge { left: auto; right: 18px; bottom: -20px; }
    .contact-box { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 1080px) {
    .hide-sm { display: none; }
}

@media (max-width: 760px) {
    .section { padding: 66px 0; }

    .menu {
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 8px 24px 18px;
        display: none;
    }
    .menu.open { display: flex; }
    .menu a { padding: 13px 0; border-bottom: 1px solid var(--border); }
    .menu a::after { display: none; }
    .menu a:last-child { border-bottom: 0; }

    .hamburger { display: grid; }

    .contact-info, .contact-form { padding: 40px 26px; }
    .projects-grid, .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--border); }
    .stat:last-child { border-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
}
