/* ─── BASE & RESET ─────────────────────────────────────────────────────────── */
svg.lucide { width: 1em; height: 1em; display: inline-block; }

body {
    background-color: #FFFFFF;
    color: #0F172A;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease;
}
html.dark body { background-color: #0A0A0A; color: #FFFFFF; }

/* Dark mode: hide structural borders between sections */
html.dark nav#navbar {
    border-bottom-color: transparent !important;
}
html.dark footer {
    border-top-color: transparent !important;
}
html.dark section,
html.dark header {
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
}
/* Keep dropdown and component borders visible in dark mode */
html.dark nav#navbar [role="menu"] > div {
    border-color: rgba(255,255,255,0.08) !important;
}

::-webkit-scrollbar { width: 14px; background: #F1F5F9; }
.dark ::-webkit-scrollbar { background: #050505; }
::-webkit-scrollbar-thumb { background-color: #FF2D2D; border-radius: 10px; border: 3px solid #F1F5F9; }
.dark ::-webkit-scrollbar-thumb { border: 3px solid #050505; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────────── */
.text-huge {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: linear-gradient(180deg, #000 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dark .gradient-text {
    background: linear-gradient(180deg, #FFF 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── CARDS ──────────────────────────────────────────────────────────────────── */
.solid-card {
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.dark .solid-card {
    background: #0A0A0A;
    border-color: rgba(255, 255, 255, 0.08);
}
.solid-card:hover { border-color: #FF2D2D; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn-primary {
    background: #FF2D2D !important;
    color: white !important;
    border: 1px solid #FF2D2D !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover {
    background: #E02525 !important;
    color: white !important;
    border-color: #E02525 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 45, 45, 0.35) !important;
}
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.4) !important; }
.btn-primary:active { transform: translateY(0) scale(0.98) !important; box-shadow: none !important; }

/* ─── MAGNETIC BUTTONS ─── */
.magnetic {
    will-change: transform;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.magnetic:hover {
    transform: translateY(-2px) !important;
}
.magnetic:active {
    transform: translateY(0) scale(0.97) !important;
}

/* ─── MARQUEE ────────────────────────────────────────────────────────────────── */
.marquee-container {
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content {
    display: flex;
    flex-shrink: 0;
    min-width: max-content;
    align-items: center;
}

.client-logo { height: 40px; width: auto; object-fit: contain; transition: all 0.3s ease; }
@media (min-width: 1024px) { .client-logo { height: 50px; } }
.client-logo:hover { transform: scale(1.05); }
.client-logo.logo-cliente { height: 55px; }
@media (min-width: 1024px) { .client-logo.logo-cliente { height: 75px; } }

html:not(.dark) .client-logo { filter: none; opacity: 0.75; }
html:not(.dark) .client-logo:hover { opacity: 1; }
html:not(.dark) .client-logo.highlight { opacity: 1 !important; }
html:not(.dark) .client-logo.logo-cliente { opacity: 1; }
.dark .client-logo { filter: brightness(0) invert(1) opacity(0.6); }
.dark .client-logo:hover { filter: brightness(0) invert(1) opacity(1); }
.dark .client-logo.highlight { filter: brightness(0) invert(1) opacity(1) !important; }
.dark .client-logo.logo-cliente { filter: none; opacity: 0.8; }
.dark .client-logo.logo-cliente:hover { filter: none; opacity: 1; }

/* ─── TESTIMONIALS 3D ──────────────────────────────────────────────────────── */
.testimonial-container {
    perspective: 1500px;
    overflow: hidden;
    display: flex;
    width: 100%;
    padding: 40px 0;
    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);
    cursor: pointer;
}
.testimonial-wrapper-3d {
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-5deg) rotateZ(2deg);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: max-content;
    display: flex;
}
.testimonial-container:hover .testimonial-wrapper-3d {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.02);
}
.testimonial-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-flat 50s linear infinite;
}
.testimonial-container:hover .testimonial-track { animation-play-state: paused; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────────────── */
@keyframes scroll-flat {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}
@keyframes scanline {
    0%   { transform: translateY(-10px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(60px); opacity: 0; }
}
/* Type animation cursor (JS handles the text, CSS just blinks the cursor) */
.type-animation::after {
    content: '|';
    animation: blink-cursor 1s step-end infinite;
    color: #FF2D2D;
}
@keyframes blink-cursor { 50% { opacity: 0; } }

/* ─── FAQ GLASS EFFECT ────────────────────────────────────────────────────── */
.glass {
    background: rgba(248,250,252,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.08);
    transition: background 0.2s ease;
}
.dark .glass {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.07);
}
.glass:hover { border-color: rgba(255,45,45,0.4); }

/* ─── SCROLL STORYTELLING DOTS ─────────────────────────────────────────────── */
.indicator-dot.active {
    border-color: #FF2D2D !important;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 45, 45, 0.4);
}
.indicator-dot.active .inner-dot {
    background: #FF2D2D !important;
    transform: scale(1.5);
}

/* ─── GSAP PINS ──────────────────────────────────────────────────────────────── */
.pin-spacer { margin: 0 !important; padding: 0 !important; }

/* ─── FORM INPUTS ─────────────────────────────────────────────────────────────── */
.lw-input {
    width: 100%;
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
    color: #0F172A;
}
.dark .lw-input {
    background: #1A1A1A;
    border-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}
.lw-input::placeholder { color: #94A3B8; }
.dark .lw-input::placeholder { color: #52525B; }
.lw-input:focus {
    border-color: #FF2D2D;
    box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.15);
}
.lw-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.lw-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    margin-bottom: 6px;
    padding-left: 4px;
}
.dark .lw-label { color: #A1A1AA; }

/* ─── FAQ ACCORDION ─────────────────────────────────────────────────────────── */
details.lw-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-weight: 600;
    color: #0F172A;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.2s ease;
    user-select: none;
}
.dark details.lw-faq summary {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.08);
}
details.lw-faq summary::-webkit-details-marker { display: none; }
details.lw-faq summary .faq-icon { transition: transform 0.3s ease; flex-shrink: 0; }
details.lw-faq[open] summary .faq-icon { transform: rotate(180deg); }
details.lw-faq[open] summary { color: #FF2D2D; }

.lw-faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
details.lw-faq[open] .lw-faq-body { grid-template-rows: 1fr; }
.lw-faq-body-inner {
    overflow: hidden;
    padding: 0 24px;
}
details.lw-faq[open] .lw-faq-body-inner { padding-bottom: 20px; padding-top: 4px; }

/* ─── PRICING TOGGLE ─────────────────────────────────────────────────────────── */
.pricing-toggle-wrap {
    position: relative;
    display: inline-flex;
    background: #F1F5F9;
    border-radius: 999px;
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.dark .pricing-toggle-wrap {
    background: #111;
    border-color: rgba(255, 255, 255, 0.08);
}
#pricing-toggle-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: 100px;
    background: #0F172A;
    border-radius: 999px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.dark #pricing-toggle-bg { background: #FFFFFF; }
.pricing-toggle-btn {
    position: relative;
    z-index: 1;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.25s ease;
    border: none;
    background: transparent;
}

/* ─── SECTION REVEAL ─────────────────────────────────────────────────────────── */
.section-reveal { opacity: 1; }
.section-reveal.gsap-hidden { opacity: 0; transform: translateY(20px); }

/* ─── SKELETON LOADING ─────────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}
.dark .skeleton {
    background: linear-gradient(90deg, #1A1A1A 25%, #222 50%, #1A1A1A 75%);
    background-size: 200% 100%;
}
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── CONTENT TYPOGRAPHY (Blog posts, Legal pages) ────────────────────────── */
.lw-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    letter-spacing: -0.02em;
}
.dark .lw-content h2 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.06);
}
.lw-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.dark .lw-content h3 { color: #e2e8f0; }

.lw-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.25rem;
}
.dark .lw-content p { color: #a1a1aa; }

.lw-content ul, .lw-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.lw-content ul { list-style: none; }
.lw-content ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}
.dark .lw-content ul li { color: #a1a1aa; }
.lw-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF2D2D;
}
.lw-content ol li {
    margin-bottom: 0.6rem;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}
.dark .lw-content ol li { color: #a1a1aa; }

.lw-content strong {
    color: #0f172a;
    font-weight: 700;
}
.dark .lw-content strong { color: #fff; }

.lw-content a {
    color: #FF2D2D;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.lw-content a:hover { border-bottom-color: #FF2D2D; }

.lw-content blockquote {
    border-left: 4px solid #FF2D2D;
    background: rgba(255, 45, 45, 0.03);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: normal;
}
.dark .lw-content blockquote { background: rgba(255, 45, 45, 0.05); }
.lw-content blockquote p { margin-bottom: 0; }

.lw-content img {
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lw-content hr {
    border: none;
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 2rem 0;
}
.dark .lw-content hr { background: rgba(255,255,255,0.06); }

/* First paragraph after h1 — slightly larger */
.lw-content > p:first-child,
.lw-content > p:first-of-type {
    font-size: 17px;
    line-height: 1.7;
    color: #334155;
}
.dark .lw-content > p:first-child,
.dark .lw-content > p:first-of-type { color: #94a3b8; }

/* ─── ADMIN BAR OFFSET ─────────────────────────────────────────────────────────── */
.admin-bar #navbar { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #navbar { top: 46px; }
}
