html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
/* OJO: overflow-x:hidden va SOLO en html, no aqui en body. Si body tambien
   lo tiene, su overflow-y computado pasa a "auto" (regla de CSS: no puede
   quedar un eje visible y el otro no), y eso convierte a body en su propio
   contenedor de scroll -- rompe el position:sticky del pc-showcase en
   index.html (el "sticky" empieza a buscar su ancestro con scroll en body
   en vez del viewport real). html ya cubre la horizontal por si solo. */
body {
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Aviso temporal de bloqueador de anuncios (ver main.js para la detección) --- */
.adblock-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2500;
    background: #ffa100;
    color: #1a1300;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px 44px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.adblock-banner.show {
    display: flex;
}
.adblock-banner-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: #1a1300;
}
/* Cuando el aviso está visible, empujamos el navbar fijo hacia abajo para que no se encimen */
body.has-adblock-banner .navbar-glass {
    top: 64px;
}
body.has-adblock-banner .mobile-nav-glass {
    top: 59px;
}

/* Modal bloqueante: cubre toda la pantalla, sin botón de cerrar. Solo se oculta
   si el usuario desactiva su bloqueador de anuncios y refresca la página. */
.adblock-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.adblock-modal.show {
    display: flex;
}
.adblock-modal-content {
    background: #14181f;
    color: #fff;
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.adblock-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.adblock-modal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.adblock-modal-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}
/* Bloquea el scroll de fondo mientras el modal está abierto */
body.adblock-modal-open {
    overflow: hidden;
}

/* --- Menu Desktop (Liquid Glass) --- */
.navbar-glass {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    padding: 5px;
    z-index: 1000;
    isolation: isolate;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 1px 2px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.65),
        inset 0 -1px 2px rgba(255, 255, 255, 0.12),
        inset 1px 0 1px rgba(255, 255, 255, 0.25),
        inset -1px 0 1px rgba(255, 255, 255, 0.15);
    transition: box-shadow 0.4s ease;
}
.navbar-glass { display: flex; position: fixed; }

/* Brillo especular que sigue al cursor (el "liquid" del Liquid Glass) */
.navbar-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        160px circle at var(--mx, 50%) var(--my, -20%),
        rgba(255, 255, 255, 0.55),
        transparent 65%
    );
    mix-blend-mode: overlay;
    opacity: var(--glow-opacity, 0);
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.nav-item {
    position: relative;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); /* Asegura visibilidad en cualquier fondo */
    text-decoration: none;
    font-weight: 600;
    z-index: 2;
    transition: all 0.3s;
}
/* El logo (ícono) es más angosto que los tabs de texto; le damos un
   ancho mínimo parecido para que la burbuja no cambie drásticamente
   de tamaño al pasar de Index.html a las demás páginas */
.nav-item.d-flex {
    min-width: 90px;
    justify-content: center;
}
.nav-item:hover, .nav-item.active {
    color: #000 !important; /* Fuerza el color negro sobre la pastilla blanca */
    text-shadow: none !important; /* Retira la sombra para un diseño limpio */
}
.nav-glass-bg {
    position: absolute;
    top: 5px; left: 5px;
    height: calc(100% - 10px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 55%, rgba(255, 255, 255, 0.35) 100%),
        rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px) saturate(220%) brightness(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(220%) brightness(1.15);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 40px;
    transition: all 0.5s cubic-bezier(0.68, -0.2, 0.265, 1.3);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -2px 3px rgba(0, 0, 0, 0.08),
        inset 1px 0 1px rgba(255, 255, 255, 0.4),
        inset -1px 0 1px rgba(255, 255, 255, 0.25);
    z-index: 0;
}

/* Anillo de contorno tipo "lupa": leve aberración cromática fija,
   como el borde de un lente de vidrio que dobla la luz */
.nav-glass-bg::after {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from 135deg,
        rgba(255, 255, 255, 0.95),
        rgba(140, 210, 255, 0.5) 25%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 190, 225, 0.5) 75%,
        rgba(255, 255, 255, 0.95)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* --- Menu Mobile (Liquid Glass) --- */
.mobile-nav-glass {
    position: fixed;
    top: 15px; left: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    padding: 10px 20px;
    z-index: 1000;
    isolation: isolate;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px rgba(255, 255, 255, 0.1);
}
.mobile-logo-glass {
    font-weight: 800;
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
}
.hamburger-btn {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.3s, transform 0.2s;
}
.hamburger-btn:hover { background: rgba(0, 0, 0, 0.55); }
.hamburger-btn:active { transform: scale(0.92); }

