/* ==========================================================================
   CAPMENU Design System - Modern SaaS Landing Page
   ========================================================================== */

/* --- CSS Variables / Design Tokens (Light Mode = default) --- */
:root {
    --color-primary: #D97C0B;
    --color-primary-hover: #C06A00;
    --color-primary-light: #FFF3E0;
    --bg-dark: #0A0A0A;
    --bg-dark-elevated: #141414;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --text-primary: #111111;
    --text-secondary: #6B7280;
    --text-on-dark: #FFFFFF;
    --text-muted-dark: #9CA3AF;
    --border-light: #E5E7EB;
    --border-dark: #2A2A2A;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --hover-scale-subtle: 1.02;
    --hover-scale-img: 1.03;
    --float-duration: 5s;
    --pulse-duration: 2.5s;
    --stagger-base: 0.1s;
    --max-width: 1200px;
}

/* --- Dark Mode Overrides --- */
[data-theme="dark"] {
    --bg-light: #111111;
    --bg-white: #1A1A1A;
    --text-primary: #F0F0F0;
    --text-secondary: #9CA3AF;
    --border-light: #2A2A2A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
    --color-primary-light: #2A1E0D;
}

/* --- Light Mode: Hero, Navbar, CTA adapt to light theme --- */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #FEFCF8 0%, #FFF3E0 50%, #F0E6D6 100%);
}

[data-theme="light"] .hero-content h1 {
    color: var(--text-primary);
}

[data-theme="light"] .hero-content p {
    color: var(--text-secondary);
}

[data-theme="light"] .hero-cta .cta-note {
    color: var(--text-secondary);
}

/* Light navbar: gradient fade so nav text never clashes with hero */
[data-theme="light"] .navbar {
    background: linear-gradient(to bottom, rgba(254, 252, 248, 0.97) 0%, rgba(254, 252, 248, 0.85) 60%, rgba(254, 252, 248, 0) 100%);
}

[data-theme="light"] .nav-links li a {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .nav-links li a:hover {
    color: var(--color-primary);
}

[data-theme="light"] .nav-icon-btn {
    color: var(--text-secondary);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .nav-icon-btn:hover {
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hamburger span {
    background: var(--text-primary);
}

[data-theme="light"] .navbar-solid {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

[data-theme="light"] .navbar-solid .nav-links a {
    color: var(--text-primary);
}

[data-theme="light"] .navbar-solid .nav-links a:hover {
    color: var(--color-primary);
}

[data-theme="light"] .navbar-solid .nav-icon-btn {
    color: var(--text-primary);
    border-color: rgba(0,0,0,0.12);
}

[data-theme="light"] .navbar-solid .hamburger span {
    background: var(--text-primary);
}

[data-theme="light"] .cta-final {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF3E0 50%, #FAFAFA 100%);
}

[data-theme="light"] .cta-final h2 {
    color: var(--text-primary);
}

[data-theme="light"] .cta-final p {
    color: var(--text-secondary);
}

[data-theme="light"] .cta-final::before {
    background: radial-gradient(circle, rgba(217,124,11,0.12), transparent 70%);
}

[data-theme="light"] .hero-image img {
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.12));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

/* Waitlist section adapts to light mode */
[data-theme="light"] .waitlist {
    background: var(--color-primary-light);
}

[data-theme="light"] .waitlist-text h2 {
    color: var(--text-primary);
}

[data-theme="light"] .waitlist-text p {
    color: var(--text-secondary);
}

[data-theme="light"] .waitlist-form input[type="email"] {
    background: var(--bg-white);
    border-color: var(--border-light);
    color: var(--text-primary);
}

[data-theme="light"] .waitlist-form input[type="email"]::placeholder {
    color: var(--text-secondary);
}

[data-theme="dark"] .social-proof {
    border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .feature-media img {
    background: #000;
}

[data-theme="dark"] .toggle-slider {
    background: #333;
}

[data-theme="dark"] .pricing-card.popular {
    box-shadow: 0 8px 30px rgba(217,124,11,0.2);
}

[data-theme="dark"] .perfil-menu {
    background: #1A1A1A;
}

[data-theme="dark"] .perfil-menu a {
    color: #F0F0F0;
}

[data-theme="dark"] .perfil-menu a:hover {
    background: #222;
}

[data-theme="dark"] .form-container {
    background-color: #1A1A1A;
    border-color: #2A2A2A;
}

[data-theme="dark"] .form-container input {
    background: #111;
    border-color: #2A2A2A;
    color: #F0F0F0;
}

[data-theme="dark"] .form-container label {
    color: #F0F0F0;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition), color var(--transition);
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* --- Utility --- */
.section-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    outline: none;
}

/* Focus ring for keyboard navigation (accessibility) */
.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    box-shadow: 0 2px 8px rgba(217, 124, 11, 0.25);
}

.btn:hover {
    transform: scale(var(--hover-scale-subtle));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    background: #E8910F;
    transform: translateY(-2px) scale(var(--hover-scale-subtle));
    box-shadow: 0 6px 24px rgba(217, 124, 11, 0.45),
                0 0 20px rgba(217, 124, 11, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(217, 124, 11, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 12px 26px;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px) scale(var(--hover-scale-subtle));
    box-shadow: 0 6px 24px rgba(217, 124, 11, 0.35);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--text-on-dark);
    padding: 12px 20px;
    border-radius: var(--radius-md);
}

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

.btn-lg {
    font-size: 18px;
    padding: 16px 36px;
    border-radius: var(--radius-md);
}

/* Light mode button adjustments */
[data-theme="light"] .btn-secondary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

[data-theme="light"] .btn-secondary:hover {
    color: #fff;
}

[data-theme="light"] .btn-ghost {
    color: var(--text-primary);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(0,0,0,0.05);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 60%, transparent 100%);
}

.navbar-solid {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links li a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: transform var(--transition), color var(--transition);
    display: inline-block;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition);
}

.nav-links li a:hover::after {
    transform: scaleX(1);
}

.nav-links li a:hover {
    transform: translateY(-2px);
}

/* Navbar CTA - refined sizing */
.nav-cta .btn-primary {
    padding: 10px 22px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(217, 124, 11, 0.3);
}

.nav-cta .btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(217, 124, 11, 0.5);
}

