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

:root {
    --green-900: #0E1A0E;
    --green-800: #142014;
    --green-700: #1E321A;
    --green-600: #2D5016;
    --green-500: #3D6B20;
    --green-400: #4A7C2E;
    --green-300: #8B9D83;
    --accent: #C8A882;
    --accent-lt: rgba(200, 168, 130, 0.15);
    --white: #F4F7F1;
    --white-60: rgba(244, 247, 241, 0.6);
    --white-30: rgba(244, 247, 241, 0.3);
    --white-10: rgba(244, 247, 241, 0.10);
    --white-06: rgba(244, 247, 241, 0.06);
    --white-03: rgba(244, 247, 241, 0.03);
    --glass-bg: rgba(14, 26, 14, 0.55);
    --glass-brd: rgba(244, 247, 241, 0.10);

    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
    --mono: 'DM Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--green-900);
    color: var(--white);
    font-family: var(--sans);
    font-weight: 300;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--green-900);
}

::-webkit-scrollbar-thumb {
    background: var(--green-600);
}

/* ========================================
   LOADING SCREEN — Geométrico (Opción B)
   ======================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0e1a0e;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.7s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Contenedor central */
.ls-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

/* Wrapper del logo + SVG encima */
.ls-logo-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: lsFadeIn 0.9s ease forwards 0.1s;
}

/* SVG superpuesto (brackets) */
.ls-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 220px;
    overflow: visible;
}

/* Líneas de brackets */
.bl {
    stroke: #5a8a2a;
    stroke-width: 1.8;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
    animation: lsDrawLine var(--dur, .45s) ease forwards;
    animation-delay: var(--d, 0s);
}

/* Marcas de punto medio (sutil) */
.bm {
    stroke: #7ab84a;
    stroke-width: 0.8;
    opacity: 0.35;
}

/* Logo — sin deformación */
.ls-logo {
    position: relative;
    z-index: 2;
    width: 150px;
    height: auto;
    display: block;
}

/* Subtítulo */
.ls-subtitle {
    opacity: 0;
    animation: lsFadeIn 0.7s ease forwards 1.6s;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(122, 184, 74, 0.7);
    text-transform: uppercase;
    margin: 0;
}

/* Botón EXPLORAR — adaptado a fondo oscuro */
.enter-btn {
    opacity: 0;
    animation: lsFadeIn 0.7s ease forwards 2.1s;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 10px 0;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    outline: none;
    text-transform: uppercase;
}

.enter-btn .btn-text {
    opacity: 0.6;
    transition: opacity 0.4s ease, letter-spacing 0.5s ease;
}

.enter-btn .btn-line {
    width: 0%;
    height: 1px;
    background: #5a8a2a;
    transition: width 0.7s cubic-bezier(0.19, 1, 0.22, 1), background 0.4s ease;
}

.enter-btn:hover .btn-text {
    opacity: 1;
    letter-spacing: 0.5em;
}

.enter-btn:hover .btn-line {
    width: 100%;
    background: #7ab84a;
}

/* Keyframes */
@keyframes lsDrawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes lsFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.main-site {
    display: none;
    opacity: 0;
}

.main-site.active {
    display: block;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ─── NAV ─── */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 64px;
    transition: all 0.5s ease;
}

nav.scrolled {
    padding: 18px 64px;
    background: rgba(14, 26, 14, 0.80);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-brd);
}

.nav-brand {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    text-decoration: none;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(200, 168, 130, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 16px;
    height: 16px;
}

.nav-wordmark {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--white);
}

.nav-wordmark sub {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--white-60);
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    /* Ensures text links and button are vertically aligned */
    gap: 100px;
    list-style: none;
}

.nav-links a {
    font-size: 15.5px;
    letter-spacing: 0.0em;
    color: var(--white);
    text-decoration: none;
    transition: all 0.25s;
}

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

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(244, 247, 241, 0.15);
    padding: 7px 18px;
    border-radius: 50px;
    background: rgba(244, 247, 241, 0.03);
    backdrop-filter: blur(8px);
}

.nav-btn:hover {
    background: rgba(244, 247, 241, 0.08);
    border-color: rgba(244, 247, 241, 0.35);
}

.nav-btn-icon {
    width: 10px;
    height: 10px;
    color: var(--accent);
    transition: transform 0.3s;
}

.nav-btn:hover .nav-btn-icon {
    transform: rotate(45deg) scale(1.1);
}

