/* =========================
   LINK UP - PARA COMERCIOS
   Sistema de Diseño
========================= */

/* =========================
   VARIABLES CSS
========================= */
:root {
    /* Colores principales */
    --bg-primary: #0f0f0f;
    --bg-secondary: #111111;
    --bg-alt: #1a1a1a;
    --bg-alt-2: #161616;
    --color-brand: #832E40;
    --gradient-accent: linear-gradient(135deg, #ff914d 0%, #ffde59 100%);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
    --badge-bg: rgba(255, 145, 77, 0.12);
    --badge-text: #ff914d;
    
    /* Tipografía */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Contenedor */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Bordes */
    --border-radius: 12px;
    --border-radius-large: 20px;
    --border-radius-pill: 9999px;
    
    /* Transiciones */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =========================
   TIPOGRAFÍA
========================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
}

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

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    line-height: 1.7;
}

/* =========================
   CONTENEDOR
========================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}

.navbar-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 80px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.btn-nav-cta {
    background: var(--gradient-accent);
    color: #111;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 145, 77, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--card-border);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

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

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.mobile-logo {
    height: 32px;
}

.close-drawer {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.mobile-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.btn-mobile-cta {
    display: block;
    width: 100%;
    background: var(--gradient-accent);
    color: #111;
    padding: 0.875rem;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

/* =========================
   BOTONES
========================= */
.btn-primary {
    display: inline-block;
    background: var(--gradient-accent);
    color: #111;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 145, 77, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: rgba(255, 145, 77, 0.5);
    background: rgba(255, 145, 77, 0.1);
}

.btn-cta-large {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    padding: 1.25rem 3rem;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    border: 2px solid #111111;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    background: #000000;
    border-color: #000000;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* =========================
   BADGE
========================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.badge-center {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 150px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
}

.badge-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.badge-center .badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-wide {
    width: 300px;
}

/* =========================
   HERO
========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #832E40 0%, #AD6394 100%);
}

/* Floating Coupons */
.hero-coupons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-coupon {
    position: absolute;
    opacity: 0;
    animation: floatCoupon 20s infinite;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-coupon svg {
    width: 100%;
    height: auto;
}

/* Coupon Sizes */
.hero-coupon.size-xxl { width: 180px; }
.hero-coupon.size-xl { width: 140px; }
.hero-coupon.size-lg { width: 110px; }
.hero-coupon.size-md { width: 90px; }
.hero-coupon.size-sm { width: 70px; }
.hero-coupon.size-xs { width: 50px; }

/* Float Directions */
.hero-coupon.float-left { left: 5%; }
.hero-coupon.float-center-left { left: 25%; }
.hero-coupon.float-center { left: 50%; transform: translateX(-50%); }
.hero-coupon.float-center-right { left: 75%; }
.hero-coupon.float-right { left: 95%; transform: translateX(-100%); }

@keyframes floatCoupon {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }
    10% {
        opacity: 0.22;
    }
    70% {
        opacity: 0.22;
    }
    92% {
        opacity: 0;
        transform: translateY(10vh) rotate(320deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) rotate(360deg);
    }
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0.95;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
}

.indicator-item svg {
    color: #ffffff;
}

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

/* === Hero Stats Panel === */
.hero-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.hero-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-accent);
    border-radius: 0 3px 3px 0;
}

.hero-stat-card:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.hero-stat-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

/* =========================
   SECTIONS GENERAL
========================= */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* =========================
   PROBLEMA → SOLUCIÓN
========================= */
.problem-solution {
    background: var(--bg-secondary);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.problem-card {
    background: var(--card-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.problem-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.problem-icon {
    margin-bottom: 1rem;
}

.problem-title {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

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

.divider-arrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.arrow-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 145, 77, 0.3), transparent);
}

.arrow-text {
    color: var(--badge-text);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.solution-card {
    background: linear-gradient(135deg, rgba(255, 145, 77, 0.05), rgba(255, 222, 89, 0.05));
    border: 1px solid rgba(255, 145, 77, 0.2);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    text-align: center;
}

.solution-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* =========================
   BENEFICIOS
========================= */
.benefits {
    background: var(--bg-primary);
}

.benefits-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0.5rem var(--container-padding) 1.25rem;
    cursor: grab;
    scrollbar-width: none;
}

.benefits-scroll-wrapper:active {
    cursor: grabbing;
}

.benefits-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.benefits-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    user-select: none;
}

