/* 
 * Premium Vanilla CSS - Facturación SPA
 * Colores modernos, gradientes, glassmorphism y micro-interacciones. 
 */

:root {
    /* Color Palette */
    --primary-color: #0ea5e9;
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --secondary-color: #22d3ee;

    --bg-main: #020B1A;
    --bg-surface: #061327;
    --bg-glass: rgba(6, 19, 39, 0.7);

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Styling */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Shadows */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
}

/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

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

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0284c7 0%, transparent 70%);
    bottom: 20%;
    right: -150px;
}

/* Typography Tools */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.opacity-80 {
    opacity: 0.8;
}

.bg-clip-text {
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.bg-glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-white {
    background: white;
    color: var(--bg-main);
}

.btn-white:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hover-bg-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-base);
    padding: 1rem 0;
    background: transparent;
}


/* Trick: we apply bg to nav directly via css to keep it simple, or make a tiny js class toggle */
.navbar.scrolled-nav {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

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

.logo img {
    height: 40px;
    /* Adjust based on final logo */
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: white;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    /* Account for navbar */
    position: relative;
    background-image: url('portada.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 11, 26, 0.95) 0%, rgba(2, 11, 26, 0.6) 100%);
    z-index: -1;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 99px;
    color: #34d399;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

/* Venta Section */
.venta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.venta-features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.venta-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: var(--transition-base);
}

.venta-feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.venta-feature-card .icon-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.text-success {
    color: #10B981 !important;
}

.venta-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.venta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.venta-price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
}

.venta-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.venta-price .amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.venta-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.venta-features {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.venta-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    line-height: 1.6;
}

.venta-features i {
    color: var(--success);
    margin-top: 0.25rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
}

.info-card .icon-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.cert-card-center {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-surface);
}

.cert-card-center .icon-wrap {
    margin: 0 auto 1.5rem auto;
    width: 64px;
    height: 64px;
    font-size: 2rem;
}

.text-warning {
    color: var(--warning) !important;
}

.font-bold {
    font-weight: 700;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Pricing Grid (Renta) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: none;
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.bg-gradient {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--warning);
    color: #451a03;
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-price {
    margin: 1.5rem 0 2rem 0;
    display: flex;
    align-items: baseline;
}

.plan-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.plan-features {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.popular .plan-features li {
    color: rgba(255, 255, 255, 0.9);
}

.plan-features i {
    margin-top: 0.25rem;
}

.plan-features .ph-check-circle {
    color: var(--success);
}

.popular .plan-features .ph-check-circle {
    color: white;
}

.border-premium {
    border: 1px solid rgba(167, 139, 250, 0.4);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.8));
}

/* CTA Section */
.CTA-section {
    position: relative;
    overflow: hidden;
}

.CTA-container {
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>') center/cover;
    background-color: var(--primary-dark);
    border-radius: var(--radius-xl);
    padding: 5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.custom-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.custom-features i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Float WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-base);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
}

/* Mobile Menu & Responsiveness */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
}

.mobile-menu-content a {
    font-size: 1.5rem;
    font-weight: 600;
}

.overflow-hidden {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

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

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .venta-grid {
        grid-template-columns: 1fr;
    }

    .custom-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}