:root {
    --primary-gradient: radial-gradient(circle at 50% 50%, #1a233a 0%, #0d1017 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-green: #2de2a1;
    --accent-blue: #4f86ff;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-gradient);
    overflow-x: hidden;
    overflow-y: auto;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(45, 226, 161, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(79, 134, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.map-overlay {
    display: none;
    /* The map is already in the requested image */
}

.main-container {
    width: 95%;
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    padding: 40px 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    margin: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: visible;
    min-height: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transform: translateX(10px);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--accent-green);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-white);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 5;
    text-align: left;
}

.hero-columns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1.2;
    position: relative;
    z-index: 100;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: floatText 6s ease-in-out infinite;
}

@keyframes floatText {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(45, 226, 161, 0.3));
}

.hero-description {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 100%; /* Allow more space */
    letter-spacing: 0.3px;
    font-weight: 300;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
    overflow: visible;
}

.hero-description .line {
    display: block;
    white-space: nowrap; /* Force 3 lines */
}

.hero-btns {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.btn-demo {
    background: var(--accent-green);
    color: #0d1017;
    padding: 15px 44px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 40px rgba(45, 226, 161, 0.3);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 15px 40px rgba(45, 226, 161, 0.3); }
    50% { box-shadow: 0 15px 60px rgba(45, 226, 161, 0.6); }
    100% { box-shadow: 0 15px 40px rgba(45, 226, 161, 0.3); }
}

.btn-demo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(45, 226, 161, 0.5);
    background: #45fbc0;
}

.hero-visual {
    flex: 1.5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 0;
    margin-bottom: 0; /* Flush with bottom */
    position: relative;
    z-index: 1000;
    align-self: flex-end;
    transform: translate(-20px, 30px); /* Moved down by 30px */
}

.image-wrapper {
    position: relative;
    width: 280%; /* Increased from 200% */
    transform: scale(2.8); /* Increased from 2.0 */
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 50px 100px rgba(0, 0, 0, 0.3));
    animation: floatImage 9s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero,
.section,
.footer-bottom {
    display: none;
    /* Hide everything by default */
    padding: 40px 0;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
    overflow: visible;
    /* Ensure content can pop out of section */
}

.hero.active {
    display: flex;
}

.section.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 40px;
    text-align: center;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--accent-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(45, 226, 161, 0.05);
    border-color: var(--accent-green);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(45, 226, 161, 0.5);
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.feature-highlight {
    margin-top: 50px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 40px;
    transition: all 0.4s ease;
}

.feature-highlight:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.highlight-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.highlight-content .feature-icon {
    font-size: 60px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
}

.highlight-text h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #fff;
}

.highlight-text p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 800px;
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.price-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    width: 320px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card.featured {
    background: rgba(45, 226, 161, 0.03);
    border: 1px solid var(--accent-green);
    box-shadow: 0 20px 60px rgba(45, 226, 161, 0.1);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: #0d1017;
    padding: 6px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    margin: 30px 0;
    color: white;
}

.price span {
    font-size: 18px;
    opacity: 0.6;
}

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

.price-card li {
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Contact Form */
.contact-form {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

input,
textarea {
    width: 100%;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #4a4aff;
}

/* Footer */
.footer-bottom {
    padding: 40px 0;
    text-align: center;
    opacity: 0.6;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--primary-gradient);
    padding: 50px;
    border-radius: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.close {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.7;
}

.close:hover {
    opacity: 1;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
    .main-container {
        padding: 40px 30px;
        border-radius: 40px;
        margin: auto;
    }

    .header {
        margin-bottom: 30px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        transform: none;
    }

    .logo-text {
        font-size: 28px;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(13, 16, 23, 0.9), rgba(26, 35, 58, 0.95));
        backdrop-filter: blur(30px) saturate(150%);
        -webkit-backdrop-filter: blur(30px) saturate(150%);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.5s cubic-bezier(0.8, 0, 0.2, 1);
        z-index: 99;
        display: flex !important;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 28px;
        font-weight: 500;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
    .nav.active .nav-link:nth-child(4) { transition-delay: 0.4s; }

    .hero-content {
        align-items: center;
        animation: none;
    }

    .hero-title {
        font-size: 36px;
        text-align: center;
        margin-top: 0;
    }

    .hero-description {
        font-size: 18px;
        text-align: center;
    }

    .hero-description .line {
        white-space: normal;
        display: inline;
    }

    .hero-visual {
        display: none;
    }

    .image-wrapper {
        width: 100% !important;
        transform: scale(1) !important;
    }

    .hero-img {
        width: 100%;
        max-width: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        gap: 30px;
    }

    .price-card.featured {
        transform: none;
    }
}

@media (max-width: 600px) {
    .main-container {
        padding: 30px 20px;
        border-radius: 30px;
        margin: auto;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .btn-demo {
        padding: 12px 30px;
        font-size: 17px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .highlight-content .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .highlight-text h3 {
        font-size: 24px;
    }

    .price-card {
        width: 100%;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* --- ADMIN DASHBOARD STYLES (Apple Glass Dark) --- */
#admin-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--admin-bg);
    z-index: 10000;
    color: #e6ecff;
    font-family: 'Outfit', sans-serif;
    overflow-y: auto;
    display: none;
}

#admin-dashboard.visible {
    display: block;
    animation: fadeInAdmin 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--admin-panel);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

/* Sucursal Grid */
.sucursal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.sucursal-card {
    background: var(--admin-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: inherit;
    width: 100%;
}

.sucursal-card:hover {
    transform: translateY(-5px);
    border-color: var(--admin-primary);
    box-shadow: 0 10px 30px rgba(92, 240, 199, 0.1);
}

.sucursal-icon {
    font-size: 30px;
    background: rgba(255, 255, 255, 0.03);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.sucursal-info strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

/* Pills and Buttons */
.pill {
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.pill:active {
    transform: scale(0.95);
}

.pill.ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pill.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pill.solid.primary {
    background: var(--admin-primary);
    color: #0d1017;
}

.admin-actions-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Stats Cards */
.sales-totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.total-card {
    background: var(--admin-panel);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.total-card.highlight {
    border-color: rgba(92, 240, 199, 0.3);
    background: linear-gradient(135deg, var(--admin-panel) 0%, rgba(92, 240, 199, 0.05) 100%);
}

.total-card .muted {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.total-card strong {
    font-size: 28px;
    font-weight: 700;
}

.trend-icon {
    font-size: 24px;
    background: var(--admin-primary-glow);
    padding: 10px;
    border-radius: 12px;
}

/* Modal / Overlay */
#admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.overlay-modal {
    background: var(--admin-panel);
    border-radius: 30px;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-overlay:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes fadeInAdmin {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#admin-dashboard .dashboard-section-hidden {
    display: none !important;
}

.overlay-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px;
    }

    .admin-topbar {
        padding: 15px 20px;
    }
}