/* ============================================
   DENTAL XPERT - COMMON STYLES
   ============================================ */

:root {
    --sky-blue: #4FC3F7;
    --sky-blue-light: #B3E5FC;
    --sky-blue-dark: #0288D1;
    --sky-blue-deep: #01579B;
    --logo-yellow: #FFD700;
    --logo-yellow-dark: #FFA000;
    --mint-green: #4DB6AC;
    --mint-green-dark: #00796B;
    --white: #FFFFFF;
    --off-white: #F5FAFF;
    --text-dark: #0D2B45;
    --text-medium: #4A6B8A;
    --text-light: #8CA9C2;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--sky-blue-dark);
    border-radius: 50%; pointer-events: none;
    z-index: 99999; transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border 0.2s;
}
.cursor-glow {
    position: fixed; top: 0; left: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
    z-index: 9998; transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

/* --- HEADER --- */
/* --- FLOATING PILL NAVBAR (WHITE) --- */
header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    background: transparent;
    pointer-events: none;
    transition: var(--transition-smooth);
}
header.scrolled {
    top: 12px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: none;
}
.nav-wrapper {
    pointer-events: auto;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid rgba(79, 195, 247, 0.25);
    border-radius: 60px;
    padding: 8px 14px 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 35px rgba(13, 43, 69, 0.12), 0 2px 10px rgba(79, 195, 247, 0.15);
    transition: var(--transition-smooth);
}
header.scrolled .nav-wrapper {
    background: #FFFFFF;
    box-shadow: 0 16px 40px rgba(13, 43, 69, 0.18), 0 0 20px rgba(79, 195, 247, 0.25);
    border-color: var(--sky-blue);
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}
.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 8px rgba(79, 195, 247, 0.35));
}
.logo-container:hover .logo-img {
    transform: scale(1.12) rotate(-5deg);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-text .title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--sky-blue-deep);
    line-height: 1;
    letter-spacing: 0.5px;
}
.logo-text .subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--logo-yellow-dark);
    margin-top: 2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 6px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--sky-blue-dark);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover {
    color: var(--sky-blue-dark);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--sky-blue-dark);
}
.nav-links a.active::after {
    width: 100%;
}
.btn-nav-insta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--sky-blue-dark) 100%);
    color: #ffffff !important;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.45);
    border: none;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0 !important;
}
.btn-nav-insta::after {
    display: none !important;
}
.btn-nav-insta:hover {
    background: linear-gradient(135deg, var(--logo-yellow) 0%, var(--logo-yellow-dark) 100%);
    color: var(--text-dark) !important;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.55);
}
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(79, 195, 247, 0.12);
    color: var(--text-dark);
    border: 1px solid rgba(79, 195, 247, 0.25);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.menu-toggle:hover {
    background: var(--sky-blue-dark);
    color: #ffffff;
}

/* --- PAGE HEADER (for sub-pages) --- */
.page-header {
    position: relative;
    padding: 220px 0 100px;
    background: url('images/1.jpg') center center / cover no-repeat;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.75) 75%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}
.page-header-content {
    position: relative;
    z-index: 5;
}
.page-header .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--logo-yellow);
    margin-bottom: 25px;
    padding: 10px 25px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
}
.page-header .breadcrumb i {
    font-size: 0.7rem;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.page-header h1 .italic-yellow {
    font-style: italic;
    font-weight: 400;
    color: var(--logo-yellow);
}
.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}

/* --- SECTION COMMON --- */
.section { position: relative; padding: 140px 0; overflow: hidden; }
.section-white { background: var(--white); }
.section-offwhite { background: var(--off-white); }
.section-skyblue { background: rgba(79, 195, 247, 0.08); }

