/*
   CLICYA.ES — CLEAN LIGHT VANGUARD (V7.0)
   Ultra-clean luminous aesthetic with brand-gradient CTAs.
   Mobile-first, WCAG AA compliant.
*/

/* === DESIGN TOKENS === */
:root {
    /* Light Palette */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F0F4F8;

    /* Brand Colors (from logo) */
    --accent-primary: #2196F3;
    --accent-secondary: #6BBF3B;
    --brand-gradient: linear-gradient(135deg, #2196F3, #6BBF3B);
    --brand-gradient-hover: linear-gradient(135deg, #1E88E5, #5CAE2E);
    --brand-gradient-soft: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(107, 191, 59, 0.08));

    /* Typography */
    --text-primary: #1B2D3D;
    --text-secondary: #546E7A;
    --text-muted: #90A4AE;
    --text-bright: #FFFFFF;

    /* Glass (White-on-White) */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-strong: rgba(255, 255, 255, 0.9);
    --glass-blur: blur(16px);
    --border-glass: 1px solid rgba(0, 0, 0, 0.06);
    --border-hover: 1px solid rgba(33, 150, 243, 0.25);

    /* Shadows (Optimized for Performance) */
    --shadow-soft: 0 4px 15px rgba(27, 45, 61, 0.08);
    --shadow-medium: 0 8px 25px rgba(27, 45, 61, 0.1);
    --shadow-elevated: 0 15px 35px rgba(27, 45, 61, 0.12);
    --shadow-card-depth: 0 10px 20px rgba(15, 32, 39, 0.08);
    --shadow-cta: 0 8px 20px rgba(33, 150, 243, 0.25);
    --shadow-cta-hover: 0 12px 30px rgba(33, 150, 243, 0.4);

    /* Cinematic Glow Shadows (Simplified) */
    --shadow-glow-primary: 0 0 30px rgba(33, 150, 243, 0.2);
    --shadow-glow-secondary: 0 0 30px rgba(107, 191, 59, 0.2);
    --shadow-btn-glow: 0 4px 15px rgba(33, 150, 243, 0.3);
    --shadow-btn-glow-hover: 0 8px 25px rgba(33, 150, 243, 0.4);

    /* Card border */
    --border-card: 1px solid rgba(255, 255, 255, 0.8);

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-micro: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE & RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === GLOBAL CONTRAST ENFORCEMENT === */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
}

p,
li {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: var(--accent-primary);
    transition: var(--transition);
}

a:hover {
    color: #1976D2;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.text-center {
    text-align: center;
}

.overflow-hidden {
    overflow: hidden;
}

/* === DECORATIVE BACKGROUND SHAPES === */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    top: -15%;
    right: -15%;
    animation: blob-float 20s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(107, 191, 59, 0.08) 0%, transparent 70%);
    bottom: -15%;
    left: -15%;
    animation: blob-float 25s ease-in-out infinite reverse;
}

@keyframes blob-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active,
.reveal-right.active {
    opacity: 1;
    transform: none;
}

/* GSAP-driven reveals (will be controlled by JS — CSS fallback) */
.gsap-reveal {
    opacity: 0;
    transform: translateY(50px);
}