/* --- Mobile Overlay (Pantalla Negra) --- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: #000000;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        visibility 0s linear 0.45s;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition:
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
}
.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    flex-shrink: 0;
}
/* En pantallas bajas (móviles chicos, o con teclado/barra del navegador
   ocupando espacio) reducimos espacios para que el selector de idioma
   no quede empujado fuera de la vista */
@media (max-height: 700px) {
    .overlay-header { margin-bottom: 30px; }
    .overlay-links { gap: 18px; }
    .overlay-socials { padding-bottom: 10px; }
    .overlay-lang-switch { padding-top: 14px; margin-top: 0; }
}
.overlay-logo {
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}
.close-btn {
    background: none; border: none; color: white; font-size: 2rem;
    transition: transform 0.2s;
}
.close-btn:active { transform: scale(0.9); }
.overlay-links {
    display: flex; flex-direction: column; align-items: center; gap: 30px; flex-grow: 1;
    min-height: 0;
}
.overlay-link {
    color: white; text-decoration: none; font-size: 1.5rem; letter-spacing: 2px; transition: color 0.3s;
}
.overlay-link:hover { color: #04B1EE; }
.overlay-socials {
    display: flex; justify-content: center; gap: 40px; padding-bottom: 20px;
    flex-shrink: 0;
}
.overlay-socials a {
    color: white; font-size: 1.6rem; text-decoration: none;
    display: inline-flex; transition: color 0.3s, transform 0.3s;
}
.overlay-socials a:hover { color: #04B1EE; transform: translateY(-3px); }

/* --- Selector de idioma: banderas en el menú mobile --- */
.overlay-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 22px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}
.overlay-lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1px;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, transform 0.15s ease;
}
.overlay-lang-btn:active { transform: scale(0.92); }
.overlay-lang-btn.is-active {
    color: #04B1EE;
    background: rgba(4, 177, 238, 0.12);
}
.overlay-lang-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.1rem;
}

/* Hero original styles */
.hero-section { background: linear-gradient(135deg, #001736 0%, #000000 100%); 
    color: white; 
    padding: 100px 0 60px 0; 
    margin-bottom: 40px;
}
/* Variante usada en perfil.html: el hero ocupa toda la pantalla,
   en móvil y en escritorio (100dvh evita el salto por la barra
   de direcciones del navegador en móvil, con 100vh como respaldo) */
.hero-fullscreen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}
.hero-fullscreen > .container {
    width: 100%;
}
.marquee-wrapper { 
    overflow: hidden; 
    white-space: nowrap; 
    background-color: #ffffff; 
    padding: 15px 0; 
    border-radius: 0; 
    width: 100vw; 
    position: relative; 
    left: 50%; 
    right: 50%; 
    margin-left: -50vw; 
    margin-right: -50vw; 
}
.marquee-content span { 
    display: inline-flex; 
    width: max-content;
    padding: 5px 20px; 
    margin: 0 10px; 
    background: #fff; 
    border-radius: 20px; 
    font-weight: 600; 
}

/* --- Estilos para la Foto Ovalada de Perfil --- */
.profile-img-wrapper {
    display: flex;
    justify-content: center;
}

