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

:root {
    --primary: #d4af37;
    --primary-light: #f3e5ab;
    --primary-dark: #b8860b;
    --primary-glow: rgba(212, 175, 55, 0.3);

    --accent-orange: #d4af37;
    --accent-orange-hover: #b8860b;
    --accent-cyan: #ffd700;
    --accent-green: #10b981;

    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-tech: rgba(212, 175, 55, 0.2);

    --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(212, 175, 55, 0.15);
    --shadow-orange: 0 10px 25px rgba(212, 175, 55, 0.35);

    --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(212, 175, 55, 0.06) 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(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    color: #b8860b;
    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: #0b0c10;
    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
   ============================================================ */

section[id], header[id] {
    scroll-margin-top: 85px;
}

.hero-tech-banner {
    position: relative;
    margin-top: 74px; /* Evita que el menú fijo superior tape la parte superior del video */
    min-height: calc(100vh - 74px); /* Altura de pantalla completa visible para mostrar el video completo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 0;
    background: #0b0c10;
    color: #ffffff;
    overflow: hidden;
}

.hero-tech-banner .container {
    width: 100%;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}

.hero-interactive-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.7s ease;
    pointer-events: auto;
}

/* Estado inactivo: las letras, botones y elementos desaparecen suavemente si el ratón no se mueve */
.hero-tech-banner.is-idle .hero-interactive-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 12, 16, 0.88) 0%, rgba(18, 20, 26, 0.78) 60%, rgba(30, 34, 45, 0.75) 100%);
    backdrop-filter: blur(1.5px);
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    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: #f3e5ab;
}

.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: #ffd700;
    text-shadow: 0 2px 14px rgba(255, 215, 0, 0.4);
}

.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: linear-gradient(135deg, #d4af37 0%, #c5a059 100%);
    color: #0b0c10 !important;
    font-weight: 800;
    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: linear-gradient(135deg, #e5be46 0%, #d4af37 100%);
    color: #0b0c10 !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(212, 175, 55, 0.5);
}

.btn-tech-secondary {
    background: rgba(255, 255, 255, 0.1);
    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(212, 175, 55, 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-tech-secondary:hover {
    background: #d4af37;
    color: #0b0c10 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* ============================================================
   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, #d4af37, #ffd700);
}

.tech-icon-illustration {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(18, 20, 26, 0.05) 100%);
    border-radius: var(--radius-md);
    border: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #d4af37;
}

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

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

.rule-highlight-pill {
    background: rgba(212, 175, 55, 0.06);
    border-left: 4px solid #d4af37;
    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);
    border-color: rgba(212, 175, 55, 0.4);
}

.etapa-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #12141a 0%, #0b0c10 100%);
    border: 1.5px solid #d4af37;
    color: #d4af37;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(11, 12, 16, 0.25);
}

.etapa-card.featured-etapa .etapa-num {
    background: linear-gradient(135deg, #d4af37 0%, #c5a059 100%);
    border: none;
    color: #0b0c10;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.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, #0b0c10 0%, #12141a 100%);
    color: #ffffff;
    padding: 90px 0 50px;
    position: relative;
    border-top: 4px solid #d4af37;
}

.section-footer-contact .tech-badge-pill {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.35);
    color: #f3e5ab;
}

.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(212, 175, 55, 0.2);
    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.4);
}

.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(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateX(4px);
}

.contact-glass-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(18, 20, 26, 0.5) 100%);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.contact-map-frame {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    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 AVANZADO (TABLETS & MÓVILES)
   ============================================================ */

/* Tablets en Orientación Horizontal y Laptops Pequeñas (992px a 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-tech-banner {
        padding: 145px 0 90px;
    }

    .hero-main-title {
        font-size: 2.75rem;
    }

    .hero-lead {
        font-size: 1.12rem;
        max-width: 700px;
    }

    .tech-info-card {
        padding: 32px;
        gap: 30px;
    }

    .tech-icon-illustration {
        width: 110px;
        height: 110px;
        font-size: 3.2rem;
    }

    .tech-section-title {
        font-size: 2.1rem;
    }

    .contact-glass-card {
        padding: 28px 24px;
    }
}

/* Tablets en Orientación Vertical y Pantallas Medianas (768px a 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-tech-banner {
        margin-top: 68px;
        min-height: calc(100vh - 68px);
        padding: 70px 0 50px;
    }

    .hero-main-title {
        font-size: 2.3rem;
        line-height: 1.2;
    }

    .hero-lead {
        font-size: 1.05rem;
        max-width: 650px;
        margin-bottom: 25px;
    }

    .btn-tech-primary, .btn-tech-secondary {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .section-padding {
        padding: 65px 0;
    }

    .tech-section-title {
        font-size: 1.95rem;
    }

    .tech-info-card {
        padding: 28px;
        gap: 24px;
        align-items: center;
        flex-direction: row;
        text-align: left;
    }

    .tech-icon-illustration {
        width: 95px;
        height: 95px;
        font-size: 2.8rem;
        flex-shrink: 0;
    }

    .tech-info-text {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .ruta-card-modern {
        padding: 1.25rem;
    }

    .contact-glass-card {
        padding: 28px 22px;
    }

    .contact-map-frame iframe {
        min-height: 320px !important;
    }

    .contact-bottom-bar {
        margin-top: 40px;
        justify-content: center;
        text-align: center;
    }
}

/* Teléfonos y Dispositivos Pequeños (< 768px) */
@media (max-width: 767px) {
    .hero-tech-banner {
        margin-top: 64px;
        min-height: calc(100vh - 64px);
        padding: 60px 0 45px;
    }

    .hero-badge {
        font-size: 0.76rem;
        padding: 6px 14px;
    }

    .hero-main-title {
        font-size: 1.85rem;
        line-height: 1.22;
    }

    .hero-lead {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }

    .hero-action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-tech-primary, .btn-tech-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.92rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .tech-section-title {
        font-size: 1.55rem;
        flex-direction: column;
        gap: 6px;
    }

    .tech-section-title .title-stripes {
        display: none;
    }

    .tech-section-subtitle {
        font-size: 0.92rem;
    }

    .tech-info-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
        gap: 18px;
    }

    .tech-icon-illustration {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
        margin: 0 auto;
    }

    .tech-info-text {
        font-size: 0.92rem;
    }

    .etapa-card {
        padding: 20px;
    }

    .contact-glass-card {
        padding: 22px 16px;
    }

    .contact-glass-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .contact-glass-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .contact-bottom-bar {
        margin-top: 35px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .wa-floating-container {
        bottom: 18px;
        right: 18px;
    }

    .btn-wa-floating {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    .wa-mini-modal {
        width: calc(100vw - 36px);
        right: -6px;
    }
}