.benefits-grid {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    width: max-content;
}

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(16px);
    text-align: center;
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 145, 77, 0.3);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-title {
    margin-bottom: 0.75rem;
}

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

/* =========================
   CÓMO FUNCIONA
========================= */
.how-it-works {
    background: var(--bg-secondary);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 145, 77, 0.3);
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-title {
    margin-bottom: 0.75rem;
}

.step-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.step-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.step-detail-item {
    font-size: 0.875rem;
    color: var(--badge-text);
    font-weight: 500;
}

.step-cta {
    text-align: center;
    padding: 2rem;
}

.step-cta-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* =========================
   ESTADÍSTICAS
========================= */
.stats {
    background: linear-gradient(135deg, rgba(131, 46, 64, 0.1) 0%, rgba(173, 99, 148, 0.08) 50%, rgba(255, 145, 77, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.stats-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 145, 77, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-large);
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 145, 77, 0.3);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-decimal {
    font-size: 0.6em;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================
   CATEGORÍAS
========================= */
.categories {
    background: var(--bg-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-pill {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-pill);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    backdrop-filter: blur(16px);
}

.category-pill:hover {
    border-color: rgba(255, 145, 77, 0.3);
    background: rgba(255, 145, 77, 0.05);
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.categories-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 2rem;
}

.categories-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* =========================
   TESTIMONIOS
========================= */
.testimonials {
    background: var(--bg-secondary);
}

.testimonials-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0.5rem var(--container-padding) 1.25rem;
    cursor: grab;
    scrollbar-width: none;
}

.testimonials-scroll-wrapper:active {
    cursor: grabbing;
}

.testimonials-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonials-grid {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: max-content;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 145, 77, 0.3);
}

.testimonial-stars {
    color: var(--badge-text);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =========================
   COMPARATIVA
========================= */
.comparison {
    background: var(--bg-primary);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(16px);
}

.comparison-table thead {
    background: linear-gradient(135deg, rgba(255, 145, 77, 0.1), rgba(255, 222, 89, 0.1));
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid var(--card-border);
}

.col-feature {
    text-align: left !important;
    min-width: 250px;
}

.table-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.header-logo {
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-icon {
    color: #10b981;
    font-size: 1.5rem;
}

.header-icon-x {
    color: #ef4444;
    font-size: 1.5rem;
}

.comparison-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-name {
    text-align: left !important;
    color: var(--text-primary);
    font-weight: 500;
}

.check {
    color: #10b981;
    font-size: 1.5rem;
    font-weight: bold;
}

.cross {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: bold;
}

.partial {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.col-linkup {
    background: rgba(255, 145, 77, 0.05);
}

/* =========================
   FAQ
========================= */
.faq {
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(16px);
}

.faq-item:hover {
    border-color: rgba(255, 145, 77, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question-text {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--badge-text);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================
   CTA FINAL
========================= */
.cta-final {
    background: linear-gradient(135deg, #ff914d 0%, #ffde59 100%);
    position: relative;
    padding: 6rem 0;
}

.cta-wave {
    display: none;
}

.cta-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

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

.cta-title {
    color: #111111;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: #333333;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-proof {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.proof-item {
    color: #333333;
    font-weight: 600;
    font-size: 0.95rem;
}

/* =========================
   CHAT WIDGET
========================= */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chat-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(130, 44, 62, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-dark);
    position: relative;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(130, 44, 62, 0.4);
}

.chat-button .close-icon {
    display: none;
}

.chat-button .chat-icon {
    border-radius: 50%;
}

.chat-button.active .chat-icon {
    display: none;
}

.chat-button.active .close-icon {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chat-window.active {
    display: flex;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: #832E40;
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.status-online {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.minimize-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fafb;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #832E40;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-message .message-avatar {
    background: var(--gradient-accent);
}

.message-content {
    flex: 1;
}

.message-content p {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    line-height: 1.5;
    color: #111;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content p {
    background: #832E40;
    color: white;
}

.chat-footer {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    color: #111;
}

#chatInput:focus {
    border-color: #832E40;
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #832E40;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.send-btn:hover {
    background: #6d2433;
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #0a0a0a;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--badge-text);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(255, 145, 77, 0.1);
    border-color: rgba(255, 145, 77, 0.3);
    color: var(--badge-text);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =========================
   ANIMACIONES
========================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

/* --- Desktop: wider than 1024px — full-width grid, no scroll --- */
@media (min-width: 1025px) {
    .benefits-scroll-wrapper {
        overflow: visible;
        max-width: 100%;
        margin: 0;
        padding: 0.5rem 0 1.25rem;
        cursor: default;
    }

    .benefits-scroll-hint {
        display: none;
    }

    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .benefit-card {
        flex: unset;
    }

    .testimonials-scroll-wrapper {
        overflow: visible;
        max-width: 100%;
        margin: 0;
        padding: 0.5rem 0 1.25rem;
        cursor: default;
    }

    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .testimonial-card {
        flex: unset;
    }
}

/* --- Tablet: 1024px --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-stats-panel {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-stat-card {
        flex: 1 1 calc(50% - 0.375rem);
    }

    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile: 768px --- */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-menu {
        display: none;
    }

    .btn-nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile drawer — full-screen overlay */
    .navbar {
        z-index: 9990;
    }

    .mobile-drawer {
        width: 100vw;
        right: -100vw;
        height: 100dvh;
        height: 100vh;
        z-index: 9999;
    }

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

    .mobile-logo {
        height: 80px;
    }

    .mobile-nav-link {
        color: #ffffff;
    }

    .logo-img {
        height: 56px;
    }

    /* Sections general */
    section {
        padding: 3.5rem 0;
    }

    /* Hero */
    .hero {
        padding: 5rem 0 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Content first, stats below */
    .hero-content {
        order: 1;
        text-align: center;
    }

    .hero-visual {
        order: 2;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-indicators {
        justify-content: center;
        gap: 1rem;
    }

    .badge {
        margin-left: auto;
        margin-right: auto;
    }

    /* Stats panel: compact horizontal rows */
    .hero-stats-panel {
        flex-direction: column;
        gap: 0.6rem;
    }

    .hero-stat-card {
        flex: unset;
        width: 100%;
        padding: 0.875rem 1.1rem;
        border-radius: 14px;
        gap: 0.9rem;
    }

    .hero-stat-icon {
        font-size: 1.4rem;
    }

    .hero-stat-value {
        font-size: 1.35rem;
    }

    .hero-stat-label {
        font-size: 0.78rem;
    }

    /* Section headers */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Benefits */
    .benefit-card {
        flex: 0 0 82vw;
        padding: 1.5rem;
    }

    /* Steps */
    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-card {
        padding: 1.5rem;
    }

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

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-pill {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .categories-cta {
        margin-top: 1.5rem;
    }

    .categories-cta .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* Testimonials */
    .testimonial-card {
        flex: 0 0 82vw;
        padding: 1.5rem;
    }

    /* Comparison table */
    .comparison-table-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.875rem 0.5rem;
        font-size: 0.8rem;
    }

    .col-feature {
        min-width: 140px;
    }

    /* FAQ */
    .faq-question {
        font-size: 0.95rem;
        padding: 1.1rem 1rem;
    }

    .faq-answer p {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    /* CTA final */
    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .btn-cta-large {
        width: 100%;
        text-align: center;
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    .cta-proof {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        height: 60px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        margin-top: 1rem;
        justify-content: center;
    }

    /* Problem-solution */
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* --- Small mobile: 480px --- */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Stats: single column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Categories: single column */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Hero stat cards */
    .hero-stat-card {
        padding: 1rem;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .hero-stat-icon {
        font-size: 1.5rem;
    }

    /* Badge */
    .badge-wide {
        width: 90vw;
        max-width: 300px;
    }

    /* Buttons full width */
    .step-cta .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* Comparison table: hide last column */
    .comparison-table th:last-child,
    .comparison-table td:last-child {
        display: none;
    }

    /* CTA title */
    .cta-title {
        font-size: 1.6rem;
    }

    /* Chat */
    .chat-widget {
        bottom: 12px;
        right: 12px;
    }

    .chat-button {
        width: 64px;
        height: 64px;
    }

    .chat-window {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
    }
}
