/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e2f44;
    --accent: #27ae60;
    --accent-light: #2ecc71;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #ecf0f1;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    height: 75px;
}

.navbar-logo img {
    height: 50px;
    width: auto;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.navbar-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: var(--primary);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-content .subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 8px;
    line-height: 1.6;
}

.hero-content .role {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero-image {
    flex: 0 0 280px;
}

.hero-image img {
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 280px;
    height: 280px;
    object-fit: cover;
}

.hero-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

.hero-badge i {
    font-size: 1rem;
}

.hero-banners {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-banners img {
    height: 45px;
    width: auto;
    transition: var(--transition);
    border-radius: 6px;
    background: #fff;
    padding: 4px 8px;
}

.hero-banners img:hover {
    opacity: 1;
}

/* ===== CONTACT BAR ===== */
.contact-bar {
    background: var(--accent);
    color: #fff;
    padding: 15px 0;
}

.contact-bar .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.contact-item i {
    font-size: 1.1rem;
}

.contact-item a {
    color: #fff;
}

.contact-item a:hover {
    opacity: 0.85;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 70px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 15px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-card .icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 18px;
}

/* ===== TREATMENTS TABS ===== */
.treatments-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.treatment-category {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.treatment-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.treatment-category h3 i {
    color: var(--accent);
}

.treatment-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.treatment-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    background: var(--bg-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.treatment-list li:hover {
    background: var(--primary);
    color: #fff;
}

.treatment-list li i {
    color: var(--accent);
    font-size: 0.8rem;
}

.treatment-list li:hover i {
    color: #fff;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 35px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-col p,
.footer-col li {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.7);
}

.footer-contact-item a:hover {
    color: var(--accent-light);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.7;
}

.page-header .breadcrumb a {
    color: #fff;
    opacity: 0.8;
}

.page-header .breadcrumb a:hover {
    opacity: 1;
}

/* ===== CURRICULUM PAGE ===== */
.curriculum-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

.curriculum-photo {
    position: sticky;
    top: 100px;
}

.curriculum-photo img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.curriculum-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.curriculum-content h2:first-child {
    margin-top: 0;
}

.curriculum-content h2 i {
    color: var(--accent);
}

.curriculum-content p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.curriculum-content .cv-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-light);
    font-size: 0.95rem;
}

.cv-item strong {
    color: var(--primary);
}

/* ===== VIDEOS PAGE ===== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.video-frame.vertical {
    padding-top: 125%;
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.video-card .card-body {
    padding: 20px 25px 25px;
}

.video-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.video-card .meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.video-card .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== ARTICLE DETAIL ===== */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail .article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-detail .article-body p {
    margin-bottom: 18px;
}

.article-detail .article-body img {
    border-radius: var(--radius);
    margin: 25px 0;
    box-shadow: var(--shadow);
}

/* ===== PUBLICATIONS ===== */
.publications-list {
    max-width: 900px;
    margin: 0 auto;
}

.pub-item {
    background: var(--bg);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary-light);
    font-size: 0.9rem;
    line-height: 1.6;
    transition: var(--transition);
}

.pub-item:hover {
    border-left-color: var(--accent);
    background: var(--bg-light);
}

.pub-item .pub-number {
    font-weight: 700;
    color: var(--primary);
    margin-right: 5px;
}

.pub-section-title {
    font-size: 1.4rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.pub-section-title:first-child {
    margin-top: 0;
}

/* ===== PRIVACY POLICY ===== */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--primary);
}

.privacy-content h3 {
    font-size: 1.15rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.privacy-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image {
        flex: none;
    }

    .hero-badges {
        justify-content: center;
    }

    .treatments-wrapper {
        grid-template-columns: 1fr;
    }

    .curriculum-section {
        grid-template-columns: 1fr;
    }

    .curriculum-photo {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        height: 65px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 15px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .navbar-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .contact-bar .container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .section {
        padding: 45px 0;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .treatment-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== STUDIO MEDICO SECTION ===== */
.studio-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.studio-info .map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.studio-info .map-embed iframe {
    width: 100%;
    height: 350px;
    border: none;
}

.studio-details h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.studio-details .detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.studio-details .detail-item i {
    color: var(--primary-light);
    margin-top: 3px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .studio-info {
        grid-template-columns: 1fr;
    }
}
