:root {
    --bg: #080c17;
    --bg-soft: #0d1322;
    --card: #11192a;
    --text: #f5f7fb;
    --muted: #aab3c5;
    --line: rgba(255,255,255,0.09);
    --blue: #4da3ff;
    --red: #ff4f64;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8,12,23,0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: var(--muted);
    font-size: 0.92rem;
}

nav a:hover {
    color: var(--text);
}

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 75% 40%, rgba(77,163,255,0.12), transparent 28%),
        radial-gradient(circle at 85% 60%, rgba(255,79,100,0.10), transparent 25%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

h1 {
    max-width: 720px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    letter-spacing: -0.055em;
}

h1 span {
    background: linear-gradient(90deg, var(--blue), #ffffff 55%, var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    max-width: 600px;
    margin: 28px 0 34px;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    background: var(--text);
    color: #080c17;
}

.secondary {
    border: 1px solid var(--line);
    color: var(--text);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 390px;
}

.visual-card {
    position: relative;
    width: min(360px, 82vw);
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 32px;
    background: linear-gradient(145deg, #111a2c, #090e1a);
    box-shadow:
        0 30px 70px rgba(0,0,0,0.35),
        0 0 50px rgba(77,163,255,0.05);
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background:
        radial-gradient(circle,
            rgba(77,163,255,0.20) 0%,
            rgba(77,163,255,0.08) 38%,
            rgba(255,79,100,0.06) 62%,
            transparent 74%);
    filter: blur(18px);
    transform: translate(12px, 8px);
}

.hero-visual::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 0 70px rgba(77,163,255,0.08),
        inset 0 0 60px rgba(255,79,100,0.04);
}

.hero-logo {
    position: relative;
    z-index: 1;
    width: min(330px, 82%);
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter:
        drop-shadow(0 20px 35px rgba(0,0,0,0.35))
        drop-shadow(0 0 25px rgba(77,163,255,0.12));
}

.section {
    padding: 120px 0;
}

.apps-section {
    background: var(--bg-soft);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.section-heading h2,
.about-grid h2,
.contact-card h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin-top: 22px;
    color: var(--muted);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.app-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
}

.app-icon {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--blue), #1854a0);
    box-shadow: 0 15px 35px rgba(77,163,255,0.18);
}

.app-icon img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    border-radius: 18px;
}

.app-status {
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.app-info h3 {
    margin-top: 8px;
    font-size: 1.7rem;
}

.app-info p {
    max-width: 650px;
    margin: 10px 0 14px;
    color: var(--muted);
}

.platform {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--muted);
    font-size: 0.78rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.about-text {
    color: var(--muted);
    font-size: 1.08rem;
}

.about-text p {
    margin: 0 0 22px;
}

.contact-section {
    background: var(--bg-soft);
}

.contact-card {
    padding: 70px 30px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 0%, rgba(77,163,255,0.12), transparent 45%),
        var(--card);
}

.contact-card p {
    color: var(--muted);
    margin: 20px 0;
}

.email {
    display: inline-block;
    color: var(--blue);
    font-size: 1.1rem;
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid var(--line);
}

.footer-content {
    min-height: 110px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-content strong {
    display: block;
    color: var(--text);
}

.footer-content span {
    display: block;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--text);
}

.copyright {
    text-align: right;
}

@media (max-width: 760px) {

    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .nav {
        flex-wrap: wrap;
        padding: 10px 0 0;
        gap: 4px 20px;
    }

    nav {
        display: flex;
        width: 100%;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 0 10px;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        flex: 0 0 auto;
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255,255,255,0.03);
        font-size: 0.82rem;
    }

    .hero {
        min-height: auto;
        padding: 90px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        order: -1;
        min-height: auto;
        padding: 8px 0 10px;
    }

    .visual-card {
        width: min(270px, 68vw);
        aspect-ratio: 1;
        border-radius: 28px;
        background: linear-gradient(145deg, #111a2c, #090e1a);
        box-shadow:
            0 24px 55px rgba(0,0,0,0.30),
            0 0 35px rgba(77,163,255,0.04);
    }

    .hero-visual {
        min-height: auto;
        padding: 28px 0 10px;
    }

    .hero-visual::before {
        width: 190px;
        height: 190px;
        opacity: 0.45;
    }

    .hero-visual::after {
        width: 150px;
        height: 150px;
    }

    .hero-logo {
        width: 76%;
        mix-blend-mode: normal;
        filter: drop-shadow(0 14px 25px rgba(0,0,0,0.28));
    }

    .section {
        padding: 85px 0;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 35px 0;
    }

    .copyright {
        text-align: left;
    }
}

/* === AJUSTE FINAL DEL HERO === */

.hero-visual {
    transform: translateY(-28px);
}

.visual-card {
    width: min(340px, 72vw);
    height: 340px;
    aspect-ratio: auto;
}

.hero-logo {
    width: 68%;
    max-width: 235px;
}

/* Móvil */
@media (max-width: 700px) {
    .hero {
        padding-top: 35px;
    }

    .hero-visual {
        transform: translateY(-20px);
    }

    .visual-card {
        width: min(280px, 68vw);
        height: 300px;
    }

    .hero-logo {
        width: 68%;
        max-width: 200px;
    }
}


/* === HERO: VERSION COMPACTA Y LIMPIA === */

.hero-visual {
    transform: translateY(-30px);
    margin-bottom: -35px;
}

/* Eliminar círculos decorativos del diseño anterior */
.hero-visual::before,
.hero-visual::after {
    display: none !important;
}

/* Tarjeta realmente más pequeña */
.visual-card {
    width: 220px !important;
    height: 220px !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    border-radius: 26px;
}

/* Logo dentro de la tarjeta */
.hero-logo {
    width: 66% !important;
    max-width: 150px !important;
    height: auto;
}

/* Móvil */
@media (max-width: 700px) {
    .hero {
        padding-top: 15px;
    }

    .hero-visual {
        transform: translateY(-25px);
        margin-bottom: -35px;
    }

    .visual-card {
        width: 220px !important;
        height: 220px !important;
    }

    .hero-logo {
        width: 66% !important;
        max-width: 150px !important;
    }
}


/* === REDES SOCIALES === */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social > span {
    font-weight: 600;
}

.social-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: fit-content;
}

.social-instagram svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.social-instagram svg circle:last-child {
    fill: currentColor;
    stroke: none;
}

.social-instagram:hover {
    opacity: 0.8;
}

/* === REDES SOCIALES DEL FOOTER === */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social > span {
    font-weight: 600;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-decoration: none;
}

.footer-social svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-social svg circle:last-child {
    fill: currentColor;
    stroke: none;
}

.footer-social a:hover {
    opacity: 0.8;
}

/* === POLÍTICA DE PRIVACIDAD === */
.legal-section {
    padding-top: 80px;
    padding-bottom: 100px;
}

.legal-content {
    max-width: 850px;
}

.legal-content h1 {
    margin-bottom: 12px;
}

.legal-updated {
    margin-bottom: 45px;
    opacity: 0.65;
    font-size: 0.95rem;
}

.legal-content h2 {
    margin-top: 42px;
    margin-bottom: 16px;
}

.legal-content p,
.legal-content li {
    line-height: 1.75;
}

.legal-content ul {
    padding-left: 24px;
    margin-bottom: 24px;
}

.legal-content a {
    word-break: break-word;
}
