/**
 * contacto.css - Estilos específicos para la página Contacto
 * Basado en 3.2-tabla-componentes-y-efectos-contacto.md
 */

/* ==========================================================================
   Hero Contacto
   ========================================================================== */
.hero-contacto {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    background: #1a1a1a;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-bg) center center/cover no-repeat;
    opacity: 0.5;
    z-index: 0;
    transition: all 0.5s ease;
}

.hero-contacto:hover::before {
    transform: scale(1.05);
}

.hero-contacto h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-contacto p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-contacto .btn-light {
    padding: 0.875rem 2rem;
    font-weight: 600;
}

/* ==========================================================================
   Formulario de Contacto
   ========================================================================== */
.formulario-contacto {
    padding: 5rem 0;
}

.form-contacto {
    background: white;
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-contacto .form-label {
    font-weight: 600;
    color: var(--donosti-dark);
    margin-bottom: 0.5rem;
}

.form-contacto .form-control,
.form-contacto .form-select {
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-contacto .form-control:focus,
.form-contacto .form-select:focus {
    border-color: var(--donosti-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-contacto .invalid-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--donosti-red);
}

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

.form-contacto .btn-danger {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Success/Error Messages */
.alert-contacto {
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: none;
    display: none;
}

.alert-contacto.show {
    display: block;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Datos de Contacto
   ========================================================================== */
.datos-contacto {
    background: var(--donosti-light-gray);
    padding: 3rem;
    border-radius: 0.75rem;
    height: 100%;
}

.datos-contacto h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--donosti-red);
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-info-item .info-content h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--donosti-gray);
}

.contact-info-item .info-content p {
    margin-bottom: 0;
    color: var(--donosti-dark);
}

.contact-info-item .info-content a {
    color: var(--donosti-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-item .info-content a:hover {
    color: var(--donosti-red);
    text-decoration: underline;
}

/* ==========================================================================
   Mapa
   ========================================================================== */
.mapa-section {
    padding: 5rem 0;
}

.mapa-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 450px;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Canales de Atención
   ========================================================================== */
.canales-atencion {
    background: var(--donosti-red);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.canales-atencion .section-title {
    color: white;
}

.canales-atencion .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.canales-atencion .section-title::after {
    background: white;
}

.canal-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.canal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.canal-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.canal-card.whatsapp i {
    color: #25D366;
}

.canal-card.phone i {
    color: #007bff;
}

.canal-card.email i {
    color: var(--donosti-red);
}

.canal-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.canal-card p {
    color: var(--donosti-gray);
    margin-bottom: 1rem;
}

.canal-card .btn {
    width: 100%;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .hero-contacto {
        padding: 3rem 0;
    }

    .hero-contacto h1 {
        font-size: 2rem;
    }

    .formulario-contacto {
        padding: 3rem 0;
    }

    .form-contacto {
        padding: 2rem 1.5rem;
    }

    .datos-contacto {
        margin-top: 2rem;
        padding: 2rem;
    }

    .mapa-container {
        height: 350px;
    }
}