/* === MOBILE STICKY CTA === */
.mobile-sticky-cta {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: var(--border-glass);
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-cta.show {
    bottom: 0;
}

@media (min-width: 768px) {
    .mobile-sticky-cta {
        display: none;
    }
}

/* === HEADER & NAV === */
.header {
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
}

.header-cta {
    display: none;
}

.desktop-only {
    display: none;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    width: 80%;
}

.mobile-nav-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    display: block;
    padding: 1rem 2rem;
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--accent-primary);
    background: rgba(33, 150, 243, 0.06);
    transform: translateX(5px);
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.mobile-nav-links a:hover::before {
    height: 50%;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* === HERO SECTION === */
.hero {
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    perspective: 1200px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(33, 150, 243, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 50%, rgba(107, 191, 59, 0.04) 0%, transparent 50%);
}

/* Hero scroll-driven cinematic effect — controlled by GSAP */
.hero-scroll-wrapper {
    transform-origin: center center;
    transition: none;
    background-color: var(--bg-primary);
    /* Ensure solid composite layer */
}

.hero-title {
    font-size: clamp(2.2rem, 7vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.15;
    word-break: break-word;
    /* Prevent overflow on vertical mobile */
}

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Removed heavy background-size and animation to prevent scroll lag on large displays */
}

.price-highlight {
    font-size: 1.1em;
    font-weight: 900;
    letter-spacing: -2px;
    display: inline-block;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-scale-only 2.5s infinite alternate;
}

@keyframes pulse-scale-only {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Hero grid — mobile-first (stacked) */
.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    max-height: 300px;
}

.hero-img-3d {
    width: 100%;
    height: auto;
    display: block;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    min-height: 44px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover::before {
    width: 280%;
    height: 280%;
}

.btn-primary {
    background: linear-gradient(135deg, #2196F3 0%, #6BBF3B 50%, #2196F3 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: var(--text-bright);
    font-weight: 700;
    box-shadow: var(--shadow-cta);
    transition: background-position 0.5s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    box-shadow: var(--shadow-btn-glow-hover);
    transform: translateY(-2px);
    color: var(--text-bright);
}

.btn-primary:focus-visible {
    box-shadow: var(--shadow-btn-glow);
}

.glass-btn {
    position: relative;
    overflow: hidden;
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg,
            transparent 40%,
            rgba(255, 255, 255, 0.15) 44%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.15) 56%,
            transparent 60%);
    transform: rotate(45deg);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-btn:hover::after {
    left: 100%;
}

.glass-btn:hover {
    box-shadow: var(--shadow-btn-glow-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.btn-secondary:hover {
    border-color: rgba(33, 150, 243, 0.4);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1), var(--shadow-soft);
    transform: translateY(-3px);
    color: var(--accent-primary);
}

.btn-large {
    padding: 1.15rem 2.4rem;
    font-size: 1.05rem;
    border-radius: 16px;
}

/* === TECH STRIP (Logo carousel) === */
.tech-strip {
    padding: 2.5rem 0;
    overflow: hidden;
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    background: var(--bg-secondary);
}

.tech-carousel-label {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tech-track-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tech-track {
    display: flex;
    gap: 3rem;
    animation: scroll-infinite 30s linear infinite;
    width: max-content;
}

.tech-logo-img {
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(1);
    opacity: 0.35;
    transition: all 0.3s ease;
}

.tech-logo-img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

.tech-logo-img img,
.tech-logo-img svg {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === STATS BAR === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 3rem 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: 20px;
    background: var(--bg-primary);
    border: var(--border-glass);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--brand-gradient-soft);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(33, 150, 243, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.counter-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

/* === BENTO GRID (Features) === */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.bento-item {
    padding: 2.25rem 2rem;
    border-radius: 22px;
    background: var(--bg-primary);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card-depth);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(33, 150, 243, 0.05),
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

@media (hover: hover) {
    .bento-item:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: rgba(33, 150, 243, 0.4);
        box-shadow: var(--shadow-elevated), 0 0 60px rgba(33, 150, 243, 0.12);
    }

    .bento-item:hover::before {
        opacity: 1;
    }
}

.bento-content {
    position: relative;
    z-index: 1;
}

.bento-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.bento-item p {
    color: var(--text-secondary);
}

.bento-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    color: var(--accent-primary);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.bento-icon svg {
    width: 100%;
    height: 100%;
}

.bento-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(33, 150, 243, 0.08);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 3rem;
    border-left: 2px solid rgba(33, 150, 243, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-num {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    transform: translateX(-50%);
    box-shadow: var(--shadow-cta);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.timeline-item:hover .timeline-num {
    transform: translateX(-50%) scale(1.15);
    box-shadow: var(--shadow-cta-hover);
}

.timeline h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === FAQ SECTION === */
.faq-grid {
    max-width: 750px;
    margin: 2rem auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.faq-question:hover {
    color: var(--accent-primary);
    padding-left: 0.5rem;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--accent-primary);
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    background: var(--brand-gradient);
}

.faq-item.active .faq-icon svg {
    transform: rotate(45deg);
    stroke: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === PRICING SECTION === */
.pricing-section-v5 {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

/* === COMPARATIVE TABLE (Servicios) === */
.compare-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-primary);
    border-radius: 20px;
    border: var(--border-card);
    box-shadow: var(--shadow-card-depth);
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    /* Explicitly allow horizontal scroll on mobile */
    position: relative;
}

.compare-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.compare-table th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(33, 150, 243, 0.03);
    font-size: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    /* Stronger separator */
}

/* Row hover logic (only on devices with mouse) */
.compare-table tbody tr {
    transition: background-color 0.3s ease;
}

@media (hover: hover) {
    .compare-table tbody tr:hover {
        background-color: rgba(33, 150, 243, 0.02);
    }
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* Feature column */
.compare-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* Traditional column */
.compare-table td:nth-child(2) {
    color: var(--text-muted);
}

/* Highlight column (Clicya) */
.highlight-col {
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.05) 0%, rgba(107, 191, 59, 0.05) 100%);
    position: relative;
    color: var(--text-primary);
}

th.highlight-col {
    background: var(--brand-gradient);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 20px -10px rgba(33, 150, 243, 0.4);
    border-bottom: none;
}

td.highlight-col {
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-primary);
    border-left: 1px solid rgba(33, 150, 243, 0.1);
    border-right: 1px solid rgba(33, 150, 243, 0.1);
}

/* Round top/bottom corners for highlight column */
.compare-table th.highlight-col {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Pulse animation on highlight values */
.highlight-col-value {
    display: inline-block;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.15em;
    filter: drop-shadow(0 2px 5px rgba(33, 150, 243, 0.2));
}

.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 2rem auto;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 0.3rem;
    max-width: 480px;
    border: var(--border-glass);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.toggle-option {
    flex: 1;
    padding: 0.85rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    text-align: center;
    position: relative;
    z-index: 2;
}

.toggle-option.active {
    color: var(--text-bright);
    background: var(--brand-gradient);
    box-shadow: var(--shadow-cta);
}

.pricing-grid-v5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.pricing-card-v5 {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: var(--border-card);
    box-shadow: var(--shadow-card-depth);
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card-v5:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
}

.pricing-card-v5.featured {
    border: 2px solid rgba(33, 150, 243, 0.25);
    box-shadow: var(--shadow-medium);
}

.featured-badge {
    background: var(--brand-gradient);
    color: white;
    font-size: 0.7rem;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 800;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-cta);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-price {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
    font-weight: 900;
    margin: 0.1rem 0;
    letter-spacing: -2px;
    line-height: 0.85;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
    overflow: hidden;
    transition: var(--transition);
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(33, 150, 243, 0.15));
}

.tier-price span:not(.price-amount) {
    font-size: 0.4em;
    font-weight: 600;
    letter-spacing: 0;
    -webkit-text-fill-color: var(--text-muted);
}

.tier-price--consultar {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    letter-spacing: -1px;
    line-height: 1.1;
    padding: 0.5rem 0;
}

.price-amount {
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.price-amount.updating {
    transform: scale(0.8);
    opacity: 0;
}

.price-suffix {
    font-size: 1rem;
    font-weight: 500;
    -webkit-text-fill-color: var(--text-muted);
    letter-spacing: 0;
}

.pricing-card-v5 .tier-name {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.tier-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.enrollment-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin: 1rem 0 1.5rem;
    padding: 0.85rem 1.2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.js-enrollment {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-primary);
    transition: opacity 0.2s, transform 0.2s;
}

.js-enrollment.updating {
    opacity: 0;
    transform: translateY(-5px);
}

.js-enrollment-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
}

.tier-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tier-features li:last-child {
    border-bottom: none;
}

/* Checkmark SVG icons */
.feature-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    color: var(--accent-primary);
    vertical-align: middle;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item--plus {
    font-weight: 600;
    color: var(--text-primary);
}

/* === COMPARISON TABLE === */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: var(--border-glass);
}

.comparison-table thead th {
    padding: 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.comparison-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.table-check {
    color: var(--accent-secondary);
    font-weight: 700;
}

.table-cross {
    color: var(--text-muted);
}

/* === CONTACT PAGE === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-options-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: var(--bg-primary);
    border: var(--border-card);
    box-shadow: var(--shadow-card-depth);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.4s;
}

.contact-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(33, 150, 243, 0.2);
}

.contact-option-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(33, 150, 243, 0.08);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-option-icon svg {
    width: 22px;
    height: 22px;
}

.contact-option-text h4 {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.contact-option-text p,
.contact-option-text a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-link {
    color: var(--accent-primary);
    font-weight: 600;
}

.contact-link:hover {
    color: #1976D2;
}

/* Contact Form */
.contact-form {
    background: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: var(--border-card);
    box-shadow: var(--shadow-card-depth);
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    margin-top: 1.25rem;
}

.contact-form label:first-of-type {
    margin-top: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    margin-top: 1.5rem;
    width: 100%;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    z-index: 10000;
    transition: var(--transition);
}

/* On mobile, lift the WA button above the sticky CTA bar */
@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 5rem;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Pulse ring */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-ring 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 1rem;
    right: 1rem;
    max-width: 460px;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-elevated);
    z-index: 1001;
    border: var(--border-glass);
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    bottom: 1.5rem;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-banner a {
    color: var(--accent-primary);
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
}

.cookie-actions .btn {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
}

/* === INTERNAL PAGES HERO === */
.internal-hero {
    padding: 6rem 0 2rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.internal-hero-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* === LEGAL PAGE === */
.legal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(33, 150, 243, 0.15);
    color: var(--text-primary);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.legal-content li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.legal-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

.legal-content a {
    color: var(--accent-primary);
    font-weight: 500;
}

/* === FOOTER === */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-secondary);
    border-top: var(--border-glass);
}

.footer-grid-v5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: var(--border-glass);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   MICRO-INTERACTIONS — CRO FEEDBACK LAYER
   ============================================= */

/* Bento cards: icon hover effect */
.bento-item:hover .bento-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.3));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

