/* ==========================================================================
   DRA. MIURBYS CONTRERAS MEJÍA - HUMANIZED LUXURY MEDICAL STYLING
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Dancing+Script:wght@700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bs-primary: #d81b60;          /* Official MCM Magenta Pink */
    --bs-primary-rgb: 216, 27, 96;
    --bs-secondary: #27272a;        /* Warm Dark Slate */
    --bs-warning: #d97706;          /* Gold Accent for SODOCIPRE */
    
    --brand-magenta: #d81b60;
    --brand-magenta-dark: #ad1457;
    --brand-magenta-deep: #881337;
    --brand-magenta-light: #fce4ec;
    --brand-gold: #d97706;
    
    --warm-bg: #faf7f8;            /* Soft Cream Warm Blush */
    --warm-card: #ffffff;
    --warm-border: #f4e8ec;
}

/* ==========================================================================
   GLOBAL LAYOUT FIXES (PREVENT HORIZONTAL SCROLL / OVERFLOW)
   ========================================================================== */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body * {
    max-width: 100%;
}

img, iframe, video, object, embed {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #27272a;
    background-color: var(--warm-bg);
}

h1, h2, h3, h4, h5, h6, .font-outfit {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.script-title {
    font-family: 'Caveat', 'Dancing Script', cursive;
    color: var(--brand-magenta);
    font-size: 2.2rem;
}

/* ==========================================================================
   UTILITY HELPER CLASSES
   ========================================================================== */
.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.75rem !important; }
.max-w-640 { max-width: 640px; }
.max-w-920 { max-width: 920px; }
.min-vh-400 { min-height: 400px; }

/* ==========================================================================
   HEADER & NAVBAR (CLEAN & ELEGANT)
   ========================================================================== */
.top-notice-bar-luxury {
    background: #881337;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid #fbbf24;
}

.top-notice-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-notice-link:hover {
    color: #fef08a;
    opacity: 0.9;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.navbar-luxury {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f4e8ec;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.brand-logo-img {
    height: 64px;
    width: auto;
}

.nav-link-mcm {
    color: #27272a !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.nav-link-mcm:hover, .nav-link-mcm.active {
    color: var(--brand-magenta) !important;
}

.btn-mcm {
    background: linear-gradient(135deg, var(--brand-magenta), var(--brand-magenta-dark));
    color: #ffffff !important;
    border: none;
    border-radius: 50rem;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(216, 27, 96, 0.25);
    transition: all 0.3s ease;
}

.btn-mcm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(216, 27, 96, 0.35);
    color: #ffffff;
}

.btn-mcm-outline {
    background: #ffffff;
    color: var(--brand-magenta) !important;
    border: 2px solid var(--brand-magenta);
    border-radius: 50rem;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-mcm-outline:hover {
    background: var(--brand-magenta-light);
    transform: translateY(-2px);
}

.badge-mcm {
    background: var(--brand-magenta-light);
    color: var(--brand-magenta-dark);
    padding: 6px 14px;
    border-radius: 50rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #fbcfe8;
}

.badge-gold {
    background: #fef3c7;
    color: #b45309;
    padding: 6px 14px;
    border-radius: 50rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #fde68a;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-mcm {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f5 60%, #fce4ec 100%);
    padding: 60px 0 80px 0;
}

.hero-img-card {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(216, 27, 96, 0.12);
    border: 4px solid #ffffff;
    position: relative;
}

.hero-img-card > img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* SODOCIPRE Floating Badge */
.floating-sodocipre-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--brand-magenta);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 10;
}

