/* -------------------------------------------------------------
   Clínica Allergie - Design System & Custom Styles
   ------------------------------------------------------------- */

:root {
    --cream: #FFFBF7;
    --cream-light: #FFFBF7;
    --cream-card: #FFF6F1;
    --sand: #F7ECE1;
    --cocoa: #352119;
    --clay: #B07C5C;
    --clay-dark: #8E5D40;
    --clay-text: #966141;
    /* Darker warm tone for small text contrast */
    --border-color: rgba(53, 33, 25, 0.1);
    --border-color-hover: rgba(53, 33, 25, 0.3);

    --font-sans: 'Jost', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.32, 1);
}

/* Reset & Base Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--cocoa);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    /* Increased from 300 for superior readability */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--cocoa);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-smooth);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 96px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 64px 0;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(53, 33, 25, 0.03);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg {
    width: 40px;
    height: 40px;
    color: var(--clay);
    transition: var(--transition-smooth);
}

.logo:hover svg {
    transform: rotate(-10deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 22px;
    letter-spacing: 0.05em;
    color: var(--cocoa);
}

.logo-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--clay);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    letter-spacing: 0.05em;
    color: rgba(53, 33, 25, 0.8);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clay);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--clay);
}

.nav-link:hover::after {
    width: 100%;
}

/* Primary CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--clay);
    color: var(--cream);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 0.05em;
    font-weight: 400;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    padding-top: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out;
}

.btn-cta:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn-cta:hover {
    background-color: var(--cocoa);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 33, 25, 0.2);
}

.btn-cta svg {
    width: 16px;
    height: 16px;
}

.mobile-menu-btn {
    display: none;
    color: var(--cocoa);
}

@media (max-width: 992px) {

    .nav-menu,
    .nav-btn-wrapper {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .btn-cta {
        margin: 0 auto;
        justify-content: center;
    }
}

/* Mobile Menu Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--cream);
    z-index: 2000;
    padding: 40px 24px;
    box-shadow: -10px 0 30px rgba(53, 33, 25, 0.05);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(53, 33, 25, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-close {
    color: var(--cocoa);
    font-size: 24px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--cocoa);
}

.mobile-nav-link:hover {
    color: var(--clay);
    padding-left: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 120px;
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 15% 30%, #F5EFEB 0%, #FAF6F2 55%, #ECE4DD 100%);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -120px;
    left: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background-color: rgba(247, 236, 225, 0.5);
    filter: blur(64px);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 580px;
}

.hero-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--cocoa);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
}

.hero-desc {
    font-size: 24px;
    color: rgba(53, 33, 25, 0.8);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-img-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: bottom right;
    border-radius: 0;
}

@media (max-width: 992px) {
    .hero {
        padding-top: 110px;
        padding-bottom: 0;
        min-height: auto;
        background: radial-gradient(circle at 50% 35%, #FAF6F2 0%, #F5EFEB 100%);
        flex-direction: column;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        order: 1;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 54px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-img-wrapper {
        position: static;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        margin-top: 24px;
        order: 2;
    }

    .hero-img {
        width: 100%;
        max-width: 440px;
        height: auto;
        object-fit: contain;
        object-position: bottom center;
        display: block;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 0;
    }

    .hero-title {
        font-size: 44px;
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 20px;
        margin-bottom: 28px;
    }

    .hero-img {
        max-width: 100%;
        padding: 0 16px;
    }
}

/* Treatments Section */
.treatments {
    background-color: var(--sand);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px auto;
}

.section-header-tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--clay);
    font-weight: 500;
    margin-bottom: 24px;
}

.section-header-title {
    font-size: clamp(42px, 5vw + 20px, 57px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-header-desc {
    font-size: clamp(20px, 3vw + 10px, 26px);
    color: rgba(53, 33, 25, 0.85);
}

.treatments-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.treatments-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.treatment-card {
    position: relative;
    background-color: var(--cream-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.treatment-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(53, 33, 25, 0.18);
    border-color: var(--border-color-hover);
}

.treatment-num {
    position: absolute;
    top: 24px;
    right: 28px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: rgba(53, 33, 25, 0.4);
}

.treatment-card h3 {
    font-size: 22px;
    line-height: 1.3;
    margin-top: 20px;
    margin-bottom: 8px;
}

.treatment-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: rgba(53, 33, 25, 0.8);
    margin-bottom: 20px;
}

.treatment-divider {
    width: 48px;
    height: 1px;
    background-color: rgba(53, 33, 25, 0.3);
    margin: 0 auto 24px auto;
}

.btn-learn-more {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--clay-text);
    text-decoration: underline;
    text-underline-offset: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.btn-learn-more:hover {
    color: var(--cocoa);
}

/* Card details (expanding) */
.treatment-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.32, 1);
    text-align: left;
}

