:root {
    /* Colors */
    --bg-dark: #09090b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --accent-primary: #818cf8;
    --accent-hover: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Spacing */
    --pad-x: 5%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Tailwind-style Utility Classes */
.bg-dark { background-color: var(--bg-dark); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.w-full { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.pad-x { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.pad-y { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pad-lg { padding: 2.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.text-balance { text-wrap: balance; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-24 { margin-bottom: 6rem; }
.m-4 { margin: 1rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1.05rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.5rem; }
.text-3xl { font-size: 2.25rem; }
.text-4xl { font-size: 3rem; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.italic { font-style: italic; }
.leading-relaxed { line-height: 1.7; }

.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }

.grid { display: grid; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.radius-xl { border-radius: 1.5rem; }
.border-t { border-top: 1px solid var(--border-color); }

.opacity-70 { opacity: 0.7; }
.grayscale { filter: grayscale(100%); }
.transition { transition: all 0.3s ease; }
.hover-text-light:hover { color: var(--text-light); }

a { text-decoration: none; color: inherit; }

/* Custom Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #c084fc);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--accent-glow);
}
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.shadow-glow {
    box-shadow: 0 0 20px 0 var(--accent-glow);
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
}

/* Typography Specials */
.hero {
    margin-top: 5rem;
}
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(129, 140, 248, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(129, 140, 248, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.text-gradient {
    background: linear-gradient(to right, #818cf8, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Video Component */
.video-container {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    cursor: pointer;
}
.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(129, 140, 248, 0.3);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}
.video-container:hover .video-thumbnail {
    opacity: 0.6;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
}
.play-btn svg {
    width: 2rem;
    height: 2rem;
    margin-left: 0.25rem;
}
.video-container:hover .play-btn {
    background: var(--accent-primary);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: transparent;
    box-shadow: 0 0 30px var(--accent-primary);
}

/* Logo Cloud */
.logo-cloud {
    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);
}
.brand-logo {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.brand-logo:hover {
    opacity: 1;
}

/* Cards & Grid Items */
.feature-card {
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.hover-up:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(192, 132, 252, 0.2));
    border: 1px solid rgba(129, 140, 248, 0.3);
}

/* Authors */
.avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

/* Final CTA Glow */
.border-glow {
    border: 1px solid rgba(192, 132, 252, 0.3);
}
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.top-glow {
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 300px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
}
.center-glow {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
    :root { --pad-x: 1.5rem; }
    .hero-title { font-size: 2.75rem; }
    .video-section { margin-top: 3rem; }
    .features, .testimonials { margin-top: 4rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .final-cta { padding: 4rem 1.5rem; margin: 1rem; }
    .footer { flex-direction: column; text-align: center; gap: 1.5rem; }
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Pricing Cards */
.pricing-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: #000;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.pricing-card.highlight {
    background: linear-gradient(135deg, #4c1d95, #7e22ce, #c084fc);
    border: 1px solid rgba(192, 132, 252, 0.5);
    box-shadow: 0 0 40px rgba(126, 34, 206, 0.4);
    transform: scale(1.05);
    z-index: 20;
}
.pricing-card.highlight.hover-up:hover {
    transform: scale(1.05) translateY(-12px);
}
@media (max-width: 768px) {
    .pricing-card.highlight {
        transform: scale(1);
    }
    .pricing-card.highlight.hover-up:hover {
        transform: translateY(-12px);
    }
}
.align-baseline { align-items: baseline; }
.pricing-features {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

/* Custom Buttons */
.btn-lime {
    background-color: #a3e635;
    color: #064e3b;
}
.btn-lime:hover {
    background-color: #84cc16;
    box-shadow: 0 10px 25px -5px rgba(163, 230, 53, 0.4);
}
.btn-purple {
    background: linear-gradient(135deg, #4c1d95, #7e22ce, #c084fc);
    color: #ffffff;
}
.btn-purple:hover {
    box-shadow: 0 10px 25px -5px rgba(126, 34, 206, 0.4);
}
.btn-white {
    background-color: #ffffff;
    color: #4c1d95;
}
.btn-white:hover {
    background-color: #f8fafc;
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.4);
}

.highlight-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 50%);
    border-radius: 1.5rem;
    pointer-events: none;
}

/* Infinite Ticker */
.ticker-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scrollTicker 30s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    margin: 0 4rem;
    cursor: pointer;
}

.brand-graphic {
    height: 3rem;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(0.6);
    opacity: 0.8;
    transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.brand-graphic.brand-color {
    filter: none;
    opacity: 0.9;
}

.brand-graphic:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255,255,255,0.4));
    opacity: 1;
    transform: scale(1.1);
}
.brand-graphic.brand-color:hover {
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 3)); }
}

.ticker-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    min-width: 100px;
    z-index: 2;
    pointer-events: none;
}

.ticker-gradient.left {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.ticker-gradient.right {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 3.5rem 2.5rem;
    transform: translateY(30px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-light);
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding-left: 0.5rem;
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.2rem;
}

textarea.form-input {
    resize: none;
    min-height: 100px;
}

/* Responsive Form Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .modal-content {
        padding: 3rem 1.5rem;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }
    .modal-overlay {
        padding: 0;
    }
}

/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
    width: 5px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Terms and Privacy Modal Styles */
.terms-scroll::-webkit-scrollbar,
.privacy-scroll::-webkit-scrollbar {
    width: 6px;
}
.terms-scroll::-webkit-scrollbar-track,
.privacy-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.terms-scroll::-webkit-scrollbar-thumb,
.privacy-scroll::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 10px;
}
.terms-scroll::-webkit-scrollbar-thumb:hover,
.privacy-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.bg-purple\/10 {
    background-color: rgba(168, 85, 247, 0.1);
}

.border-purple {
    border-color: rgba(168, 85, 247, 1);
}

/* Testimonials Carousel (Infinite Loop) */
.testimonials-wrapper {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    max-width: 1280px; /* Acotado al ancho de los paneles superiores */
    margin: 0 auto;
    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);
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-right: 2rem; /* El "gap secreto" para que el -50% sea perfecto */
    animation: scroll-testimonials 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonials-track .testimonial-card {
    flex: 0 0 450px;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .testimonials-wrapper {
        max-width: 100%;
    }
    .testimonials-track .testimonial-card {
        flex: 0 0 320px;
    }
    .testimonials-track {
        gap: 1.5rem;
        padding-right: 1.5rem;
        animation-duration: 30s;
    }
}

/* Business Hours Picker */
.business-hours-picker {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
}

.day-toggle {
    flex: 1;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.day-toggle.active {
    background: var(--accent-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.3);
}

.time-picker-row {
    margin-top: 0.5rem;
}

.time-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-shift-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .days-selector {
        gap: 0.25rem;
    }
    .day-toggle {
        font-size: 0.7rem;
        height: 2.2rem;
    }
    .time-picker-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .add-shift-link {
        width: 100%;
        margin-top: 0.5rem;
    }

}

/* Segmented Control */
.segmented-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.25rem;
    width: 100%;
}

.segment-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.segment-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.segment-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), #c084fc);
    color: white;
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.3);
}

@media (max-width: 480px) {
    .segmented-control {
        flex-direction: column;
    }
    .segment-btn {
        width: 100%;
    }
}