/* Bento cards: mouse-tracking dual-channel light glow (Simplified) */
.bento-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(107, 191, 59, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.bento-item:hover::after {
    opacity: 1;
}

.bento-item .bento-content {
    position: relative;
    z-index: 2;
}

/* CTA buttons: click feedback */
.btn:active {
    transform: scale(0.96) translateY(0px) !important;
    transition: transform 0.1s ease;
}

.glass-btn:active {
    box-shadow: var(--shadow-btn-glow) !important;
}

/* Featured pricing card: animated border */
.pricing-card-v5.featured {
    animation: featured-border 4s ease-in-out infinite;
}

@keyframes featured-border {

    0%,
    100% {
        border-color: rgba(33, 150, 243, 0.2);
    }

    50% {
        border-color: rgba(33, 150, 243, 0.6);
    }
}

/* Nav links: underline animation */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item.active {
    color: var(--text-primary);
}

/* Smooth image reveal */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.6s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
    opacity: 1;
}

/* Focus states for accessibility */
.btn:focus-visible,
.faq-question:focus-visible,
.nav-item:focus-visible,
.contact-link:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .blob {
        display: none;
    }

    .tech-track {
        animation: none;
    }

    .reveal,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   RESPONSIVE — TABLET+
   ============================================= */
@media (min-width: 768px) {

    .compare-table th,
    .compare-table td {
        padding: 1.5rem 2rem;
        font-size: 1.05rem;
    }

    .compare-table th {
        font-size: 1.15rem;
    }

    .hero-cta-group,
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid-v5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .nav-links {
        display: flex;
    }

    .desktop-only {
        display: block;
    }

    .header-cta {
        display: block;
    }

    .mobile-toggle {
        display: none;
    }
}

/* =============================================
   RESPONSIVE — DESKTOP
   ============================================= */
@media (min-width: 1024px) {
    .section {
        padding: 7rem 0;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
        gap: 4rem;
        text-align: left;
        min-height: min(80vh, 700px);
    }

    .hero-lead {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero-visual {
        max-height: none;
        width: 100%;
    }

    .hero-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-title {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }

    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid-v5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid-v5 {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 5rem;
    }

    .footer-links-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 3rem;
    }

    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stats-bar {
    grid-template-columns: repeat(4, 1fr);
}