/* =============================
   Construventanas - Contacto
   ============================= */

/* BODY GENERAL */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333333;
    background-color: #F4F6F8;
    margin: 0;
    padding: 0;
}

/* =============================
   MAIN CONTACTO
   ============================= */
main.contacto {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* =============================
   TITULOS Y DESCRIPCIONES
   ============================= */
.contacto h1 {
    text-align: center;
    color: #1E3A5F; /* azul oscuro */
    font-size: 2.5em;
    margin-bottom: 15px;
}

.contacto p {
    text-align: center;
    color: #555555;
    font-size: 1.2em;
    margin-bottom: 50px;
}

/* =============================
   FORMULARIO DE CONTACTO
   ============================= */
.contact-form {
    background-color: #ffffff;
    border: 1px solid #dce3e8;
    border-radius: 10px;
    padding: 40px 30px;
    max-width: 600px;
    margin: 0 auto 50px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1E3A5F;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #dce3e8;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0078A0;
    box-shadow: 0 0 8px rgba(0,120,160,0.2);
    outline: none;
}

/* =============================
   BOTÓN DE ENVÍO
   ============================= */
.contact-form button {
    background-color: #0078A0; /* azul principal */
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #005F73; /* azul más oscuro al pasar */
    transform: translateY(-2px);
}

/* =============================
   MENSAJES DE ERROR Y ÉXITO
   ============================= */
.error {
    color: #D9534F; /* rojo formal */
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.success {
    color: #28A745; /* verde formal */
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* =============================
   MAPA DE GOOGLE MAPS
   ============================= */
.contact-map {
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 0 auto 50px auto;
    border: 1px solid #dce3e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* =============================
   INFO DE CONTACTO Y REDES
   ============================= */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.contact-info div {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.contact-info div:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.contact-info div h3 {
    color: #0078A0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.contact-info div p {
    color: #555555;
    font-size: 1em;
}

.contact-info div a {
    color: #0078A0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info div a:hover {
    color: #005F73;
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width: 992px) {
    .contact-info div {
        flex: 1 1 48%;
    }
}

@media (max-width: 600px) {
    .contact-info div {
        flex: 1 1 100%;
    }

    .contacto h1 {
        font-size: 2em;
    }

    .contact-form {
        padding: 30px 20px;
    }
}
/* Botón de regreso a inicio */
.home-button {
    text-align: right;
    margin-bottom: 20px;
}

.home-button a {
    text-decoration: none;
    font-size: 1.2em;
    color: #0078A0;
    background-color: #e6f2f5;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.home-button a:hover {
    background-color: #0078A0;
    color: #fff;
}
/* =============================
   Botón flotante de regreso a inicio
   ============================= */
.home-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    text-align: center;
}

.home-button a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 1.2em;
    color: #0078A0;
    background-color: #e6f2f5;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.home-button a svg {
    display: inline-block;
}

.home-button a:hover {
    background-color: #0078A0;
    color: #fff;
    transform: translateY(-2px);
}

/* =============================
   Responsive ajustes para móvil
   ============================= */
@media (max-width: 600px) {
    .home-button a {
        font-size: 1em;
        padding: 8px 12px;
    }
}
