/* ==========================================================================
   CSS STYLE - contacto.css
   Estilos premium de la página de Contacto (Light Mode / Academia STEAMS)
   ========================================================================== */

/* Variables para mantener consistencia con style.css y nosotros.css */
:root {
    --contacto-primary: #2563eb;
    --contacto-primary-hover: #1e40af;
    --contacto-primary-light: rgba(37, 99, 235, 0.08);
    --contacto-accent: #3b82f6;
    --contacto-text-dark: #1e293b;
    --contacto-text-slate: #64748b;
    --contacto-bg-light: #f8fafc;
    --contacto-border: #e2e8f0;
    --contacto-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --contacto-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body.contacto-page {
    background-color: #ffffff;
    color: var(--contacto-text-dark);
}

/* ========================================
   HERO SECTION
   ======================================== */
.contacto-hero {
    height: 45vh;
    min-height: 300px;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('../img/IEEEUnivalle/IEEE1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px; /* Offset for navigation */
}

.contacto-hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.contacto-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    letter-spacing: -0.5px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contacto-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
}

.contacto-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contacto-breadcrumb a:hover {
    color: var(--contacto-accent);
}

.contacto-breadcrumb span {
    margin: 0 10px;
    opacity: 0.6;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contacto-section {
    padding: 100px 0 60px;
    background-color: #ffffff;
}

.contacto-container {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info Column */
.contacto-info {
    padding-right: 20px;
}

.contacto-info h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--contacto-text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contacto-info-intro {
    font-size: 16px;
    color: var(--contacto-text-slate);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contacto-details {
    margin-bottom: 40px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contacto-item-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: var(--contacto-primary-light);
    color: var(--contacto-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.contacto-item:hover .contacto-item-icon {
    background: var(--contacto-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.contacto-item-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--contacto-text-dark);
    margin-bottom: 6px;
}

.contacto-item-text p, 
.contacto-item-text a {
    font-size: 15px;
    color: var(--contacto-text-slate);
    text-decoration: none;
    line-height: 1.6;
    display: block;
    transition: color 0.3s ease;
}

.contacto-item-text a:hover {
    color: var(--contacto-primary);
}

/* Social Links */
.contacto-social-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--contacto-text-dark);
    margin-bottom: 15px;
}

.contacto-social-links {
    display: flex;
    gap: 15px;
}

.contacto-social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--contacto-primary-light);
    color: var(--contacto-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    text-decoration: none;
}

.contacto-social-links a:hover {
    background: var(--contacto-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Contact Form Column */
.contacto-form-card {
    background: #ffffff;
    border: 1px solid var(--contacto-border);
    border-radius: 16px;
    padding: 45px;
    box-shadow: var(--contacto-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contacto-form-card:hover {
    box-shadow: var(--contacto-shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--contacto-text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--contacto-border);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--contacto-text-dark);
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--contacto-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.contacto-submit-btn {
    width: 100%;
    padding: 14px 28px;
    background: var(--contacto-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.contacto-submit-btn:hover {
    background: var(--contacto-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.contacto-submit-btn:active {
    transform: translateY(0);
}

.form-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.form-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    padding: 40px 0 100px;
    background-color: #ffffff;
}

.map-container {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--contacto-shadow);
    border: 1px solid var(--contacto-border);
    position: relative;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: var(--contacto-shadow-hover);
}

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

/* ========================================
   CTA SECTION
   ======================================== */
.contacto-cta {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.04) 0%, #ffffff 80%);
    border-top: 1px solid var(--contacto-border);
}

.contacto-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.contacto-cta h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--contacto-text-dark);
}

.contacto-cta h2 span {
    color: var(--contacto-primary);
}

.contacto-cta p {
    font-size: 18px;
    color: var(--contacto-text-slate);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contacto-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .contacto-hero h1 {
        font-size: 40px;
    }
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contacto-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .contacto-hero {
        height: 35vh;
        min-height: 250px;
    }
    .contacto-hero h1 {
        font-size: 32px;
    }
    .contacto-section {
        padding: 60px 0;
    }
    .contacto-form-card {
        padding: 30px 20px;
    }
    .map-container {
        height: 350px;
    }
    .contacto-cta {
        padding: 80px 0;
    }
    .contacto-cta h2 {
        font-size: 30px;
    }
    .contacto-cta p {
        font-size: 16px;
    }
}
