main {
    margin-top: 72px;
}

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #edf0f9;
    padding: 70px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 40%, rgba(26, 58, 92, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(201, 168, 76, 0.12) 0%, transparent 50%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 72px;
}

.hero-illustration {
    flex: 0 0 320px;
}

.hero-figure {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    background: var(--white);
    padding: 28px;
    box-shadow: 0 22px 60px rgba(26, 58, 92, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-copy {
    max-width: 620px;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 3.7rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 520px;
}

.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(26, 58, 92, 0.45);
    font-size: 1.3rem;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        flex-direction: column;
        gap: 36px;
        text-align: center;
    }

    .hero-illustration {
        flex: unset;
        width: min(320px, 80vw);
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin: 0 auto;
    }

    .hero-figure {
        padding: 20px;
        border-radius: 24px;
    }
}

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

    .hero-figure {
        aspect-ratio: 1 / 1.2;
    }
}

.clinica-about,
.gallery-section,
.info-section,
.cta-section {
    padding: 96px 0;
}

.clinica-about {
    background: var(--white);
}


.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 40px;
    align-items: center;
}

.about-content {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.section-title.align-left {
    text-align: left;
}

.accent-line.align-left {
    margin-left: 0;
}

.about-video {
    width: 100%;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius);
    border: 1px dashed rgba(26, 58, 92, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.08), rgba(201, 168, 76, 0.08));
    overflow: hidden;
    position: relative;
}

.video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: inherit;
}

.video-toggle {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.video-toggle.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.gallery-section {
    background: var(--light);
}


.gallery-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-track {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 20px;
    overflow: hidden;
}

.carousel-card {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.carousel-img {
    border-radius: 28px;
    height: 280px;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.12), rgba(201, 168, 76, 0.1));
    border: 1px dashed rgba(26, 58, 92, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-card:hover .carousel-img {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.carousel-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
    gap: 16px;
}

.gallery-modal.active {
    display: flex;
}

.modal-image {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
}

.modal-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 16px;
}

.info-section {
    background: var(--white);
}

.info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 40px;
}

.info-block {
    flex: 1 1 240px;
    text-align: center;
}

.info-block h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
}

.info-block p,
.info-block a {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-block a {
    color: var(--primary-light);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
}

.cta-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-wrapper p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cta-buttons a {
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.cta-buttons a.primary {
    background: var(--accent);
    color: var(--dark);
}

.cta-buttons a.secondary:hover,
.cta-buttons a.primary:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .clinica-about,
    .gallery-section,
    .info-section,
    .cta-section {
        padding: 72px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .gallery-carousel {
        flex-direction: column;
        position: relative;
        padding: 0 36px;
    }

    .carousel-track {
        width: 100%;
        overflow-x: auto;
        grid-auto-flow: column;
        grid-auto-columns: minmax(200px, 80%);
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .carousel-card {
        scroll-snap-align: center;
    }

    .carousel-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .carousel-arrow.prev {
        left: 6px;
    }

    .carousel-arrow.next {
        right: 6px;
    }
}

@media (max-width: 480px) {
    .carousel-img {
        height: 210px;
    }
}