.section-header {
    position: relative; z-index: 5;
    margin-bottom: 80px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.section-badge {
    display: inline-flex; align-items: center; gap: 15px;
    margin-bottom: 30px; font-size: 0.85rem;
    font-weight: 700; letter-spacing: 4px;
    text-transform: uppercase; color: var(--sky-blue-dark);
}
.section-badge .badge-num {
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 900;
    color: var(--logo-yellow-dark); line-height: 1;
}
.section-badge .badge-line {
    width: 60px; height: 2px; background: var(--sky-blue);
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 4.5rem; font-weight: 700; line-height: 1.1;
    color: var(--text-dark); letter-spacing: -0.02em;
}
.section-header h2 .italic-yellow {
    font-style: italic; font-weight: 400;
    color: var(--logo-yellow-dark);
    position: relative; display: inline-block;
}
.section-header h2 .italic-yellow::after {
    content: ''; position: absolute;
    bottom: 5px; left: 0; width: 100%; height: 10px;
    background: var(--sky-blue); opacity: 0.25;
    z-index: -1; border-radius: 5px;
}
.section-header p {
    font-size: 1.05rem; color: var(--text-medium);
    max-width: 600px; margin: 25px auto 0;
    font-weight: 300; line-height: 1.8;
}

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(135deg, var(--sky-blue), var(--sky-blue-dark));
    color: var(--white); padding: 20px 45px;
    font-weight: 700; font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: inline-flex; align-items: center; gap: 15px;
    text-transform: uppercase; letter-spacing: 3px;
    border: 2px solid var(--sky-blue); cursor: pointer;
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.5);
    border-radius: 50px;
}
.btn-primary:hover {
    background: var(--logo-yellow); color: var(--text-dark);
    border-color: var(--logo-yellow); transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}
.btn-primary i { transition: transform 0.3s; }
.btn-primary:hover i { transform: translateX(5px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 15px;
    font-weight: 600; font-size: 0.85rem; color: var(--text-dark);
    transition: var(--transition-smooth);
    text-transform: uppercase; letter-spacing: 3px;
    background: transparent; border: none;
    border-bottom: 2px solid var(--text-light);
    padding: 20px 0; cursor: pointer;
}
.btn-outline:hover { color: var(--sky-blue-dark); border-bottom-color: var(--sky-blue-dark); }
.btn-outline i { transition: transform 0.3s; }
.btn-outline:hover i { transform: translateX(5px); }

/* --- REVEAL --- */
.reveal {
    opacity: 0; transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- FOOTER --- */
footer {
    position: relative;
    padding: 100px 0 40px;
    color: var(--white);
    overflow: hidden;
    background: url('images/footer.jpg') center/cover no-repeat fixed;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 0;
}
footer::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--logo-yellow) 0%, var(--sky-blue) 50%, var(--mint-green) 100%);
    z-index: 2;
}
.footer-content { position: relative; z-index: 5; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px; margin-bottom: 60px;
}
.footer-about .logo-container { margin-bottom: 30px; }
.footer-about .logo-text .title { color: var(--white); }
.footer-about .logo-img { width: 70px; height: 70px; }
.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem; margin-bottom: 30px; line-height: 1.8;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 45px; height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex; justify-content: center; align-items: center;
    transition: var(--transition-smooth);
    color: var(--white); border-radius: 50%;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
}
.social-links a:hover {
    background: var(--logo-yellow);
    color: var(--text-dark);
    border-color: var(--logo-yellow);
    transform: translateY(-5px);
}
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem; margin-bottom: 30px;
    color: var(--white); position: relative;
}
.footer-col h4::after {
    content: ''; display: block;
    width: 30px; height: 2px;
    background: var(--logo-yellow); margin-top: 12px;
}
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem; transition: var(--transition-smooth);
    display: inline-flex; align-items: center;
    gap: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-col ul li a:hover { color: var(--logo-yellow); padding-left: 10px; }
