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

:root {
    --primary: #6366f1;
    --primary-dark: #818cf8;
    --accent: #22d3ee;
    --accent-green: #10b981;
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --surface: #22222e;
    --border: #2a2a3a;
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --glow: rgba(99, 102, 241, 0.4);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --surface: #e2e8f0;
    --border: #cbd5e1;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --glow: rgba(37, 99, 235, 0.2);
    --header-bg: rgba(255, 255, 255, 0.9);
    --hero-bg: linear-gradient(180deg, #e0e7ff 0%, #f0f4f8 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.scroll-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 99;
    box-shadow: 0 4px 20px var(--glow);
    transition: all 0.3s;
}

.scroll-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--glow);
}

html[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-box img {
    height: 50px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.logo {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface);
}


.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--glow);
}

.admin-link {
    background: var(--gradient);
    color: white !important;
}

.admin-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--glow);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(ellipse at top, #1a1a2e 0%, var(--bg) 70%);
    transition: background 0.3s;
}

html[data-theme="light"] .hero {
    background: linear-gradient(180deg, #dbeafe 0%, #f0f4f8 50%, #e2e8f0 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--glow);
}

.services {
    padding: 3rem 1.5rem;
    background: var(--bg);
}

.services h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.services-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.services-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

html[data-theme="light"] .service-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.about {
    padding: 6rem 2rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content > p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.locations {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.location {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    min-width: 160px;
    transition: all 0.3s;
}

.location:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.location h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.location p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contact {
    padding: 6rem 2rem;
    background: var(--bg);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.submit-button {
    width: 100%;
    background: var(--gradient);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--glow);
}

.success-message {
    display: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    margin: 0.3rem 0;
    color: var(--text-secondary);
}

.footer-center h3 {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-center h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-center a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-center a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-panel {
    display: none;
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    background: var(--bg);
}

.admin-panel.active {
    display: block;
}

.admin-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.admin-container h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-form input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
}

.admin-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-form small {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
}

.admin-btn {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--glow);
}

.back-btn {
    background: var(--surface);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--border);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.service-card {
    cursor: pointer;
}

/* Hide hamburger on desktop */
.menu-toggle {
    display: none;
}
.menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 7rem 1.5rem 3rem;
        min-height: auto;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo-box img {
        height: 36px;
    }

    .logo-text {
        font-size: 1.1rem;
    }
    
    /* Hamburger Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 200;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2.5px;
        background: var(--text);
        border-radius: 2px;
        transition: all 0.3s;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 150;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: var(--surface);
    }

    .nav-links .theme-toggle,
    .nav-links .lang-toggle {
        width: 100%;
        height: auto;
        padding: 0.85rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
        justify-content: center;
    }

    /* Mobile menu overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 140;
    }

    .menu-overlay.active {
        display: block;
    }
    
    .services {
        padding: 2.5rem 1rem;
    }
    
    .services h2,
    .about h2,
    .contact h2 {
        font-size: 1.6rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .service-card {
        padding: 1.25rem 0.75rem;
        border-radius: 14px;
    }

    .service-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .service-card h3 {
        font-size: 0.85rem;
    }

    .service-card p {
        font-size: 0.78rem;
    }

    .about {
        padding: 3rem 1.5rem;
    }
    
    .locations {
        flex-direction: column;
        align-items: center;
    }
    
    .location {
        width: 100%;
        max-width: 250px;
    }

    .contact {
        padding: 3rem 1.5rem;
    }
    
    .footer {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    .scroll-button {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        bottom: 1.25rem;
        right: 1.25rem;
    }

    /* Modal mobile */
    .modal-content {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
        width: 92%;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-icon {
        font-size: 2.5rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-body {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

    .service-card {
        padding: 1.5rem 1rem;
    }
}