.sodocipre-img-logo {
    height: 38px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   STATS BANNER SECTION
   ========================================================================== */
.stats-banner {
    background: linear-gradient(135deg, #881337 0%, #ad1457 50%, #d81b60 100%);
    color: #ffffff;
    padding: 45px 0;
    box-shadow: 0 10px 30px rgba(136, 19, 55, 0.15);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.stats-banner .text-secondary {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   DOCTOR SHOWCASE SECTION
   ========================================================================== */
.doc-img-box {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(216, 27, 96, 0.12);
    border: 3px solid #ffffff;
    background: #ffffff;
}

.doc-img-box img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.quote-mcm {
    background: #fce4ec;
    border-left: 4px solid var(--brand-magenta);
    padding: 20px 24px;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 1.08rem;
    color: #881337;
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================================================
   HUMANIZED LUXURY SELECCIÓN DE TRATAMIENTO (WARM & ELEGANT)
   ========================================================================== */
.treatment-finder-section {
    background: linear-gradient(180deg, #ffffff 0%, #fff7f9 50%, #faf7f8 100%);
    border-top: 1px solid #f4e8ec;
    border-bottom: 1px solid #f4e8ec;
    padding: 70px 0;
}

.treatment-selector-card {
    background: #ffffff;
    border: 1px solid #f8e1eb;
    border-radius: 1.5rem;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(216, 27, 96, 0.05);
}

.btn-treatment-opt {
    background: #faf7f8;
    border: 1.5px solid #f4e8ec;
    color: #27272a;
    padding: 14px 20px;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-treatment-opt:hover, .btn-treatment-opt.active {
    background: linear-gradient(135deg, var(--brand-magenta), var(--brand-magenta-dark));
    color: #ffffff !important;
    border-color: var(--brand-magenta);
    box-shadow: 0 8px 22px rgba(216, 27, 96, 0.28);
    transform: translateY(-2px);
}

.btn-treatment-opt:hover i, .btn-treatment-opt.active i {
    color: #ffffff !important;
}

/* ==========================================================================
   PROCEDURES CARDS & TESTIMONIALS
   ========================================================================== */
.card-proc {
    border-radius: 1.25rem;
    border: 1px solid #f4e8ec;
    transition: all 0.3s ease;
    background: #ffffff;
}

.card-proc:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(216, 27, 96, 0.1) !important;
    border-color: #fbcfe8;
}

.proc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-magenta-light);
    color: var(--brand-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Testimonials */
.card-testimonial {
    border-radius: 1.25rem;
    border: 1px solid #f4e8ec;
    background: #ffffff;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.card-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(216, 27, 96, 0.08);
    border-color: #fbcfe8;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-magenta), var(--brand-magenta-dark));
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.25);
}

/* FAQ Accordion Luxury Styling */
.accordion-mcm {
    --bs-accordion-border-color: #f4e8ec;
    --bs-accordion-bg: #ffffff;
}

.accordion-mcm .accordion-item {
    border-radius: 1rem !important;
    border: 1px solid #f4e8ec !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.accordion-mcm .accordion-button {
    font-weight: 700;
    color: #27272a;
    font-size: 1.02rem;
    padding: 20px 24px;
    background-color: #ffffff;
    box-shadow: none !important;
}

.accordion-mcm .accordion-button:not(.collapsed) {
    color: var(--brand-magenta);
    background-color: #fff0f5;
    border-bottom: 1px solid #fbcfe8;
}

.accordion-mcm .accordion-button::after {
    background-size: 1.1rem;
}

.accordion-mcm .accordion-body {
    padding: 20px 24px;
    color: #52525b;
    line-height: 1.6;
    font-size: 0.96rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-luxury {
    background: #18181b;
    color: #a1a1aa;
    padding-top: 70px;
    border-top: 1px solid #27272a;
}

.footer-brand-logo {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-heading {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 10px;
}

.footer-link-list a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link-list a:hover {
    color: #ffffff;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #27272a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.footer-social-btn:hover {
    background: var(--brand-magenta);
    color: #ffffff;
}

.footer-sub-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
}

.footer-bottom-bar {
    background: #0f0f11;
    padding: 24px 0;
    border-top: 1px solid #27272a;
    margin-top: 50px;
}

.btn-scroll-top {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-magenta);
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-scroll-top:hover {
    background: var(--brand-magenta-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(216, 27, 96, 0.4);
}

.footer-nubbedoc-img {
    height: 26px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.footer-nubbedoc-img:hover {
    transform: scale(1.05);
}

/* Floating WhatsApp */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.floating-whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    font-size: 1.8rem;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   RESPONSIVE MOBILE & TABLET OPTIMIZATIONS
   ========================================================================== */

/* Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        margin-top: 12px;
        border: 1px solid #f4e8ec;
    }

    .hero-mcm {
        padding: 40px 0 60px 0;
    }

    .hero-img-card > img {
        height: 440px;
    }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .top-notice-bar-luxury {
        font-size: 0.78rem;
        padding: 6px 0;
    }

    .top-notice-bar-luxury .col-md-5 {
        justify-content: center !important;
        width: 100%;
        margin-top: 2px;
    }

    .brand-logo-img {
        height: 50px;
    }

    .hero-mcm {
        text-align: center;
        padding: 30px 0 50px 0;
    }

    .hero-mcm h1 {
        font-size: 2.2rem;
        line-height: 1.25;
    }

    .hero-mcm .lead {
        font-size: 1rem;
        margin-right: 0 !important;
    }

    .hero-mcm .d-flex {
        justify-content: center;
    }

    .hero-img-card {
        margin-top: 20px;
        border-radius: 1.5rem;
    }

    .hero-img-card > img {
        height: 380px;
    }

    .floating-sodocipre-badge {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 10px 14px;
        gap: 10px;
    }

    .sodocipre-img-logo {
        height: 30px !important;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stats-banner .text-secondary {
        font-size: 0.75rem !important;
    }

    .doc-img-box img {
        height: 260px;
    }

    .quote-mcm {
        font-size: 0.98rem;
        padding: 16px;
    }

    .treatment-selector-card {
        padding: 20px 16px;
        border-radius: 1.2rem;
    }

    .btn-treatment-opt {
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    .floating-whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .floating-whatsapp-btn {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .footer-luxury {
        padding-top: 50px;
    }

    .footer-bottom-bar {
        margin-top: 30px;
        padding: 18px 0;
        text-align: center;
    }

    .footer-bottom-bar .col-md-2 {
        text-align: center !important;
        margin-top: 10px;
    }
}

/* Small Screen Phones (<= 576px) */
@media (max-width: 576px) {
    .hero-mcm h1 {
        font-size: 1.95rem;
    }

    .hero-img-card > img {
        height: 320px;
    }

    .floating-sodocipre-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .floating-sodocipre-badge .text-end {
        text-align: center !important;
    }

    .doc-img-box img {
        height: 220px;
    }

    .stat-number {
        font-size: 1.85rem;
    }
}
