/* ==========================================================================
   1. VARIABLES DE CSS (Paleta original - 3 Colores del Logo)
   ========================================================================== */
:root {
    --bg-color: #0a0812;       
    --bg-secondary: #131021;   
    --brand-purple: #7b2cbf;   
    --brand-pink: #d90429;     
    --brand-orange: #ffb703;   

    --text-primary: #ffffff;   
    --text-secondary: #a2a4b0; 

    --accent-color: var(--brand-purple); 
    --accent-hover: #5a189a;   
    
    --gradient-fire: linear-gradient(135deg, var(--brand-orange), var(--brand-pink), var(--brand-purple));
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
}

/* ==========================================================================
   2. RESET DE ESTILOS Y BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* Títulos Globales */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.text-gradient {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. BOTONES
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-gradient {
    background: var(--gradient-fire);
    color: var(--text-primary);
    border: none;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--brand-purple);
    background: rgba(123, 44, 191, 0.1);
    transform: translateY(-3px);
}

/* ==========================================================================
   4. ENCABEZADO / HEADER (Glassmorphic)
   ========================================================================== */
.main-header {
    width: 100%;
    background-color: rgba(10, 8, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.3rem;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(123, 44, 191, 0.4));
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--brand-orange);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-content {
    margin-top: 74px;
}

/* ==========================================================================
   5. SECCIÓN HERO (BIENVENIDA)
   ========================================================================== */
.hero-section {
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: radial-gradient(circle at 85% 30%, rgba(123, 44, 191, 0.18) 0%, transparent 55%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 620px;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-rocket {
    max-width: 440px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(123, 44, 191, 0.4));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ==========================================================================
   6. SECCIÓN CARACTERÍSTICAS
   ========================================================================== */
.features-section {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 44, 191, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

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

/* ==========================================================================
   7. SECCIÓN PRECIOS (Optimizada para 4 columnas)
   ========================================================================== */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    /* Reducido el tamaño mínimo a 260px para que las 4 tarjetas quepan perfectas en pantallas de escritorio */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    align-items: stretch; /* Hace que todas las tarjetas tengan exactamente la misma altura */
}

.price-card {
    background-color: var(--bg-secondary);
    padding: 40px 25px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el botón al fondo si los textos varían */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

/* Estilo destacado para el plan más popular */
.price-card.popular {
    border: 2px solid var(--brand-purple);
    box-shadow: 0 15px 35px rgba(123, 44, 191, 0.15);
    background-image: linear-gradient(rgba(19, 16, 33, 0.95), rgba(19, 16, 33, 0.95)), var(--gradient-fire);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-fire);
    color: var(--text-primary);
    padding: 6px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.price span {
    font-size: 1.6rem;
    font-weight: 600;
    vertical-align: super;
}

.price small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-features {
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1; /* Permite que el listado tome el espacio necesario de forma uniforme */
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-features li::before {
    content: "✓";
    color: var(--brand-orange);
    font-weight: bold;
    margin-right: 8px;
}

.price-card .btn {
    width: 100%;
    padding: 12px 15px;
}

/* ==========================================================================
   8. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.main-footer {
    background-color: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info {
    max-width: 350px;
}

.footer-info .logo {
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: #616473;
    font-size: 0.85rem;
}

/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIVO MÓVIL)
   ========================================================================== */
@media (max-width: 968px) {
    .main-nav {
        display: none; 
    }
    
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    
    .floating-rocket {
        max-width: 300px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}