/* Design System for spot.cl */
:root {
    --primary: #007bff;
    --primary-glow: rgba(0, 123, 255, 0.5);
    --secondary: #6f42c1;
    --accent: #00f2fe;
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(rgba(10, 10, 12, 0.8), rgba(10, 10, 12, 0.6)), url('spot_hero_bg_1777422400658.png');
    background-size: cover;
    background-position: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.4s;
}

nav.scrolled {
    padding: 15px 50px;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hamburger Styles */
#hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

#hamburger span {
    width: 30px;
    height: 2px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

#hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
}

#hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Sections */
section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Grid for Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.price-card {
    padding: 50px 30px;
    text-align: center;
    position: relative;
}

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.price-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
}

.price-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.price-card ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.price-card ul li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 10px;
}

/* Tech Grid & Flicker Animation */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.8;
    transition: 0.3s;
    animation: flicker 4s infinite ease-in-out;
}

.tech-item i {
    font-size: 3.5rem;
    color: var(--text-main);
}

.tech-item span {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tech-item:nth-child(even) {
    animation-delay: 2s;
}

@keyframes flicker {
    0%, 100% { opacity: 0.4; filter: brightness(0.5) grayscale(100%); }
    50% { opacity: 1; filter: brightness(1.2) grayscale(0%); color: var(--primary); }
}

.tech-item:hover {
    opacity: 1;
    filter: brightness(1.5);
    transform: scale(1.1);
    animation-play-state: paused;
}

/* Contact Form Styles */
.contact-container {
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

#contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-field {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.full-width {
    grid-column: span 2;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 1000;
    cursor: pointer;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* Footer */
footer {
    padding: 50px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

@media (max-width: 992px) {
    nav {
        padding: 20px 30px;
    }

    #hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        border-left: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 40px;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-cta {
        width: 80%;
        text-align: center;
    }

    section {
        padding: 80px 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .glass {
        padding: 30px !important;
    }

    #contact-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .contact-container {
        padding: 20px;
        width: 100%;
    }
}
