/* ============================================================
   CONFIGURACIÓN GENERAL
============================================================ */
body {
    margin: 0;
    padding: 0;
    background: #0d0d0d;
    font-family: Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* ============================================================
   IMAGEN FIJA DE FONDO
============================================================ */
.intro-image {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 1.5s ease, opacity 1.5s ease;
}

.intro-image.blur img { filter: blur(8px); }
.intro-image.dark img { opacity: 0.25; }

/* ============================================================
   BARRA SUPERIOR
============================================================ */
.top-bar {
    position: fixed;
    top: -120px;
    left: 0;
    width: 100%;
    height: 85px;
    padding: 0 35px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: top 0.9s ease;
    z-index: 100;
    box-sizing: border-box;
}

.top-bar.show { top: 0; }

/* Logo + Títulos */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 55px;
    object-fit: contain;
}

.brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.main-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.sub-title {
    margin: 0;
    font-size: 13px;
    opacity: 0.75;
}

/* Enlaces */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 750px) {
    .top-bar {
        height: auto;
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .logo { width: 45px; }
    .main-title { font-size: 18px; }
}

/* ============================================================
   CERTIFICACIONES CISCO
============================================================ */
.certificaciones h2,
.cert-item h3 {
    text-align: center;
    color: #ffcc66;
}

.certificaciones h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.cert-item h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.certificaciones p {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Contenedor general */
.cert-item {
    background: rgba(0,0,0,0.65);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    backdrop-filter: blur(4px);
    display: flex;
    gap: 20px;
    transition: all 0.4s ease;
}

/* Columna izquierda */
.cert-left {
    width: 100%;
    transition: all 0.4s ease;
}

.cert-item.expanded .cert-left {
    width: 33%;
    transform: translateX(-10px);
}

/* Columna derecha */
.cert-right {
    width: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.cert-item.expanded .cert-right {
    width: 67%;
    opacity: 1;
}

/* Imagen del certificado */
.cert-pdf-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Badge */
.cert-badge {
    display: block;
    width: 150px;
    margin: 0 auto 20px;
}

/* Botón */
.toggle-cert {
    display: block;
    margin: 0 auto 15px;
    padding: 10px 20px;
    background: #ffcc66;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-cert:hover { background: #e6b85c; }

/* Enlace Credly */
.cert-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #ffcc66;
    font-weight: bold;
    text-decoration: none;
}

.cert-link:hover { text-decoration: underline; }

/* ============================================================
   TEXTO EXPLICATIVO
============================================================ */
.intro-text {
    position: fixed;
    top: 45%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 90;
    font-size: 32px;
    width: 40%;
    transition: opacity 0.25s ease-out;
}

.intro-text.hidden { opacity: 0; }

.text {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.text.active { opacity: 1; }

/* ============================================================
   CONTENIDO PRINCIPAL
============================================================ */
.contenido {
    position: relative;
    z-index: 10;
    margin-top: 100vh;
    padding: 80px 0;
}

.contenedor-centro {
    width: 55%;
    margin: auto;
    padding: 25px;
    background: rgba(0,0,0,0.65);
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    background: #0b0b0b;
    padding: 60px 0;
    border-top: 1px solid #222;
    position: relative;
    z-index: 20;
}

.footer-content {
    width: 60%;
    margin: auto;
    text-align: center;
    color: #ccc;
}

.footer-small {
    margin-top: 25px;
    font-size: 13px;
    opacity: 0.6;
}
