
/* Hero override for specialty pages */
.compu-hero .hero-imagen-fondo {
    background-image: url('../img/compu/fondoCompu.webp');
}

.elec-hero .hero-imagen-fondo {
    background-image: url('../img/elec/fondoElec.webp');
}

.mec-hero .hero-imagen-fondo {
    background-image: url('../img/mec/fondoMec.webp');
    transform: scaleX(-1);
}

/* Page background */
body.compu-body {
    margin: 0;
    background-color: var(--surface);
    color: var(--text-dark);
    font-family: 'Montserrat', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

body.compu-body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(ellipse at center left, rgba(0, 119, 200, 0.3) 0%, rgba(255,255,255,0) 60%),
                radial-gradient(ellipse at bottom right, rgba(0, 119, 200, 0.2) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    z-index: -2;
}

/* Info Grid */
.compu-info-grid {
    padding: 0 5%; max-width: 1200px; margin: 2rem auto 4rem; position: relative; z-index: 10;
}
.info-container {
    display: flex; flex-direction: column; gap: 1.5rem;
}
.video-box {
    border-radius: 4px; overflow: hidden; border: 4px solid var(--blue-accent);
    box-shadow: 0 15px 35px rgba(0, 59, 115, 0.25); background: #1a1a1a;
    width: 100%; height: 60vh; min-height: 350px; display: flex; align-items: center; justify-content: center;
}

.compu-badge-top { display: inline-flex; margin-bottom: 0.8rem; }
.badge {
    background: #fff; color: var(--blue-dark); font-weight: 800; border-radius: 999px;
    padding: 0.6rem 1.2rem; font-size: 0.9rem; border: none; box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    text-transform: uppercase;
}

.perfil-card {
    background: var(--blue-main); color: #fff; border-radius: 1px;
    padding: 2.5rem; box-shadow: 0 5px 15px rgba(0, 59, 115, 0.1);
}
.perfil-card p { font-size: 0.98rem; line-height: 1.6; font-weight: 500; }

.redes-badge-edge {
    background: white; 
    border-radius: 0 999px 999px 0; 
    padding: 0.8rem 2rem 0.8rem 5vw; 
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    color: var(--blue-dark);
    font-weight: 800;
    margin-left: calc(-50vw + 50%);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Plan de Estudios - Premium Styles from Ciclo Básico */
.compu-plan {
    padding: 0 5% 2.5rem; max-width: 1400px; margin: 0 auto;
}

.cb-tabs-container {
    margin-top: 4rem;
    text-align: center;
}

.cb-plan-de-box {
    background-color: transparent;
    display: inline-block;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cb-plan-de-title {
    color: var(--blue-accent);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.cb-tabs-header {
    background-color: rgba(0, 133, 200, 0.05);
    display: flex;
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 133, 200, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cb-tab-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--blue-dark);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.1rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cb-tab-btn:hover:not(.active) {
    background-color: rgba(0, 133, 200, 0.1);
    transform: translateY(-2px);
}

.cb-tab-btn.active {
    background-color: var(--blue-accent);
    color: white;
    box-shadow: 0 8px 15px rgba(0, 133, 200, 0.2);
    transform: scale(1.05);
}

.cb-curriculum-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 2rem;
    margin-top: 3rem;
    padding: 1rem;
}

.cb-card {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
    min-width: 160px;
    max-width: 220px;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1rem;
    box-shadow: none;
    cursor: default;
    position: relative;
}

@media (hover: hover) {
    .cb-card:hover {
        transform: translateY(-8px) scale(1.08);
    }
    
    .cb-card:hover .cb-card__subject-icon {
        background: linear-gradient(135deg, var(--blue-soft) 0%, #FFFFFF 100%) !important;
        box-shadow: 0 15px 30px rgba(0, 133, 200, 0.3);
        border-color: var(--blue-accent) !important;
        color: var(--blue-dark) !important;
    }
}

.cb-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.cb-card__subject-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    color: var(--blue-dark);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.8rem; 
    box-shadow: 0 10px 25px rgba(0, 78, 142, 0.15);
    border: 4px solid var(--blue-accent);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    line-height: 0 !important;
}

.cb-card__subject-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 50%;
}

.cb-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
}

.cb-card__hours {
    display: none !important;
}

/* Perfil Section */
.cb-perfil-section {
    background: var(--blue-main);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 0 5rem 0;
    position: relative;
}

.cb-perfil-container {
    max-width: 1200px;
    padding: 0 5%;
    margin: 0 auto;
}

.cb-perfil-badge-box {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    justify-content: flex-start;
    transform: translateY(-50%);
}

.cb-perfil-content {
    color: white;
    padding: 0 1rem;
    margin-top: -1rem;
}

.cb-perfil-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    max-width: 1000px;
}

.cb-perfil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-top: 3rem;
}