/* ── HAMBURGER BUTTON ── */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--white-10);
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.mobile-nav-toggle:hover {
    border-color: rgba(200, 168, 130, 0.4);
    background: rgba(200, 168, 130, 0.06);
}
.mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--white);
    margin: 0 auto;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MOBILE DRAWER ── */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;  /* red de seguridad: si CSS no carga, queda oculto inline */
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.mobile-drawer.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible !important;  /* sobrescribe el inline */
    transition: opacity .25s ease, visibility 0s linear 0s;
}
.mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 26, 14, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mobile-drawer-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 82%;
    max-width: 340px;
    background: var(--green-900);
    border-left: 1px solid var(--glass-brd);
    padding: 70px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.4);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-drawer.open .mobile-drawer-panel {
    transform: translateX(0);
}
.mobile-drawer-close {
    position: absolute;
    top: 18px; right: 18px;
    background: transparent;
    border: 1px solid var(--white-10);
    border-radius: 50%;
    width: 38px; height: 38px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s;
}
.mobile-drawer-close:hover {
    border-color: rgba(200, 168, 130, 0.5);
    background: rgba(200, 168, 130, 0.08);
}
.mobile-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 4px;
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px solid var(--white-06);
    transition: color .2s, padding-left .2s;
}
.mobile-drawer-link:hover {
    color: var(--accent);
    padding-left: 6px;
}
.mobile-drawer-link--accent {
    color: var(--accent);
    font-weight: 500;
}
.mobile-drawer-link--accent:hover {
    color: var(--white);
}
.mobile-drawer-divider {
    height: 1px;
    background: var(--white-10);
    margin: 16px 0 8px;
}

.nav-pill {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(200, 168, 130, 0.35);
    border-radius: 50px;
    padding: 9px 24px;
    background: rgba(200, 168, 130, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.25s;
}

.nav-pill:hover {
    background: rgba(200, 168, 130, 0.12);
    border-color: rgba(200, 168, 130, 0.6);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg,
            rgba(14, 26, 14, 0.20) 0%,
            rgba(14, 26, 14, 0.15) 80%,
            rgba(14, 26, 14, 0.55) 90%,
            rgba(0, 0, 0, 0.96) 100%),
        url('../img/fio.jpg');
    background-size: cover;
    background-position: center;
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-inner {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 0 64px 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-end;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
    padding: 7px 16px;
    border: 1px solid rgba(200, 168, 130, 0.25);
    border-radius: 50px;
    background: rgba(200, 168, 130, 0.06);
    backdrop-filter: blur(8px);
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

h1.hero-title {
    font-family: var(--serif);
    font-size: clamp(36px, 6.5vw, 72px);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
    max-width: 600px;
}

h1.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(244, 247, 241, 0.9);
    max-width: 480px;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--white-60);
    padding: 7px 14px;
    border: 1px solid var(--glass-brd);
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.badge svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--white);
    background: rgba(244, 247, 241, 0.03);
    border: 1px solid rgba(244, 247, 241, 0.15);
    backdrop-filter: blur(8px);
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.hero-cta:hover {
    background: rgba(244, 247, 241, 0.08);
    border-color: rgba(244, 247, 241, 0.35);
}

.hero-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* Glass card on the right */
.hero-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-brd);
    border-radius: 20px;
    padding: 28px 32px;
    min-width: 240px;
    align-self: flex-end;
}

.hero-card-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--white-06);
    font-size: 13px;
}

.hc-row:last-child {
    border: none;
    padding-bottom: 0;
}

.hc-key {
    color: var(--white-30);
}

.hc-val {
    color: var(--white);
    font-weight: 400;
}

.hc-val.accent {
    color: var(--accent);
}

