:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00f0ff;
    /* Cyan/Neon Blue */
    --accent-glow: rgba(0, 240, 255, 0.4);
    --secondary-text: #a1a1aa;
    --font-main: 'Inter', sans-serif;
    --spacing-container: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom one */
}

html {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
}

/* --- Utilities --- */
a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Vignette & Glow Background --- */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    box-shadow: inset 0 0 100px rgba(0, 240, 255, 0.05);
    /* Subtle cyan tint at edges */
    z-index: 9998;
}

/* --- Custom Cursor --- */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: transform 0.1s ease, width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.cursor-hover {
    width: 50px;
    height: 50px;
    background-color: var(--accent-glow);
    border: none;
}

/* --- Typography & Labels --- */
.label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

h1,
h2,
h3 {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -1px;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

p {
    font-size: 1.125rem;
    color: var(--secondary-text);
    max-width: 60ch;
}

/* --- Sections --- */
section {
    padding: var(--spacing-container) 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle Dividers */
}

/* Hero */
.intro-text strong {
    color: var(--text-color);
}

.cta-group {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--text-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn.primary {
    background: var(--text-color);
    color: black;
}

.btn.primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn.outline {
    background: transparent;
    color: var(--text-color);
}

.btn.outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1;
}

.stat-item h2::after {
    content: '+';
    color: var(--accent-color);
    font-size: 2rem;
    vertical-align: super;
    margin-left: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Video Section */
.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s ease;
}

.video-container:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.play-button {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Services */
/* Services Accordion */
.accordion-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header h3 {
    flex: 1;
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-left: 1rem;
}

.folder-icon {
    font-size: 1.2rem;
    color: var(--secondary-text);
}

.accordion-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

/* Open State */
.accordion-item.open .accordion-toggle {
    transform: rotate(45deg);
    /* Turns + into x */
    color: #ff004c;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1rem;
}

.accordion-item.open .accordion-body {
    max-height: 1000px;
    /* Increased to fit image + text */
    padding-bottom: 1.5rem;
}

.accordion-body p {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin: 0;
    padding-left: 2.2rem;
    /* Indent to align with text */
    max-width: 90%;
}

.service-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 1rem;
    margin-left: 2.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    transition: transform 0.3s ease;
}

.service-image:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

.service-video {
    margin-top: 1rem;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    margin-left: 2.2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.service-video:hover {
    border-color: var(--accent-color);
}

/* Footer CTA */
.footer-cta {
    min-height: 70vh;
    text-align: center;
    align-items: center;
}

.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.neon-btn {
    margin-top: 2rem;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 10px var(--accent-glow);
}

.neon-btn:hover {
    background: var(--accent-color);
    color: black;
    box-shadow: 0 0 50px var(--accent-glow), inset 0 0 20px var(--accent-glow);
}

/* --- Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Glass Carousel --- */
.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;

    /* Center the first and last items!
       Desktop Card: 600px. Center = 50% - 300px.
    */
    padding: 70px calc(50% - 300px);

    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    align-items: center;
    width: 100%;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.glass-card {
    flex: 0 0 600px;
    /* Fixed width */
    max-width: 600px;
    aspect-ratio: 16/9;

    background: rgba(0, 0, 0, 0.6);
    /* Darker bg for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    scroll-snap-align: center;

    /* Default Inactive State */
    opacity: 0.4;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(100%) blur(1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    /* Block clicking inactive videos */
}

/* Active State */
.glass-card.active {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
    filter: grayscale(0%);
    z-index: 10;
    pointer-events: auto;
}

/* Nav Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    background: var(--accent-color);
    color: black;
    box-shadow: 0 0 20px var(--accent-glow);
}

.carousel-nav-btn.prev {
    left: 1rem;
}

.carousel-nav-btn.next {
    right: 1rem;
}

.scroll-hint {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--secondary-text);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .glass-card {
        flex: 0 0 80vw;
        max-width: 80vw;
    }

    .carousel-container {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .carousel-track {
        gap: 1rem;
        padding: 70px 10vw;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .service-image,
    .service-video {
        margin-left: 0;
        width: 100%;
    }
}

/* --- Packages Pricing Table --- */
.packages-section {
    padding-bottom: var(--spacing-container);
}

.pricing-table {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    position: relative;
    overflow-x: auto;
    /* Allow scrolling on small mobile screens */
}

/* Grid Header & Text */
.table-header {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

.package-name {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    letter-spacing: 1px;
}

.feature-name {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--secondary-text);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Feature Checks */
.check,
.empty,
.time-val {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.check {
    color: #39ff14;
    /* Neon Green from image */
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    font-weight: bold;
}

.time-label {
    margin-top: 1rem;
    border-bottom: none;
    font-weight: bold;
    color: var(--text-color);
}

.time-val {
    margin-top: 1rem;
    border-bottom: none;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Mobile Tweak for Table */
@media (max-width: 768px) {
    .pricing-table {
        /* Switch from fixed pixels to flexible fractions to fit bounds */
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2px;
        padding: 0.5rem;
        overflow-x: hidden;
        /* Prevent scroll if possible */
    }

    .table-header {
        font-size: 0.65rem;
        /* Drastically smaller to fit "ALQUIMISTA" */
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .feature-name {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .check,
    .empty,
    .time-val {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .time-val {
        font-size: 0.7rem;
    }

    /* Disable Custom Cursor on Mobile */
    * {
        cursor: auto !important;
    }

    .cursor-follower {
        display: none !important;
    }
}