/* Estilos compartidos por index.html y en/index.html */

:root {
    --color-bg: #0b0f19;
    --color-bg-alt: #121826;
    --color-surface: #1a2233;
    --color-primary: #e63946;
    --color-primary-hover: #ff4d5e;
    --color-text: #f4f6fb;
    --color-text-muted: #a7b0c3;
    --color-border: #2a3348;
    --radius: 14px;
    --max-width: 1120px;
    --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    padding: 4px;
    background: #fff;
    border-radius: 10px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    padding: 0.4rem 0.6rem;
    font-size: 1.2rem;
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

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

.lang-switch {
    display: flex;
    gap: 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.2rem;
}

.lang-switch a {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--color-text-muted);
}

.lang-switch a[aria-current="true"] {
    background: var(--color-primary);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-ghost {
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-ghost:hover {
    border-color: var(--color-text-muted);
}

.play-badge img {
    height: 54px;
    width: auto;
    border-radius: 8px;
}

/* Hero */
.hero {
    padding: 4rem 0 3rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 1rem;
}

.hero p.subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin: 0 0 1.75rem;
    max-width: 46ch;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-mockup {
    justify-self: center;
}

.hero-mockup img {
    border-radius: 24px;
    border: 6px solid var(--color-surface);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    max-width: 320px;
}

/* Social proof */
.social-proof {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-alt);
}

.social-proof .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.6rem;
}

.stat span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 0.75rem;
}

.section-heading p {
    color: var(--color-text-muted);
    margin: 0;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.feature-card .icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Video */
.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    max-width: 840px;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Screenshots gallery */
.screenshot-gallery {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.screenshot-gallery img {
    scroll-snap-align: start;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    flex: 0 0 auto;
    width: min(62vw, 260px);
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.1rem 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--color-text-muted);
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    margin: 0.75rem 0 0;
    color: var(--color-text-muted);
}

/* Final CTA */
.final-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--color-surface), var(--color-bg-alt));
    border-radius: var(--radius);
    margin: 0 1.5rem;
    padding: 3rem 1.5rem;
}

.final-cta h2 {
    margin: 0 0 1rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-muted);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.8rem;
}

/* Legal pages */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.legal-content h1 {
    margin-bottom: 0.25rem;
}

.legal-content .updated {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0;
}

.legal-content h2 {
    margin-top: 2.25rem;
    font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 860px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem 1.5rem;
        gap: 1rem;
        display: none;
    }

    .site-header {
        position: relative;
    }

    .main-nav.open {
        display: flex;
    }
}