/* ─── SECTION BASE ─── */
section {
    padding: 112px 0;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.label {
    font-family: var(--mono);
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

h2.title {
    font-family: var(--sans);
    font-size: clamp(32px, 3.5vw, 54px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

h2.title em {
    font-style: italic;
}

.subtitle {
    font-size: 18px;
    line-height: 1.75;
    color: rgba(244, 247, 241, 0.9);
    max-width: 520px;
}

/* ─── SERVICES ─── */
.services {
    background: var(--green-800);
    background-image:
        linear-gradient(rgba(29, 29, 29, 0.589), rgba(44, 44, 44, 0.337)),
        url('../img/dron.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.services-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 72px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.svc-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-brd);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s, background 0.35s;
    cursor: default;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.svc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 20% 20%, rgba(200, 168, 130, 0.07) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.svc-card:hover {
    border-color: rgba(200, 168, 130, 0.25);
}

.svc-card:hover::after {
    opacity: 1;
}



.svc-icon {
    width: 48px;
    height: 48px;
    background: rgba(200, 168, 130, 0.08);
    border: 1px solid rgba(200, 168, 130, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--accent);
    transition: background 0.3s;
}

.svc-card:hover .svc-icon {
    background: rgba(200, 168, 130, 0.14);
}

.svc-icon svg {
    width: 22px;
    height: 22px;
}

.svc-name {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 14px;
}

.svc-desc {
    font-size: 13.5px;
    line-height: 1.72;
    color: rgba(244, 247, 241, 0.85);
    margin-bottom: 24px;
}

.svc-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s;
}

.svc-more:hover {
    gap: 10px;
}

/* ─── FEATURED / PROJECTS ─── */
.projects {
    background: var(--green-900);
}

.projects-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
}

.proj-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-brd);
    position: relative;
    aspect-ratio: auto;
    min-height: 380px;
    background: var(--green-700);
    display: flex;
    align-items: flex-end;
    cursor: default;
    transition: border-color 0.35s;
}

.proj-card:hover {
    border-color: rgba(200, 168, 130, 0.3);
}

.proj-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1b3d18, #0b1a0b);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.proj-card:hover .proj-card-bg {
    transform: scale(1.03);
}

.proj-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 20, 10, 0.95) 0%, rgba(10, 20, 10, 0.4) 70%, transparent 100%);
}

.proj-card-body {
    position: relative;
    z-index: 2;
    padding: 28px 32px;
    width: 100%;
}

.proj-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(200, 168, 130, 0.1);
    border: 1px solid rgba(200, 168, 130, 0.2);
    border-radius: 50px;
    padding: 5px 12px;
    margin-bottom: 12px;
}

.proj-name {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
}

.proj-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(244, 247, 241, 0.85);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s ease;
}

.proj-card:hover .proj-desc {
    opacity: 1;
    transform: none;
}

/* ── Carrusel de proyectos ── */
.proj-nav-wrap {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: flex-end;
}

.proj-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-brd);
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.proj-nav:hover {
    border-color: rgba(200, 168, 130, 0.5);
    background: rgba(200, 168, 130, 0.1);
}

.proj-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.proj-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.proj-track::-webkit-scrollbar {
    display: none;
}

.proj-track > .proj-card {
    flex: 0 0 clamp(280px, 31%, 384px);
    scroll-snap-align: start;
}

/* Altura fija de la descripción → el título queda a la MISMA posición en
   todas las cards, sin importar el largo del texto (se recorta a 3 líneas). */
.proj-track .proj-desc {
    height: 64px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, height 0.35s ease;
}

/* En hover: la descripción se expande completa (sin "…") y, como el cuerpo
   está anclado abajo, el título sube para dejar espacio. */
.proj-track .proj-card:hover .proj-desc {
    height: auto;
    -webkit-line-clamp: unset;
    overflow: visible;
}

@media (max-width: 700px) {
    .proj-track > .proj-card {
        flex: 0 0 85%;
    }
}

.proj-name-news {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--white);
}

/* NEWS GRID (adapt to glassmorphism) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-grid .proj-card {
    aspect-ratio: auto;
    min-height: 380px;
    text-decoration: none;
}

.news-grid .proj-desc {
    opacity: 1;
    /* Make description visible by default for news */
    transform: none;
    font-size: 12px;
}

.news-meta {
    font-size: 11px;
    color: var(--white-30);
    margin-top: 10px;
    font-family: var(--mono);
}

/* ─── WHY / PILLARS ─── */
.why {
    background: var(--green-800);
    background-image:
        linear-gradient(rgba(20, 32, 20, 0.85), rgba(20, 32, 20, 0.237)),
        url('../img/ballena.jpeg');
    /* Placeholder, user can change later */
    background-size: cover;
    background-position: center;
}

.why-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 100px;
    align-items: start;
}


.why-left .subtitle {
    margin-bottom: 50px;
}

/* Glass quote card */
.why-quote {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-brd);
    border-radius: 20px;
    padding: 32px 36px;
}

.why-quote blockquote {
    font-family: var(--serif);
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    color: var(--white);
    margin-bottom: 24px;
}

.why-quote cite {
    font-family: var(--mono);
    font-size: 40px;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    font-style: normal;
}

