/* assets/contacto.css */

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.contact-hero {
    position: relative;
    width: 100%;
    height: 350px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('/images/index/back3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.contact-hero h1 {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-hero .breadcrumb {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-hero .breadcrumb a {
    color: #88c000;
    transition: color 0.3s ease;
}

.contact-hero .breadcrumb a:hover {
    color: #11cc00;
    text-decoration: underline;
}

.contact-hero .breadcrumb span {
    color: #ddd;
    margin-left: 5px;
    margin-right: 5px;
}

/* ==========================================================================
   2. SECCIÓN TARJETAS DE INFORMACIÓN
   ========================================================================== */
.contact-info-section {
    padding: 80px 0 50px;
    background-color: #ffffff;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid #88c000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(136, 192, 0, 0.1);
    color: #88c000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    margin: 0 auto 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.info-card:hover .info-card-icon {
    background-color: #88c000;
    color: white;
}

.info-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.info-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.info-card a {
    color: #666;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: #88c000;
}

/* ==========================================================================
   3. SECCIÓN FORMULARIO Y MAPA
   ========================================================================== */
.contact-main-section {
    padding: 50px 0 80px;
    background-color: #f9f9f9;
}

.contact-main-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-main-section .section-header h2 {
    font-size: 32px;
    color: #ea5b27;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-main-section .section-header h3 {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Formulario */
.form-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
    border-left: 4px solid #88c000;
    padding-left: 15px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #88c000;
    box-shadow: 0 0 0 3px rgba(136, 192, 0, 0.15);
    outline: none;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Validación visual */
.form-group.success .form-control {
    border-color: #2ecc71;
}

.form-group.error .form-control {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* Checkbox de términos */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #88c000;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group label a {
    color: #88c000;
    font-weight: 600;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Botón de envío */
.btn-submit {
    background-color: #88c000;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-submit:hover {
    background-color: #6a9a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136, 192, 0, 0.3);
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contenedor del Mapa */
.map-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-wrapper {
    flex-grow: 1;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    min-height: 400px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Banners de estado (Alertas) */
.alert-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.4s ease-in-out;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        min-height: 350px;
    }
    
    .info-cards-grid {
        gap: 20px;
    }
    
    .info-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 280px;
    }
    
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-section {
        padding: 60px 0 30px;
    }
    
    .contact-main-section {
        padding: 40px 0 60px;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-container {
        padding: 30px 20px;
    }
}
