/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --bg-dark: #040914;
    --bg-panel: rgba(10, 20, 35, 0.6);
    --neon-cyan: #00f3ff;
    --neon-green: #00ff88;
    --text-main: #e0f7fa;
    --text-muted: #7a9bb5;
    --font-display: 'Exo 2', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-display);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Ocultar el idioma inactivo */
body.lang-es .lang-en { display: none !important; }
body.lang-en .lang-es { display: none !important; }

/* =========================================
   FONDO ANIMADO (VORTEX / RADAR)
   ========================================= */
.vortex-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a192f 0%, #040914 100%);
    perspective: 1000px;
}

.radar-grid {
    position: absolute;
    top: 50%; left: 50%;
    width: 200vmax; height: 200vmax;
    transform: translate(-50%, -50%) rotateX(75deg);
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    border-radius: 50%;
    animation: rotateGrid 60s linear infinite;
    box-shadow: inset 0 0 100px rgba(0, 243, 255, 0.1);
}

.vortex-tunnel {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vmin; height: 100vmin;
    border: 2px solid rgba(0, 243, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1), inset 0 0 40px rgba(0, 243, 255, 0.1);
    animation: tunnelPulse 6s ease-in-out infinite alternate;
}

.vortex-tunnel.second {
    width: 130vmin; height: 130vmin;
    border-color: rgba(0, 255, 136, 0.1);
    animation-duration: 8s;
    animation-direction: alternate-reverse;
}

.vortex-tunnel.third {
    width: 70vmin; height: 70vmin;
    border-color: rgba(0, 243, 255, 0.2);
    animation-duration: 4s;
}

@keyframes rotateGrid {
    0% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg); }
}

@keyframes tunnelPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* =========================================
   HEADER
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(4, 9, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-container img {
    height: 40px;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.logo-container h1 {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--neon-cyan);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    gap: 5px;
    margin-left: 20px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    padding: 3px;
}

.lang-switch button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.lang-switch button.active-lang {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    font-weight: bold;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* =========================================
   MAIN & HERO
   ========================================= */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 5%;
    position: relative;
    z-index: 10;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 80px;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

/* Fila que contiene el titular y el logo */
.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    flex: 1;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.6), 0 0 40px rgba(0, 243, 255, 0.2);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-container {
    display: inline-block;
    position: relative;
}

.btn {
    display: inline-block;
    background: transparent;
    color: var(--neon-cyan);
    padding: 15px 40px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 2px solid var(--neon-cyan);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 15px rgba(0, 243, 255, 0.1);
    cursor: pointer;
}

.btn:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5), inset 0 0 20px rgba(0, 243, 255, 0.3);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* =========================================
   LOGO INTEGRADO EN EL TEXTO (25% MÁS GRANDE)
   ========================================= */
.app-logo-inline {
    position: relative;
    width: 162px; /* 130px * 1.25 */
    height: 162px;
    flex-shrink: 0;
    animation: floatLogo 6s ease-in-out infinite;
}

.floating-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.6)) drop-shadow(0 0 40px rgba(0, 255, 136, 0.3));
    border-radius: 20px;
}

.logo-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 120%; height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 243, 255, 0.25) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* =========================================
   DIAL ANIMADO CON SIMULACIÓN
   ========================================= */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-dial-preview {
    width: 380px;
    height: 380px;
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(10,20,35,0.8) 0%, rgba(4,9,20,0) 70%);
    z-index: 2;
}

.dial-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(0, 243, 255, 0.3);
}

.dial-ring.outer {
    width: 100%; height: 100%;
    animation: rotateRing 20s linear infinite;
}

.dial-ring.inner {
    width: 70%; height: 70%;
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.1);
    animation: rotateRing 15s linear infinite reverse;
}

