/* ============================================================
   3dFiber — Stylesheet
   Estructura:
   1. Variables & Reset
   2. Tipografía base
   3. Utilidades de layout
   4. Componentes comunes (botones, tags, section-header)
   5. Navbar
   6. Hero
   7. About
   8. Why Us
   9. Solar Benefits
   10. Services (tabs + cards)
   11. Projects
   12. Contact
   13. Footer
   14. Animaciones
   15. Responsive
============================================================ */


/* ── 1. VARIABLES & RESET ─────────────────────────────────── */
:root {
    /* Paleta principal */
    --primary:       #0d2137;
    --primary-mid:   #1a3c5e;
    --primary-light: #2563eb;

    /* Acentos por servicio */
    --solar:   #f59e0b;   /* ámbar  — solar       */
    --solar-l: #fcd34d;
    --green:   #10b981;   /* esmeralda — aerotermia */
    --green-l: #6ee7b7;
    --blue:    #3b82f6;   /* azul    — EV          */
    --blue-l:  #93c5fd;

    /* Superficies */
    --bg-light:   #f1f5f9;
    --bg-dark:    #0d2137;
    --white:      #ffffff;
    --border:     #e2e8f0;

    /* Texto */
    --text:       #1e293b;
    --text-mid:   #475569;
    --text-light: #94a3b8;

    /* Efectos */
    --radius:     12px;
    --radius-lg:  20px;
    --radius-xl:  32px;
    --shadow:     0 4px 24px rgba(13, 33, 55, 0.08);
    --shadow-md:  0 8px 32px rgba(13, 33, 55, 0.12);
    --shadow-lg:  0 16px 48px rgba(13, 33, 55, 0.18);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* ── 2. TIPOGRAFÍA BASE ───────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); }


/* ── 3. UTILIDADES DE LAYOUT ──────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-pad {
    padding: 5rem 0;
}

.bg-light { background: var(--bg-light); }
.bg-dark  { background: var(--bg-dark); }

.center { text-align: center; }


/* ── 4. COMPONENTES COMUNES ───────────────────────────────── */

/* — Section tag — */
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(37, 99, 235, 0.1);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
}

.tag-amber {
    color: var(--solar);
    background: rgba(245, 158, 11, 0.15);
}

/* — Section header — */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light h2,
.section-header.light p {
    color: var(--white);
}

.section-header.light h2 { color: rgba(255,255,255,0.95); }
.section-header.light p  { color: rgba(255,255,255,0.7); }


/* — Botones — */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn-lg { padding: 0.9rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

.btn-primary {
    background: var(--primary-light);
    color: var(--white);
}
.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-amber {
    background: var(--solar);
    color: var(--primary);
}
.btn-amber:hover {
    background: var(--solar-l);
    transform: translateY(-1px);
}

.btn-green {
    background: var(--green);
    color: var(--white);
}
.btn-green:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-blue {
    background: var(--blue);
    color: var(--white);
}
.btn-blue:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Botones sobre fondo oscuro */
.bg-dark .btn-outline,
.hero .btn-outline {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.65);
}
.bg-dark .btn-outline:hover,
.hero .btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.1);
}


/* — Paleta de colores de icono — */
.solar-bg { background: rgba(245,158,11,0.15); color: var(--solar); }
.green-bg  { background: rgba(16,185,129,0.15); color: var(--green); }
.blue-bg   { background: rgba(59,130,246,0.15); color: var(--blue); }


/* — Placeholder de imagen — */
.img-placeholder {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #dde6f0 100%);
    min-height: 350px;
    display: flex;
    align-items: stretch;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.img-placeholder .placeholder-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
    pointer-events: none;
}

.img-placeholder .placeholder-label i { font-size: 2rem; }

/* Cuando la imagen carga, oculta el label */
.img-placeholder img[src]:not([src=""]) + .placeholder-label {
    opacity: 0;
}


/* ── 5. NAVBAR ────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 33, 55, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.logo-3d    { color: var(--solar); }
.logo-fiber { color: var(--white); }

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav-cta {
    margin-left: 0.5rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── 6. HERO ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #051522 0%, var(--primary) 50%, #0a1f36 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,33,55,0.5) 0%,
        rgba(13,33,55,0.3) 50%,
        rgba(13,33,55,0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 7rem;
    padding-bottom: 7rem;
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--solar);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    color: var(--solar);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.78);
    max-width: 580px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-6px); }
}


/* ── 7. ABOUT ─────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.02rem;
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--solar);
    line-height: 1;
    display: inline;
}

.stat-num-wrap {
    display: flex;
    align-items: baseline;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ── 8. WHY US ────────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: transparent;
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.why-card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.why-card p {
    font-size: 0.9rem;
    margin: 0;
}


/* ── 9. SOLAR BENEFITS ────────────────────────────────────── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(245,158,11,0.3);
    transform: translateY(-4px);
}

.benefit-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
}

.benefit-card h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    margin: 0;
}

/* Subsidies box */
.subsidies-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.subsidies-icon {
    width: 70px;
    height: 70px;
    background: rgba(245,158,11,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--solar);
    flex-shrink: 0;
}

.subsidies-text h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.subsidies-text p {
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.subsidies-text strong {
    color: var(--solar);
}

.subsidies-text .btn {
    margin-top: 0.5rem;
}


/* ── 10. SERVICES ─────────────────────────────────────────── */

/* Bloque de cada servicio */
.srv-block {
    padding: 3.5rem 0;
}

/* Etiqueta de servicio (pill superior) */
.srv-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 2rem;
}

