/* =========================================
   VARIABLES Y RESETEO
   ========================================= */
:root {
    --primary: #0056D2; 
    --primary-dark: #003b95;
    --text-main: #111827;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 96px;

    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: var(--space-lg);
    color: var(--text-main);
}

/* =========================================
   HEADER, NAVEGACIÓN Y LOGO
   ========================================= */
.main-header {
    padding: 5px 0; 
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Agrupa el menú y el botón a la derecha */
.header-right {
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 100px; 
    width: auto;
    display: block;
    margin: 0; 
}

/* Navegación Principal */
.main-nav ul {
    display: flex;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
}

/* Acciones del Header (Botón y Toggle) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-header {
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 86, 210, 0.2);
}

.btn-header:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 210, 0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 5px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding-top: 160px; 
    padding-bottom: var(--space-xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.badge {
    display: inline-block;
    background-color: #E0E7FF;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -2px;
    margin-bottom: var(--space-sm);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: var(--space-md);
    max-width: 550px;
}

/* BOTONES DE TIENDA */
.store-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

.store-link {
    display: inline-block;
    transition: var(--transition);
}

.store-link:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
}

.store-link img {
    height: 50px;
    width: auto;
    display: block;
}

/* PHONE MOCKUP */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 320px;
    margin: 0 auto;
}

.phone-bezel {
    background-color: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    aspect-ratio: 9 / 18.5;
    display: flex;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* =========================================
   SECCIÓN DE PLANES Y PRECIOS (Dark Theme)
   ========================================= */
.pricing {
    background-color: #111424; 
    padding: var(--space-xl) 0;
    color: var(--white);
}

.title-light {
    color: var(--white) !important;
    margin-bottom: var(--space-xs);
}

.pricing-subtitle {
    text-align: center;
    color: #9CA3AF;
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1050px;
    margin: 0 auto;
    align-items: stretch;
}

/* Tarjetas de Precio */
.pricing-card {
    background-color: #1F2336;
    border: 1px solid #374151;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: #4B5563;
    transform: translateY(-5px);
}

/* Tarjeta Anual (Destacada) */
.pricing-card.popular {
    background: linear-gradient(180deg, #241c3d 0%, #1F2336 100%);
    border: 2px solid #a855f7;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Etiquetas de Ahorro */
.badge-ahorro {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-blue {
    background-color: #3B82F6;
    color: white;
}

.badge-purple {
    background-color: #a855f7;
    color: white;
}

/* Cabecera de la tarjeta */
.pricing-header {
    margin-bottom: var(--space-md);
    border-bottom: 1px solid #374151;
    padding-bottom: var(--space-sm);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.pricing-header .desc {
    color: #9CA3AF;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.price span:first-child {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 2px;
}

.price .period {
    font-size: 1rem;
    font-weight: 400;
    color: #9CA3AF;
}

/* Lista de características */
.pricing-features {
    list-style: none;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.95rem;
    color: #D1D5DB;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: #a855f7; 
    font-weight: 900;
    font-size: 1.1rem;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Botones dentro de los precios */
.btn-pricing {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #6D28D9 0%, #a855f7 100%);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition);
    margin-top: auto;
}

.btn-pricing:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Botón principal abajo */
.pricing-action-bottom {
    text-align: center;
    margin-top: var(--space-lg);
}

.btn-pricing-main {
    display: inline-block;
    background: linear-gradient(90deg, #6D28D9 0%, #a855f7 100%);
    color: white;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 15px -3px rgba(109, 40, 217, 0.4);
    transition: var(--transition);
}

.btn-pricing-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 20px -3px rgba(109, 40, 217, 0.5);
}

/* =========================================
   SECCIÓN DE CARACTERÍSTICAS
   ========================================= */
.features {
    padding: var(--space-xl) 0;
    background-color: var(--bg-light); 
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: 32px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.feature-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-purple { background-color: #F5F3FF; }
.card-purple h3 { color: #6D28D9; }

.card-green { background-color: #ECFDF5; }
.card-green h3 { color: #047857; }

.card-pink { background-color: #FFF1F2; }
.card-pink h3 { color: #BE123C; }

.card-yellow { background-color: #FFFBEB; }
.card-yellow h3 { color: #B45309; }

/* =========================================
   SECCIÓN DE SOPORTE
   ========================================= */
.support-section {
    padding: 160px 0 var(--space-xl);
    background-color: var(--bg-light);
    min-height: 80vh;
}

.support-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    align-items: flex-start;
}

.support-info h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    letter-spacing: -1px;
}

.support-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.method {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #E5E7EB;
}

.method-icon {
    font-size: 1.8rem;
}

.method h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.method p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Estilos del Formulario */
.support-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #E5E7EB;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-md);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    background-color: #F9FAFB;
    transition: var(--transition);
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Nunito', sans-serif;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 86, 210, 0.2);
}

/* Actualización visual sutil para los enlaces del footer */
.footer-sub a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-sub a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    padding: var(--space-lg) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #E5E7EB;
    background-color: var(--white);
}

.footer-sub {
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

/* =========================================
   RESPONSIVE DESIGN (Móviles y Tablets)
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    /* Ocultamos el botón azul en móvil para ahorrar espacio */
    .header-actions .btn-header {
        display: none; 
    }
    
    /* Mostramos el icono de hamburguesa */
    .mobile-toggle {
        display: block;
    }

    /* Estilos del menú desplegable para celular */
    .main-nav {
        display: none; /* Oculto por defecto */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: var(--space-md) 0;
        border-top: 1px solid #E5E7EB;
    }

    /* Clase activa que agregará JavaScript */
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .main-nav a {
        font-size: 1.1rem;
        display: block;
        padding: 5px 20px;
    }

    .hero {
        padding-top: calc(var(--space-xl) + 60px); 
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .hero-content { margin: 0 auto; }
    .hero h1 { font-size: 2.5rem; margin-top: var(--space-xs); }
    .hero p { margin: 0 auto var(--space-md); }
    
    .store-buttons { justify-content: center; }
    .hero-image { grid-row: 2; }
    .phone-mockup { width: 280px; }

    /* Ajuste para las tarjetas de características en móvil */
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 24px;
    }

    /* Ajuste para la sección de Precios en móvil */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: var(--space-lg);
    }

    .pricing-card.popular {
        transform: scale(1); /* Quitamos el zoom en celular */
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .logo img { height: 80px; } 
    
    .hero { padding-top: 130px; } 
    .hero h1 { font-size: 2.1rem; }
    .store-link img { height: 44px; }
    .section-title { font-size: 1.8rem; }
    .btn-pricing-main { padding: 14px 24px; font-size: 1rem; } 
}

/* Responsive para Soporte */
@media (max-width: 768px) {
    .support-wrapper {
        grid-template-columns: 1fr;
    }
    .support-form-container {
        padding: 25px;
    }
}

