/* css/contactenos.css */

/* Fondo general usando variables */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.contacto-section {
    background-color: var(--bg-color); 
    padding: 150px 20px 60px 20px; 
    min-height: 80vh;
    transition: background-color 0.3s;
}

.contacto-header {
    text-align: center;
    margin-bottom: 50px;
}

.contacto-title {
    color: var(--text-color);
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contacto-subtitle {
    color: var(--accent-green-text); 
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0;
}

/* --- GRID DE TARJETAS --- */
.sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- ESTILO DE LA TARJETA --- */
.sede-card {
    background-color: #111; /* Fondo oscuro por defecto */
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* MODO CLARO PARA TARJETA */
body.light-mode .sede-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sede-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color); /* CAMBIO: Naranja Principal */
    box-shadow: 0 10px 25px rgba(233, 93, 10, 0.25); 
}

/* Cabecera de la tarjeta */
.card-header {
    background-color: #1a1a1a;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid var(--accent-color); /* CAMBIO: Naranja Principal */
    transition: background-color 0.3s;
}

/* Header de tarjeta en modo claro */
body.light-mode .card-header {
    background-color: #f8f8f8;
}

.card-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Título de tarjeta en modo claro */
body.light-mode .card-header h3 {
    color: #333;
}

/* Imagen Placeholder */
.card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, #333, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 3rem;
    border-bottom: 2px solid #333;
}

/* Placeholder en modo claro */
body.light-mode .card-img-placeholder {
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    color: #bbb;
    border-bottom: 2px solid #ddd;
}

.card-img-real {
    width: 100%;
    height: 180px; 
    object-fit: cover; 
    object-position: center;
    display: block;
    border-bottom: 2px solid var(--accent-color); /* CAMBIO: Naranja Principal */
}

/* Cuerpo de la tarjeta */
.card-body {
    padding: 25px;
    flex-grow: 1;
    color: #ccc;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 15px;
}

.info-icon {
    /* CAMBIO: Toque tecnológico usando variaciones de tu nuevo Verde */
    background-color: rgba(171, 225, 28, 0.1);
    color: var(--accent-green);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    color: #fff; /* Blanco por defecto */
    font-size: 0.95rem;
    margin-bottom: 2px;
}

/* Texto fuerte en modo claro */
body.light-mode .info-text strong {
    color: #333;
}

.info-text span {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #aaa; /* Gris en modo oscuro */
}

/* Texto normal en modo claro */
body.light-mode .info-text span {
    color: #666;
}

/* Botón y Footer de tarjeta */
.card-footer {
    padding: 20px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    transition: background-color 0.3s;
}

/* Footer tarjeta en modo claro */
body.light-mode .card-footer {
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
}

.btn-ubicacion {
    display: block;
    width: 100%;
    padding: 12px;
    /* CAMBIO (Opción 2): Degradado Cálido Naranja -> Amarillo Oscuro */
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-yellow-dark) 100%);
    color: #000000; /* Texto oscuro para asegurar la legibilidad sobre el amarillo */
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.btn-ubicacion:hover {
    /* CAMBIO (Opción 2): Degradado Hover Fresco Amarillo Claro -> Verde Nuevo */
    background: linear-gradient(135deg, var(--accent-yellow-light) 0%, var(--accent-green) 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(171, 225, 28, 0.4);
}

/* =========================================
   NUEVOS ESTILOS PARA EL FORMULARIO
   ========================================= */

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Contenedor tipo Tarjeta para el Formulario */
.form-card-container {
    background-color: #111; 
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

/* Formulario en MODO CLARO */
body.light-mode .form-card-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-green-text);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Estilos de los Inputs (Modo Oscuro por defecto) */
.custom-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.custom-input:focus {
    border-color: var(--accent-color); /* CAMBIO: Naranja Principal */
    box-shadow: 0 0 5px rgba(233, 93, 10, 0.3);
}

/* Inputs en MODO CLARO */
body.light-mode .custom-input {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    color: #333;
}
body.light-mode .custom-input:focus {
    background-color: #fff;
    border-color: var(--accent-color); /* CAMBIO: Naranja Principal */
}

/* Botón de envío */
.btn-enviar-custom {
    /* Degradado Cálido Naranja -> Amarillo Oscuro */
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-yellow-dark) 100%);
    color: #000000; /* Texto oscuro para contraste */
    padding: 14px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-enviar-custom:hover {
    /* CAMBIO (Opción 2): Degradado Hover Fresco Amarillo Claro -> Verde Nuevo */
    background: linear-gradient(135deg, var(--accent-yellow-light) 0%, var(--accent-green) 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(171, 225, 28, 0.4);
}

/* Alertas */
.alert-box {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}
.alert-box.success {
    /* CAMBIO: Sincronizado perfectamente con tus nuevas variables de Verde */
    background-color: rgba(171, 225, 28, 0.15); 
    color: var(--accent-green-dark);            
    border: 1px solid var(--accent-green);        
}
.alert-box.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

textarea.custom-input {
    resize: vertical; 
    min-height: 120px; 
    max-height: 500px; 
}

/* Responsivo */
@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    .form-card-container {
        padding: 20px;
    }
    
    .contacto-title {
        font-size: 1.8rem;      
        line-height: 1.2;      
        word-wrap: break-word;  
    }

    .contacto-subtitle {
        font-size: 1rem;       
        padding: 0 10px;       
    }
    
    .contacto-section {
        padding-top: 100px; 
    }
}

/* =========================================
   PARCHE RESPONSIVE DEFINITIVO
   ========================================= */

.form-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; 
}

.form-card-container, 
.contact-form-grid, 
.custom-input, 
textarea.custom-input {
    box-sizing: border-box !important;
    max-width: 100%;
}

@media (max-width: 480px) {
    .form-card-container {
        padding: 25px 15px !important; 
        width: 100%;
    }
    
    #recaptcha-contenedor {
        transform: scale(0.78); 
        transform-origin: center;
        margin-left: -15px; 
        margin-right: -15px;
    }
}