/* ========== CONTACTO HERO ========== */

.contacto-hero {
    background: linear-gradient(135deg, var(--marron-claro) 0%, var(--marron-madera) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contacto-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Quicksand', sans-serif;
}

.contacto-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* ========== CONTACTO PRINCIPAL ========== */
.contacto-principal {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.8);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ========== FORMULARIO ========== */
.formulario-contacto {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease;
}

/* Animación fade-in y slide-up para el formulario */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.formulario-contacto h2 {
    color: var(--marron-madera);
    margin-bottom: 2rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gris-oscuro);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--marron-madera);
    box-shadow: 0 0 0 3px rgba(121, 85, 72, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar {
    background: var(--verde-forestal);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-enviar:hover {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ========== INFORMACIÓN CONTACTO ========== */

.preguntas-frecuentes {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpFaq 1s ease forwards;
}

/* Animacion fadein y slideUp para Preguntas Frecuentes */
@keyframes fadeInUpFaq {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.preguntas-frecuentes h2 {
    color: var(--marron-madera);
    margin-bottom: 2rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    text-align: left;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    color: var(--negro);
    margin-bottom: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--gris-oscuro);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.faq-item:hover {
    background: #f9f6f2;
    box-shadow: 0 4px 16px rgba(121,85,72,0.07);
    transition: background 0.3s, box-shadow 0.3s;
}

.preguntas-frecuentes .faq-item {
    opacity: 0;
    transform: translateY(30px);
    animation: faqFadeInUp 0.7s ease forwards;
}
.preguntas-frecuentes .faq-item:nth-child(1) { animation-delay: 0.1s; }
.preguntas-frecuentes .faq-item:nth-child(2) { animation-delay: 0.2s; }
.preguntas-frecuentes .faq-item:nth-child(3) { animation-delay: 0.3s; }
.preguntas-frecuentes .faq-item:nth-child(4) { animation-delay: 0.4s; }

/* Animacion fade-in y slide-up al cargar */
@keyframes faqFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MAPA ========== */
.mapa-header {
    padding: 3.5rem ;
    text-align: center;
    background: rgba(255, 248, 225, 0.8);
}

.mapa-container {
    margin-top: 2rem;
}

.mapa-container h3 {
    color: var(--marron-madera);
    margin-bottom: 1rem;
    font-family: 'Quicksand', sans-serif;
}

.mapa {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========== EMERGENCIAS ========== */
.emergencias {
    background: transparent; /* Elimina el fondo expansivo */
    color: white;
    padding: 3rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.emergencia-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #880a06 0%, #c23003 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(121,85,72,0.07);
    padding: 2rem 2.5rem;
    color: white;
}

.emergencia-icono {
    font-size: 3rem;
}

.emergencia-info h2 {
    margin-bottom: 1rem;
    font-family: 'Quicksand', sans-serif;
}

.emergencia-telefono {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.emergencia-nota {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== NAVBAR ACTIVE ========== */
.navbar li a.active {
    background: #5D4037;
    color: #FFE0B2;
}

/* ========== RESPONSIVE CONTACTO ========== */
@media screen and (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacto-hero h1 {
        font-size: 2.5rem;
    }
    
    .emergencia-content {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .formulario-contacto,
    .preguntas-frecuentes {
        padding: 1.5rem;
    }
    
    .contacto-hero h1 {
        font-size: 2rem;
    }
    
    .contacto-hero p {
        font-size: 1.1rem;
    }
    
    .contacto-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contacto-icono {
        align-self: center;
    }
}