/* Navbar utility buttons (theme + lang) */
.nav-utils {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.nav-icon-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-muted-dark);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition);
    flex-shrink: 0;
}

.nav-icon-btn:hover {
    color: var(--text-on-dark);
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}

.nav-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-on-dark);
    transition: all var(--transition);
    border-radius: 2px;
}

/* Profile dropdown (keep for logged-in users) */
.perfil-container {
    position: relative;
    display: inline-block;
}

.perfil-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--border-dark);
    color: var(--text-on-dark);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfil-menu {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 180px;
    z-index: 1001;
}

.perfil-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: background var(--transition);
}

.perfil-menu a:hover {
    background: var(--bg-light);
}

/* ==========================================================================
   HERO SECTION (DARK - always dark regardless of theme)
   ========================================================================== */

.hero {
    background: var(--bg-dark);
    padding: 80px 0 60px;
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(28px, 4vw + 1rem, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-on-dark);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content h1 .text-gradient {
    background: linear-gradient(135deg, var(--color-primary), #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted-dark);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.hero-cta .btn-primary {
    font-size: 18px;
    padding: 16px 36px;
}

.hero-cta .cta-note {
    font-size: 14px;
    color: var(--text-muted-dark);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 60px rgba(217,124,11,0.15));
}

/* ==========================================================================
   SOCIAL PROOF BAR
   ========================================================================== */

.social-proof {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 32px 0;
    transition: background-color var(--transition);
}

.social-proof-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   HOW IT WORKS / STEPS
   ========================================================================== */

.how-it-works {
    background: var(--bg-light);
    padding: 60px 0;
    transition: background-color var(--transition);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(26px, 3vw + 0.5rem, 40px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

.step-card img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    background: var(--bg-white);
    padding: 60px 0;
    transition: background-color var(--transition);
}

.feature-row {
    max-width: var(--max-width);
    margin: 0 auto 48px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse .feature-text {
    order: 2;
}

.feature-row.reverse .feature-media {
    order: 1;
}

.feature-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.feature-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-media {
    display: flex;
    justify-content: center;
}

.feature-media img {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-lg);
    background: var(--bg-dark);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-media img:hover {
    transform: scale(var(--hover-scale-img));
    box-shadow: var(--shadow-xl);
}

/* Template stack for plantillas feature */
.template-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: clamp(200px, 25vw, 320px);
    margin: 0 auto;
}

.template-stack img {
    position: absolute;
    width: 60%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition);
    background: var(--bg-white);
    padding: 0;
}

.template-stack img:nth-child(1) {
    top: 0;
    left: 0;
    z-index: 3;
}

.template-stack img:nth-child(2) {
    top: 30px;
    left: 20%;
    z-index: 2;
}

.template-stack img:nth-child(3) {
    top: 60px;
    left: 40%;
    z-index: 1;
}

.template-stack:hover img:nth-child(1) {
    transform: rotate(-5deg) scale(1.02);
}

.template-stack:hover img:nth-child(2) {
    transform: translateX(-10px) scale(1.02);
}

.template-stack:hover img:nth-child(3) {
    transform: rotate(5deg) scale(1.02);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.pricing-section {
    background: var(--bg-light);
    padding: 60px 0;
    transition: background-color var(--transition);
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
}

.billing-toggle span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.billing-toggle span.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-light);
    border-radius: 14px;
    transition: background var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--bg-white);
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.save-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Pricing Cards */
.pricing-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* Enterprise card */
.pricing-card.enterprise {
    border-color: var(--border-dark);
    background: var(--bg-dark-elevated);
    color: var(--text-on-dark);
}