.profile-img-oval {
    width: 180px;
    height: 230px;
    object-fit: cover;
    border-radius: 50% / 40%; /* Crea el corte ovalado vertical */
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.profile-img-oval:hover {
    transform: scale(1.03);
}

/* --- Animaciones L-R y R-L (Agregar al final del CSS) --- */
.scroll-left-right { animation: scrollLR 26s linear infinite; }
.scroll-right-left { animation: scrollRL 26s linear infinite; }

/* Más rápido en móvil: se ve más lento porque entran menos píldoras
   por pantalla a la vez, así que compensamos con más velocidad */
@media (max-width: 991.98px) {
    .scroll-left-right, .scroll-right-left {
        animation-duration: 13s;
    }
}



@keyframes scrollLR {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRL {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Píldoras del Stack Tecnológico (Estilo de la imagen) */
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: transparent; 
    color: #000000;
    padding: 10px; 
    font-weight: 700; 
    font-size: 2rem; 
    white-space: nowrap;
    margin: 0 35px; 
}

.tech-pill i {
    font-size: 3.5rem; 
}

/* --- Iconos sociales del footer --- */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    margin-bottom: 12px;
}
.footer-socials a {
    color: #888;
    font-size: 1.3rem;
    display: inline-flex;
    transition: color 0.3s, transform 0.3s;
}
.footer-socials a:hover {
    color: #04B1EE;
    transform: translateY(-3px);
}

/* --- Nombre del autor en el footer: unica entrada visible a perfil.html --- */
.footer-name-link {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-name-link:hover,
.footer-name-link:focus {
    color: #04B1EE;
    text-decoration: underline;
}

/* --- Selector de idioma discreto en el footer (escritorio) --- */
.footer-lang-switch {
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 0.72rem;
}
.lang-switch-btn {
    background: none;
    border: none;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 3px;
    cursor: pointer;
    transition: color 0.25s ease;
}
.lang-switch-btn:hover { color: #aaa; }
.lang-switch-btn.is-active { color: #04B1EE; }
.lang-switch-sep { color: #444; font-size: 0.68rem; }

/* --- Tarjetas de Licencias y Certificaciones: más modernas y con vida --- */
#certificaciones-container .card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
#certificaciones-container .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(4, 177, 238, 0.28), 0 8px 16px rgba(0, 0, 0, 0.08);
}
#certificaciones-container .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}
#certificaciones-container .card:hover .card-img-top {
    transform: scale(1.06);
}
#certificaciones-container .card-body {
    padding: 1rem 1.1rem 1.2rem;
}
#certificaciones-container .card-title {
    font-size: 0.95rem;
    font-weight: 700;
}
#certificaciones-container .card-text {
    font-size: 0.83rem;
    color: #5a6472;
    min-height: 2.6em;
}
#certificaciones-container .btn-primary {
    background-color: #04B1EE;
    border-color: #04B1EE;
    font-size: 0.8rem;
    font-weight: 600;
}
#certificaciones-container .card {
    cursor: pointer;
    position: relative;
}
#certificaciones-container .btn-primary:hover {
    background-color: #038cbf;
    border-color: #038cbf;
}

/* Modal de credencial ampliada */
.cert-modal-content {
    border-radius: 20px;
    border: none;
}
.cert-modal-content .modal-title {
    font-weight: 700;
    font-size: 1rem;
}
.cert-modal-content img {
    max-height: 75vh;
}

/* Aparición con fade + slide-up al hacer scroll (usado por certificaciones vía main.js) */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
/* Contiene dos cosas dentro del ancho real del viewport:
   1) el .row.g-5 de adentro, que se sale 12px de cada lado de su .container
      porque .g-5 usa un gutter de 3rem pero el padding del .container esta
      calculado con el gutter default de 1.5rem (mismatch de 12px x lado).
   2) el translateX(±70px) de [data-animate] MIENTRAS el elemento sigue en su
      estado "antes de scroll" (antes de que el IntersectionObserver le agregue
      is-visible en main.js) -- ese translateX cuenta como overflow real del
      documento, no solo visual, y en movil se puede arrastrar con el dedo
      aunque html tenga overflow-x:hidden. Iba a envolver el <section> completo. */