.solar-label { background: rgba(245,158,11,0.12); color: #92400e; }
.green-label { background: rgba(16,185,129,0.12); color: #065f46; }
.blue-label  { background: rgba(59,130,246,0.12); color: #1e3a8a; }

/* Grid principal: texto + imagen */
.srv-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.srv-reverse .srv-main {
    direction: rtl;
}
.srv-reverse .srv-main > * {
    direction: ltr;
}

.srv-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.srv-text p {
    font-size: 0.96rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.srv-text .btn {
    margin-top: 0.5rem;
}

.srv-image .img-placeholder {
    min-height: 380px;
}

/* Grid de tipos de cliente */
.srv-clients {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}

.srv-client {
    padding: 2rem;
    border-right: 1px solid var(--border);
}

.srv-client:last-child {
    border-right: none;
}

.srv-client-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.srv-client h4 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.srv-client p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
}

/* Separador entre servicios */
.srv-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}


/* ── 11. PROJECTS ─────────────────────────────────────────── */
.project-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
    border: 2px solid var(--border);
    background: var(--white);
    transition: var(--transition);
}

.filter-btn:hover { border-color: var(--primary-light); color: var(--primary-light); }
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.projects-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1rem;
}

/* Project card */
.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}

.project-card.hidden { display: none; }

.project-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #c7d7ea 100%);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-img-wrapper.no-img::after {
    content: "\f03e"; /* fa-image */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(148,163,184,0.5);
}

.project-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.badge-solar      { background: rgba(245,158,11,0.9); color: #fff; }
.badge-aerotermia { background: rgba(16,185,129,0.9); color: #fff; }
.badge-ev         { background: rgba(59,130,246,0.9); color: #fff; }

.project-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.project-detail {
    font-weight: 600;
    color: var(--primary-light);
}

.project-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-info p {
    font-size: 0.88rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ── 12. CONTACT ──────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(37,99,235,0.2);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.phone-bg { background: rgba(245,158,11,0.12); color: var(--solar); }
.email-bg  { background: rgba(16,185,129,0.12); color: var(--green); }
.hours-bg  { background: rgba(59,130,246,0.12); color: var(--blue);  }

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-label {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

a.contact-value:hover { color: var(--primary-light); }

.contact-promise {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(37,99,235,0.05);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
}

.contact-promise i {
    color: var(--green);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.contact-promise p {
    font-size: 0.92rem;
    margin: 0;
}

/* CTA Panel */
.contact-cta-panel {
    position: sticky;
    top: 5rem;
}

.cta-panel-inner {
    background: var(--primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: var(--white);
}

.cta-panel-inner h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cta-panel-inner p {
    color: rgba(255,255,255,0.72);
    margin-bottom: 1.75rem;
}

.cta-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.cta-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.cta-checklist li i {
    color: var(--green);
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-buttons .btn {
    justify-content: center;
}

.cta-buttons .btn-outline {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.25);
}

.cta-buttons .btn-outline:hover {
    color: var(--white);
    border-color: var(--white);
}


/* ── 13. FOOTER ───────────────────────────────────────────── */
.footer {
    background: #07131f;
    color: rgba(255,255,255,0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 1.5rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    max-width: 260px;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--solar);
    color: var(--primary);
}

.footer-links h4,
.footer-contact-info h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}

.footer-links ul li a:hover { color: var(--white); }

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.6rem;
}

.footer-contact-info p i { color: var(--solar); }
.footer-contact-info a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-contact-info a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.25rem 1.5rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}


/* ── 14. ANIMACIONES ──────────────────────────────────────── */

/* Reveal de scroll */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up    { transform: translateY(30px); }
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: none;
}

/* Delay escalonado para grids */
.why-grid    .why-card:nth-child(2)     { transition-delay: 0.08s; }
.why-grid    .why-card:nth-child(3)     { transition-delay: 0.16s; }
.why-grid    .why-card:nth-child(4)     { transition-delay: 0.08s; }
.why-grid    .why-card:nth-child(5)     { transition-delay: 0.16s; }
.why-grid    .why-card:nth-child(6)     { transition-delay: 0.24s; }

.benefits-grid .benefit-card:nth-child(2) { transition-delay: 0.1s; }
.benefits-grid .benefit-card:nth-child(3) { transition-delay: 0.2s; }
.benefits-grid .benefit-card:nth-child(4) { transition-delay: 0.3s; }

.service-cards .service-card:nth-child(2) { transition-delay: 0.1s; }
.service-cards .service-card:nth-child(3) { transition-delay: 0.2s; }


/* ── 15. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .why-grid        { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid   { grid-template-columns: repeat(2, 1fr); }
    .service-cards   { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .projects-grid   { grid-template-columns: repeat(2, 1fr); }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    /* Hamburger visible */
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: min(320px, 80vw);
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.5rem;
        padding: 2rem;
        transition: right 0.35s ease;
        z-index: 999;
        box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    }

    .nav-links.open { right: 0; }

    .nav-link {
        width: 100%;
        font-size: 1.05rem;
        padding: 0.75rem 1rem;
    }

    .nav-cta { width: 100%; justify-content: center; margin-top: 0.5rem; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { order: -1; }

    /* Hero */
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { justify-content: center; }

    /* Services */
    .srv-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .srv-reverse .srv-main { direction: ltr; }
    .srv-clients { grid-template-columns: 1fr; }
    .srv-client  { border-right: none; border-bottom: 1px solid var(--border); }
    .srv-client:last-child { border-bottom: none; }

    /* Benefits */
    .benefits-grid { grid-template-columns: 1fr; }

    /* Subsidies */
    .subsidies-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .subsidies-icon { margin: 0 auto; }

    /* Why */
    .why-grid { grid-template-columns: 1fr; }

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

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-cta-panel { position: static; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
    .section-pad { padding: 3.5rem 0; }
    .hero-content { padding-top: 6rem; }
    .about-stats { gap: 1.5rem; }
    .service-cards { max-width: 100%; }
}