.treatment-detail.active {
    max-height: 250px;
}

.treatment-detail p {
    font-size: 14px;
    color: rgba(53, 33, 25, 0.85);
    margin-top: 16px;
    padding: 16px;
    background-color: rgba(176, 124, 92, 0.05);
    border-radius: 8px;
    line-height: 1.5;
    border-left: 2px solid var(--clay);
}

/* Extra block type 3 info */
.clinic-alert-box {
    background-color: var(--cream-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 40px;
    max-width: 860px;
    margin: 48px auto 0 auto;
    text-align: center;
}

.clinic-alert-box p {
    font-size: 17px;
    line-height: 1.6;
}

.clinic-alert-box em {
    font-family: var(--font-serif);
    font-style: italic;
}

.treatments-footer {
    text-align: center;
    margin-top: 64px;
}

.treatments-footer p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    max-width: 720px;
    margin: 0 auto 36px auto;
}

@media (max-width: 1200px) {
    .treatments-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .treatments-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .treatments-grid-3,
    .treatments-grid-4 {
        grid-template-columns: 1fr;
    }

    .treatment-card {
        border-radius: 24px;
        padding: 40px 24px 32px 24px;
    }
}

/* Clinical Structure Section */
.clinic-structure {
    background-color: var(--cream);
    position: relative;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1024px;
    margin: 0 auto;
}

.structure-card {
    background-color: var(--cream-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.structure-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(176, 124, 92, 0.6);
    box-shadow: 0 20px 40px rgba(53, 33, 25, 0.18);
}

.structure-card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.structure-card p {
    font-size: 16px;
    color: rgba(53, 33, 25, 0.85);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .structure-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .structure-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Gallery Carousel (Infinite Autoplay) */
.gallery-carousel-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    padding: 24px 0;
}

/* Gradient fade masks */
.gallery-carousel-wrapper::before,
.gallery-carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--sand) 0%, transparent 100%);
}

.gallery-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--sand) 0%, transparent 100%);
}

.gallery-carousel-track {
    display: inline-flex;
    width: max-content;
    animation: scroll-infinite 30s linear infinite;
}

.gallery-carousel-track:hover {
    animation-play-state: paused;
}

.gallery-carousel-group {
    display: inline-flex;
    gap: 24px;
    padding-right: 24px;
    /* Gap between the two identical groups */
}

.gallery-carousel-group img {
    height: 280px;
    width: auto;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .gallery-carousel-group img {
        height: 200px;
    }
}


/* Galeria Section */
.galeria {
    background-color: var(--sand);
}

.galeria-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.galeria-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.galeria-img {
    width: 50%;
    flex-shrink: 0;
    padding: 0 8px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .galeria-carousel {
        padding-bottom: 24px;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: var(--cream);
}

.slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 24px;
}

.slide {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
}

@media (max-width: 768px) {
    .slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.testimonial-card {
    background-color: var(--cream-card);
    border: 1px solid rgba(53, 33, 25, 0.15);
    border-radius: 16px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card svg {
    color: rgba(53, 33, 25, 0.6);
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    color: rgba(53, 33, 25, 0.85);
    flex-grow: 1;
    margin-bottom: 24px;
}

.testimonial-author {
    font-size: 14px;
}

.author-name {
    display: block;
    font-weight: 500;
    color: var(--cocoa);
}

.author-loc {
    color: rgba(53, 33, 25, 0.6);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(53, 33, 25, 0.4);
    background-color: var(--cream-card);
    color: var(--cocoa);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--cocoa);
    color: var(--cream-card);
    border-color: var(--cocoa);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Quem Somos Section */
.about {
    background-color: var(--sand);
}

.about-grid {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 64px;
    align-items: center;
}

.about-img-frame {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.about-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 210px 210px 16px 16px;
    box-shadow: 0 10px 30px rgba(53, 33, 25, 0.05);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-content p:not([class^="section-header"]) {
    font-size: 17px;
    color: rgba(53, 33, 25, 0.8);
    line-height: 1.6;
}

.about-content .section-header-tag,
.about-content .section-header-title {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        text-align: center;
    }

    .about-buttons {
        justify-content: center;
    }
}

/* FAQ Section */
.faq {
    background-color: var(--cream);
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(53, 33, 25, 0.2);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--cocoa);
}

.accordion-header:hover {
    color: rgba(53, 33, 25, 0.8);
}

.accordion-header svg {
    transition: transform 0.3s ease;
    color: rgba(53, 33, 25, 0.6);
}

.accordion-header.active svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.32, 1);
}

