﻿/* ===========================
   Estilos Globales
=========================== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

/* ===========================
   HERO CONTACTO
=========================== */
.hero-contacto {
    position: relative;
    height: 100vh;
    background: url('/images/background.png') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    overflow: hidden;
}

.hero-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-contacto .content {
        position: relative;
        z-index: 2;
}

.hero-contacto h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-contacto p.lead {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.hero-contacto .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 30px;
        transition: all 0.3s ease;
    }

        .hero-contacto .btn:hover {
            background-color: white;
            color: #000;
            transform: scale(1.05);
        }

/* ===========================
   Contenedor formulario
=========================== */
.form-container {
    background-color: #e7e6e6;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.container-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 30px;
    background-color: #fffafa;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    gap: 30px;
    flex-wrap: wrap;
}

.form-column {
    flex: 1 1 480px;
    max-width: 600px;
    padding-right: 30px;
    border-right: 2px solid #e0e0e0;
}
    .form-column h2 {
        color: #8EA50D !important;
    } 


h2, h3 { 
    font-weight: 600;
    color: #8EA50D;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

/* ===========================
   Inputs y validaciones
=========================== */
.form-control {
    padding: 12px 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 1.5px solid #ccc;
    margin-bottom: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-validation-error {
    border: 2px solid #dc3545 !important; 
    background-color: #fff6f6 !important; 
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.4);
}


.input-valid {
    border-color: #198754 !important;
    background-color: #f6fff6;
    box-shadow: 0 0 6px rgba(25, 135, 84, 0.5);
}

.text-danger {
    font-size: 0.9rem;
    color: #dc3545;
    margin-top: 4px;
    min-height: 20px;
}

/* ===========================
   Botones
=========================== */
.btn-outline-primary {
    background-color: #8EA50D;
    color: white;
    border-color: transparent;
    transition: all 0.3s ease-in-out;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
}

    .btn-outline-primary:hover:not(:disabled) {
        background-color: #6f840a;
        color: #fff;
        box-shadow: 0 0 12px 4px rgba(142, 165, 13, 0.6);
    }

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===========================
   Modal personalizado
=========================== */
.modal {
    position: fixed;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close:hover {
        color: #555;
    }

.btn-close-modal {
    margin-top: 20px;
    padding: 12px 28px;
    font-size: 1rem;
    border: none;
    background-color: #8EA50D;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

    .btn-close-modal:hover {
        background-color: #6f840a;
    }

/* ===========================
   Animaciones
=========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
    .container-form {
        flex-direction: column;
        padding: 30px 15px;
    }

    .form-column {
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .social-column {
        padding-left: 0;
        max-width: 100%;
    }

    .hero-contacto h1 {
        font-size: 2.2rem;
    }

    .hero-contacto p.lead {
        font-size: 1.1rem;
    }
}
.small-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    
}

.form-column, .social-column {
    flex: 1;
}