.pricing-card.enterprise .check {
    color: var(--color-primary);
}

.pricing-card.enterprise li {
    color: var(--text-muted-dark);
}

.pricing-card.enterprise h3 {
    color: var(--text-on-dark);
}

.pricing-card.enterprise .price-custom {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.pricing-card.enterprise .price-custom span {
    display: none;
}

.pricing-card.enterprise .price-period {
    color: var(--text-muted-dark);
}

.pricing-card.enterprise .enterprise-intro {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-on-dark);
    margin: 16px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card.enterprise .btn-secondary {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pricing-card.enterprise .btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: all var(--transition), border-color var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.pricing-card.popular:hover {
    border-color: var(--color-primary);
}

.pricing-card.enterprise:hover {
    border-color: var(--color-primary);
}

.pricing-card.popular {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

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

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trial-badge {
    display: inline-block;
    background: #10B981;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.plan-trial-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    text-align: center;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.pricing-card .price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-card .price-period {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pricing-card ul {
    margin-bottom: 32px;
}

.pricing-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li .check {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.pricing-card:hover ul li .check {
    animation: checkPulse 0.6s ease-in-out;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    background: var(--bg-white);
    padding: 60px 0;
    transition: background-color var(--transition);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    gap: 16px;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform var(--transition);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 1px;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform var(--transition), opacity var(--transition);
}

.faq-item.faq-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1),
                opacity var(--transition) ease;
    opacity: 0;
}

.faq-answer p {
    padding: 0 0 24px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    transform: translateY(-4px);
    transition: transform var(--transition);
}

.faq-item.faq-open .faq-answer {
    max-height: 600px;
    opacity: 1;
}

.faq-item.faq-open .faq-answer p {
    transform: translateY(0);
}

/* ==========================================================================
   CTA FINAL (DARK - always dark)
   ========================================================================== */

.cta-final {
    background: var(--bg-dark);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217,124,11,0.08), transparent 70%);
    pointer-events: none;
}

.cta-final-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.cta-final h2 {
    font-size: clamp(26px, 3.5vw + 0.5rem, 44px);
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 16px;
}

.cta-final p {
    font-size: 18px;
    color: var(--text-muted-dark);
    margin-bottom: 24px;
}

.cta-final .btn-primary {
    font-size: clamp(16px, 1.2vw, 18px);
    padding: 18px clamp(24px, 4vw, 48px);
}

/* ==========================================================================
   FOOTER (DARK - always dark)
   ========================================================================== */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding: 48px 0 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo img {
    height: 32px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 15px;
    color: var(--text-muted-dark);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 15px;
    color: var(--text-muted-dark);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--text-on-dark);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted-dark);
}

.footer-bottom a {
    color: var(--text-muted-dark);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--text-on-dark);
}

/* ==========================================================================
   WAITLIST SECTION (always dark)
   ========================================================================== */

.waitlist {
    background: var(--bg-dark-elevated);
    padding: 48px 0;
}

