/* css/pages/contacto.css */
body {
    font-family: 'Roboto', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif !important;
}

/* ======= HERO CONTACTO ======= */
.hero-contacto {
    background: linear-gradient(rgba(0, 44, 91, 0.4), rgba(0, 44, 91, 0.3)), 
                url('../../images/hero-contacto-bg.jpg') center/cover no-repeat;
    min-height: 60vh;
    padding: 100px 0 80px;
    position: relative;
}

.hero-contacto .btn-hero {
    background-color: #c40000;
    border: 2px solid #c40000;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-contacto .btn-hero:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* ======= SECCIÓN INFORMACIÓN DE CONTACTO ======= */
.info-contacto-section {
    padding: 80px 0;
}

.contacto-card {
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid transparent;
}

.contacto-card:hover {
    transform: translateY(-10px);
    border-top-color: #c40000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contacto-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(#c40000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.contacto-card h3 {
    color: #002c5b;
    margin-bottom: 20px;
    font-weight: 600;
}

.contacto-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-contacto {
    background-color: #002c5b;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid #002c5b;
}

.btn-contacto:hover {
    background-color: transparent;
    color: #002c5b;
    transform: translateY(-2px);
}

/* ======= SECCIÓN FORMULARIO DE CONTACTO ======= */
.formulario-contacto-section {
    padding: 80px 0;
}

.formulario-card {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #002c5b;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #c40000;
}

.form-label {
    font-weight: 600;
    color: #002c5b;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #002c5b;
    box-shadow: 0 0 0 0.2rem rgba(0, 44, 91, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
}

/* Verificación antispam */
.spam-check-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spam-question {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #002c5b;
    min-width: 100px;
    text-align: center;
    border: 2px solid #e9ecef;
}

/* Botón de enviar */
.btn-enviar {
    background: linear-gradient(#c40000);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-enviar:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 44, 91, 0.3);
}

.btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ======= SECCIÓN MAPA ======= */
.mapa-section {
    padding: 80px 0;
}

.mapa-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.mapa-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002c5b;
}

.mapa-content {
    text-align: center;
    padding: 40px;
}

.mapa-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #c40000;
}

.mapa-content h4 {
    margin-bottom: 15px;
    font-weight: 700;
}

.mapa-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* ======= SECCIÓN PREGUNTAS FRECUENTES ======= */
.faq-contacto-section {
    padding: 80px 0;
}

.accordion-button {
    background-color: white;
    color: #002c5b;
    font-weight: 600;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.accordion-button:not(.collapsed) {
    background-color: #002c5b;
    color: white;
    border-color: #002c5b;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 44, 91, 0.25);
    border-color: #002c5b;
}

.accordion-body {
    padding: 20px;
    color: #555;
    line-height: 1.6;
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 768px) {
    .hero-contacto {
        min-height: 40vh;
        padding: 80px 0 60px;
        text-align: center;
    }
    
    .info-contacto-section,
    .formulario-contacto-section,
    .mapa-section,
    .faq-contacto-section {
        padding: 60px 0;
    }
    
    .contacto-card {
        padding: 30px 20px;
    }
    
    .formulario-card {
        padding: 30px 25px;
    }
    
    .contacto-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .spam-check-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .spam-question {
        min-width: auto;
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-contacto h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .mapa-content {
        padding: 20px;
    }
    
    .mapa-content i {
        font-size: 3rem;
    }
}

/* ======= ANIMACIONES Y ESTADOS ======= */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Estilos para mensajes de validación */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .contacto-card,
    .btn-contacto,
    .btn-enviar,
    .form-control,
    .form-select {
        transition: none;
    }
    
    .contacto-card:hover,
    .btn-contacto:hover,
    .btn-enviar:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .contacto-card,
    .formulario-card {
        border: 2px solid #002c5b;
    }
    
    .form-control,
    .form-select {
        border-width: 2px;
    }
}

/*  ESTILOS DEL FORMULARIO 2  */
.contacto-simplificado-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.formulario-simplificado-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 44, 91, 0.1);
    backdrop-filter: blur(10px);
}

.section-title-simplificado {
    color: #002c5b;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
}

.section-title-simplificado::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #c40000, #002c5b);
    border-radius: 2px;
}

.form-label-simplificado {
    font-weight: 700;
    color: #002c5b;
    margin-bottom: 0.75rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    display: block;
}

