/* ============================================================
   CONCURSO ESTUDIANTIL - HOJA DE ESTILOS
   ============================================================ */

:root {
    --primary: #0052cc;
    --primary-light: #2684ff;
    --primary-dark: #0747a6;
    --primary-glow: rgba(0, 82, 204, 0.25);

    --accent-orange: #ff5630;
    --accent-orange-hover: #de350b;
    --accent-cyan: #00b8d9;
    --accent-green: #36b37e;

    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-tech: rgba(0, 82, 204, 0.15);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(0, 82, 204, 0.12);
    --shadow-orange: 0 10px 25px rgba(255, 86, 48, 0.3);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.home-page {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(var(--border-tech) 1px, transparent 1px),
        radial-gradient(rgba(255, 86, 48, 0.08) 1px, transparent 1px);
    background-size: 32px 32px, 64px 64px;
    background-position: 0 0, 16px 16px;
}

/* ============================================================
   SECCIONES Y ENCABEZADOS ESTILO CONCURSO
   ============================================================ */

.section-padding {
    padding: 90px 0;
    position: relative;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.tech-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 82, 204, 0.08);
    border: 1px solid rgba(0, 82, 204, 0.2);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tech-section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: #0b2545;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.tech-section-title .title-stripes {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    width: 28px;
}

.tech-section-title .title-stripes span {
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.tech-section-title .title-stripes span:nth-child(2) {
    width: 70%;
}

.tech-section-title .title-stripes.right {
    align-items: flex-end;
}

.tech-section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================================
   HERO BANNER CON VIDEO DE FONDO
   ============================================================ */

.hero-tech-banner {
    position: relative;
    padding: 170px 0 110px;
    background: #091e42;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 30, 66, 0.88) 0%, rgba(0, 82, 204, 0.78) 60%, rgba(0, 184, 217, 0.72) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-main-title .highlight-orange {
    color: #ffab00;
    text-shadow: 0 2px 10px rgba(255, 171, 0, 0.3);
}

.hero-lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 780px;
    margin: 0 auto 35px;
    font-weight: 400;
}

.hero-action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-tech-primary {
    background: var(--accent-orange);
    color: #ffffff;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-orange);
    transition: all 0.3s ease;
    border: none;
}

.btn-tech-primary:hover {
    background: var(--accent-orange-hover);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(255, 86, 48, 0.45);
}

.btn-tech-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-tech-secondary:hover {
    background: #ffffff;
    color: #0747a6;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   SECCIÓN 1: EL CONCURSO
   ============================================================ */

.tech-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.tech-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent-cyan));
}

.tech-icon-illustration {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.08) 0%, rgba(0, 184, 217, 0.15) 100%);
    border-radius: var(--radius-md);
    border: 2px solid rgba(0, 82, 204, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.tech-info-text {
    font-size: 1.08rem;
    color: #334155;
    line-height: 1.8;
}

.tech-info-text strong {
    color: #0f172a;
}

.rule-highlight-pill {
    background: rgba(0, 82, 204, 0.05);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 15px;
}

/* ============================================================
   SECCIÓN 2: ETAPAS DE LA COMPETENCIA
   ============================================================ */

.etapa-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.etapa-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.etapa-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.etapa-card.featured-etapa .etapa-num {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #de350b 100%);
    box-shadow: 0 4px 12px rgba(255, 86, 48, 0.3);
}

.etapa-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.etapa-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* ============================================================
   SECCIÓN 3: SEDE & CONTACTO (ESTILO FOOTER-PREMIUM)
   ============================================================ */

.section-footer-contact {
    background: linear-gradient(180deg, #091e42 0%, #051430 100%);
    color: #ffffff;
    padding: 90px 0 50px;
    position: relative;
    border-top: 4px solid var(--accent-orange);
}

.section-footer-contact .tech-badge-pill {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.section-footer-contact .tech-section-title {
    color: #ffffff;
}

.section-footer-contact .tech-section-subtitle {
    color: #94a3b8;
}

.contact-glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-glass-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.contact-glass-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 184, 217, 0.4);
    transform: translateX(4px);
}

.contact-glass-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.4) 0%, rgba(0, 184, 217, 0.4) 100%);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.contact-map-frame {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    height: 100%;
}

.contact-bottom-bar {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-bottom-bar a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-bottom-bar a:hover {
    color: #ffffff;
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP & MODAL DE MENSAJE
   ============================================================ */

.wa-floating-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1060;
}

.btn-wa-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-wa-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.wa-tooltip {
    position: absolute;
    right: 70px;
    background: #091e42;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-wa-floating:hover .wa-tooltip {
    opacity: 1;
    right: 75px;
}

.wa-mini-modal {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(9, 30, 66, 0.25);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: fadeInModal 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-mini-modal.active {
    display: flex;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

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

.wa-modal-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    color: #ffffff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-avatar-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wa-status-text {
    color: #bbf7d0;
    font-size: 0.75rem;
}

.wa-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

.wa-modal-close:hover {
    opacity: 1;
}

.wa-modal-body {
    padding: 18px;
    background: #f0f2f5;
}

.wa-chat-bubble {
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 0 12px 12px 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
    color: #334155;
}

.btn-wa-send {
    background: #25d366;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-wa-send:hover {
    background: #1ebc59;
    color: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
    .hero-main-title {
        font-size: 2.4rem;
    }

    .tech-info-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-bottom-bar {
        text-align: center;
        justify-content: center;
    }
}