/* ==========================================================================
   Xelaris - Modern Corporate SaaS Light Design System (Copied from XelarisWeb 4)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-dark-top: #0f172a;
    
    --card-bg: #ffffff;
    --card-hover-border: #2563eb;
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --card-hover-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.12);
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    /* Primary Brand Colors - Royal Blue Theme */
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --secondary-color: #0f172a;
    
    --color-primary: #2563eb;
    --color-secondary: #0f172a;
    --color-text: #1e293b;
    --color-text-dark: #0f172a;
    --color-text-muted: #64748b;
    --color-white: #ffffff;
    
    /* Action & Status Colors */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --info: #0284c7;
    --info-bg: #f0f9ff;
    --warning: #f59e0b;
    --warning-bg: #fffbe6;
    
    /* Dark Store Buttons */
    --store-btn-bg: #0f172a;
    --store-btn-hover: #1e293b;
    
    /* Layout Tokens */
    --topbar-height: 40px;
    --nav-height: 72px;
    --container-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

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

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

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

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
}

p {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

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

.gradient-text {
    color: var(--primary-blue);
    background: none;
    -webkit-text-fill-color: initial;
}

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

/* ==========================================================================
   1. Top Announcement Bar
   ========================================================================== */
.top-bar {
    background-color: var(--bg-dark-top);
    color: #cbd5e1;
    font-size: 0.825rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-badge {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-bar-left a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-link {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.top-bar-link:hover {
    color: #ffffff;
}

.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-socials a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.top-bar-socials a:hover {
    color: #ffffff;
}

.top-bar-phone {
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   2. Main Header & Navigation
   ========================================================================== */
.glass-nav, .main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    height: var(--nav-height);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    gap: 0.65rem;
}

.logo-img {
    height: 38px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.25));
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-icon-box, .logo-icon {
    display: none;
}

.logo-main {
    color: #0f172a;
}

.logo-accent {
    color: var(--primary-blue);
    margin-left: 1px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-link {
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-dropdown-icon {
    font-size: 0.7rem;
    color: #64748b;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-support-link {
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.nav-support-link:hover {
    color: var(--primary-blue);
}

.btn-nav-pill {
    padding: 0.65rem 1.35rem !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary, .btn-primary-blue, .btn-neuro-cta {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-primary-blue::after, .btn-neuro-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(30deg) translateX(-100%);
    animation: liquidLight 4s infinite ease-in-out;
}

@keyframes liquidLight {
    0% { transform: rotate(30deg) translateX(-100%); }
    20% { transform: rotate(30deg) translateX(100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

.btn-primary:hover, .btn-primary-blue:hover, .btn-neuro-cta:hover {
    background-color: var(--primary-blue-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.btn-outline, .btn-outline-blue {
    background-color: transparent;
    border: 1.5px solid #cbd5e1;
    color: #334155;
}

.btn-outline:hover, .btn-outline-blue:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: #eff6ff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0f172a;
    cursor: pointer;
}

/* Mobile Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    padding: 2.5rem 1.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0f172a;
    margin-bottom: 2rem;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.mobile-link {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero-section {
    padding: 4.5rem 0 4rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Giant Animated Typography Background (MotionSites.ai Interactive Parallax Style) */
.hero-watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(6rem, 15.2vw, 17.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(120deg, rgba(226, 232, 240, 0.45) 0%, rgba(186, 230, 253, 0.7) 40%, rgba(14, 165, 233, 0.5) 60%, rgba(226, 232, 240, 0.45) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.85;
    transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
    animation: textShimmer 8s infinite linear, textFloat 6s infinite ease-in-out;
}

@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes textFloat {
    0% { transform: translate(-50%, -55%) translateY(0px) scale(1); }
    50% { transform: translate(-50%, -55%) translateY(-10px) scale(1.02); }
    100% { transform: translate(-50%, -55%) translateY(0px) scale(1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Badges row */
.hero-badges-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
}

.badge-blue-soft {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.badge-green-soft {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.hero-title {
    font-size: 2.9rem;
    letter-spacing: -1.2px;
    margin-bottom: 1.25rem;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.18;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 580px;
}

/* Hero Action Buttons */
.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}

.btn-hero-catalog {
    background-color: var(--primary-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.65rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-hero-catalog:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.btn-hero-demo {
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.65rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-hero-demo:hover {
    border-color: #25d366;
    background-color: #f0fdf4;
    color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.18);
}

.text-email {
    color: #2563eb;
    font-size: 1.2rem;
}

/* Trust items row */
.hero-trust-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.825rem;
    color: #64748b;
    font-weight: 500;
}

/* Hero Right Visual */
.hero-visual {
    position: relative;
}

.suite-mockup-wrapper {
    position: relative;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.hero-dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   4. Stats Section
   ========================================================================== */
.stats-section {
    padding: 2.5rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-box {
    padding: 1rem;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* ==========================================================================
   5. Catalog & Products Grid (Cuadros)
   ========================================================================== */
.projects-section {
    padding: 4.5rem 0;
}

.section-header {
    margin-bottom: 2.5rem;
}

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

.section-title {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* 4-Card Showcase Grid (Exact design from screenshot) */
.suite-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.suite-product-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #eef2f6;
    padding: 1.65rem 1.4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.suite-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
    border-color: #dbeafe;
}

.product-card-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.product-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.icon-blue {
    background-color: #2563eb;
}

.icon-green {
    background-color: #16a34a;
}

.icon-purple {
    background-color: #7c3aed;
}

.icon-orange {
    background-color: #ea580c;
}

.product-card-body {
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.product-card-desc {
    font-size: 0.825rem;
    color: #64748b;
    line-height: 1.5;
}

.product-card-footer {
    margin-top: 1.5rem;
}

.product-card-link {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition-smooth);
}

.product-card-link:hover {
    color: #1d4ed8;
    gap: 0.7rem;
}

@media (max-width: 1024px) {
    .suite-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .suite-showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* Filters */
.filter-wrapper {
    margin-top: 1.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-filter {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #475569;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-filter:hover, .btn-filter.active {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Search Bar */
.search-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-icon {
    color: #94a3b8;
    font-size: 1.1rem;
}

.search-container input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #0f172a;
}

/* Products Cards Grid (Cuadros Estilizados) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.75s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    border-color: #bae6fd;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.project-card-header {
    margin-bottom: 1rem;
}

.project-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.65rem;
}

.badge-saas { background: #eff6ff; color: #2563eb; }
.badge-automation { background: #ecfdf5; color: #059669; }
.badge-extension { background: #fdf2f8; color: #db2777; }
.badge-boilerplate { background: #fff7ed; color: #ea580c; }

.project-title {
    font-size: 1.35rem;
    color: #0f172a;
    line-height: 1.3;
    font-weight: 700;
}

.project-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.project-desc {
    font-size: 0.925rem;
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.tech-tag {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price-label {
    font-size: 0.725rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.btn-buy-now {
    background: var(--primary-blue);
    color: #ffffff;
    font-size: 0.875rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-buy-now:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   6. Features / Benefits Section
   ========================================================================== */
.features-section {
    padding: 4.5rem 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.feature-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: var(--primary-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.925rem;
    color: #64748b;
}

/* ==========================================================================
   7. Checkout & Product Modals (Conservando lógica y clases existentes)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card, .checkout-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    color: #0f172a;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #475569;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Payment Modal Panels */
.payment-tabs {
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--radius-md);
}

.payment-tab {
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.payment-tab.active {
    background: #ffffff;
    color: var(--primary-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
}

.checkout-summary-pill {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.input-icon-wrapper input, .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    background: #ffffff;
    transition: var(--transition-smooth);
}

.input-icon-wrapper input:focus, .form-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Ocultar pasos secundarios del checkout (Processing & Success) hasta que se activen */
.checkout-step-hidden {
    display: none !important;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Hero Showcase Styles & 10/10 Polish (Xelaris PDF & Xelaris Print)
   ========================================================================== */
.hero-section-pdf {
    position: relative;
    padding: 0.4rem 0 1.35rem 0;
    background: radial-gradient(circle at 50% 35%, #dde9f9 0%, #badafa 45%, #9bc8f3 85%, #88beee 100%) !important;
    border-bottom: 1px solid #bfdbfe;
    overflow: hidden;
}

.hero-section-pdf .hero-container.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1080px;
    margin: 0 auto;
}

/* Wondershare-Style Seamless Hero for Xelaris Print, Facturación & Contabilidad */
.hero-section-print-wondershare,
.hero-section-facturacion-wondershare {
    position: relative;
    padding: 2.25rem 0 3.25rem 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 35%, #bae6fd 75%, #a2d2fb 100%) !important;
    border-bottom: 1px solid #bfdbfe;
    overflow: hidden;
}

.hero-section-cont-wondershare {
    position: relative;
    padding: 2.25rem 0 3.25rem 0;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 30%, #fed7aa 70%, #bae6fd 100%) !important;
    border-bottom: 1px solid #fed7aa;
    overflow: hidden;
}

.hero-container-wondershare {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
}

.hero-content-wondershare {
    flex: 1 1 48%;
    max-width: 580px;
    text-align: left;
}

.hero-title-wondershare {
    font-size: 3rem;
    font-weight: 850;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0.75rem 0 1rem 0;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-wondershare {
    font-size: 1.08rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.hero-actions-wondershare {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-ws-primary {
    background: #0284c7;
    color: #ffffff !important;
    font-size: 1.02rem;
    font-weight: 700;
    padding: 0.85rem 1.65rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    border: none;
}

.btn-ws-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.45);
}

.btn-ws-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: #0284c7 !important;
    border: 1.5px solid #0284c7;
    font-size: 1.02rem;
    font-weight: 700;
    padding: 0.82rem 1.65rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.btn-ws-secondary:hover {
    background: #0284c7;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-ws-email {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a !important;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.btn-ws-email:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.hero-platforms-strip {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.platforms-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platforms-icons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.platform-chip {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(186, 224, 253, 0.8);
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hero-visual-wondershare {
    flex: 1 1 52%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img-seamless {
    width: 100%;
    max-width: 680px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.15));
    transition: transform 0.3s ease;
}

.hero-img-seamless:hover {
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .hero-container-wondershare {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-content-wondershare {
        max-width: 100%;
        text-align: center;
    }
    .hero-title-wondershare {
        font-size: 2.3rem;
    }
    .hero-actions-wondershare {
        justify-content: center;
    }
    .platforms-icons {
        justify-content: center;
    }
}

.hero-showcase-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 35px 75px -12px rgba(14, 165, 233, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.hero-showcase-box video, .hero-showcase-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}

.hero-showcase-box .showcase-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem 1.5rem 1.15rem 1.5rem;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    z-index: 10;
}

/* Comparison Table Styles */
.comparison-table-wrap {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
}

.comparison-table th.highlight-col, .comparison-table td.highlight-col {
    background: #f0f9ff;
    color: #0284c7;
    font-weight: 700;
    border-left: 2px solid #bae6fd;
    border-right: 2px solid #bae6fd;
}

/* FAQ Accordion Styles */
.faq-accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-accordion-item:hover {
    border-color: #bae6fd;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.06);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    user-select: none;
}

.faq-answer {
    padding: 0 1.5rem 1.2rem 1.5rem;
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.6;
}

/* ==========================================================================
   8. Comprehensive Responsive System (Móviles & Tablets)
   ========================================================================== */

/* 1. Tablets & Laptops (Max 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
    }
    .hero-title-wondershare {
        font-size: 2.5rem;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
}

/* 2. Tablets & Mobile Navigation (Max 991px) */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 8px;
        background: #f1f5f9;
        color: #0f172a;
        font-size: 1.25rem;
        cursor: pointer;
        transition: var(--transition-smooth);
    }
    .menu-toggle:hover {
        background: #e2e8f0;
    }
    .nav-links {
        display: none !important;
    }
    .btn-outline-blue,
    .btn-nav-desktop-only,
    .nav-support-link {
        display: none !important;
    }
    .nav-container {
        padding: 0 1rem;
    }
    .hero-container-wondershare {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-content-wondershare {
        max-width: 100%;
        text-align: center;
    }
    .hero-title-wondershare {
        font-size: 2.4rem;
    }
    .hero-subtitle-wondershare {
        margin: 0 auto 1.5rem auto;
    }
    .hero-actions-wondershare {
        justify-content: center;
    }
    .hero-platforms-strip {
        align-items: center;
    }
    .platforms-icons {
        justify-content: center;
    }
    .hero-visual-wondershare {
        width: 100%;
    }
    .hero-img-seamless {
        max-width: 520px;
        margin: 0 auto;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* 3. Mobile Phones (Max 768px) */
@media (max-width: 768px) {
    .top-bar {
        display: none !important; /* Libera espacio vertical en celulares */
    }
    .logo {
        font-size: 1.45rem;
    }
    .logo-img {
        height: 32px;
    }
    .hero-section {
        padding: 2.5rem 0 3rem 0;
    }
    .hero-section-pdf,
    .hero-section-print,
    .hero-section-print-wondershare {
        padding: 1.75rem 0 2.5rem 0;
    }
    .hero-title,
    .hero-title-wondershare {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    .hero-subtitle,
    .hero-subtitle-wondershare {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .hero-actions-row,
    .hero-actions-wondershare {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }
    .hero-actions-row .btn,
    .hero-actions-wondershare .btn,
    .hero-actions-row a,
    .hero-actions-wondershare a,
    .hero-actions-row button,
    .hero-actions-wondershare button {
        width: 100% !important;
        justify-content: center;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
    .hero-badges-row {
        gap: 0.4rem;
    }
    .hero-badge-pill {
        font-size: 0.725rem !important;
        padding: 0.25rem 0.65rem !important;
    }
    .hero-trust-strip {
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 16px !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.8rem !important;
    }
    .comparison-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 12px;
    }
    .comparison-table {
        min-width: 620px; /* Permite desplazamiento horizontal táctil suave */
    }
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    .pricing-card {
        padding: 1.5rem !important;
    }
    .modal-card,
    .checkout-card {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1.25rem !important;
        margin: 0.5rem auto;
        border-radius: 16px;
    }
    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 4. Ultra-compact Mobile (Max 480px) */
@media (max-width: 480px) {
    .hero-title-wondershare {
        font-size: 1.75rem !important;
    }
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero-img-seamless {
        max-width: 100%;
    }
    .platforms-icons {
        gap: 0.4rem;
    }
    .platform-chip {
        font-size: 0.75rem;
        padding: 0.25rem 0.55rem;
    }
}
