:root {
    --primary: #059669;       /* Verde Esmeralda */
    --primary-dark: #047857;  /* Verde Oscuro Hover */
    --accent: #f59e0b;        /* Acento Dorado */
    --dark: #0f172a;          /* Texto principal */
    --light-bg: #f3f4f6;      /* Fondo checkout */
    --card-bg: #ffffff;
    --light: #f8fafc;         /* Fondo landing */
    --gray: #64748b;          /* Textos secundarios */
    --border: #e2e8f0;        /* Bordes suaves */
}

/* Scroll Suave al hacer clic en los links del menú */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER GLOBAL Y LOGO */
header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
}

/* MENÚ DE NAVEGACIÓN EN EL HEADER */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.back-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secure-badge {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* BOTONES CON ANIMACIÓN */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, 
                transform 0.15s ease, 
                box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* HERO SECTION (LANDING) */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    background-color: #d1fae5;
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* SECCIONES Y CONTENEDOR GRID DE 3 COLUMNAS */
.section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* Tarjetas Informativas */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Tarjetas de Precios con Animación Elevada */
.pricing-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.15);
}

.pricing-card.popular:hover {
    box-shadow: 0 20px 25px -5px rgba(5, 150, 105, 0.25);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.price-old {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1.1rem;
}

.price-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0.5rem 0 1.5rem 0;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.75rem;
    color: var(--gray);
    font-size: 0.95rem;
}

/* Badge de Descuento */
.discount-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    background-color: #10b981;
    color: #ffffff;
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* FAQ (LANDING) */
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.2rem;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* CHECKOUT LAYOUT */
.checkout-body {
    background-color: var(--light-bg);
}

.checkout-container {
    max-width: 1000px;
    width: 90%;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

.checkout-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

.checkout-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.checkout-card p.subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* FORMULARIO CHECKOUT */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.form-help {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.4rem;
}

.btn-pay {
    width: 100%;
    background-color: #2b6cb0;
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-pay:hover {
    background-color: #2c5282;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.btn-pay:active {
    transform: scale(0.99);
}

.pay-subtext {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.8rem;
}

/* RESUMEN COMPRA CHECKOUT */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.summary-price {
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-desc {
    color: var(--gray);
    font-size: 0.9rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.price-row.old { color: var(--gray); }
.price-row.discount { color: var(--primary); font-weight: 700; }

.divider-dashed {
    border-bottom: 2px dashed var(--border);
    margin: 1.5rem 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-text {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 1.5rem;
    line-height: 1.4;
}

.legal-text a { color: var(--primary); }

/* FOOTER GLOBAL */
footer {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: auto;
    font-size: 0.9rem;
}

/* --- ELEMENTOS EXTRA DE CHECKOUT --- */

/* Separador con letra "o" */
.divider-or {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.divider-or::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border);
    z-index: 1;
}

.divider-or span {
    position: relative;
    z-index: 2;
    background-color: var(--card-bg);
    padding: 0 0.8rem;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 700;
}

/* Botón Verde de WhatsApp */
.btn-whatsapp {
    width: 100%;
    background-color: #2e7d32; /* Verde WhatsApp */
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: #1b5e20;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-whatsapp:active {
    transform: scale(0.99);
}

.text-center {
    text-align: center;
}

/* Pie del checkout para consultas */
.checkout-footer-help {
    text-align: center;
    margin: 2rem 0 3rem 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.checkout-footer-help a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.checkout-footer-help a:hover {
    text-decoration: underline;
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Ajuste sutil para pantallas de celular */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ADAPTACIÓN A PANTALLAS CHICAS Y CELULARES */
@media (max-width: 900px) {
    .site-logo {
        height: 50px;
    }

    .nav-menu {
        display: none; /* Oculta el menú central en celulares */
    }

    .hero h1 { 
        font-size: 2rem; 
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .pricing-card:hover {
        transform: none;
    }
    
    .checkout-container { 
        grid-template-columns: 1fr; 
    }
}
