
/* =========================================
   ESTILOS GENERALES
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

a {
    color: #0071e3;
}

/* =========================================
   MENÚ HAMBURGUESA ORIGINAL
   ========================================= */

/* CONTENEDOR GENERAL FIJO */

.menu-wrapper-fijo {
    position: fixed;
    top: 30px;
    left: 8%;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* CÁPSULA DEL BOTÓN */

.menu-pildora-container {
    position: relative;
    background-color: #000000;
    padding: 14px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    width: 28px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.barrita {
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.activo .barrita:nth-child(1) {
    transform: translateY(7.75px) rotate(45deg);
}

.menu-toggle.activo .barrita:nth-child(2) {
    opacity: 0;
}

.menu-toggle.activo .barrita:nth-child(3) {
    transform: translateY(-7.75px) rotate(-45deg);
}

.menu-toggle:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 5px;
}

/* TOOLTIP EXTERNO */

.tooltip-menu {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    animation: desvanecimientoBucle 25s infinite ease-in-out;
    transition: opacity 0.3s ease;
}

.menu-wrapper-fijo:has(.menu-toggle.activo) .tooltip-menu {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

.tooltip-contenido {
    display: flex;
    align-items: center;
    gap: 6px;
    animation: reboteHorizontal 1.2s infinite ease-in-out;
}

.tooltip-menu .flechita {
    font-size: 0.7rem;
    color: #000000;
}

/* MENÚ DESPLEGABLE */

.menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: #000000;
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 180px;
}

.menu-dropdown.activo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-navegacion {
    list-style: none;
    text-align: left;
}

.menu-navegacion li {
    margin: 12px 0;
}

.menu-navegacion a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: block;
}

.menu-navegacion a:hover,
.menu-navegacion a[aria-current="page"] {
    opacity: 1;
    color: #0071e3;
}

/* =========================================
   CONTENIDO PRINCIPAL
   ========================================= */

main {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
    padding-top: 125px;
}

.intro {
    max-width: 780px;
    margin: 25px auto 45px;
    text-align: left;
}

.intro h1 {
    margin-bottom: 28px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.15;
}

.intro p {
    margin-bottom: 16px;
    color: #d1d1d6;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
}

.intro strong {
    color: #ffffff;
    font-weight: 500;
}

/* =========================================
   TARJETAS DE APLICACIONES
   ========================================= */

.aplicaciones {
    display: grid;
    gap: 25px;
}

.app {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background-color: #080808;
}

.app-icono {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.app-icono img {
    display: block;
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 22px;
}

.app-contenido h2 {
    margin-bottom: 18px;
    color: #0071e3;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.app-contenido p {
    margin-bottom: 18px;
    color: #d1d1d6;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
}

.app-contenido strong {
    color: #ffffff;
    font-weight: 500;
}

/* =========================================
   BOTONES DE DESCARGA
   ========================================= */

.boton-descarga {
    display: inline-block;
    margin-top: 5px;
    padding: 12px 22px;
    border: 1px solid rgba(0, 113, 227, 0.7);
    border-radius: 30px;
    background: #0071e3;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

.boton-descarga:hover {
    background: #005bb5;
    border-color: #005bb5;
}

/* =========================================
   AVISO Y PIE DE PÁGINA
   ========================================= */

.aviso {
    max-width: 900px;
    margin: 35px auto 0;
    padding: 20px 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    color: #a1a1a6;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.75;
}

.aviso p {
    margin-bottom: 12px;
}

.aviso p:last-child {
    margin-bottom: 0;
}

.aviso strong {
    color: #ffffff;
    font-weight: 500;
}

.pie {
    padding: 40px 20px 25px;
    color: #77777e;
    font-size: 0.85rem;
    text-align: center;
}

/* =========================================
   ANIMACIONES DEL TOOLTIP ORIGINAL
   ========================================= */

@keyframes desvanecimientoBucle {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(15px);
    }

    4% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }

    20% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }

    24% {
        opacity: 0;
        transform: scale(0.8) translateX(15px);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateX(15px);
    }
}

@keyframes reboteHorizontal {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-6px);
    }
}

/* =========================================
   RESPONSIVE MÓVIL
   ========================================= */

@media (max-width: 768px) {
    .menu-wrapper-fijo {
        top: 20px;
        left: 5%;
        gap: 10px;
    }

    .tooltip-menu {
        display: none;
    }

    main {
        width: 90%;
        padding-top: 100px;
    }

    .intro {
        margin: 20px auto 30px;
        text-align: left;
    }

    .intro h1 {
        font-size: 1.85rem;
        margin-bottom: 22px;
    }

    .intro p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .app {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
    }

    .app-icono {
        justify-content: flex-start;
        padding-top: 0;
    }

    .app-icono img {
        width: 112px;
        max-width: 112px;
        border-radius: 18px;
    }

    .app-contenido h2 {
        font-size: 1.85rem;
    }

    .app-contenido p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .boton-descarga {
        display: block;
        width: 100%;
        padding: 12px 14px;
    }

    .aviso {
        padding: 16px;
        font-size: 0.9rem;
    }
}

/* =========================================
   MÓVIL EN HORIZONTAL
   ========================================= */

@media screen and (max-height: 500px) and (orientation: landscape) {
    .menu-wrapper-fijo {
        top: 15px;
        left: 5%;
    }

    main {
        padding-top: 90px;
    }

    .intro {
        margin-top: 10px;
    }

    .app {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 22px;
        padding: 22px;
    }

    .app-icono img {
        max-width: 120px;
    }

    .app-contenido h2 {
        font-size: 1.6rem;
    }

    .app-contenido p {
        font-size: 0.95rem;
        line-height: 1.55;
    }
}
