:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #f8fafc;
    --text: #334155;
    --text-muted: #64748b;
    --radius: 12px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow { max-width: 800px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    height: 85px;
    display: flex;
    align-items: center;
    transition: height 0.3s ease, background-color 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark);
}

.logo-img { height: 45px; width: auto; object-fit: contain; }
.logo-text span { color: var(--primary); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--primary); }

.btn-nav-cta {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-nav-cta:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    position: relative; /* Agregado */
    z-index: 1002;      /* Aumentado para estar por encima de nav-menu (999) y navbar (1000) */
    padding: 5px;       /* Área de clic más amplia */
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
    color: #fff;
}

.hero-video-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 650px;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.hero-features i { color: var(--accent); }

/* Brands Strip */
.brands-strip {
    background: var(--dark);
    color: #fff;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brands-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-align: center;
}

.brands-track {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    font-weight: 700;
    color: #94a3b8;
    font-family: var(--font-heading);
}

/* Sections */
.section { padding: 4rem 0; }
.bg-alt { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark); }

.sub-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}
.sub-tag.cyan { color: var(--accent); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--dark);
    margin-bottom: 1rem;
}

.text-white { color: #fff; }
.header-center { margin-bottom: 2.5rem; text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.align-center { align-items: center; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-lbl { font-size: 0.8rem; color: var(--text-muted); }

.img-block-styled {
    position: relative;
    border-radius: var(--radius);
}

.img-main {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    left: 15px;
    background: #fff;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.floating-badge i { font-size: 1.5rem; color: var(--primary); }

/* Service Cards */
.service-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.highlight-card {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px; right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.card-list li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--dark-surface);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-overlay p {
    font-size: 0.875rem;
    color: var(--accent);
    transform: translateY(10px);
    transition: transform 0.3s ease 0.05s;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p { transform: translateY(0); }

/* Modal Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 75vh;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-caption {
    margin: 15px auto 0;
    text-align: center;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
    line-height: 1;
}

.lightbox-close:hover { color: var(--accent); }

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
}

.step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* FAQ */
.acc-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    transition: border-color 0.3s;
}

.acc-item[open] { border-color: var(--primary); }

.acc-header {
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.acc-header::-webkit-details-marker { display: none; }
.acc-header i { transition: transform 0.3s ease; }
.acc-item[open] .acc-header i { transform: rotate(180deg); }
.acc-content { padding-top: 0.75rem; color: var(--text-muted); }

/* Contact Cards & Map */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark-surface);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s;
}

.contact-card:hover { border-color: var(--accent); }
.contact-card i { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; }

.map-box {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 25px; right: 25px;
    background: #25d366;
    color: #fff;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s;
}

.wa-float:hover { transform: scale(1.1); }

.wa-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.wa-float:hover .wa-tooltip { opacity: 1; }

/* Footer */
.footer {
    background: #090d16;
    color: var(--text-muted);
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    color: #fff;
    margin-left: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.socials a:hover { color: var(--accent); }

/* Animations Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active-view {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries para Responsividad */

/* Tablets */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 85px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
    }

    .img-block-styled {
        margin-bottom: 1.5rem;
    }

    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .socials a { margin: 0 0.5rem; }
}

/* Smartphones */
@media (max-width: 576px) {
    .section { padding: 3rem 0; }

    .grid-3, .process-steps { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }

    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }

    .hero-features { flex-direction: column; gap: 0.75rem; }

    .stats-grid { grid-template-columns: 1fr; }

    .floating-badge {
        position: static;
        margin-top: 1rem;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .wa-tooltip { display: none; }
}