/* ==========================================================================
   CSS VARIABLES & RESET (Adequa Odontologia Theme)
   ========================================================================== */
:root {
    --bg-color: #FFFFFF;
    --bg-alt: #FAF6F5; /* Soft champagne off-white tint */
    --text-color: #585453; /* Elegant dark charcoal */
    --text-muted: #807C7B; /* Muted charcoal */
    --accent-color: #C39D91; /* High-contrast rose-cream text/accent color */
    --accent-light: rgba(241, 214, 205, 0.25); /* Light brand tint */
    --accent-pure: #F1D6CD; /* Pure brand cream color */
    --border-color: rgba(88, 84, 83, 0.12);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --whatsapp-color: #25D366;
    --whatsapp-hover: #20BA5A;
}

/* =========================================
   GSAP INITIAL STATES
   ========================================= */
.nav { opacity: 0; visibility: hidden; }
.hero-editorial__img-main img, .hero-editorial__img-sub img { opacity: 0; filter: blur(20px); scale: 1.05; }
.reveal-up { 
    opacity: 0; 
    visibility: hidden;
    transform: translateY(40px); 
    filter: blur(10px); 
    will-change: transform, opacity, filter;
}

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

html {
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none; 
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

/* ==========================================================================
   CUSTOM CURSOR (Soft Round)
   ========================================================================== */
.cursor {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body.hovering .cursor { width: 0; height: 0; }
body.hovering .cursor-follower {
    width: 60px;
    height: 60px;
    background-color: var(--accent-light);
    backdrop-filter: blur(2px);
}

/* Disable custom cursor on touch screens */
@media (hover: none) and (pointer: coarse) {
    .cursor, .cursor-follower {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
    a, button, .faq__question, .service-card, .floating-whatsapp {
        cursor: pointer !important;
    }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.preloader__text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: var(--text-color);
    font-weight: 500;
    opacity: 0;
}

.preloader__progress {
    width: 200px;
    height: 1px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.preloader__progress-bar {
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
}

/* ==========================================================================
   TYPOGRAPHY & UTILS
   ========================================================================== */
h1, h2, h3, .heading {
    font-family: var(--font-heading);
    font-weight: 400;
}

.italic {
    font-style: italic;
    color: var(--accent-color);
}

.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--font-body);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-color);
    line-height: 1.1;
    margin-top: 10px;
    font-weight: 400;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid var(--text-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-color);
}

.btn-primary.whatsapp-btn:hover {
    background-color: var(--whatsapp-color);
    border-color: var(--whatsapp-color);
    color: #FFFFFF;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 36px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    border-radius: 100px;
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline.whatsapp-btn:hover {
    background-color: var(--whatsapp-color);
    border-color: var(--whatsapp-color);
    color: #FFFFFF;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: var(--whatsapp-hover);
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* ==========================================================================
   NAVIGATION (FLOATING GLASS PILL)
   ========================================================================== */
.nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    z-index: 1000;
    background: transparent !important; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), top 0.6s ease;
}

.nav.nav--hidden {
    transform: translateX(-50%) translateY(-150%);
}

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 40px;
    border-radius: 100px;
    border: 1px solid rgba(88, 84, 83, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}

.nav.scrolled .nav__inner {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

.nav__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav__links {
    display: flex;
    gap: 3vw;
}

.nav__links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.nav__links a:hover::after { width: 100%; }

.nav__cta .btn-primary {
    padding: 12px 24px;
    font-size: 0.7rem;
}

.nav__mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Mobile Overlay */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active { transform: translateY(0); }

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
}

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

.mobile-link.accent {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 991px) {
    .nav { top: 15px; width: 92%; }
    .nav__inner { padding: 10px 24px; }
    .nav.scrolled .nav__inner { padding: 8px 20px; }
    .nav__links, .nav__cta { display: none; }
    .nav__mobile-toggle { display: block; }
}

@media (max-width: 480px) {
    .preloader__text { font-size: 0.8rem; letter-spacing: 6px; }
}

/* ==========================================================================
   HERO EDITORIAL
   ========================================================================== */
.hero-editorial {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 15vh 5vw 5vh;
    background-color: var(--bg-color);
    overflow: hidden;
}

.hero-editorial__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5vw;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    align-items: center;
}

.hero-editorial__content { position: relative; z-index: 10; }

.hero-editorial__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    line-height: 0.95;
    color: var(--text-color);
    margin-bottom: 30px;
    margin-top: 15px;
}

.hero-editorial__desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-editorial__visuals {
    position: relative;
    height: 70vh;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-editorial__img-main {
    position: relative;
    width: 85%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.hero-editorial__img-main img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.hero-editorial__img-sub {
    position: absolute;
    bottom: -5%; left: -10%;
    width: 45%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 15px solid var(--bg-color);
    z-index: 5;
    background: var(--bg-alt);
    border-radius: 12px;
}

.hero-editorial__img-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .hero-editorial { padding-top: 110px; }
    .hero-editorial__container { grid-template-columns: 1fr; padding-top: 0; }
    .hero-editorial__visuals { height: 50vh; margin-top: 5vh; }
    .hero-editorial__img-sub { left: 0; bottom: -20px; }
}

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement {
    padding: 15vh 5vw;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.statement__inner { max-width: 1000px; margin: 0 auto; }

.statement__text {
    font-size: clamp(1.8rem, 3.8vw, 3.2rem);
    font-family: var(--font-heading);
    line-height: 1.35;
    color: var(--text-muted);
}

.statement__text .highlight { color: var(--text-color); }

/* ==========================================================================
   PROJECT SHOWCASE (Detailed Services Section)
   ========================================================================== */
.project-showcase {
    padding: 15vh 5vw;
    background-color: var(--bg-alt);
}

.project-block {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 5vw;
    align-items: center;
    margin-bottom: 20vh;
}

.project-block:last-of-type {
    margin-bottom: 0;
}

.project-block.reverse { direction: rtl; }
.project-block.reverse > * { direction: ltr; }

.project-img {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
}

.project-img img {
    display: block;
    width: 100%;
    height: auto;
}

/* Stylized Visual Placeholders for procedures */
.visual-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    border-radius: 12px;
}

.visual-placeholder:hover {
    background-color: var(--bg-alt);
    border-color: var(--accent-color);
}

.visual-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.visual-placeholder h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.visual-placeholder p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.4;
}