.waitlist-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.waitlist-text h2 {
    font-size: 32px;
    color: var(--text-on-dark);
    margin-bottom: 8px;
}

.waitlist-text p {
    font-size: 16px;
    color: var(--text-muted-dark);
}

.waitlist-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.waitlist-form input[type="email"] {
    padding: 14px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    color: var(--text-on-dark);
    width: 100%;
    max-width: 300px;
    min-width: 200px;
    outline: none;
    transition: border-color var(--transition);
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--text-muted-dark);
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--color-primary);
}

.waitlist-form button {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(217, 124, 11, 0.25);
}

.waitlist-form button:hover {
    background: #E8910F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 124, 11, 0.45);
}

.waitlist-form button:active {
    transform: translateY(0);
}

.waitlist-form button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* SweetAlert2 overrides */
.mi-boton-wait {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
}

.mi-alerta {
    border: 1px solid var(--border-dark) !important;
    border-radius: var(--radius-md) !important;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================================================
   FORM STYLES (Login/Register - keep compatibility)
   ========================================================================== */

.form-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
    text-align: left;
    margin: 120px auto 40px;
    transition: background-color var(--transition), border-color var(--transition);
}

.form-container h3 {
    color: var(--color-primary);
    margin-bottom: 24px;
    text-align: center;
    font-size: 24px;
}

.form-container label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.form-container input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-light);
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color var(--transition), background var(--transition);
}

.form-container input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.form-container button {
    background-color: var(--color-primary);
    color: #000;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: background var(--transition);
}

.form-container button:hover {
    background-color: var(--color-primary-hover);
}

.links {
    margin-top: 16px;
    text-align: center;
}

.links a {
    display: block;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}

.links a:hover {
    text-decoration: underline;
}

.container {
    display: block;
    padding: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.containerc {
    display: block;
    padding: 20px;
    text-align: center;
}

.container-fluid h3 {
    color: var(--text-primary);
}

.container-fluid input[type="password"] {
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
}

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

@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right var(--transition);
        z-index: 999;
        box-shadow: -4px 0 30px rgba(0,0,0,0.3);
    }

    [data-theme="light"] .nav-links {
        background: var(--bg-white);
        box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    }

    [data-theme="light"] .nav-links li a {
        color: var(--text-primary);
    }

    .nav-open .nav-links {
        right: 0;
    }

    .nav-links li a {
        font-size: 18px;
        padding: 14px 0;
        display: block;
    }

    .nav-cta {
        margin-top: 16px;
    }

    .nav-cta .btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 16px;
    }

    .nav-open .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-open .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-open .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

    .nav-open .nav-overlay {
        display: block;
    }

    .nav-utils {
        position: absolute;
        top: 16px;
        right: 60px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }

    .social-proof-inner {
        gap: 32px;
    }

    .stat-number {
        font-size: 32px;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 36px;
    }

    .feature-row.reverse .feature-text {
        order: 1;
    }

    .feature-row.reverse .feature-media {
        order: 2;
    }

    .feature-text h3 {
        font-size: 26px;
    }

    .template-stack {
        height: 220px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.popular {
        transform: none;
    }

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

    .pricing-card .price {
        font-size: 40px;
    }

    .faq-question {
        font-size: 16px;
    }

    .cta-final h2 {
        font-size: 30px;
    }

    .waitlist-inner {
        flex-direction: column;
        text-align: center;
    }

    .waitlist-form {
        flex-direction: column;
        width: 100%;
    }

    .waitlist-form input[type="email"] {
        width: 100%;
    }

    .waitlist-form button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .social-proof-inner {
        flex-direction: column;
        gap: 24px;
    }

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

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

    .hero-content h1 {
        font-size: 30px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .feature-row {
        gap: 32px;
    }

    .hero-content h1 {
        font-size: 44px;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 56px;
    }
}

@media (min-width: 1280px) {
    .section-wrapper {
        padding: 0 40px;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* --- Skip-to-content link --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    background: var(--color-primary);
    color: #000;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 16px;
}

/* --- Focus-visible outlines on interactive elements --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.toggle-switch:focus-visible,
.faq-question:focus-visible,
.nav-icon-btn:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Remove default outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   MICRO-ANIMATIONS
   ========================================================================== */

/* --- Hero fade-in-up with stagger --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-fade-in.stagger-1 {
    animation-delay: 0.1s;
}

.hero-fade-in.stagger-2 {
    animation-delay: 0.3s;
}

.hero-fade-in.stagger-3 {
    animation-delay: 0.5s;
}

/* --- Check mark pulse on pricing card hover --- */
@keyframes checkPulse {
    0% {
        transform: scale(1);
        color: var(--color-primary);
    }
    50% {
        transform: scale(1.3);
        color: #F59E0B;
    }
    100% {
        transform: scale(1);
        color: var(--color-primary);
    }
}

/* --- Step card stagger animation delays --- */
.step-card.animate-on-scroll:nth-child(1) {
    transition-delay: calc(var(--stagger-base) * 0);
}

.step-card.animate-on-scroll:nth-child(2) {
    transition-delay: calc(var(--stagger-base) * 1);
}

.step-card.animate-on-scroll:nth-child(3) {
    transition-delay: calc(var(--stagger-base) * 2);
}

.step-card.animate-on-scroll:nth-child(4) {
    transition-delay: calc(var(--stagger-base) * 3);
}

.step-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Stat number count-up placeholder --- */
.stat-number[data-count] {
    display: inline-block;
    min-width: 2ch;
}

.stat-number.counted {
    transition: transform 0.3s ease, text-shadow 0.6s ease;
    text-shadow: 0 0 12px rgba(217, 124, 11, 0.3);
}

@keyframes statGlow {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(217, 124, 11, 0);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 16px rgba(217, 124, 11, 0.4);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 12px rgba(217, 124, 11, 0.3);
    }
}

.stat-number.counted {
    animation: statGlow 0.8s ease-out forwards;
}

/* --- Pricing card hover: refined lift + shadow --- */
.pricing-card {
    will-change: transform, box-shadow;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 16px 50px rgba(217, 124, 11, 0.25);
}

/* --- CTA final button pulse --- */
@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 124, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(217, 124, 11, 0);
    }
}

