/* === HERO SECTION === */
.hero-contacto {
    margin-top: 80px;
    padding: 2rem 1rem;
    background: none;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-transparent {
    background-color: #333; /* Fondo negro */
}

.hero-contacto h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    margin-top: 40px; /* Separar título de la cabecera */
}

/* === INFORMACIÓN DE CONTACTO === */
.info-contacto {
    background: #f4f6f8;
    padding: 60px 20px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contacto-item {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contacto-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.contacto-item h3 {
    color: #009fe3;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #009fe3;
    display: inline-block;
    padding-bottom: 5px;
}

.contacto-detalle {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contacto-detalle:hover {
    background-color: #f1f9ff;
}

.contacto-detalle i {
    font-size: 22px;
    color: #009fe3;
    margin-right: 15px;
    min-width: 28px;
}

.contacto-detalle p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

/* === FORMULARIO DE CONTACTO === */
.formulario-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #009fe3;
    outline: none;
}

textarea {
    height: 150px;
    resize: vertical;
}

.btn-enviar {
    background-color: #009fe3;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #007bbd;
}

/* === REDES SOCIALES Y WHATSAPP === */
.redes-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.red-item {
    text-align: center;
}

.btn-whatsapp,
.btn-email {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-email {
    background-color: #009fe3;
}

.btn-whatsapp:hover,
.btn-email:hover {
    transform: translateY(-5px);
}

/* === MODAL DE ÉXITO === */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.4); 
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-contenido p {
    font-size: 18px;
    margin-bottom: 20px;
}

.modal-contenido button {
    background-color: #009fe3;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* === MAPA === */
.maps-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.maps-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .hero-contacto h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .info-contacto {
        padding: 40px 15px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacto-item {
        padding: 25px;
    }

    .contacto-item h3 {
        font-size: 1.5rem;
    }

    .contacto-detalle i {
        font-size: 20px;
        margin-right: 12px;
    }

    .contacto-detalle p {
        font-size: 0.95rem;
    }

    .hero-contacto h1 {
        font-size: 2.5rem;
    }

    .maps-container {
        height: 300px;
    }

    .redes-container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .contacto-item {
        padding: 20px;
    }

    .contacto-item h3 {
        font-size: 1.3rem;
        text-align: center;
        width: 100%;
    }

    .contacto-detalle {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px;
    }

    .contacto-detalle i {
        margin-bottom: 6px;
    }

    .contacto-detalle p {
        font-size: 0.9rem;
    }

    .hero-contacto h1 {
        font-size: 2rem;
    }
}
