
:root {
    --blue-main: #0077c8;
    --blue-dark: #003D73;
    --blue-accent: #0085C8;
    --blue-soft: #E3F2FD;
    --white: #ffffff;
    --text-dark: #0c1d3c;
    --surface: #e6f3fa;
}

/* Hero override for this page */
.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 Area Reutilizado */
.compu-plan {
    padding: 0 5% 2.5rem; max-width: 1400px; margin: 0 auto;
}

.cb-tabs-container { text-align: center; margin-bottom: 0.5rem; }
.cb-plan-de-box {
    background-color: var(--blue-accent); display: inline-block; padding: 0.8rem 1.5rem 1.2rem;
    border-radius: 15px; box-shadow: 0 8px 15px rgba(0,0,0,0.2); width: 100%; max-width: 1000px;
}
.cb-plan-de-title {
    color: white; font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase;
}
.cb-tabs-header {
    background-color: rgba(0, 163, 255, 0.4); display: flex; padding: 6px; border-radius: 12px;
    backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.cb-tab-btn {
    flex: 1; padding: 0.8rem 1rem; border: none; background: transparent; color: white;
    font-weight: 700; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem; border-radius: 8px; text-transform: uppercase; letter-spacing: 1px;
}
.cb-tab-btn:hover:not(.active) { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.cb-tab-btn.active {
    background-color: white; color: var(--blue-dark); box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: scale(1.02);
}

.plan-grid {
    display: block; /* No more side panel, use full width */
}


.cb-card__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.cb-card__subject-icon {
    font-size: 1.8rem;
    color: var(--blue-main);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.cb-card__title {
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-dark);
}

.cb-card__hours {
    display: inline-block;
    align-self: flex-start;
    background: var(--blue-dark);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 61, 115, 0.2);
}

/* Perfil Lista Competencias */
/* Perfil del Técnico 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%;
}



/* UX/UI Project Modal */

.cb-card:hover::before {
    width: 8px;
    opacity: 1;
}

.cb-card__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.cb-card__subject-icon {
    font-size: 1.8rem;
    color: var(--blue-main);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.cb-card__title {
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-dark);
}

.cb-card__hours {
    display: inline-block;
    align-self: flex-start;
    background: var(--blue-dark);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 61, 115, 0.2);
}

/* Perfil Lista Competencias */
/* Perfil del Técnico Section */
.cb-perfil-section {
    background: var(--blue-main);
    width: 100%;
    margin: 0;
    padding: 0 0 5rem 0;
    position: relative;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .cb-perfil-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
}
@media (max-width: 480px) {
    .cb-perfil-section {
        width: auto;
        margin-left: -5%;
        margin-right: -5%;
    }
}

.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(240px, 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%;
}



@media (max-width: 1024px) {
    .plan-grid { grid-template-columns: 1fr; }
    .slider-box { grid-template-columns: 1fr; text-align: center; }
    .slider-nav { display: none; }
    .cb-tabs-header { flex-wrap: wrap; }
    .cb-tab-btn { flex: 1 1 40%; margin-bottom: 0.5rem; }
}

@media (max-width: 768px) {
    .hero-contenido h1 { 
        font-size: clamp(1.2rem, 8vw, 3.5rem); 
        letter-spacing: -0.5px;
    }
    .cb-curriculum-grid { 
        grid-template-columns: 1fr !important; /* Stacked on small mobile for reliability */
        gap: 0.8rem; 
    }
    .cb-card {
        min-height: 60px;
        height: auto;
        padding: 0.8rem;
        font-size: 0.95rem;
        word-break: break-word;
    }
    .project-track { gap: 0.5rem; }
    .project-card { min-width: 130px; }

    .section-label-mockup { font-size: 0.8rem; padding: 0.8rem 2rem; }
}

/* Projects Image Gallery UX/UI */
/* INSTALACIONES SLIDER OPTIMIZATION */
.inst-deslizador {
    display: flex;
    overflow-x: auto; /* Permite scroll nativo */
    scroll-snap-type: x mandatory; /* Fuerza el snap */
    scroll-behavior: smooth; /* Movimiento suave nativo */
    scrollbar-width: none; /* Oculta scrollbar en Firefox */
    -ms-overflow-style: none; /* Oculta scrollbar en Edge/IE */
    transition: none; /* Quitamos transform anterior */
}

.inst-deslizador::-webkit-scrollbar {
    display: none; /* Oculta scrollbar en Chrome/Safari */
}

.inst-deslizador img {
    flex: 0 0 100%; /* Ocupa exactamente 1/1 del contenedor */
    width: 100%;
    height: 550px;
    object-fit: cover;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: none;
}

@media (max-width: 1024px) {
    .inst-deslizador img {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .inst-deslizador img {
        flex: 0 0 100%;
        width: 100%;
        height: 350px;
    }
}
.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); /* Zoom effect on hover */
}
.img-gallery-overlay {
    position: absolute; inset: 0; background: rgba(0, 59, 115, 0.85); /* Dark blue overlay */
    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; /* Fade in name */
}
.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 (max-width: 768px) {
    .project-modal-content {
        padding: 3.5rem 1.5rem 2rem; /* More top padding for close button */
        width: 95%;
    }
    .close-modal {
        top: 0.8rem;
        right: 1rem;
        font-size: 2.8rem; /* Even larger on mobile */
        background: rgba(255, 255, 255, 0.9);
        width: 45px; height: 45px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .modal-body { flex-direction: column; }
    .modal-body img, .modal-info { width: 100%; }
    .modal-body img { max-height: 250px; margin-bottom: 1.5rem; }
}
/* FAB Redes Social */
@keyframes cb-fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 119, 200, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 119, 200, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 119, 200, 0); }
}

.cb-fab-social {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 59, 115, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    animation: cb-fab-pulse 2.5s infinite;
}

.cb-fab-social i {
    font-size: 1.8rem;
    min-width: 60px;
    text-align: center;
}

.cb-fab-text {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    transition: all 0.3s ease;
}

.cb-fab-social:hover {
    width: 170px;
    background: var(--blue-main);
    animation: none;
}

.cb-fab-social:hover .cb-fab-text {
    opacity: 1;
    max-width: 100px;
    margin-right: 15px;
}

@media (max-width: 768px) {
    .cb-fab-social { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .cb-fab-social i { font-size: 1.5rem; min-width: 50px; }
    .cb-fab-social:hover { width: 50px; }
    .cb-fab-text { display: none; }
}

/* 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;
}


/* Centrar texto en los botones de llamada a la acción (Contactar) */
.boton-llamada-accion {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Visibilidad de foco y accesibilidad */
:focus-visible {
    outline: 3px solid #00E5FF !important;
    outline-offset: 3px;
    border-radius: 2px;
}
