/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green: #00E87A;
    --green-dim: #00b85f;
    --black: #0a0a0a;
    --surface: #111213;
    --surface2: #181a1b;
    --border: rgba(255,255,255,0.08);
    --text: #f0f0f0;
    --text-muted: #888;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    height: 28px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.nav-cta {
    color: var(--green) !important;
    border: 1px solid var(--green);
    padding: 6px 18px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
    background: var(--green) !important;
    color: var(--black) !important;
}



.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 28px;
    max-width: 820px;
}

.hero h1 span {
    color: var(--green);
}

.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn-primary {
    display: inline-block;
    background: var(--green);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 3px;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: var(--green-dim);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 3px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--text);
}

/* ── HERO STATS BAR ── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 48px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.05em;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    margin-right: 48px;
    flex-shrink: 0;
}

/* ── SECTIONS COMMON ── */
.section-header {
    margin-bottom: 56px;
}

.section-eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
    line-height: 1.1;
}

/* ── SERVICIOS ── */
.section-servicios {
    padding: 100px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--surface);
    padding: 36px 32px;
    transition: background 0.2s;
    cursor: default;
}

.service-card:hover {
    background: var(--surface2);
}

.service-icon {
    margin-bottom: 20px;
    opacity: 0.9;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── SECTORES ── */
.section-sectores {
    padding: 100px 0;
    background: var(--black);
    border-top: 1px solid var(--border);
}

.sectors-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
}

.sector-item {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.sector-item:last-child { border-bottom: none; }

.sector-item:hover { background: var(--surface); }

.sector-num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.1em;
    min-width: 28px;
}

.sector-name {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text);
    flex: 1;
}

.sector-line {
    height: 1px;
    width: 80px;
    background: var(--border);
}

/* ── CONTACTO ── */
.section-contacto {
    padding: 100px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

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

.contacto-text h2 {
    font-family: var(--font-display);
    font-size: clamp(34px, 3.5vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.contacto-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}

.contact-card:hover {
    border-color: rgba(0,232,122,0.3);
    background: rgba(0,232,122,0.03);
}

.contact-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-email {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--green);
}

/* ── FOOTER ── */
footer {
    background: #060606;
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo {
    height: 20px;
    width: auto;
    opacity: 0.5;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links { display: none; }

    .hero { padding: 100px 24px 60px; }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .stat-divider { display: none; }
    .stat { padding-right: 0; }

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

    .contacto-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .container { padding: 0 20px; }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── HERO FOTO DE FONDO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 32px 80px;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background-image: url('hero.jpeg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) saturate(0.6);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,10,10,0.85) 40%,
        rgba(10,10,10,0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-stats {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ── GALERÍA ── */
.section-proyectos {
    padding: 100px 0;
    background: var(--black);
    border-top: 1px solid var(--border);
}

.gallery {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3px;
    margin-top: 48px;
}

.gallery-main {
    position: relative;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-main:hover img { transform: scale(1.03); }

.gallery-side {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 28px 20px 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-main:hover .gallery-caption,
.gallery-item:hover .gallery-caption {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-bg-img { filter: brightness(0.25) saturate(0.5); }

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

    .gallery-main img { height: 280px; }
    .gallery-item img { height: 200px; }
    .gallery-caption { opacity: 1; }
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;

    background: #25D366;
    color: white;

    padding: 14px 20px;
    border-radius: 999px;

    font-weight: 600;

    box-shadow: 0 8px 25px rgba(0,0,0,.25);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