.form-control-simplificado {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    width: 100%;
    box-sizing: border-box;
}

.form-control-simplificado:focus {
    border-color: #002c5b;
    box-shadow: 0 0 0 0.3rem rgba(0, 44, 91, 0.15);
    background: white;
    transform: translateY(-2px);
}

.form-control-simplificado.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.3rem rgba(220, 53, 69, 0.15);
}

.form-control-simplificado.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.3rem rgba(25, 135, 84, 0.15);
}

/* Verificación de seguridad */
.security-verification-simplificado {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid #002c5b;
    margin-bottom: 1.5rem;
}

.security-verification-simplificado p {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 500;
}

.math-question-simplificado {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 800;
    color: #002c5b;
    min-width: 140px;
    text-align: center;
    border: 2px solid #e9ecef;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.math-answer-input {
    max-width: 140px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem;
}

/* Checkbox de privacidad */
.form-check-simplificado {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin: 2rem 0;
}

.form-check-input-simplificado {
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    float: left;
}

.form-check-input-simplificado:checked {
    background-color: #002c5b;
    border-color: #002c5b;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input-simplificado:focus {
    box-shadow: 0 0 0 0.3rem rgba(0, 44, 91, 0.25);
    border-color: #002c5b;
}

.form-check-label-simplificado {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    margin-left: 2.5rem;
}

.privacy-link {
    color: #002c5b;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.privacy-link:hover {
    color: #c40000;
    text-decoration: underline;
}

/* Botón de enviar */
.btn-enviar-simplificado {
    background: linear-gradient(135deg, #002c5b 0%, #004085 100%);
    color: white;
    padding: 1.25rem 4rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    min-width: 250px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 44, 91, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-enviar-simplificado:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 44, 91, 0.4);
    background: linear-gradient(135deg, #004085 0%, #002c5b 100%);
}

.btn-enviar-simplificado:active {
    transform: translateY(-1px);
}

.btn-enviar-simplificado:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Alertas */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1.5rem 2rem;
    border-left: 5px solid transparent;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-left-color: #dc3545;
}

.alert i {
    font-size: 1.5rem;
}

/* Animaciones */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.6s ease-in-out;
}

/* Mejoras de espaciado y alineación */
.form-group-simplificado {
    margin-bottom: 2rem;
}

.text-center .lead {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contacto-simplificado-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .formulario-simplificado-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .section-title-simplificado {
        font-size: 2rem;
    }
    
    .security-verification-simplificado {
        padding: 1.25rem;
    }
    
    .math-question-simplificado {
        min-width: 120px;
        font-size: 1.1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .math-answer-input {
        max-width: 120px;
        padding: 0.875rem;
    }
    
    .btn-enviar-simplificado {
        padding: 1.1rem 3rem;
        font-size: 1.1rem;
        min-width: 220px;
    }
    
    .form-check-simplificado {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .alert {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .formulario-simplificado-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .section-title-simplificado {
        font-size: 1.75rem;
    }
    
    .section-title-simplificado::after {
        width: 80px;
        bottom: -12px;
    }
    
    .security-verification-simplificado .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
    
    .math-answer-input {
        max-width: 100%;
        width: 100%;
    }
    
    .math-question-simplificado {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-enviar-simplificado {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        min-width: 200px;
        width: 100%;
    }
    
    .form-check-label-simplificado {
        font-size: 0.9rem;
        margin-left: 2rem;
    }
    
    .form-check-input-simplificado {
        margin-right: 0.75rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .form-control-simplificado {
        border-width: 3px;
    }
    
    .formulario-simplificado-card {
        border: 3px solid #002c5b;
    }
    
    .security-verification-simplificado {
        border-left-width: 6px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .form-control-simplificado,
    .btn-enviar-simplificado {
        transition: none;
    }
    
    .btn-enviar-simplificado:hover {
        transform: none;
    }
    
    .shake,
    .pulse {
        animation: none;
    }
}

/* Estados de carga mejorados */
.btn-loading .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
}

/* Placeholders mejorados */
.form-control-simplificado::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Focus states para accesibilidad */
.form-control-simplificado:focus-visible {
    outline: 3px solid #002c5b;
    outline-offset: 2px;
}

.btn-enviar-simplificado:focus-visible {
    outline: 3px solid #002c5b;
    outline-offset: 3px;
}