/* ==========================
   RESET
========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden; /* 🔥 elimina scroll horizontal */
}

/* ==========================
   FONDO GENERAL
========================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f0f, #1a0000, #2b0f0f, #3a0d0d);
    background-attachment: fixed;
    color: #f1f1f1;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,0,0,0.08), transparent 60%);
    pointer-events: none;
}

/* ==========================
   NAVBAR
========================== */
nav {
    background: linear-gradient(90deg, #d60000, #a80000);
    border-bottom: 2px solid #900000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px; /* 🔥 corregido */
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    width: 100%;
}

nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 8px;
    background-color: #52007b;
}

.nav-left {
    display: flex;
    align-items: center;
}

nav img {
    height: 45px;
    border-radius: 6px;
}

nav .logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

nav .logo:hover {
    color: #ffcc00;
}

/* ==========================
   MENÚ
========================== */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: 0.3s;
    padding: 6px 10px;
    border-radius: 5px;
}

nav ul li a:hover {
    color: #111;
    background: #ffcc00;
}

/* ==========================
   MENÚ RESPONSIVE
========================== */
.menu-toggle {
    font-size: 26px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        padding: 10px 15px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #a80000;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        padding: 15px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
}

/* ==========================
   TÍTULO
========================== */
h2 {
    text-align: center;
    margin: 30px 0;
    color: #ff4444;
    text-shadow: 0 0 6px rgba(255,0,0,0.6);
}

/* ==========================
   SECCIÓN APP
========================== */
.app-download {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.app-card {
    background: linear-gradient(145deg, #1a1a1a, #2a0d0d);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-card h3 {
    color: #ff4444;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.descripcion {
    color: #ddd;
    margin-bottom: 20px;
}

.beneficios {
    list-style: none;
    margin-bottom: 25px;
}

.beneficios li {
    margin: 8px 0;
    color: #ffcc00;
}

.btn-descarga {
    background: linear-gradient(90deg, #d60000, #a80000);
    border: none;
    padding: 12px 25px;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-descarga:hover {
    background: linear-gradient(90deg, #ff0000, #b80000);
    transform: scale(1.05);
}

/* ==========================
   FOOTER
========================== */
.footer {
    background: linear-gradient(180deg, #b30000, #800000);
    border-top: 6px solid #52007b;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    margin-bottom: 15px;
    color: #ffcc00;
}

.footer-column p,
.footer-column a {
    font-size: 0.95rem;
    color: #f1f1f1;
    text-decoration: none;
    line-height: 1.6;
}

.footer-column a:hover {
    color: #ffcc00;
}

.social-icons {
    list-style: none;
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    font-size: 18px;
    color: #fff;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ffcc00;
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================
   RESPONSIVE FOOTER
========================== */
@media (max-width: 768px) {
    .app-card {
        padding: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}