.pillars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pillar {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: start;
    padding: 24px 28px;
    background: rgba(10, 20, 10, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(244, 247, 241, 0.10);
    border-radius: 16px;
    transition: background 0.3s, border-color 0.3s;
}

.pillar:hover {
    background: rgba(14, 28, 14, 0.70);
    border-color: rgba(200, 168, 130, 0.18);
}

.pillar:hover .pillar-num-box {
    border-color: rgba(200, 168, 130, 0.4);
    background: rgba(200, 168, 130, 0.07);
}

.pillar-num-box {
    width: 44px;
    height: 44px;
    border: 1px solid var(--glass-brd);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--white-30);
    margin-top: 2px;
    transition: all 0.3s;
}

.pillar-title {
    font-family: var(--sans);
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 12px;
}

.pillar-text {
    font-size: 14px;
    line-height: 1.72;
    color: rgba(244, 247, 241, 0.88);
}

/* ─── CONTACT ─── */
.contact {
    background: var(--green-900);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.contact-items {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ci {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-brd);
    border-radius: 16px;
}

.ci-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(200, 168, 130, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.ci-icon svg {
    width: 16px;
    height: 16px;
}

.ci-lbl {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-30);
    margin-bottom: 4px;
}

.ci-val {
    font-size: 14px;
    color: var(--white);
}

/* Form glass panel */
.contact-form {
    background: rgba(14, 26, 14, 0.50);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-brd);
    border-radius: 24px;
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 80, 22, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.contact-form::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 168, 130, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.fg {
    margin-bottom: 16px;
    position: relative;
}

label.fl {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-30);
    margin-bottom: 8px;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(244, 247, 241, 0.05);
    border: 1px solid var(--glass-brd);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--white);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
    position: relative;
    z-index: 1;
}

input::placeholder,
textarea::placeholder {
    color: var(--white-30);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(200, 168, 130, 0.4);
    background: rgba(244, 247, 241, 0.07);
}

select {
    appearance: none;
    cursor: pointer;
}

