/* --- VARIABLES GLOBALES --- */
:root {
    --bg-color: #0a0a0a;
    --nav-bg: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-color: #8b5cf6;
    --accent-hover: #7c3aed;
    --border-color: #1f2937;
    --font-family: system-ui, -apple-system, sans-serif;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.brand-text h1 {
    font-size: 1.2rem;
    letter-spacing: 3px;
    line-height: 1.1;
    margin: 0;
}

.brand-text span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* --- BOTONES --- */
.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-outline:hover {
    color: var(--accent-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.btn-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--text-primary);
}

/* --- SECCIÓN HERO --- */
.hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background-color: #111;
    border: 1px dashed #333;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.image-placeholder.tall {
    height: 600px;
}

/* --- UTILIDADES Y SECCIONES --- */
.section {
    padding: 100px 24px;
}

.bg-darker {
    background-color: #050505;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- CARACTERÍSTICAS (GRID) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #111;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- PRECIOS --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background-color: #111;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.premium {
    border-color: var(--accent-color);
    background: linear-gradient(180deg, rgba(139,92,246,0.05) 0%, #111 100%);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 16px 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 48px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 12px;
    color: #ccc;
    font-size: 0.95rem;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 24px;
    background-color: var(--bg-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 16px;
    color: #fff;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* --- PÁGINAS LEGALES --- */
.legal-container {
    max-width: 800px;
    margin: 140px auto 80px;
    padding: 0 24px;
}

.legal-container h1 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.legal-container .last-updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 40px;
    display: inline-block;
}

.legal-container h2 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.legal-container p, 
.legal-container li {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-container ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

/* --- ESTILOS PARA LA PÁGINA DE GUÍA --- */
.guide-content {
    background-color: var(--bg-color);
    padding: 20px 20px 80px 20px;
}

.guide-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #111;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.guide-section {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 30px;
}

.guide-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.guide-section h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.guide-section p {
    color: var(--text-secondary); /* Corregida la variable rota */
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.guide-section ul {
    color: var(--text-secondary); /* Corregida la variable rota */
    line-height: 1.7;
    margin-left: 20px;
}

.guide-section li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.guide-section li strong {
    color: #fff;
}

.guide-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: block;
    object-fit: cover;
}

/* --- RESPONSIVIDAD GENERAL (TABLETS Y MÓVILES) --- */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
    }
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- UNIFICADOS TODOS LOS AJUSTES MÓVILES (Max 768px) --- */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .guide-content {
        padding: 20px 12px 60px;
    }

    .guide-container {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 24px;
        border-radius: 18px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    }

    .guide-section {
        margin-bottom: 30px;
        padding-bottom: 24px;
    }

    .guide-section h2 {
        font-size: 1.5rem;
    }

    .guide-section p,
    .guide-section ul,
    .guide-section li {
        font-size: 1rem;
        line-height: 1.65;
    }

    .guide-section ul {
        margin-left: 16px;
    }

    /* Ajustes Barra de Navegación */
    .nav-container {
        padding: 10px 15px;
    }

    .brand {
        gap: 8px;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .brand-text h1 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .brand-text span {
        font-size: 0.6rem;
    }

    /* Ajustes Hero */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.15;
        margin-top: 15px;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-top: 15px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .hero .btn-primary {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 16px 24px;
    }
}