.cta-final .btn-primary {
    animation: ctaPulse var(--pulse-duration) ease-in-out infinite;
}

/* --- Gradient text shimmer animation --- */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-content h1 .text-gradient {
    background: linear-gradient(135deg, var(--color-primary), #F59E0B, var(--color-primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

/* --- Hero image subtle floating animation --- */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-image img {
    animation: heroFloat var(--float-duration) ease-in-out infinite;
}

/* --- Navbar link underline in mobile menu: disable pseudo for CTA --- */
.nav-cta a::after {
    display: none;
}

/* --- Template stack float animation --- */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.template-stack img:nth-child(1) {
    animation: gentleFloat 4s ease-in-out infinite;
}

.template-stack img:nth-child(2) {
    animation: gentleFloat 4s ease-in-out 0.5s infinite;
}

.template-stack img:nth-child(3) {
    animation: gentleFloat 4s ease-in-out 1s infinite;
}

.template-stack:hover img:nth-child(1) {
    animation: none;
    transform: rotate(-5deg) scale(1.02);
}

.template-stack:hover img:nth-child(2) {
    animation: none;
    transform: translateX(-10px) scale(1.02);
}

.template-stack:hover img:nth-child(3) {
    animation: none;
    transform: rotate(5deg) scale(1.02);
}

/* ==========================================================================
   REDUCED MOTION PREFERENCE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-fade-in {
        opacity: 1;
        animation: none;
    }

    .hero-image img {
        animation: none !important;
    }

    .template-stack img {
        animation: none !important;
    }

    .cta-final .btn-primary {
        animation: none;
    }

    .hero-content h1 .text-gradient {
        animation: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .stat-number.counted {
        animation: none;
        text-shadow: none;
    }

    .pricing-card:hover ul li .check {
        animation: none;
    }

    .nav-links li a::after {
        transition: none;
    }

    .btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none !important;
    }

    .feature-media img:hover {
        transform: none !important;
    }

    .faq-answer {
        transition: none;
        opacity: 1;
    }

    .faq-answer p {
        transform: none;
        transition: none;
    }

    .step-card.animate-on-scroll {
        transition-delay: 0s !important;
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   5-TIER PRICING GRID
   ========================================================================== */

/* Override 3-column grid with 5-column for new pricing */
.pricing-grid.pricing-grid-5 {
    grid-template-columns: repeat(5, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1400px;
}

/* Compact padding for 5-card layout */
.pricing-grid-5 .pricing-card {
    padding: 32px 20px;
}

/* Pro card (popular) slightly larger in 5-grid */
.pricing-grid-5 .pricing-card.popular {
    transform: scale(1.04);
    z-index: 2;
}

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

/* Free plan special styling */
.pricing-card .price.price-free {
    color: var(--color-primary);
}

.pricing-card .price.price-free .price-symbol {
    font-size: 28px;
}

/* Enterprise custom text styling */
.pricing-card.enterprise .price.price-custom .price-amount {
    font-size: 28px;
}

/* Disabled features (dash items) */
.pricing-card ul li .dash {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.5;
}

.pricing-card ul li .feature-disabled {
    opacity: 0.5;
}

/* Enterprise "From" prefix */
.pricing-card .price .price-from {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-right: 4px;
}

.pricing-card.enterprise .price .price-from {
    color: var(--text-muted-dark);
}

/* Price inner elements */
.pricing-card .price .price-symbol {
    font-size: inherit;
    font-weight: inherit;
}

.pricing-card .price .price-amount {
    font-size: inherit;
    font-weight: inherit;
}

.pricing-card .price .price-period-suffix {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-card.enterprise .price .price-period-suffix {
    color: var(--text-muted-dark);
}

/* ==========================================================================
   CURRENCY SELECTOR
   ========================================================================== */

.currency-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.currency-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--border-light);
    border-radius: 24px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 40px;
}

.currency-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.currency-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.currency-btn .currency-flag {
    font-size: 16px;
    line-height: 1;
}

/* Dark mode currency buttons */
[data-theme="dark"] .currency-btn {
    border-color: var(--border-dark);
    background: var(--bg-dark-elevated);
    color: var(--text-muted-dark);
}

[data-theme="dark"] .currency-btn:hover {
    border-color: var(--color-primary);
    background: rgba(217, 124, 11, 0.15);
    color: var(--color-primary);
}

[data-theme="dark"] .currency-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ==========================================================================
   FAIR USE FOOTNOTE
   ========================================================================== */

.pricing-fair-use {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 24px;
    text-align: center;
}

.pricing-fair-use p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: 0.8;
}

[data-theme="dark"] .pricing-fair-use p {
    color: var(--text-muted-dark);
}

/* ==========================================================================
   CUSTOM CURSOR (non-touch devices only)
   ========================================================================== */

@media (hover: hover) {
    body {
        cursor: url('../imagenes/cursor-fork.svg') 3 8, auto;
    }

    a,
    button,
    [role="button"],
    .pricing-card,
    .toggle-switch,
    .currency-btn,
    .faq-question {
        cursor: url('../imagenes/cursor-fork-pointer.svg') 16 2, pointer;
    }
}

/* ==========================================================================
   PRICING - RESPONSIVE (5-COLUMN OVERRIDES)
   ========================================================================== */

/* Large tablet / small desktop: 3 columns */
@media (max-width: 1300px) and (min-width: 901px) {
    .pricing-grid.pricing-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
        gap: 20px;
    }

    .pricing-grid-5 .pricing-card.popular {
        transform: none;
    }

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

/* Tablet: 2 columns */
@media (max-width: 900px) and (min-width: 769px) {
    .pricing-grid.pricing-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        gap: 24px;
    }

    .pricing-grid-5 .pricing-card.popular {
        transform: none;
    }

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

/* Mobile: single column stacked */
@media (max-width: 768px) {
    .pricing-grid.pricing-grid-5 {
        grid-template-columns: 1fr;
        max-width: min(420px, 100%);
        gap: 24px;
    }

    .pricing-grid-5 .pricing-card {
        padding: 32px 24px;
    }

    .pricing-grid-5 .pricing-card.popular {
        transform: none;
    }

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

    .pricing-grid-5 .pricing-card .price {
        font-size: 42px;
    }

    /* Larger touch targets for mobile */
    .currency-btn {
        min-height: 48px;
        padding: 10px 20px;
        font-size: 15px;
    }

    .billing-toggle {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pricing-card .btn {
        min-height: 48px;
        font-size: 16px;
    }

    .pricing-card ul li {
        padding: 12px 0;
        font-size: 14px;
    }

    .currency-selector {
        gap: 6px;
    }

    .pricing-fair-use {
        margin-top: 32px;
    }

    .pricing-fair-use p {
        font-size: 11px;
    }
}

/* ==========================================================================
   DESIGN POLISH - Depth & Atmosphere
   ========================================================================== */

/* Warm ambient glow behind hero image */
.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(217,124,11,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-image {
    position: relative;
}

.hero-image img {
    position: relative;
    z-index: 1;
}

/* Subtle noise texture on dark sections for depth */
.hero::after,
.cta-final::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
}

.hero > *,
.cta-final > * {
    position: relative;
    z-index: 1;
}

/* Enhanced popular pricing card glow */
.pricing-card.popular::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(217,124,11,0.15), rgba(245,158,11,0.08));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}

