/* ================= ANIMACIONES INICIALES ================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= CLASES PARA EL JS ================= */
.oculto-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.oculto-reveal.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* ================= HERO CONTACTO ================= */
.hero-container {
    padding: 30px 20px; 
    max-width: 1350px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.hero-contacto {
    height: 75vh; 
    min-height: 500px; 
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 24px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
    overflow: hidden;
}

.hero-contacto-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.25); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    padding: 0 15px; /* Pequeño margen interno para que no toque los bordes */
}

.hero-content h1 {
    font-size: 4.5rem;
    color: #ffffff; 
    letter-spacing: 5px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    text-transform: uppercase;
    word-wrap: break-word; /* Asegura que la palabra no rompa el contenedor */
}

/* ================= ESTRUCTURA PRINCIPAL ================= */
.contact-section {
    margin-bottom: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px; 
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    color: #2e4d25;
}

.section-desc {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ================= LADO IZQUIERDO: FORMULARIO ================= */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #222;
    font-size: 1.05rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #333;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: none; 
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
}

.btn-enviar {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: var(--primary-dark);
}

.mensaje-exito {
    display: none; 
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #c8e6c9;
}

.mensaje-exito.mostrar {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* ================= LADO DERECHO: DETALLES ================= */
.info-wrapper {
    padding-top: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: #f1f8e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.info-text h4 {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 5px;
}

.hover-text {
    font-size: 1.05rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hover-text:hover {
    color: var(--primary-color);
}

.static-text {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.5;
}

/* ================= MAPA Y TEXTO DE QUITO ================= */
.map-title {
    font-size: 1.8rem;
    color: #111;
    margin-top: 20px;
    margin-bottom: 15px;
}

.map-link {
    display: block;
    text-decoration: none;
}

.map-box {
    width: 100%;
    height: 250px;
    background-color: #eaf1e8; 
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.map-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s ease;
}

.map-box:hover .map-overlay {
    background: rgba(0, 0, 0, 0.2); 
}

.map-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.map-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ================= DISEÑO RESPONSIVO ================= */
@media (max-width: 900px) {
    .hero-container {
        padding: 15px 10px;
    }

    /* Corrección del tamaño de letra para celulares */
    .hero-content h1 {
        font-size: 2.2rem; /* Tamaño reducido para evitar desbordes */
        letter-spacing: 2px; /* Reducimos el espaciado para que ocupe menos a lo ancho */
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Regla extra de seguridad para celulares muy delgaditos (iPhone SE, etc.) */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
}