select option {
    background: var(--green-800);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.form-btn {
    width: 100%;
    margin-top: 8px;
    background: var(--green-600);
    border: none;
    border-radius: 50px;
    padding: 16px;
    color: var(--white);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.25s;
    position: relative;
    z-index: 1;
}

.form-btn:hover {
    background: var(--green-500);
}

.form-btn:disabled {
    background: var(--green-700);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-note {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: var(--white-30);
    position: relative;
    z-index: 1;
}

.form-success {
    text-align: center;
    padding: 2rem 0;
    color: var(--white);
}

/* ─── FOOTER ─── */
footer {
    background: var(--green-900);
    border-top: 1px solid var(--glass-brd);
    padding: 36px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foot-brand {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--white-60);
}

.foot-copy {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--white-30);
}

.foot-links {
    display: flex;
    gap: 32px;
}

.foot-links a {
    font-size: 13px;
    color: var(--white-30);
    text-decoration: none;
    transition: color 0.2s;
}

.foot-links a:hover {
    color: var(--white-60);
}

/* ─── REVEAL ANIMATIONS ─── */
.r {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.r.v {
    opacity: 1;
    transform: none;
}

.r.d1 {
    transition-delay: 0.10s;
}

.r.d2 {
    transition-delay: 0.20s;
}

.r.d3 {
    transition-delay: 0.30s;
}

.r.d4 {
    transition-delay: 0.40s;
}

.r.d5 {
    transition-delay: 0.50s;
}

/* ─── HERO ENTRY ─── */
.hero-text>* {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.9s ease forwards;
}

.hero-tag {
    animation-delay: 0.2s;
}

.hero-title {
    animation-delay: 0.4s;
}

.hero-sub {
    animation-delay: 0.6s;
}

.hero-badges {
    animation-delay: 0.7s;
}

.hero-cta {
    animation-delay: 0.85s;
}

.hero-card {
    animation: heroCard 1s ease 1s both;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes heroCard {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Mobile adaptations */
@media (max-width: 992px) {

    .why-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .why-left {
        position: static;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 0 32px 64px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    section {
        padding: 56px 0;
    }

    /* Background-attachment: fixed causa lag/glitches en Safari mobile.
       En mobile dejamos scroll normal. */
    .services {
        background-attachment: scroll;
    }

    /* Hero: padding lateral + altura adaptativa */
    .hero {
        height: auto;
        min-height: 88vh;
        padding-top: 90px;
    }

    .hero-inner {
        padding: 0 24px 48px !important;
    }

    /* Cards más compactas */
    .svc-card {
        min-height: auto;
        padding: 32px 24px;
    }

    .proj-card-body {
        padding: 22px 22px;
    }

    /* Hero badges en mobile: wrap natural */
    .hero-badges {
        flex-wrap: wrap;
        gap: 8px !important;
    }

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

    .services-head {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-head {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 36px 24px;
    }

    h1.hero-title {
        font-size: 2.5rem;
    }

    .loading-title {
        font-size: 2.5rem;
    }

    /* Loading screen */
    .ls-logo-wrap {
        width: 160px;
        height: 160px;
    }

    .ls-svg {
        width: 160px;
        height: 160px;
    }

    .ls-logo {
        width: 110px;
    }

    .ls-subtitle {
        font-size: 8px;
        letter-spacing: 0.2em;
    }

    /* News grid */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Services grid: prevenir scroll horizontal en mobiles <350px */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Form: nombre/email en 1 columna en mobile (no apretarlos) */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    /* iOS Safari hace zoom automático en inputs con font-size <16px.
       Forzamos 16px en mobile para evitarlo. */
    input, select, textarea {
        font-size: 16px;
        padding: 13px 16px;
    }

    /* Contact form: padding más compacto */
    .contact-form {
        padding: 28px 22px;
        border-radius: 18px;
    }

    /* Pillars en mobile más compactos */
    .pillar {
        padding: 18px 18px;
        gap: 14px;
        grid-template-columns: 48px 1fr;
    }
    .pillar-num-box {
        width: 40px; height: 40px;
        font-size: 12px;
    }
    .pillar-title {
        font-size: 16px;
    }
    .pillar-text {
        font-size: 13.5px;
        line-height: 1.65;
    }

    /* Contact items más compactos */
    .ci {
        padding: 16px 18px;
        gap: 12px;
    }
    .ci-icon { width: 34px; height: 34px; }

    /* Why quote */
    .why-quote {
        padding: 22px 24px;
        border-radius: 16px;
    }
    .why-quote blockquote {
        font-size: 17px;
        margin-bottom: 16px;
    }
    .why-quote cite {
        font-size: 22px;
        letter-spacing: .08em;
    }

    /* Why grid: gap más razonable */
    .why-inner {
        gap: 40px !important;
    }
    .contact-inner {
        gap: 36px !important;
    }
    .why-left .subtitle {
        margin-bottom: 32px;
    }
    .contact-items {
        margin-top: 28px;
    }

    /* Footer: forzar column override del inline style */
    footer .container {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center;
    }
    .foot-brand, .foot-copy, .foot-links {
        text-align: center;
    }
    .foot-links {
        gap: 18px !important;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile chico (iPhone SE, Galaxy A serie, <480px) */
@media (max-width: 480px) {
    nav {
        padding: 14px 18px;
    }
    .nav-brand img {
        height: 36px !important;
    }
    section {
        padding: 44px 0;
    }
    .container {
        padding: 0 1.1rem;
    }
    .hero {
        min-height: 84vh;
        padding-top: 84px;
    }
    .hero-inner {
        padding: 0 18px 36px !important;
    }
    h1.hero-title {
        font-size: 2.1rem;
        line-height: 1.05;
    }
    .hero-sub {
        font-size: 14.5px;
        line-height: 1.55;
    }
    .hero-cta {
        padding: 12px 22px !important;
        font-size: 14px;
    }
    .svc-card {
        padding: 24px 20px;
        border-radius: 14px;
    }
    .svc-name {
        font-size: 17px !important;
    }
    .svc-desc {
        font-size: 13px !important;
        line-height: 1.55;
    }
    h2.title {
        font-size: 28px;
    }
    .subtitle {
        font-size: 15px;
    }
    .mobile-drawer-panel {
        padding: 62px 22px 24px;
    }
    .mobile-drawer-link {
        font-size: 15px;
        padding: 12px 4px;
    }

    /* Contact form ultra-compacto en mobile chico */
    .contact-form {
        padding: 22px 16px;
        border-radius: 14px;
    }
    .contact-form::before,
    .contact-form::after {
        display: none;  /* glow decorativos no aportan en mobile chico */
    }
    .form-btn {
        padding: 14px;
        font-size: 13.5px;
    }

    /* Pillars ultra-compactos */
    .pillar {
        padding: 16px 14px;
        gap: 12px;
        grid-template-columns: 42px 1fr;
    }
    .pillar-num-box {
        width: 36px; height: 36px;
        border-radius: 9px;
    }

    /* Projects: card body más compacta */
    .proj-card-body {
        padding: 18px 18px;
    }
    .proj-name {
        font-size: 18px !important;
    }
    .proj-desc {
        font-size: 13px !important;
    }

    /* Why quote más compacta */
    .why-quote {
        padding: 18px 18px;
    }
    .why-quote blockquote {
        font-size: 15.5px;
    }
}
