/* Base Reset and Variables */
:root {
    /* Color Palette */
    --clr-primary: #0ea5e9;
    /* Sky Blue */
    --clr-primary-dark: #0284c7;
    --clr-secondary: #0f172a;
    /* Slate 900 */
    --clr-accent: #10b981;
    /* Emerald */
    --clr-background: #f8fafc;
    /* Slate 50 */
    --clr-surface: #ffffff;
    --clr-text-main: #334155;
    /* Slate 700 */
    --clr-text-light: #64748b;
    /* Slate 500 */
    --clr-heading: #0f172a;
    /* Slate 900 - headings blog SSR */
    --clr-light: #f1f5f9;
    /* Slate 100 - backgrounds alternos */
    --clr-bg-section: #e2e8f0;
    /* Slate 200 - tablas blog */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-secondary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--clr-primary);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--space-2xl) 0;
}

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

/* UI Elements */
.bg-light {
    background-color: #f1f5f9;
    /* Slate 100 */
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--clr-primary-dark);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-small {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--clr-secondary);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-primary-small {
    padding: 0.6rem 1.5rem;
    background-color: var(--clr-primary);
    color: white;
    font-size: 0.9rem;
}

.btn-primary-small:hover {
    background-color: var(--clr-primary-dark);
    color: white;
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--clr-secondary);
}

.brand-title {
    font-size: 0.8rem;
    color: var(--clr-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary-small) {
    color: var(--clr-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary-small):hover::after {
    width: 100%;
}

.nav-links a:not(.btn-primary-small):hover {
    color: var(--clr-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* offset for navbar */
    position: relative;
    overflow: hidden;
}

/* Base Gradient Blob behind Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: fadeUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
    animation: fadeUp 1s ease-out forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeUp 1.2s ease-out forwards;
}

/* Trust Badges - CRO */
.trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeUp 1.4s ease-out forwards;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--clr-text-main);
    font-weight: 500;
}

.trust-badge-icon {
    color: var(--clr-accent);
    font-size: 1.1rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-wrapper {
    position: relative;
    border-radius: 30px;
    padding: 1rem;
    background: white;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    z-index: -1;
    transform: translate(15px, 15px);
}

.hero-profile-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -40px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border: none;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.floating-card .icon {
    font-size: 2rem;
}

/* Services Section */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Split Layout (Testimonials) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.doctoralia-section .widget-wrapper {
    padding: 1.5rem;
    background: white;
    overflow: hidden;
    /* Prevent iframe overflowing */
}

.expert-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(14, 165, 233, 0.05);
    border: 1px dashed var(--clr-primary);
    border-radius: 12px;
}

.expert-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Booking Section */
.booking-section {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, rgba(248, 250, 252, 1) 100%);
}

.booking-widget-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
}

/* Doctoralia Plus Badge */
.doctoralia-badge {
    display: inline-block;
    background: var(--clr-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .booking-guide {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-bottom: 3rem;
        text-align: left;
    }

    .guide-step {
        padding: 1.5rem;
        background: white;
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
        border-top: 4px solid var(--clr-primary);
    }

    .guide-step-number {
        font-size: 2rem;
        font-weight: 800;
        color: var(--clr-primary);
        opacity: 0.3;
        margin-bottom: 0.5rem;
        line-height: 1;
    }

    .guide-step h4 {
        margin-bottom: 0.5rem;
    }

    .guide-step p {
        font-size: 0.9rem;
        color: var(--clr-text-light);
    }

    /* Footer */
    .footer {
        background-color: var(--clr-secondary);
        color: white;
        padding: 4rem 0 2rem;
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 2rem;
        margin-bottom: 3rem;
        align-items: center;
    }

    .footer-info h3 {
        color: white;
        margin-bottom: 0.5rem;
    }

    .footer-location {
        color: #94a3b8;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .footer-links a {
        color: var(--clr-primary);
        text-decoration: underline;
    }

    .footer-cert {
        background: white;
        padding: 1rem;
        border-radius: 12px;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #cbd5e1;
        font-size: 0.9rem;
    }

    /* FAQ Section */
    .faq-container {
        max-width: 800px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .faq-item {
        overflow: hidden;
        padding: 0;
        /* Override glass-card padding for specific handling */
    }

    .faq-question {
        width: 100%;
        text-align: left;
        background: transparent;
        border: none;
        padding: 1.5rem 2rem;
        font-size: 1.125rem;
        font-family: var(--font-heading);
        font-weight: 600;
        color: var(--clr-secondary);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .faq-question:hover {
        color: var(--clr-primary);
    }

    .faq-icon {
        font-size: 1.5rem;
        font-weight: 400;
        color: var(--clr-primary);
        transition: transform 0.3s ease;
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background: rgba(255, 255, 255, 0.4);
    }

    .faq-answer p {
        padding: 0 2rem 1.5rem;
        color: var(--clr-text-main);
    }

    .faq-item.active .faq-question {
        color: var(--clr-primary-dark);
    }

    .faq-item.active .faq-icon {
        transform: rotate(180deg);
    }

    /* Responsive */
    @media (max-width: 992px) {

        .hero-container,
        .split-layout {
            grid-template-columns: 1fr;
        }

        .hero {
            text-align: center;
            padding-top: 120px;
        }

        .hero-title {
            font-size: 2.5rem;
        }

        .hero-subtitle {
            margin: 0 auto 2rem;
        }

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

        .floating-card {
            display: none;
            /* Hide on small screens to avoid clutter */
        }

        .booking-guide,
        .reels-container {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2rem;
            z-index: 1000;
        }

        .nav-links.active {
            display: flex;
        }

        .nav-links a {
            font-size: 1.25rem;
        }

        .section-title {
            font-size: 2rem;
        }

        .hero-cta {
            flex-direction: column;
        }

        .booking-widget-wrapper,
        .doctoralia-section .widget-wrapper {
            padding: 1rem;
        }

        .footer-content {
            flex-direction: column;
            text-align: center;
        }

        .footer-cert {
            margin: 0 auto;
        }
    }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--clr-secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 80px 0 0;
    background: transparent;
}

.breadcrumbs .container {
    font-size: 0.85rem;
    color: var(--clr-text-light);
}

.breadcrumbs a {
    color: var(--clr-primary);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-articles h3 {
    margin-bottom: 1rem;
}

.related-articles ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.related-articles li {
    margin-bottom: 0.5rem;
}

/* Skip Navigation Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}