/* Estilos específicos para contacto.html */
.contacto-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('../img/fondo6.jpg') center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.contacto-section {
    padding: 60px 0;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contacto-info h2,
.contacto-form h2 {
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.contacto-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.contacto-item:last-child {
    border-bottom: none;
}

/* Estilos adicionales para múltiples sedes */

/* Sede principal con destacado */
.sede-principal {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.05), rgba(255, 255, 255, 0.8));
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid var(--primary-red);
}

.sede-principal .contacto-icon {
    background: var(--primary-red);
    transform: scale(1.1);
}

/* Navegación de mapas */
.mapa-navegacion {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-mapa {
    background: var(--medium-gray);
    color: var(--dark-gray);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-mapa:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.btn-mapa.active {
    background: var(--primary-red);
    color: black;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

/* Contenedor de múltiples mapas */
.mapa-wrapper {
    position: relative;
    min-height: 450px;
}

.mapa-wrapper .mapa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.mapa-wrapper .mapa.active {
    opacity: 1;
    visibility: visible;
}

/* Indicador de sede en formulario */
.form-sede-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    background: #f8f9fa;
    margin-left: 10px;
}

.form-sede-indicator.medellin {
    background: #d4edda;
    color: #155724;
}

.form-sede-indicator.bogota {
    background: #cce5ff;
    color: #004085;
}

.form-sede-indicator.buenaventura {
    background: #fff3cd;
    color: #856404;
}

.form-sede-indicator.cartagena {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive para múltiples sedes */
@media (max-width: 768px) {
    .contacto-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .mapa-navegacion {
        gap: 10px;
    }
    
    .btn-mapa {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .sede-principal {
        padding: 15px;
    }
}

/* Estilos para selector de sede en formulario */
.form-group select option[value="medellin"] {
    font-weight: 600;
    color: var(--primary-red);
}

/* Animación para cambio de mapa */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mapa-wrapper .mapa.active {
    animation: fadeIn 0.5s ease forwards;
}

.contacto-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contacto-content h3 {
    color: var(--primary-red);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contacto-content p {
    color: var(--dark-gray);
    margin-bottom: 3px;
}

.contacto-form .form-group {
    margin-bottom: 20px;
}

.contacto-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-dark);
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-secondary);
    transition: var(--transition-normal);
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.btn-primary {
    background: var(--primary-red);
    color: rgb(21, 19, 19);
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mapa-container {
    margin-top: 60px;
}

.mapa-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.mapa {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mapa iframe {
    width: 100%;
    height: 450px;
    border: none;
}

@media (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mapa iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .contacto-hero {
        height: 300px;
    }
    
    .contacto-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contacto-icon {
        margin: 0 auto;
    }
}

/* =============================================
   ESTILOS ESPECÍFICOS PARA CONTACTO.JS
============================================= */

/* Mensaje de éxito */
.mensaje-exito {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mensaje-exito.mostrar {
    opacity: 1;
    visibility: visible;
}

.mensaje-contenido {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.mensaje-exito.mostrar .mensaje-contenido {
    transform: translateY(0);
}

.mensaje-contenido i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.mensaje-contenido h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.mensaje-datos {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.mensaje-datos p {
    margin: 10px 0;
    color: #5d6d7e;
}

.numero-seguimiento {
    background: #e8f5e9;
    padding: 10px;
    border-radius: 8px;
    color: #2c3e50;
    margin: 20px 0;
}

.btn-cerrar-mensaje {
    background: #E30613;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-cerrar-mensaje:hover {
    background: #c1050f;
    transform: translateY(-2px);
}

/* Loader */
.loader-contacto {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loader-contacto.mostrar {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #E30613;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mapa overlay */
.mapa {
    position: relative;
}

.mapa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mapa:hover .mapa-overlay {
    opacity: 1;
}

.btn-abrir-maps {
    background: white;
    color: #E30613;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-abrir-maps:hover {
    background: #E30613;
    color: white;
    transform: translateY(-2px);
}

/* Contador de caracteres */
.contador-caracteres {
    text-align: right;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.contador {
    font-weight: 600;
    color: #28a745;
}

/* Alertas */
.alerta-horario {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicador-horario {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.indicador-horario.online {
    background: #d4edda;
    color: #155724;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.online {
    background: #28a745;
}

.dot.offline {
    background: #dc3545;
}

/* Errores de validación */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Efectos hover para elementos clickables */
.telefono-clickable,
.email-clickable {
    cursor: pointer;
    transition: color 0.3s ease;
}

.telefono-clickable:hover,
.email-clickable:hover {
    color: #E30613;
    text-decoration: underline;
}

/* =============================================
   ESTILOS PARA CERTIFICACIONES EN FOOTER
============================================= */

.footer-certificaciones {
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-certificaciones .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-certificaciones h4 {
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.certificaciones-logos {
    max-width: 800px;
    margin: 0 auto;
}

.certificaciones-logos img {
    max-width: 50%;
    height: auto;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.certificaciones-logos img:hover {
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-certificaciones {
        padding: 30px 0;
    }
    
    .footer-certificaciones h4 {
        font-size: 1.1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mensaje-contenido {
        padding: 25px;
    }
    
    .mensaje-contenido i {
        font-size: 3rem;
    }
    
    .btn-abrir-maps {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}