.accordion-content-inner {
    padding-bottom: 24px;
    font-size: 16px;
    color: rgba(53, 33, 25, 0.8);
    line-height: 1.6;
}

.faq-footer {
    text-align: center;
    margin-top: 48px;
}

.faq-footer p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: rgba(53, 33, 25, 0.8);
    margin-bottom: 24px;
}

/* Map / Visit Us Section */
.visit {
    background-color: var(--sand);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.visit-info h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.visit-info p {
    font-size: 16px;
    color: rgba(53, 33, 25, 0.8);
    margin-bottom: 32px;
}

.address-box {
    margin-bottom: 32px;
}

.address-box h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clay);
    margin-bottom: 8px;
}

.address-box p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--cocoa);
    margin: 0;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(53, 33, 25, 0.05);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Footer Section */
footer {
    background-color: var(--cocoa);
    color: var(--cream);
    padding: 80px 0 40px 0;
    font-size: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 64px;
    border-bottom: 1px solid rgba(255, 251, 247, 0.1);
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo-title {
    color: var(--cream);
}

.footer-brand p {
    color: rgba(255, 251, 247, 0.7);
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clay);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 251, 247, 0.8);
}

.footer-links a:hover {
    color: var(--clay);
    padding-left: 4px;
}

.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 251, 247, 0.8);
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    color: var(--clay);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    color: rgba(255, 251, 247, 0.5);
    font-size: 13px;
}

.footer-bottom-docs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-contact li {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Scroll Reveal & Animation Transitions
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
   Slider Dots Pagination
   ------------------------------------------------------------- */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(53, 33, 25, 0.2);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.dot:hover {
    background-color: rgba(53, 33, 25, 0.4);
}

.dot.active {
    background-color: var(--clay);
    transform: scale(1.25);
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
    margin-top: 4rem;
    margin-bottom: 2rem;
    width: 100%;
    overflow: hidden;
}

.gallery-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.gallery-carousel img {
    scroll-snap-align: center;
    flex: 0 0 85%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(53, 33, 25, 0.1);
}

@media (min-width: 768px) {
    .gallery-carousel img {
        flex: 0 0 45%;
    }
}

@media (min-width: 1024px) {
    .gallery-carousel img {
        flex: 0 0 30%;
    }
}

/* Clínica Tipo 3 Section (Figma Design - Hero Style) */
.clinica-tipo-3-section {
    position: relative;
    padding-top: 120px;
    padding-bottom: 120px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #75533e;
    overflow: hidden;
}

.clinica-tipo-3-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.clinica-tipo-3-text {
    max-width: 580px;
    grid-column: 1;
}

.clinica-tipo-3-text h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--cream);
    margin-bottom: 24px;
    line-height: 1.2;
    font-weight: 600;
}

.clinica-tipo-3-text p {
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.clinica-tipo-3-img-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    overflow: hidden;
}

.clinica-tipo-3-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 992px) {
    .clinica-tipo-3-section {
        min-height: auto;
        padding-top: 64px;
        padding-bottom: 0;
        flex-direction: column;
    }

    .clinica-tipo-3-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        order: 1;
    }

    .clinica-tipo-3-text {
        grid-column: 1;
        margin: 0 auto;
        padding-bottom: 32px;
    }

    .clinica-tipo-3-img-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        margin-top: 24px;
        order: 2;
    }
}

/* Doctor Modals */
.doctor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(53, 33, 25, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 24px;
    cursor: pointer;
}

.doctor-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.doctor-modal-content {
    background-color: var(--cream);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.32, 1);
    cursor: default;
    box-shadow: 0 20px 40px rgba(53, 33, 25, 0.1);
}

.doctor-modal-overlay.active .doctor-modal-content {
    transform: translateY(0) scale(1);
}

.doctor-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    line-height: 1;
    color: rgba(53, 33, 25, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.doctor-modal-close:hover {
    color: var(--cocoa);
}

.doctor-modal-content h3 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--cocoa);
}

.doctor-modal-subtitle {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    color: var(--clay);
    margin-bottom: 16px;
}

.doctor-modal-crm {
    font-size: 14px;
    color: rgba(53, 33, 25, 0.7);
    margin-bottom: 24px;
    line-height: 1.4;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.doctor-modal-list {
    list-style-type: none;
    padding-left: 0;
}

.doctor-modal-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 15px;
    color: rgba(53, 33, 25, 0.85);
    line-height: 1.5;
}

.doctor-modal-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--clay);
    font-size: 20px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .doctor-modal-content {
        padding: 32px 24px;
    }

    .doctor-modal-content h3 {
        font-size: 24px;
    }
}

.structure-card p {
    text-align: justify;
}

@media (max-width: 768px) {
    .structure-card h3 {
        text-align: center;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}