/* ======================================================
   CONFIGURACIÓN GLOBAL (NO TOCAR POR PÁGINA)
====================================================== */

:root {
    --bg-main: #111827;
    --bg-dark: #0f172a;
    --border-soft: rgba(255, 255, 255, 0.08);
    --blue-main: #3b82f6;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #e5e7eb;
    background-color: var(--bg-main);
    /* Fondo global con textura */
    background-image: linear-gradient( to bottom, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.98) ), url('https://i.imgur.com/RFxmAaM.png');
    background-size: 500px;
    background-repeat: repeat;
    background-position: top left;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* ======================================================
   CAPAS VISUALES (EFECTOS DE FONDO)
====================================================== */

#particle-container,
#cursor-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

#cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient( circle, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 70% );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: background 0.2s ease;
}

/* Contenido SIEMPRE encima del fondo */
header,
main,
footer {
    position: relative;
    z-index: 10;
}

/* ======================================================
   HEADER & NAV
====================================================== */

header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-title {
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* Links navegación escritorio */
#nav-links li a {
    position: relative;
}

    #nav-links li a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--blue-main);
        transition: width 0.3s ease;
    }

    #nav-links li a:hover::after {
        width: 100%;
    }

/* ======================================================
   MENÚ MÓVIL
====================================================== */

.mobile-menu {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    padding-top: 2rem;
}

    .mobile-menu a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 1rem;
    }

/* ======================================================
   BOTONES
====================================================== */

.btn-primary {
    background-image: linear-gradient(to right, #2563eb, #3b82f6);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        background-image: linear-gradient(to right, #1d4ed8, #2563eb);
    }

.btn-secondary {
    background-color: rgba(30, 41, 59, 0.6);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

    .btn-secondary:hover {
        background-color: rgba(30, 41, 59, 0.85);
        transform: translateY(-2px);
    }

/* ======================================================
   TARJETAS (CARDS)
====================================================== */

.card {
    background-color: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-4px);
        border-color: rgba(59, 130, 246, 0.35);
        box-shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
    }

/* Tarjeta destacada (PRO / oferta) */
.border-yellow-500 {
    border-color: rgba(234, 179, 8, 0.55) !important;
}

.shadow-yellow-900\/20 {
    box-shadow: 0 25px 60px rgba(161, 98, 7, 0.25) !important;
}

/* ======================================================
   ANIMACIONES DE SCROLL
====================================================== */

[data-scroll-effect] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

    [data-scroll-effect].visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ======================================================
   MODALES
====================================================== */

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* ======================================================
   FORM INPUTS
====================================================== */

input,
textarea,
select {
    font-family: inherit;
}

    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type=number] {
        -moz-appearance: textfield;
    }

/* ======================================================
   SCROLLBAR PERSONALIZADA
====================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #475569;
    }

/* ======================================================
   UTILIDADES POR PÁGINA
====================================================== */

/* Fondo especial para páginas legales */
.legal-page-bg {
    background-image: radial-gradient( at 0% 0%, rgba(56, 189, 248, 0.08) 0px, transparent 50% );
}

/* Android highlight */
.android-gradient {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
/* ==============================================
FORZAR VISIBILIDAD DEL CONTENIDO
============================================== */
header,
main,
footer {
    position: relative;
    z-index: 10;
}

body {
    min-height: 100vh;
}

main {
    display: block;
    visibility: visible;
    opacity: 1;
}