.pricing-card.popular:hover::before {
    opacity: 1;
}

/* Smooth gradient line under section headers */
.section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-primary), rgba(217,124,11,0.3));
}

/* Warm hover glow for CTA buttons */
.hero-cta .btn-primary:hover,
.cta-final .btn-primary:hover {
    box-shadow: 0 8px 32px rgba(217,124,11,0.35), 0 2px 8px rgba(217,124,11,0.2);
}

/* Feature images subtle lift on hover */
.feature-media img {
    transition: transform var(--transition), filter var(--transition);
}

.feature-media:hover img {
    transform: scale(1.02);
    filter: drop-shadow(0 16px 48px rgba(217,124,11,0.12));
}

/* Step cards - warm border glow on hover */
.step-card:hover {
    border-color: rgba(217,124,11,0.2);
}

/* FAQ hover accent */
.faq-item:hover .faq-question {
    color: var(--color-primary);
}

/* ==========================================================================
   CHAT WIDGET (migrated from inline styles)
   ========================================================================== */
.gc-trigger {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background: #D97C0B;
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(217, 124, 11, 0.4);
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .gc-trigger:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 28px rgba(217, 124, 11, 0.5);
    }
}

.gc-panel {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9999;
    width: min(380px, calc(100vw - 40px));
    max-height: min(520px, 70vh);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid #E5E7EB;
    font-family: Inter, system-ui, sans-serif;
    flex-direction: column;
}