.showcase-clip {
    overflow-x: hidden;
}
.proyecto-showcase {
    padding: 70px 0;
}
.proyecto-showcase-purple {
    background-color: #591989;
    color: #fff;
}
.proyecto-showcase-purple p { color: rgba(255, 255, 255, 0.85); }
.proyecto-showcase-white {
    background-color: #ffffff;
    color: #14181f;
}
.proyecto-showcase-white p { color: #444; }
.proyecto-showcase .carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}
.proyecto-showcase .carousel-item img {
    width: 100%;
    aspect-ratio: 7 / 4;
    object-fit: cover;
}
.proyecto-btn-probar {
    background: #fff;
    color: #591989;
    font-weight: 700;
    border: none;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.proyecto-btn-probar:hover {
    background: #f1e8fb;
    color: #43106b;
    transform: translateY(-2px);
}

/* Aparición con fade + slide al entrar en pantalla (ver IntersectionObserver en main.js) */
[data-animate] {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}
[data-animate="left"] { transform: translateX(-70px); }
[data-animate="right"] { transform: translateX(70px); }
[data-animate].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Página de Contacto --- */
/* El degradado oscuro cubre toda la página (menos el footer), continuando
   el mismo fondo del header en vez de cortar a blanco */
.contact-page-bg {
    background: linear-gradient(160deg, #001736 0%, #000000 65%);
    color: #fff;
    padding-bottom: 40px;
}
.contact-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}
.contact-card-info {
    background: radial-gradient(circle at 25% 15%, #04B1EE 0%, #062233 38%, #000000 85%);
    color: #fff;
    padding: 45px 35px;
    height: 100%;
}
.contact-card-info p { color: rgba(255, 255, 255, 0.85); }
.contact-socials { display: flex; gap: 16px; }
.contact-socials a {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    width: 42px; height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}
.contact-socials a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}
.contact-cv-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.contact-cv-link:hover { color: #9fe6ff; }
.contact-card-form { padding: 45px 35px; }
.contact-card-form .form-label { font-weight: 600; font-size: 0.9rem; }
.contact-card-form .form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px 14px;
}
.contact-card-form .form-control:focus {
    border-color: #04B1EE;
    box-shadow: 0 0 0 0.2rem rgba(4, 177, 238, 0.18);
}
.contact-card-form .btn-primary {
    background-color: #04B1EE;
    border-color: #04B1EE;
}
.contact-card-form .btn-primary:hover {
    background-color: #038cbf;
    border-color: #038cbf;
}

/* --- Footer con esquinas redondeadas (estilo mobbin) en vez de corte recto --- */
footer.site-footer {
    border-radius: 40px 40px 0 0;
    margin-top: auto;
}

/* ==========================================================================
   Transición de carga entre páginas: pantalla blanca + logo -> un corte
   diagonal se abre en 2 revelando el contenido. El logo vive DENTRO de
   cada panel (recortado por el mismo clip-path), así que cuando los
   paneles están cerrados se ve como un logo completo, y al separarse
   cada mitad se lleva su parte consigo. Al hacer click en un enlace a
   otra página, se cierra de nuevo antes de navegar.
   ========================================================================== */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.page-transition.is-open {
    pointer-events: none;
}
.page-transition-panel {
    position: absolute;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}
/* Un solo corte diagonal centrado en el logo (50%): angosto arriba,
   se ensancha hacia abajo. Cada panel invade 2px el territorio del otro
   en la costura para que el anti-aliasing nunca deje un hueco visible. */
.page-transition-panel.panel-left {
    clip-path: polygon(0 0, calc(38% + 2px) 0, calc(62% + 2px) 100%, 0% 100%);
}
.page-transition-panel.panel-right {
    clip-path: polygon(calc(38% - 2px) 0, 100% 0, 100% 100%, calc(62% - 2px) 100%);
}
.page-transition.is-open .panel-left {
    transform: translate3d(-110%, 0, 0);
}
.page-transition.is-open .panel-right {
    transform: translate3d(110%, 0, 0);
}
.page-transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.page-transition-logo {
    width: 84px;
    height: auto;
    animation: pageTransitionPulse 1.4s ease-in-out infinite;
}
.page-transition.is-open .page-transition-logo {
    animation: none;
}
.page-transition-text {
    color: #5a6472;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin: 0;
}
@keyframes pageTransitionPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
    .page-transition-panel { transition-duration: 0.01ms; }
    .page-transition-logo { animation: none; }
}

/* --- Tarjetas de "Experiencia corporativa": logo + botones de acción --- */
.corp-card {
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.corp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(4, 177, 238, 0.25), 0 8px 16px rgba(0, 0, 0, 0.08);
}
.corp-card-logo {
    max-width: 72px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 12px;
}
.corp-card-logo-dark {
    background: #000;
    border-radius: 6px;
    padding: 5px 8px;
}
.corp-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.corp-btn-primary {
    background-color: #04B1EE;
    border-color: #04B1EE;
    color: #fff;
    font-weight: 600;
}
.corp-btn-primary:hover {
    background-color: #038cbf;
    border-color: #038cbf;
    color: #fff;
}
.corp-btn-outline {
    background-color: transparent;
    border: 1px solid #04B1EE;
    color: #04B1EE;
    font-weight: 600;
}
.corp-btn-outline:hover {
    background-color: rgba(4, 177, 238, 0.1);
    color: #038cbf;
    border-color: #038cbf;
}

