/* ============================================
   LLAQTA INGENIEROS — FAQ.CSS
   Header y Footer idénticos al inicio.css
   Body blanco, FAQ accordion limpio
   ============================================ */

:root {
    --verde: #2d5a27;
    --verde-claro: #3a7232;
    --verde-oscuro: #1e3d1a;
    --amarillo: #f2b705;
    --amarillo-hover: #e0a800;
    --blanco: #ffffff;
    --negro: #0f0f0f;
    --plomo: #3a3a3a;
    --gris-claro: #f4f4f0;
    --gris-medio: #888;
    --fuente-titulo: 'Bebas Neue', sans-serif;
    --fuente-cuerpo: 'Barlow', sans-serif;
    --transicion: 0.3s ease;
    --radio: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fuente-cuerpo); color: var(--plomo); overflow-x: hidden; background: var(--blanco); }
img { max-width: 100%; display: block; }

/* ============================================
   HEADER — idéntico al inicio
   ============================================ */
#main-header {
    position: fixed;
    width: 100%;
    padding: 14px 5%;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    backdrop-filter: blur(12px);
    transition: padding var(--transicion), box-shadow var(--transicion);
}
#main-header.scrolled { padding: 8px 5%; box-shadow: 0 2px 24px rgba(0,0,0,0.12); }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}
.logo img { height: 75px; transition: height var(--transicion); }
#main-header.scrolled .logo img { height: 48px; }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
}
.nav-links li a {
    text-decoration: none;
    color: var(--plomo);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: color var(--transicion);
}
.nav-links li a:hover { color: var(--amarillo) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 4px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--plomo); border-radius: 2px;
    transition: transform var(--transicion), opacity var(--transicion);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DROPDOWN ── */
.has-dropdown { position: relative; }

.chevron {
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform var(--transicion);
}
.has-dropdown:hover .chevron,
.has-dropdown.open .chevron { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.07);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.22s ease 0s, transform 0.22s ease 0s;
    z-index: 2000;
}
.dropdown::before {
    content: '';
    position: absolute;
    top: -7px; left: 50%;
    transform: translateX(-50%);
    width: 14px; height: 7px;
    background: #fff;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.06));
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.has-dropdown:not(:hover) .dropdown {
    transition: opacity 0.22s ease 0.1s, transform 0.22s ease 0.1s;
}
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%; left: -20px; right: -20px;
    height: 12px;
    background: transparent;
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--plomo);
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.dropdown-item:hover {
    background: var(--gris-claro);
    border-color: #e5e2da;
    transform: translateX(3px);
}
.item-icon {
    width: 38px; height: 38px;
    background: rgba(45,90,39,0.08);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde);
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease;
}
.dropdown-item:hover .item-icon { background: var(--verde); color: var(--blanco); }
.item-icon svg {
    width: 16px; height: 16px;
    fill: none; stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.item-text { display: flex; flex-direction: column; gap: 2px; }
.item-label {
    font-size: 0.82rem; font-weight: 700;
    color: var(--negro); text-transform: uppercase;
    letter-spacing: 0.5px; line-height: 1.2;
}
.item-desc {
    font-size: 0.75rem; color: var(--gris-medio);
    font-weight: 400; text-transform: none;
    letter-spacing: 0; line-height: 1.3;
}

/* ── Overlay móvil ── */
.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 998;
    backdrop-filter: blur(3px);
}
.nav-overlay.open { display: block; }

/* ============================================
   UTILIDADES
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.section-label {
    display: inline-block;
    font-size: 0.73rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--verde); margin-bottom: 10px;
}
.section-label.light { color: var(--amarillo); }
.highlight { color: var(--amarillo); }
.highlight-verde { color: var(--verde); }

/* ============================================
   HERO FAQ — imagen + título solo
   ============================================ */
.faq-hero {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 103px; /* altura del header */
}
.faq-hero-bg {
    position: absolute;
    inset: 0; z-index: 0;
}
.faq-hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}
.faq-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.80) 0%, rgba(10,10,10,0.55) 100%);
}
.faq-hero-content {
    position: relative; z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}
.faq-hero-content h1 {
    font-family: var(--fuente-titulo);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    letter-spacing: 0.03em;
    color: var(--blanco);
}
.faq-hero-content h1 span { color: var(--amarillo); }

/* ============================================
   FAQ SECTION — fondo blanco
   ============================================ */
.faq-section {
    padding: 80px 0 100px;
    background: var(--blanco);
}
.faq-intro {
    text-align: center;
    margin-bottom: 56px;
}
.faq-intro h2 {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--negro);
}
.faq-intro p { color: var(--gris-medio); font-size: 0.95rem; }

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 56px;
    align-items: start;
}
.faq-col { display: flex; flex-direction: column; }

/* Item */
.faq-item {
    border-bottom: 1px solid #e0ddd8;
    overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid #e0ddd8; }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--negro);
    text-align: left;
    font-family: var(--fuente-cuerpo);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    transition: color var(--transicion);
}
.faq-question:hover { color: var(--verde); }

