:root {
    /* Colors */
    --bg-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-1: #0ea5e9; /* Light Blue */
    --accent-2: #38bdf8; /* Sky Blue */
    --accent-3: #06b6d4; /* Cyan */
    --whatsapp: #25D366;
    
    /* Surface */
    --surface: #ffffff;
    --surface-border: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
}

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

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

/* Background animated gradient blobs */
.blob-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.25), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.2), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.2), transparent 50%);
    z-index: -1;
    filter: blur(80px);
    animation: drift 20s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.1); }
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-badge {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-underline-red {
    text-decoration: underline;
    text-decoration-color: #ef4444; /* Striking Red */
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.btn-nav {
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-nav-phone {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-nav-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-nav-wa {
    background: var(--whatsapp);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-nav-wa:hover {
    background: #20b858;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.desktop-only { display: block; }
.mobile-only { display: none; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20b858;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-outline {
    border: 1px solid rgba(15, 23, 42, 0.2);
    color: var(--text-primary);
    padding: 10px 24px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

/* Hero Contact Section */
.hero-bg-wrapper {
    position: relative;
    background: url('../images/hero-ac-v2.png') no-repeat center center;
    background-size: cover;
}

.hero-bg-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 90%);
    pointer-events: none;
}

.hero-contact {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-contact-text h1 {
    font-size: clamp(1.75rem, 8vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-contact-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.highlight-underline {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-1);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    font-weight: 700;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero Slider */
.hero-contact-images {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.slider-caption {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
}
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    overflow: hidden;
    border: 2px solid var(--surface-border);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--surface);
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: #ffffff;
}

.slider-btn.prev {
    left: 16px;
}

.slider-btn.next {
    right: 16px;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--accent-1);
    transform: scale(1.2);
}

/* Intro Section */
.intro-section {
    padding: 80px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 24px;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Features Section */
.features {
    padding: 80px 24px;
}

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

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

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(14, 165, 233, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: var(--surface);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 40px 0;
    margin-top: 40px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}
.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.schedule-hero {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.05rem;
}

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

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-color);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    margin-bottom: 12px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

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

.mt-4 { margin-top: 24px; }

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        padding: 10px 0;
    }
    .desktop-only { display: none; }
    
    .nav-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .nav-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;
        text-align: center;
    }
    
    .nav-actions {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }

    .logo {
        font-size: 1.25rem;
        line-height: 1;
    }
    
    .nav-badge {
        font-size: 0.85rem;
        width: max-content;
        max-width: 100%;
        white-space: normal;
    }
    
    .btn-nav {
        flex: 1;
        justify-content: center;
        padding: 8px 4px;
        font-size: 0.75rem;
        line-height: 1.2;
        text-align: center;
        white-space: pre-wrap; /* allow wrapping if absolutely needed, but keep compact */
    }

    .hero-contact {
        grid-template-columns: 1fr;
        padding-top: 140px;
        padding-bottom: 40px;
        gap: 24px;
    }
    .hero-contact-text {
        text-align: center;
    }
    .hero-contact-text p {
        margin-bottom: 24px;
    }
    .contact-actions {
        justify-content: center;
    }
    .hero-slider {
        margin-top: 16px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-images {
        height: 350px;
        margin-top: 24px;
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .contact-actions {
        flex-direction: column;
        width: 100%;
    }
    .contact-actions .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
