/* --- 1. CONFIGURACIÓN Y VARIABLES --- */
:root {
    --primary-dark:  #61784A;   
    --accent-green: #6e8b51;     
    --soft-green: #b5c99a;       
    --bg-light: #f9fbf7;         
    --white: #ffffff;
    --text-main: #333333;
    --text-light: #666666;
    /* Variables necesarias para el nuevo estilo del Navbar */
    --primary-nav: #608052; 
    --accent-nav: #7ca36b;
    --transition-nav: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset de márgenes y prevención de desbordamiento horizontal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white); 
    color: var(--text-main);
    line-height: 1.6;
}

/* --- 2. HEADER & NAVEGACIÓN ESTILO APP --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.281)), 
                url('../img/descarga (6).jfif') center/cover no-repeat;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    z-index: 10;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

/* MENÚ DE ICONOS UNIFICADO */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 1.0rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.95;
}


/* Diseño de botones de icono (Home, Talleres, Login, FAQ) */
.nav-icon-btn, .back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12); /* Fondo traslúcido */
    color: var(--white) !important;
    border-radius: 15px; /* Bordes suavizados estilo App */
    font-size: 1.6rem !important;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(8px); /* Efecto cristal */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-icon-btn:hover, .back-arrow:hover {
    background: var(--primary);
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- 3. SECCIÓN FAQ Y CONTENIDOS (SIN CAMBIOS) --- */
.faq-section {
    padding: 100px 8%;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-intro {
    text-align: center;
    margin-bottom: 80px;
}

.faq-intro h4 {
    color: var(--accent-green);
    letter-spacing: 5px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.faq-intro h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--primary-dark);
    font-weight: 700;
}

.legal-separator {
    margin-top: 80px;
    text-align: center;
    padding: 40px 0;
}

.legal-separator h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* --- 4. ACORDEONES (SIN CAMBIOS) --- */
.faq-group {
    margin-bottom: 40px;
}

.faq-item {
    background: var(--white);
    margin-bottom: 25px;
    border-radius: 35px; 
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 30px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--white);
}

.faq-question h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
}

.faq-question i {
    font-size: 1.8rem;
    color: var(--accent-green);
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s ease, opacity 0.5s ease; 
    padding: 0 45px;
}

.faq-item.active .faq-answer {
    max-height: 8000px; 
    opacity: 1;
    padding-bottom: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: justify;
    line-height: 1.8;
}

.faq-answer h3 {
    color: var(--primary-dark);
    margin: 30px 0 15px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- 5. FOOTER (SIN CAMBIOS EN CONTENIDO) --- */
.site-footer {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.281)), 
                url('../img/descarga (6).jfif') center/cover no-repeat;
    color: var(--white);
    padding: 70px 8% 30px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* --- 6. RESPONSIVO (MEJORADO PARA EL NAVBAR) --- */
@media (max-width: 992px) {
    .faq-section { padding: 80px 5%; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 20px; }
    .nav-links { gap: 35px; flex-wrap: wrap; justify-content: center; }
    .nav-icon-btn, .back-arrow { width: 42px; height: 42px; font-size: 1.4rem !important; }
    .faq-question { padding: 25px; }
    .faq-answer { padding: 0 25px; }
    .faq-question h3 { font-size: 1.1rem; }
    .nav-icon-btn, .back-arrow { width: 42px; height: 42px; font-size: 1.4rem !important; }
    .footer-container { flex-direction: column; text-align: center; }

}