.faq-icon {
    flex-shrink: 0;
    fill: none;
    stroke: var(--amarillo);
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-question { color: var(--verde); }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* Respuesta acordeón */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 400px;
    padding-bottom: 20px;
}
.faq-answer p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.75;
}
.faq-answer a { color: var(--amarillo); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* ============================================
   CTA FINAL — idéntico al inicio
   ============================================ */
.section-cta-final { position: relative; padding: 0; overflow: hidden; }
.cta-final-inner {
    background: var(--verde);
    position: relative;
    padding: 80px 0 64px;
    clip-path: ellipse(95% 100% at 50% 100%);
}
.cta-final-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--verde), var(--amarillo), var(--verde));
}
.cta-final-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-final-texto span {
    display: block;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--amarillo); margin-bottom: 10px;
}
.cta-final-texto h3 {
    font-family: var(--fuente-titulo);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 1px;
    color: var(--blanco);
    line-height: 1.1;
}
.cta-final-texto h3 strong { color: var(--amarillo); font-weight: 800; }
.btn-cta-final {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--amarillo);
    color: var(--negro);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 36px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--transicion), transform var(--transicion), box-shadow var(--transicion);
}
.btn-cta-final:hover {
    background: var(--amarillo-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(242,183,5,0.3);
}
.btn-cta-final svg { transition: transform var(--transicion); }
.btn-cta-final:hover svg { transform: translateX(5px); }

/* ============================================
   FOOTER — idéntico al inicio
   ============================================ */
.footer {
    background: var(--negro);
    padding: 64px 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-col h4 {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--amarillo); margin-bottom: 20px;
}
.footer-logo-img { height: 65px; margin-bottom: 14px; }
.footer-slogan {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.75; margin-bottom: 22px;
}
.footer-redes { display: flex; gap: 8px; }
.red-social {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: background var(--transicion), border-color var(--transicion), color var(--transicion);
}
.red-social:hover { background: var(--verde); border-color: var(--verde); color: var(--blanco); }
.footer-col ul {
    list-style: none;
    display: flex; flex-direction: column; gap: 11px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.42);
    text-decoration: none; font-size: 0.88rem;
    transition: color var(--transicion);
}
.footer-col ul li a:hover { color: var(--amarillo); }
.contacto-lista { gap: 14px !important; }
.contacto-lista li {
    display: flex !important;
    align-items: flex-start; gap: 10px;
}
.contacto-lista li svg { flex-shrink: 0; color: rgba(255,255,255,0.22); margin-top: 2px; }
.contacto-lista li span,
.contacto-lista li a {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.42);
    text-decoration: none; line-height: 1.65;
    transition: color var(--transicion);
}
.contacto-lista li a:hover { color: var(--amarillo); }
.footer-bottom {
    display: flex;
    justify-content: space-between; align-items: center;
    padding: 20px 0; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.2); }
.footer-bottom p strong { color: rgba(255,255,255,0.32); }
.footer-ruc { color: rgba(255,255,255,0.18) !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: min(340px, 85vw);
        height: 100vh;
        background: #0f0f0f;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        z-index: 999;
        padding: 90px 24px 40px;
        overflow-y: auto;
        box-shadow: -6px 0 40px rgba(0,0,0,0.45);
    }
    .nav-links.open { display: flex; }
    .nav-links li a {
        font-size: 0.95rem; padding: 14px 16px;
        color: rgba(255,255,255,0.85) !important;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        border-radius: 0;
    }
    .nav-links li:last-child > a { border-bottom: none; }
    .nav-links li a:hover { color: var(--amarillo) !important; background: rgba(255,255,255,0.04); }
    .has-dropdown { position: static; width: 100%; }
    .has-dropdown > a { display: flex; align-items: center; justify-content: space-between; }
    .dropdown {
        position: static;
        top: auto; left: auto;
        transform: none !important;
        min-width: 100%;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: none; border-radius: 10px;
        margin: 4px 0 8px; padding: 6px;
        opacity: 0; pointer-events: none;
        max-height: 0; overflow: hidden;
        transition: opacity 0.25s ease, max-height 0.3s ease;
    }
    .dropdown::before { display: none; }
    .has-dropdown.open .dropdown { opacity: 1; pointer-events: all; max-height: 600px; }
    .has-dropdown:hover .dropdown { opacity: 0; pointer-events: none; max-height: 0; }
    .has-dropdown.open:hover .dropdown,
    .has-dropdown.open .dropdown { opacity: 1; pointer-events: all; max-height: 600px; }
    .dropdown-item { padding: 10px 12px; border-radius: 8px; }
    .dropdown-item:hover { background: rgba(255,255,255,0.08); transform: none; }
    .item-label { color: var(--blanco); }
    .item-desc { color: rgba(255,255,255,0.5); }
    .item-icon { background: rgba(255,255,255,0.08); color: var(--amarillo); }
    .dropdown-item:hover .item-icon { background: var(--amarillo); color: var(--negro); }
    .has-dropdown.open .chevron { transform: rotate(180deg); }
    .has-dropdown:hover .chevron { transform: none; }
    .has-dropdown.open:hover .chevron { transform: rotate(180deg); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .faq-grid { grid-template-columns: 1fr; }
    .faq-col:nth-child(2) .faq-item:first-child { border-top: none; }
}

@media (max-width: 768px) {
    .faq-hero { height: 260px; }
    .faq-hero-content h1 { font-size: 2.8rem; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-final-grid { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 480px) {
    .faq-section { padding: 48px 0 64px; }
}