.project-info { padding: 2vw; }

.project-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    font-weight: 600;
}

.project-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 20px;
    font-weight: 400;
}

.project-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 30px;
}

.project-includes-list {
    margin-bottom: 30px;
    padding-left: 20px;
    list-style-type: disc;
}

.project-includes-list li {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-includes-list li strong {
    color: var(--text-color);
}

@media (max-width: 991px) {
    .project-showcase { padding: 8vh 5vw; }
    .project-block, .project-block.reverse { grid-template-columns: 1fr; gap: 30px; margin-bottom: 8vh; }
    .project-block:last-of-type { margin-bottom: 0; }
    .project-info { padding: 0; }
}

/* ==========================================================================
   SERVICES (Service Grid Selector)
   ========================================================================== */
.services-section {
    padding: 15vh 5vw;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    margin-top: 8vh;
}

.service-card {
    background: var(--bg-color);
    padding: 60px 40px;
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.service-card:hover { background: var(--bg-alt); }

.service-num {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 { font-size: 1.5rem; margin-bottom: 20px; font-weight: 400; }
.service-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; margin-bottom: 20px; }

/* ==========================================================================
   GALLERY (Testimonials Horizontal Marquee)
   ========================================================================== */
.gallery-section {
    padding: 15vh 0;
    background-color: var(--bg-alt);
    overflow: hidden;
}

.gallery-section .section-header { padding: 0 5vw; margin-bottom: 8vh; }

.gallery-track {
    display: flex;
    gap: 30px;
    padding: 0 5vw;
    width: max-content;
}

.gallery-item {
    width: 420px;
    max-width: 85vw;
    min-height: 260px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(88, 84, 83, 0.05);
}

.gallery-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 24px;
}

.gallery-rating {
    display: flex;
    gap: 3px;
    color: #FFC107;
    margin-bottom: 12px;
}

.gallery-rating svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.gallery-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--text-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.gallery-author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.gallery-author-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) { .gallery-item { width: 340px; padding: 25px; } }

/* ==========================================================================
   LOCATION & SCHEDULE
   ========================================================================== */
.location-section {
    padding: 15vh 5vw;
    background-color: var(--bg-color);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch;
}

.location-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-info-block {
    margin-bottom: 40px;
}

.location-info-block h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-info-block h3 svg {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.location-info-block p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.location-map {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 991px) {
    .location-grid { grid-template-columns: 1fr; gap: 40px; }
    .location-map { min-height: 350px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding: 15vh 5vw;
    background-color: var(--bg-alt);
}

.faq__container { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border-color); }

.faq__question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 30px 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__icon { position: relative; width: 20px; height: 20px; }
.faq__icon span { position: absolute; background: var(--text-color); transition: all 0.4s ease; }
.faq__icon span:nth-child(1) { top: 9px; left: 0; width: 20px; height: 1px; }
.faq__icon span:nth-child(2) { top: 0; left: 9px; width: 1px; height: 20px; }
.faq__question[aria-expanded="true"] .faq__icon span:nth-child(2) { transform: rotate(90deg); opacity: 0; }

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq__answer.open { max-height: 400px; }
.faq__answer p { padding-bottom: 30px; color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #111111;
    color: #FFFFFF;
    padding: 10vh 5vw 5vh;
}

.footer__top {
    display: grid;
    grid-template-columns: 2.2fr 0.9fr 0.9fr;
    gap: 5vw;
    margin-bottom: 10vh;
}

.footer__logo img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 20px; }

.footer__title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer p, .footer a { color: #AAAAAA; line-height: 1.8; font-size: 0.95rem; transition: color 0.3s ease; }
.footer a:hover { color: #FFFFFF; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer__bottom .btn-outline { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.3); }
.footer__bottom .btn-outline:hover { background-color: #FFFFFF; color: #000000; }

@media (max-width: 768px) {
    .footer__top { grid-template-columns: 1fr; gap: 40px; }
    .footer__bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* ==========================================================================
   INCLUSIVO SECTION (Calming child-friendly banner)
   ========================================================================== */
.inclusivo-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-alt);
    display: flex;
    flex-direction: column;
}

.inclusivo-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.inclusivo-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.inclusivo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(88, 84, 83, 0.4);
}

.inclusivo-content {
    padding: 6vh 5vw;
    background-color: var(--bg-alt);
    color: var(--text-color);
}

.inclusivo-content h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    margin-top: 15px;
    color: var(--text-color);
}

.inclusivo-content .uppercase-tracking {
    color: var(--accent-color);
}

/* On Desktop: Overlay text on top of the image */
@media (min-width: 769px) {
    .inclusivo-section {
        height: auto;
    }
    
    .inclusivo-content {
        position: absolute;
        bottom: 8vh;
        left: 5vw;
        background: none;
        padding: 0;
        color: #FFFFFF;
        z-index: 10;
        pointer-events: none;
    }
    
    .inclusivo-content h2 {
        color: #FFFFFF;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    }
    
    .inclusivo-content .uppercase-tracking {
        color: #FFFFFF;
    }
}
