* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gallery-item {
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-2xl);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-6);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-revolutionary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: var(--color-light);
}

.preloader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-6);
    animation: float 2s ease-in-out infinite;
}

.preloader-text {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-light);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-4) 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-light);
}

.navbar.scrolled .navbar-logo {
    color: var(--color-dark);
}

.navbar-logo img {
    width: 50px;
    height: 50px;
}

.navbar-number {
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--color-secondary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.navbar-menu a {
    color: var(--color-light);
    font-weight: 500;
    font-size: var(--text-lg);
    position: relative;
    padding: var(--space-2) 0;
}

.navbar.scrolled .navbar-menu a {
    color: var(--color-dark);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-revolutionary);
    transition: width var(--transition-base);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-light);
    transition: all var(--transition-base);
}

.navbar.scrolled .navbar-toggle span {
    background: var(--color-dark);
}

.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 12, 0.92);
    z-index: var(--z-modal);
    padding: var(--space-6);
    max-width: 100vw;
    overflow-x: hidden;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-content {
    position: relative;
    width: min(1100px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-6);
    display: grid;
    gap: var(--space-6);
    max-height: calc(100vh - 2 * var(--space-6));
    overflow: auto;
    max-width: 100vw;
}

.gallery-lightbox-media {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 240px;
    max-height: 70vh;
    width: 100%;
}

.gallery-lightbox-media img {
    max-height: 70vh;
    max-width: 100%;
    width: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.gallery-lightbox-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-btn {
    border: none;
    background: var(--gradient-revolutionary);
    color: var(--color-light);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-lightbox-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.gallery-lightbox-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(0, 0, 0, 0.12);
    border: none;
    color: var(--color-dark);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-lightbox-counter {
    font-weight: 600;
    color: var(--color-dark-secondary);
}

.gallery-lightbox-speed {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: rgba(220, 0, 0, 0.08);
    color: var(--color-dark);
    font-weight: 600;
}

.gallery-lightbox-speed input[type="range"] {
    width: 140px;
}

.gallery-lightbox-download {
    background: var(--color-dark);
    color: var(--color-light);
    text-decoration: none;
}

@media (max-width: 640px) {
    .gallery-lightbox {
        padding: var(--space-4);
    }

    .gallery-lightbox-content {
        padding: var(--space-4);
        gap: var(--space-4);
        max-height: calc(100vh - 2 * var(--space-4));
        width: 100%;
    }

    .gallery-lightbox-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
        width: 100%;
        justify-items: stretch;
    }

    .gallery-lightbox-btn {
        width: 100%;
        justify-content: center;
    }

    .gallery-lightbox-controls .gallery-lightbox-speed,
    .gallery-lightbox-controls .gallery-lightbox-counter,
    .gallery-lightbox-controls .gallery-lightbox-download {
        grid-column: span 2;
        justify-content: center;
        width: 100%;
    }

    .gallery-lightbox-controls .gallery-lightbox-speed {
        justify-content: space-between;
    }

    .gallery-lightbox-speed input[type="range"] {
        width: 100%;
    }

    .gallery-lightbox-media img {
        max-height: 45vh;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-light);
    max-width: 900px;
    padding: var(--space-8);
}

.hero-number {
    font-size: var(--text-7xl);
    font-weight: 900;
    color: var(--color-secondary);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--space-4);
    animation: glow 2s ease-in-out infinite;
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 900;
    margin-bottom: var(--space-6);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-2xl);
    font-weight: 300;
    margin-bottom: var(--space-8);
    opacity: 0.95;
}

.hero-typed {
    min-height: 60px;
    font-size: var(--text-xl);
    font-style: italic;
    margin-bottom: var(--space-8);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
}

.hero-scroll i {
    font-size: var(--text-3xl);
    color: var(--color-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-light);
    color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--color-primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-light);
}

.btn-secondary:hover {
    background: var(--color-light);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-gradient {
    background: var(--gradient-revolutionary);
    color: var(--color-light);
    box-shadow: var(--shadow-glow);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-xl);
}

/* Section */
.section {
    padding: var(--space-24) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title h2 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
}

.section-title .subtitle {
    font-size: var(--text-xl);
    color: var(--color-gray);
    font-weight: 300;
}

.section-title .number {
    display: inline-block;
    font-size: var(--text-6xl);
    font-weight: 900;
    background: var(--gradient-revolutionary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

/* Cards */
.card {
    background: var(--color-light);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--gradient-revolutionary);
    color: var(--color-light);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
}

.card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.card-text {
    color: var(--color-gray);
    line-height: 1.8;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Floating Action Buttons */
.fab {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--color-light);
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.fab:hover {
    transform: scale(1.1);
}

.fab-whatsapp {
    bottom: var(--space-8);
    right: var(--space-8);
    background: #25D366;
}

.fab-chatbot {
    bottom: calc(var(--space-8) + 80px);
    right: var(--space-8);
    background: var(--gradient-revolutionary);
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-section h3 {
    margin-bottom: var(--space-6);
    color: var(--color-secondary);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--color-light);
    font-size: var(--text-xl);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--gradient-revolutionary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray);
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
        --text-7xl: 3.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --text-4xl: 1.875rem;
        --text-5xl: 2rem;
        --text-6xl: 2.5rem;
        --text-7xl: 3rem;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-6);
        transition: left var(--transition-base);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-menu a {
        color: var(--color-light) !important;
        font-size: var(--text-2xl);
    }

    .navbar-toggle {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}