/* ====== CONTACTO - ESTILOS COMPLETOS ====== */

/* Variables de color consistentes */
:root {
    --primary-teal: #00bec6ff;
    --primary-teal-dark: #009aa0;
    --primary-blue: #004063ff;
    --primary-blue-light: #e8f4f8;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.15);
    --border-radius: 15px;
    --border-radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== HERO SECTION ====== */
.contact-hero {
    background: linear-gradient(rgba(0, 190, 198, 0.88), rgba(0, 64, 99, 0.85)), 
                url('/static/images/contacto/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.contact-hero h1 {
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 3rem;
    animation: fadeInDown 0.8s ease;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.7;
}

/* ====== ANIMACIONES ====== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====== SECCIÓN DE CONTACTO ====== */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.contact-container:hover {
    box-shadow: var(--shadow-lg);
}

/* ====== INFO DE CONTACTO (LADO IZQUIERDO) ====== */
.contact-info {
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info h2 {
    margin-bottom: 35px;
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
}

.contact-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.contact-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 18px;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.contact-text h4 {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.9;
}

.contact-text p {
    margin-bottom: 0;
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
}

.contact-text a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.contact-text a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ====== FORMULARIO (LADO DERECHO) ====== */
.contact-form {
    color: var(--primary-blue);
    padding: 50px 45px;
    background: white;
}

.contact-form h3 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.contact-form .subtitle {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-control {
    height: 50px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--primary-blue);
}

.form-control:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(0, 190, 198, 0.15);
}

.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

textarea.form-control {
    height: auto;
    min-height: 130px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: var(--transition);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 190, 198, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ====== MAPA ====== */
.map-section {
    padding: 40px 0;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
}

.map-container {
    height: 100%;
    width: 80%;
    max-width: 1200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.map-container:hover {
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ====== HORARIOS ====== */
.hours-section {
    padding: 80px 0;
    background: white;
}

.hours-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 40px 35px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
    border-left: 4px solid var(--primary-teal);
}

.hours-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.hours-card h3 {
    color: var(--primary-teal);
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.4rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition);
}

.hours-item:hover {
    padding-left: 10px;
    background: rgba(0, 190, 198, 0.03);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 500;
    color: var(--primary-blue);
}

.hours-time {
    color: #6c757d;
    font-weight: 500;
}

.hours-card .btn {
    margin-top: 15px;
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.hours-card .btn:hover {
    background: var(--primary-teal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 190, 198, 0.3);
}

/* ====== DEPARTAMENTOS ====== */
.departments-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.departments-section h2 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.departments-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    margin: 12px auto 0;
    border-radius: 2px;
}

.department-card {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 28px 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-teal);
}

.department-card h4 {
    color: var(--primary-teal);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.department-card p {
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.department-card i {
    color: var(--primary-teal);
    width: 20px;
}

.department-card a {
    color: var(--primary-teal);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.department-card a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ====== RESPONSIVE ====== */

/* Tablets grandes */
@media (max-width: 992px) {
    .contact-hero {
        padding: 80px 0 60px;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-info {
        padding: 35px 30px;
    }
    
    .contact-form {
        padding: 35px 30px;
    }
    
    .map-container {
        width: 90%;
    }
}

/* Tablets y móviles grandes */
@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0 50px;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-container {
        border-radius: 12px;
    }
    
    .contact-info {
        padding: 30px 25px;
        border-radius: 12px 12px 0 0;
    }
    
    .contact-info h2 {
        font-size: 1.6rem;
    }
    
    .contact-item {
        padding: 8px 12px;
        margin-bottom: 20px;
        flex-direction: row;
        align-items: center;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 16px;
        margin-right: 15px;
    }
    
    .contact-form {
        padding: 30px 25px;
        border-radius: 0 0 12px 12px;
    }
    
    .contact-form h3 {
        font-size: 1.6rem;
    }
    
    .form-control {
        height: 45px;
        font-size: 0.9rem;
    }
    
    textarea.form-control {
        min-height: 110px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
    
    .map-section {
        height: 300px;
        padding: 30px 0;
    }
    
    .map-container {
        width: 95%;
        border-radius: 12px;
    }
    
    .hours-section {
        padding: 50px 0;
    }
    
    .hours-card {
        padding: 30px 25px;
        margin-bottom: 20px;
    }
    
    .hours-card h3 {
        font-size: 1.2rem;
    }
    
    .hours-item {
        padding: 10px 0;
        flex-wrap: wrap;
    }
    
    .hours-day {
        font-size: 0.95rem;
    }
    
    .hours-time {
        font-size: 0.9rem;
    }
    
    .departments-section {
        padding: 50px 0;
    }
    
    .departments-section h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .department-card {
        padding: 22px 20px;
        margin-bottom: 18px;
    }
    
    .department-card h4 {
        font-size: 1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .contact-hero {
        padding: 50px 0 40px;
    }
    
    .contact-hero h1 {
        font-size: 1.7rem;
    }
    
    .contact-hero p {
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: 25px 18px;
    }
    
    .contact-info h2 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .contact-item {
        padding: 6px 10px;
        margin-bottom: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 14px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-text h4 {
        font-size: 0.9rem;
    }
    
    .contact-text p,
    .contact-text a {
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: 25px 18px;
    }
    
    .contact-form h3 {
        font-size: 1.3rem;
    }
    
    .contact-form .subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .form-control {
        height: 42px;
        font-size: 0.85rem;
        margin-bottom: 14px;
        padding: 8px 12px;
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    .submit-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .map-section {
        height: 250px;
        padding: 20px 0;
    }
    
    .hours-card {
        padding: 25px 18px;
    }
    
    .hours-card h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .hours-item {
        padding: 8px 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3px;
    }
    
    .hours-day {
        font-size: 0.9rem;
    }
    
    .hours-time {
        font-size: 0.85rem;
    }
    
    .hours-card .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    
    .departments-section h2 {
        font-size: 1.3rem;
    }
    
    .department-card {
        padding: 18px 15px;
        margin-bottom: 15px;
    }
    
    .department-card h4 {
        font-size: 0.95rem;
    }
    
    .department-card p {
        font-size: 0.85rem;
    }
}