.footer-contact-item {
    display: flex; gap: 15px; margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7); font-size: 0.9rem;
}
.footer-contact-item i {
    color: var(--logo-yellow); font-size: 1rem; margin-top: 4px;
}
.footer-bottom {
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    text-align: center;
}
.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.footer-bottom .designed-by {
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-bottom .designed-by:hover { color: var(--logo-yellow); }
.footer-bottom .designed-by::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--logo-yellow);
    transition: width 0.3s;
}
.footer-bottom .designed-by:hover::after { width: 100%; }
.footer-bottom .designed-by i {
    color: var(--logo-yellow);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.footer-bottom .designed-by:hover i {
    transform: translateX(3px) translateY(-3px);
}

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 65px; height: 65px;
    background: #25D366; color: var(--white);
    border-radius: 50%; display: flex;
    justify-content: center; align-items: center;
    font-size: 2rem; z-index: 9999;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    animation: pulseWhatsapp 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: #128C7E;
}
@keyframes pulseWhatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-to-top {
    position: fixed;
    bottom: 105px;
    right: 32px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--sky-blue-deep) 0%, var(--sky-blue-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 8px 24px rgba(1, 87, 155, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.85);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.9);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s,
                background 0.3s,
                box-shadow 0.3s;
    outline: none;
}
.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--sky-blue-dark) 0%, var(--logo-yellow) 100%);
    color: var(--text-dark);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 28px rgba(79, 195, 247, 0.5);
}
.scroll-to-top:active {
    transform: translateY(-1px) scale(0.96);
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--sky-blue) 0%, var(--logo-yellow) 50%, var(--mint-green) 100%);
    z-index: 10000;
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.7);
    transition: width 0.08s ease-out;
    pointer-events: none;
}

/* --- COMPREHENSIVE FLUID SCROLL ANIMATIONS --- */
.reveal, .reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-55px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-right {
    opacity: 0;
    transform: translateX(55px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.92) translateY(35px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Active triggered states */
.reveal.active, .reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Cascade & Stagger Delays */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.22s !important; }
.stagger-3 { transition-delay: 0.34s !important; }
.stagger-4 { transition-delay: 0.46s !important; }
.stagger-5 { transition-delay: 0.58s !important; }

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .section-header h2 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .page-header h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-glow { display: none; }

    header { padding: 0; top: 14px; }
    .menu-toggle { display: flex; }
    .nav-wrapper {
        width: 94%;
        padding: 8px 14px;
        border-radius: 50px;
    }
    .logo-img {
        width: 38px;
        height: 38px;
    }
    .logo-text .title {
        font-size: 1.15rem;
    }
    .logo-text .subtitle {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }
    .nav-links {
        position: fixed;
        top: 75px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(0.95);
        width: 92%;
        max-width: 380px;
        height: auto;
        background: #FFFFFF;
        border: 1px solid rgba(79, 195, 247, 0.35);
        border-radius: 28px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 32px 20px;
        box-shadow: 0 25px 60px rgba(13, 43, 69, 0.2), 0 0 35px rgba(79, 195, 247, 0.15);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) scale(1);
    }
    .nav-links a {
        color: var(--text-dark);
        font-size: 1.05rem;
        padding: 4px 0;
    }
    .nav-links .btn-nav-insta {
        margin-top: 10px;
        width: 48px;
        height: 48px;
        font-size: 1.45rem;
    }

    .page-header { padding: 160px 0 70px; }
    .page-header h1 { font-size: 2.8rem; }
    .page-header p { font-size: 1rem; }

    .section { padding: 80px 0; }
    .section-header h2 { font-size: 2.5rem; }
    .section-badge { font-size: 0.7rem; gap: 10px; }
    .section-badge .badge-num { font-size: 1.5rem; }
    .section-badge .badge-line { width: 40px; }

    footer { padding: 70px 0 30px; background-attachment: scroll; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
    .footer-bottom { padding-top: 25px; }

    .whatsapp-float { width: 55px; height: 55px; font-size: 1.6rem; bottom: 20px; right: 20px; }
    .scroll-to-top { width: 45px; height: 45px; font-size: 1.05rem; bottom: 85px; right: 25px; }
    .logo-img { width: 55px; height: 55px; }
    .logo-text .title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .page-header h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 2rem; }
    .footer-bottom p { font-size: 0.8rem; }
    .logo-img { width: 45px; height: 45px; }
    .logo-text .title { font-size: 1rem; }
    .logo-text .subtitle { font-size: 0.6rem; letter-spacing: 1.5px; }
    .map-section iframe { height: 350px; }
}

@media (max-width: 360px) {
    .nav-wrapper { width: 96%; padding: 6px 10px; }
    .logo-text .title { font-size: 0.95rem; }
    .logo-text .subtitle { font-size: 0.5rem; letter-spacing: 1px; }
    .nav-links { width: 95%; padding: 25px 15px; }
    .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 0.75rem; }
}