.cb-perfil-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cb-perfil-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cb-perfil-card i {
    color: #4fc3f7;
    font-size: 1.3rem;
    margin-top: 0.1rem;
}

.cb-perfil-card span {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Proyectos Carousel */
.compu-projects { padding: 2.5rem 5% 4rem; max-width: 1200px; margin: 0 auto; }
.project-carousel { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.project-track-wrapper { overflow: hidden; width: 100%; }
.project-track { display: flex; gap: 1rem; }
.project-card {
    min-width: 220px; flex: 1; background: var(--blue-dark); border-radius: 6px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: transform 0.3s; cursor: pointer;
}
.project-card:hover { transform: translateY(-5px); }
.p-info h4 { color: white; margin: 0; font-size: 0.95rem; text-transform: uppercase; }

/* Fotos */
.fotos-instalaciones { position: relative; width: 100%; margin-top: 2rem; height: 400px; }
.fotos-instalaciones img { width: 100%; height: 100%; object-fit: cover; }
.fotos-instalaciones-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 119, 200, 0.9) 0%, transparent 60%);
    display: flex; align-items: flex-end; justify-content: flex-end; padding: 3rem 5%;
}

/* INSTALACIONES SLIDER OPTIMIZATION */
.inst-deslizador {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: none;
    scroll-snap-stop: always;
    will-change: scroll-position;
}

.inst-deslizador::-webkit-scrollbar {
    display: none;
}

.inst-deslizador img {
    flex: 0 0 100%;
    width: 100%;
    height: 550px;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: none;
}

.img-gallery-card {
    position: relative; overflow: hidden; border-radius: 12px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); width: 280px; height: 280px; flex-shrink: 0;
}
.img-gallery-card img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.img-gallery-card:hover img {
    transform: scale(1.08);
}
.img-gallery-overlay {
    position: absolute; inset: 0; background: rgba(0, 59, 115, 0.85);
    display: flex; align-items: center; justify-content: center; opacity: 0;
    transition: opacity 0.3s ease; color: white; text-align: center; padding: 1.5rem;
}
.img-gallery-card:hover .img-gallery-overlay {
    opacity: 1;
}
.img-gallery-overlay h3 {
    margin: 0; font-size: 1.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

/* UX/UI Project Modal */
.project-modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}
.project-modal-content {
    background: white; border-radius: 15px; padding: 2.5rem 2rem; max-width: 800px; width: 90%;
    position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-height: 90vh; overflow-y: auto;
}
.close-modal {
    position: absolute; top: 1rem; right: 1.2rem; font-size: 2.5rem; cursor: pointer; color: #555;
    transition: all 0.2s ease; line-height: 1; z-index: 10001;
}
.close-modal:hover { color: var(--blue-dark); transform: scale(1.1); }
.modal-body { 
    display: flex; gap: 2rem; align-items: stretch; margin-top: 1rem;
}
.modal-body img { 
    width: 50%; max-height: 400px; border-radius: 10px; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.modal-info { 
    width: 50%; display: flex; flex-direction: column; justify-content: center; 
}
.modal-info h2 { 
    color: var(--blue-dark); margin-bottom: 1rem; font-size: 1.8rem; text-transform: uppercase;
}
.modal-info p { 
    color: #444; line-height: 1.7; font-size: 1.05rem; 
}

/* Media Queries */
@media (max-width: 1024px) {
    .cb-tabs-header { flex-wrap: wrap; }
    .cb-tab-btn { flex: 1 1 40%; margin-bottom: 0.5rem; }
    .inst-deslizador img { height: 450px; }
}

@media (max-width: 768px) {
    .cb-curriculum-grid { 
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.2rem 0.8rem;
        padding: 0 8px;
    }
    .cb-card {
        min-height: 140px;
        height: auto;
        padding: 1rem 0.6rem;
    }
    .cb-card__subject-icon {
        width: 85px;
        height: 85px;
        font-size: 2rem;
        border-width: 3px;
    }
    .cb-card__title {
        font-size: 0.85rem;
    }
    .inst-deslizador img { height: 350px; }
    .project-modal-content { padding: 3.5rem 1.5rem 2rem; }
    .modal-body { flex-direction: column; }
    .modal-body img, .modal-info { width: 100%; }
}

/* Accessibility & Sticky Navbar Fixes */
.encabezado {
    position: fixed !important;
    top: 0;
    width: 100% !important;
    left: 0;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.encabezado__logo-imagen {
    margin: 0 !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
    background-image: url('../img/logo_transparent.png') !important;
}

.encabezado__logo-contenedor {
    display: flex !important;
    align-items: center !important;
}

.boton-llamada-accion {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

:focus-visible {
    outline: 3px solid #00E5FF !important;
    outline-offset: 3px;
    border-radius: 2px;
}