.dial-needle {
    position: absolute;
    width: 4px;
    height: 42%;
    background: linear-gradient(to top, transparent, var(--neon-green));
    bottom: 50%;
    transform-origin: bottom center;
    transform: rotate(0deg);
    box-shadow: 0 0 15px var(--neon-green);
    border-radius: 4px 4px 0 0;
    transition: transform 0.1s ease-out, background 0.3s, box-shadow 0.3s;
}

.dial-center {
    position: relative;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px var(--neon-cyan);
    background: rgba(4,9,20,0.85);
    width: 130px; height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid rgba(0, 243, 255, 0.5);
    box-shadow: inset 0 0 30px rgba(0, 243, 255, 0.2), 0 0 20px rgba(0, 243, 255, 0.3);
    transition: color 0.3s, border-color 0.3s, text-shadow 0.3s;
}

.dial-text {
    position: absolute;
    bottom: -100px;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

.dial-status {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 3px;
    transition: color 0.3s;
}

#dialCents {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    transition: color 0.3s;
}

#dialHz {
    font-size: 0.95rem;
    color: var(--text-muted);
}

#dialTarget {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   SCREENSHOTS (DOS LADO A LADO)
   ========================================= */
.screenshots {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    flex-wrap: wrap;
}

.screenshot-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    transition: transform 0.3s ease;
    flex: 1;
    max-width: 400px;
}

.screenshot-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 60px rgba(0, 243, 255, 0.2);
}

.screenshots img {
    width: 100%;
    border-radius: 15px;
    display: block;
}

.screenshot-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 120%; height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    background: rgba(4, 9, 20, 0.8);
    backdrop-filter: blur(5px);
    margin-top: auto;
}

footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: text-shadow 0.3s;
}

footer a:hover {
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* =========================================
   PÁGINAS DE DOCUMENTO (Términos / Privacidad / Contacto)
   ========================================= */
main.document {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 5% 80px;
    width: 100%;
    position: relative;
    z-index: 10;
}

main.document h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    margin-bottom: 10px;
    line-height: 1.2;
}

main.document h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    margin-top: 35px;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--neon-green);
}

main.document p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 14px;
    font-weight: 300;
}

main.document strong {
    color: var(--text-main);
    font-weight: 700;
}

main.document ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

main.document ul li {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    padding: 6px 0 6px 22px;
    position: relative;
    font-weight: 300;
}

main.document ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
}

main.document a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 243, 255, 0.4);
    transition: all 0.3s;
    padding-bottom: 1px;
}

main.document a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

/* Bloque destacado del email en contacto */
main.document .contact-email {
    font-size: 1.25rem;
    margin: 2rem 0;
    padding: 20px 25px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.1);
    font-family: var(--font-mono);
}

main.document .contact-email a {
    border-bottom: none;
    font-weight: bold;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }
    
    .hero-title-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .lang-switch {
        margin-left: 0;
    }

    .app-logo-inline {
        width: 135px;
        height: 135px;
    }

    .app-dial-preview {
        width: 320px;
        height: 320px;
    }

    .dial-text {
        bottom: -95px;
    }

    .screenshots {
        gap: 25px;
    }

    main.document {
        padding: 40px 6% 60px;
    }
    main.document h2 {
        font-size: 1.7rem;
    }
    main.document h3 {
        font-size: 1.05rem;
        margin-top: 28px;
    }
    main.document p,
    main.document ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 500px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .dial-center {
        width: 100px; height: 100px;
        font-size: 2.8rem;
    }

    .app-logo-inline {
        width: 110px;
        height: 110px;
    }

    .app-dial-preview {
        width: 280px;
        height: 280px;
    }

    .dial-text {
        bottom: -90px;
        font-size: 0.75rem;
    }

    #dialCents {
        font-size: 1.2rem;
    }

    .screenshots {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .screenshot-wrapper {
        max-width: 100%;
        width: 100%;
    }

    main.document h2 {
        font-size: 1.4rem;
    }
    main.document h3 {
        font-size: 0.95rem;
    }
    main.document .contact-email {
        font-size: 1rem;
        padding: 15px 18px;
    }
}