/* --- Tarjetas de "Experiencia con clientes": imagen + texto unificados --- */
.client-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.client-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(4, 177, 238, 0.25), 0 8px 16px rgba(0, 0, 0, 0.08);
}
.client-card-media {
    background: linear-gradient(160deg, #eef2f5, #e2e8ee);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 0;
}
.client-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.client-media-placeholder {
    font-size: 2.5rem;
    color: #aeb8c2;
}
.client-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #04B1EE;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.25s;
}
.client-link:hover {
    color: #04B1EE;
}

/* ==========================================================================
   INDEX.HTML -- Hero de la microempresa
   ========================================================================== */
.hero-company {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.hero-blob-a {
    width: 42vw;
    height: 42vw;
    top: -16vw;
    left: -12vw;
    background: radial-gradient(circle, rgba(4, 177, 238, 0.4), transparent 70%);
    animation: heroBlobDriftA 14s ease-in-out infinite;
}
.hero-blob-b {
    width: 34vw;
    height: 34vw;
    bottom: -14vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(4, 177, 238, 0.25), transparent 70%);
    animation: heroBlobDriftB 18s ease-in-out infinite;
}
.hero-blob-c {
    width: 26vw;
    height: 26vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(120, 200, 255, 0.16), transparent 70%);
    animation: heroBlobDriftC 12s ease-in-out infinite;
}
.hero-company-content {
    position: relative;
    z-index: 1;
    animation: heroContentEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.btn-hero-primary {
    background: #04B1EE;
    color: #02202b;
    border: none;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(4, 177, 238, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(4, 177, 238, 0.5);
    color: #02202b;
    background-color: #04B1EE;
}
.btn-hero-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-weight: 600;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.btn-hero-outline:hover {
    transform: translateY(-3px);
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.hero-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 1;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.3rem;
    animation: heroScrollHintBounce 2s ease-in-out infinite;
}
.hero-scroll-hint:hover { color: #04B1EE; }

@keyframes heroBlobDriftA {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(4.5vw, 4.5vw); }
}
@keyframes heroBlobDriftB {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-4.5vw, -4.5vw); }
}
@keyframes heroBlobDriftC {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.25); }
}
.hero-title-glow {
    animation: heroTitleGlow 4.5s ease-in-out infinite;
}
@keyframes heroTitleGlow {
    0%, 100% { text-shadow: 0 0 25px rgba(4, 177, 238, 0.25); }
    50% { text-shadow: 0 0 55px rgba(4, 177, 238, 0.55); }
}
@keyframes heroContentEnter {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroScrollHintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ==========================================================================
   INDEX.HTML -- Proyectos (PC y Web): monitor fijo, pantalla con fade por
   proyecto conforme se hace scroll ("una pc dentro de otra pc")
   ========================================================================== */
.pc-showcase-intro {
    background: #000;
    color: #fff;
    padding: 70px 0 30px;
}
.pc-showcase {
    background: #000;
    position: relative;
}
.pc-showcase-track {
    position: relative;
    height: 500vh; /* 5 proyectos x 100vh de recorrido cada uno */
    /* dvh sigue al viewport real (con barra del navegador visible u oculta).
       Sin esto, en móvil "vh" no coincide con window.innerHeight que usa
       main.js para calcular el índice del proyecto, y los botones de
       navegación (bolitas) terminan mostrando el proyecto equivocado. */
    height: 500dvh;
}
.pc-anchor {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
    visibility: hidden;
}
.pc-showcase-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pc-showcase-sticky::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(4, 177, 238, 0.12), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.pc-monitor,
.pc-monitor-stand,
.pc-progress {
    position: relative;
    z-index: 1;
}
.pc-monitor {
    width: min(78vw, 920px);
    aspect-ratio: 16 / 10;
    background: #14181f;
    border-radius: 18px;
    padding: 18px 18px 30px;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
.pc-monitor-cam {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
    box-shadow: 0 0 4px rgba(4, 177, 238, 0.5);
}
.pc-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, #001736 0%, #000000 80%);
    border-radius: 6px;
    overflow: hidden;
}
.pc-monitor-stand {
    position: relative;
    width: 120px;
    height: 56px;
}
.pc-monitor-stand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 34px;
    background: linear-gradient(180deg, #1c2129, #0c0e12);
    clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
}
.pc-monitor-stand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 10px;
    background: linear-gradient(180deg, #1c2129, #0c0e12);
    border-radius: 6px;
}
.pc-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 5%;
    padding: 6% 7%;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}