.gc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #D97C0B, #C06A00);
    flex-shrink: 0;
}

.gc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gc-avatar img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.gc-header-info {
    flex: 1;
    min-width: 0;
}

.gc-header-info p {
    margin: 0;
}

.gc-header-info p:first-child {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.gc-header-info p:last-child {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.gc-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 150px;
    max-height: clamp(200px, 40vh, 340px);
    scroll-behavior: smooth;
    background: #fff;
}

.gc-input-area {
    padding: 12px;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
    flex-shrink: 0;
}

.gc-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

#gc-input {
    flex: 1;
    resize: none;
    border-radius: 10px;
    border: 1px solid #D1D5DB;
    background: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-family: Inter, system-ui, sans-serif;
    color: #111;
    outline: none;
    max-height: 80px;
    min-height: 36px;
    line-height: 1.4;
}

#gc-input:focus {
    border-color: #D97C0B;
    box-shadow: 0 0 0 2px rgba(217, 124, 11, 0.15);
}

.gc-send {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #D97C0B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

@media (max-width: 480px) {
    .gc-panel {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 80px;
        max-height: 70vh;
    }
    .gc-trigger {
        right: 12px;
    }
}

/* ==========================================================================
   SMALL MOBILE (<375px) - Galaxy Fold, iPhone SE 1st gen
   ========================================================================== */
@media (max-width: 374px) {
    .nav-links {
        width: 100%;
    }

    .hero-cta .btn-primary {
        padding: 14px 20px;
        font-size: 15px;
    }

    .step-card {
        padding: 24px 16px;
    }

    .pricing-grid-5 .pricing-card {
        padding: 24px 16px;
    }

    .waitlist-form input[type="email"] {
        min-width: 0;
        width: 100%;
    }

    .waitlist-form {
        flex-direction: column;
    }
}

/* Waitlist input focus glow */
.waitlist-form input:focus {
    box-shadow: 0 0 0 3px rgba(217,124,11,0.15);
}
