/* ================= CONTACTO ================= */

/* Hero Section para Contacto */
.hero-contact {
    background: linear-gradient(135deg, rgba(240, 126, 38, 0.75), rgba(29, 27, 27, 0.7)),
        url('../images/contacto/imagen1.jpeg') no-repeat center/cover;
    height: 80vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white, #ffffff);
    margin-top: 80px;
    position: relative;
}

.hero-contact .hero-content {
    max-width: 800px;
    padding: 0 30px;
    z-index: 2;
}

.hero-contact h1 {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-contact p {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Sección de Contacto */
.contact-section {
    padding: 80px 0;
    background: var(--color-background-alt, #f8f9fa);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 2.5rem;
    color: var(--color-primary, #F07E26);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 1.2rem;
    color: var(--color-text-light, #6c757d);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Tarjetas de Información de Contacto */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: var(--color-white, #ffffff);
    border-radius: var(--border-radius, 8px);
    padding: 2rem;
    box-shadow: var(--shadow-light, 0 2px 10px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition, all 0.3s ease);
    border-left: 4px solid var(--color-primary, #F07E26);
    border-top: 2px solid rgba(240, 126, 38, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium, 0 8px 25px rgba(0, 0, 0, 0.15));
    border-left-color: var(--color-secondary, #1D1B1B);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(240, 126, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--color-primary, #F07E26);
}

.contact-details h3 {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 1.2rem;
    color: var(--color-primary, #F07E26);
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    color: var(--color-text, #333333);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* Formulario de Contacto */
.contact-form-container {
    background: var(--color-white, #ffffff);
    border-radius: var(--border-radius, 8px);
    padding: 2.5rem;
    box-shadow: var(--shadow-heavy, 0 10px 30px rgba(0, 0, 0, 0.1));
    border-top: 4px solid var(--color-primary, #F07E26);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 2rem;
    color: var(--color-primary, #F07E26);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    color: var(--color-text-light, #6c757d);
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-group label {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text, #333333);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 8px;
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 1rem;
    transition: var(--transition, all 0.3s ease);
    background-color: var(--color-white, #ffffff);
    color: var(--color-text, #333333);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary, #F07E26);
    box-shadow: 0 0 5px rgba(240, 126, 38, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Mensajes de error */
.error-mensaje {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    display: none;
}

/* Mensajes de estado */
.mensaje {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    text-align: center;
    display: none;
}

.mensaje.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensaje.cargando {
    background-color: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* Estilos para el cuadro de aceptación de tratamiento de datos */
.aceptacion-datos {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary, #F07E26);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkbox-container label {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    color: var(--color-text, #333333);
}

/* Enlace de política de privacidad - EN NARANJA */
.enlace-privacidad {
    color: var(--color-primary, #F07E26);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.enlace-privacidad:hover {
    text-decoration: underline;
    color: var(--color-secondary, #1D1B1B);
}

.texto-legal {
    font-size: 12px;
    line-height: 1.5;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
}

.texto-legal p {
    margin: 0;
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
}

/* Asegurar que el checkbox sea obligatorio */
#acepto-tratamiento:required:invalid {
    border-color: #dc3545;
}

/* Estilo para cuando el checkbox está marcado */
#acepto-tratamiento:checked {
    accent-color: var(--color-primary, #F07E26);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--color-primary, #F07E26), var(--color-secondary, #1D1B1B));
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
}

.contact-form .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-secondary, #1D1B1B), var(--color-primary, #F07E26));
    transform: translateY(-3px);
}

.contact-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Sección de Valores */
.values-section {
    padding: 80px 0;
    background-color: var(--color-white, #ffffff);
}

.values-section h2 {
    text-align: center;
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 2.5rem;
    color: var(--color-primary, #F07E26);
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius, 8px);
    transition: var(--transition, all 0.3s ease);
    background: var(--color-background-alt, #f8f9fa);
    border-left: 4px solid var(--color-primary, #F07E26);
    box-shadow: var(--shadow-light, 0 2px 10px rgba(0, 0, 0, 0.1));
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium, 0 8px 25px rgba(0, 0, 0, 0.15));
    border-left-color: var(--color-secondary, #1D1B1B);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(240, 126, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--color-primary, #F07E26);
}

.value-card h3 {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 1.2rem;
    color: var(--color-primary, #F07E26);
    margin-bottom: 1rem;
}

.value-card p {
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    color: var(--color-text-light, #6c757d);
    line-height: 1.6;
}

/* Sección de Mapa */
.map-section {
    padding: 80px 0;
    background-color: var(--color-background-alt, #f8f9fa);
}

.map-section h2 {
    text-align: center;
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 2.5rem;
    color: var(--color-primary, #F07E26);
    margin-bottom: 3rem;
}

.map-container {
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-medium, 0 8px 25px rgba(0, 0, 0, 0.15));
    border-top: 4px solid var(--color-primary, #F07E26);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    display: block;
}

/* ================= MODAL DE POLÍTICA DE PRIVACIDAD ================= */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-white, #ffffff);
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--color-primary, #F07E26);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--color-primary, #F07E26), var(--color-secondary, #1D1B1B));
    color: white;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Título del modal EN NEGRO */
.modal-header h2 {
    margin: 0;
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    font-size: 1.5rem;
    color: var(--color-secondary, #1D1B1B);
}

.close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition, all 0.3s ease);
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 70vh;
}

.modal-body h3 {
    color: var(--color-primary, #F07E26);
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
    margin: 1.5rem 0 0.5rem;
    border-left: 3px solid var(--color-primary, #F07E26);
    padding-left: 1rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--color-text, #333333);
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--color-text, #333333);
    font-family: 'Maiandra GD', 'Century Gothic', Arial, sans-serif;
}

.modal-body .contacto-info {
    background: var(--color-background-alt, #f8f9fa);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ================= RESPONSIVE CONTACTO ================= */
@media (max-width: 1024px) {
    .hero-contact {
        height: 65vh;
        min-height: 480px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 48px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 1.25rem;
    }

    .form-header h2 {
        font-size: 1.6rem;
    }

    .form-header p {
        font-size: 0.95rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 11px 14px;
    }

    .values-section {
        padding: 56px 0;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-contact {
        margin-top: 72px;
        height: 55vh;
        min-height: 360px;
    }

    .hero-contact h1 {
        font-size: 2.2rem;
    }

    .hero-contact p {
        font-size: 1rem;
    }

    .contact-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .map-section {
        padding: 48px 0;
    }

    .map-container iframe {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 40px 0;
    }

    .form-header h2 {
        font-size: 1.4rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }

    .hero-contact {
        height: 55vh;
        min-height: 320px;
    }

    .form-header p {
        font-size: 0.95rem;
    }

    .contact-form .btn-primary {
        padding: 0.9rem;
        font-size: 1rem;
    }

    .checkbox-container {
        align-items: center;
    }

    .checkbox-container label {
        font-size: 12px;
    }
}