.pc-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.pc-slide-media {
    width: 38%;
    max-height: 70%;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}
.pc-slide-media-contain {
    padding: 14px;
    box-sizing: border-box;
}
.pc-slide-media-light {
    background: #fff;
}
.pc-slide-media-dark {
    background: #000;
}
.pc-slide-info {
    color: #fff;
    text-align: left;
}
.pc-slide-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #04B1EE;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.pc-slide-info h3 {
    font-size: clamp(1.1rem, 2.4vw, 1.7rem);
    font-weight: 700;
    margin-bottom: 10px;
}
.pc-slide-info p {
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 14px;
}
.pc-slide-link {
    color: #04B1EE;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(4, 177, 238, 0.4);
    padding-bottom: 2px;
    transition: color 0.25s, border-color 0.25s;
}
.pc-slide-link:hover {
    color: #9fe6ff;
    border-color: #9fe6ff;
}

/* ==========================================================================
   INDEX.HTML -- Proyectos: tratamiento visual distinto por empresa
   ========================================================================== */

/* --- Vivero Ortiz: fondo blanco, texto oscuro --- */
.pc-slide-vivero { background: #ffffff; }
.pc-slide-vivero .pc-slide-info h3 { color: #14181f; }
.pc-slide-vivero .pc-slide-info p { color: rgba(20, 24, 31, 0.72); }

/* --- Teeven: fondo negro solido --- */
.pc-slide-teeven { background: #000000; }

/* --- Daniel Measurement and Control: fondo blanco, texto en rojo --- */
.pc-slide-daniel { background: #ffffff; }
.pc-slide-daniel .pc-slide-tag { color: #14181f; }
.pc-slide-daniel .pc-slide-info h3,
.pc-slide-daniel .pc-slide-info p,
.pc-slide-daniel .pc-slide-link {
    color: #c1121f;
}
.pc-slide-daniel .pc-slide-link { border-bottom-color: rgba(193, 18, 31, 0.4); }
.pc-slide-daniel .pc-slide-link:hover { color: #8f0d17; border-color: #8f0d17; }

/* --- Pagos Digitales: fondo negro solido (resto igual) --- */
.pc-slide-pagosdigitales { background: #000000; }

/* --- ADS Systems: fondo blanco, texto en el azul de su logo --- */
.pc-slide-ads { background: #ffffff; }
.pc-slide-ads .pc-slide-tag,
.pc-slide-ads .pc-slide-info h3,
.pc-slide-ads .pc-slide-info p,
.pc-slide-ads .pc-slide-link {
    color: #1d3557;
}
.pc-slide-ads .pc-slide-link { border-bottom-color: rgba(29, 53, 87, 0.4); }
.pc-slide-ads .pc-slide-link:hover { color: #122236; border-color: #122236; }

/* --- Layout apilado (usado por Teeven, Daniel y ADS): fila superior con
   la info de siempre, mas compacta, y una fila inferior para video/fotos
   adicionales que cada quien agrega despues --- */
.pc-slide-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 4%;
}
.pc-slide-stack-top {
    display: flex;
    align-items: center;
    gap: 5%;
    flex: 0 0 auto;
}
.pc-slide-stack-top .pc-slide-media {
    width: 26%;
    max-height: 100%;
}
.pc-slide-stack-top .pc-slide-info h3 {
    font-size: clamp(1rem, 2vw, 1.4rem);
}
.pc-slide-stack-top .pc-slide-info p {
    font-size: clamp(0.72rem, 1.2vw, 0.85rem);
    margin-bottom: 10px;
}
.pc-slide-stack-media-row {
    display: flex;
    gap: 4%;
    flex: 1 1 auto;
    min-height: 0;
}
.pc-slide-stack-media-row > * {
    flex: 1 1 0;
    height: 100%;
    min-width: 0;
    border-radius: 10px;
}
.pc-slide-video-wrap {
    position: relative;
    overflow: hidden;
}
.pc-slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0c0e12;
}
/* Overlay que se ve mientras el <video> no tiene un <source> real.
   Al agregar el <source>, borrar este div .pc-slide-video-placeholder */
.pc-slide-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.45);
    background: #0c0e12;
}
.pc-slide-video-placeholder i { font-size: 1.5rem; color: rgba(4, 177, 238, 0.55); }
.pc-slide-video-placeholder span { font-size: 0.68rem; letter-spacing: 0.5px; }
.pc-slide-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.45);
}
.pc-slide-photo-placeholder i { font-size: 1.5rem; color: rgba(4, 177, 238, 0.55); }
.pc-slide-photo-placeholder span { font-size: 0.68rem; letter-spacing: 0.5px; }
.pc-slide-photo {
    width: 100%;
    object-fit: cover;
    background: #0c0e12;
}
/* Variante clara para los slides con fondo blanco (Daniel, ADS) */
.pc-slide-daniel .pc-slide-photo-placeholder,
.pc-slide-ads .pc-slide-photo-placeholder {
    border-color: rgba(20, 24, 31, 0.2);
    color: rgba(20, 24, 31, 0.4);
}
.pc-slide-daniel .pc-slide-photo-placeholder i,
.pc-slide-ads .pc-slide-photo-placeholder i {
    color: rgba(20, 24, 31, 0.35);
}

.pc-progress {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.pc-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.pc-progress-dot.is-active {
    background: #04B1EE;
    transform: scale(1.3);
}

@media (max-width: 767.98px) {
    .pc-monitor {
        width: 92vw;
        aspect-ratio: 4 / 3;
        padding: 14px 14px 24px;
    }
    .pc-slide {
        flex-direction: column;
        gap: 3%;
        padding: 8% 6%;
        text-align: center;
    }
    .pc-slide-info { text-align: center; }
    .pc-slide-media {
        width: 55%;
        max-height: 38%;
    }
    /* En movil no hay espacio para la fila de video/fotos extra: se
       oculta y el bloque superior ocupa todo el slide, igual que los
       demas proyectos (solo cambian fondo y colores de texto) */
    .pc-slide-stack { height: auto; }
    .pc-slide-stack-top {
        flex-direction: column;
        gap: 3%;
        text-align: center;
        flex: 1 1 auto;
        justify-content: center;
    }
    .pc-slide-stack-top .pc-slide-media {
        width: 55%;
        max-height: 38%;
    }
    .pc-slide-stack-media-row { display: none; }
}

/* ==========================================================================
   INDEX.HTML -- Apps moviles: marco de telefono + carrusel
   ========================================================================== */
.mobile-showcase {
    background: #000;
    padding: 80px 0 90px;
}
.phone-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.phone-app-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.phone-frame {
    position: relative;
    background: #111318;
    border-radius: 34px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
    transition: transform 0.35s ease;
}
.phone-app-card:hover .phone-frame {
    transform: translateY(-6px);
}
.phone-frame-portrait {
    width: 220px;
    aspect-ratio: 9 / 18;
}
.phone-frame-landscape {
    width: 280px;
    aspect-ratio: 18 / 10;
    border-radius: 22px;
}
.phone-frame-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 46%;
    height: 18px;
    background: #111318;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}
.phone-frame-cam {
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
    z-index: 2;
}
.phone-carousel,
.phone-placeholder,
.phone-frame > img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
}
.phone-frame > img {
    display: block;
    object-fit: cover;
}
.phone-frame-landscape .phone-carousel,
.phone-frame-landscape > img {
    border-radius: 12px;
}
.phone-carousel .carousel-inner,
.phone-carousel .carousel-item {
    height: 100%;
}
.phone-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6 / 3;
}
.phone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(160deg, #062233, #04101c);
    color: rgba(255, 255, 255, 0.45);
}
.phone-placeholder i {
    font-size: 1.8rem;
    color: rgba(4, 177, 238, 0.55);
}
.phone-placeholder span {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}
.phone-app-info { max-width: 260px; color: #fff; }
.phone-app-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.phone-app-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin-bottom: 10px;
}
.phone-app-link {
    color: #04B1EE;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(4, 177, 238, 0.4);
}
.phone-app-link:hover { color: #9fe6ff; border-color: #9fe6ff; }
.phone-app-badges { display: flex; gap: 8px; justify-content: center; }
.badge-platform {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #04B1EE;
    border: 1px solid rgba(4, 177, 238, 0.4);
    border-radius: 20px;
    padding: 3px 10px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-blob-a,
    .hero-blob-b,
    .hero-blob-c,
    .hero-company-content,
    .hero-title-glow,
    .hero-scroll-hint {
        animation: none !important;
    }
    .pc-slide,
    .phone-app-card,
    .phone-frame {
        transition: none !important;
    }
}