/* Scoped layout override (only Home + Turnos page) */
body.home .site,
body.home .site-content,
body.home .ast-container,
body.home .site-content .ast-container,
body.page-id-144 .site,
body.page-id-144 .site-content,
body.page-id-144 .ast-container,
body.page-id-144 .site-content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
}

body.home .ast-container,
body.home .site-content .ast-container,
body.home .content-area,
body.home #primary,
body.page-id-144 .ast-container,
body.page-id-144 .site-content .ast-container,
body.page-id-144 .content-area,
body.page-id-144 #primary {
    padding-left: clamp(10px, 1.8vw, 24px) !important;
    padding-right: clamp(10px, 1.8vw, 24px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.home .ast-separate-container,
body.page-id-144 .ast-separate-container {
    background: transparent !important;
}

body.home .ast-separate-container #primary,
body.home .ast-separate-container #secondary,
body.page-id-144 .ast-separate-container #primary,
body.page-id-144 .ast-separate-container #secondary {
    margin: 0 !important;
    padding: 0 !important;
}

body.home .ast-separate-container #primary .ast-article-post,
body.home .ast-separate-container #primary .ast-article-single,
body.home .ast-separate-container .comments-area,
body.home .ast-separate-container .ast-archive-description,
body.home .ast-separate-container .ast-author-box,
body.page-id-144 .ast-separate-container #primary .ast-article-post,
body.page-id-144 .ast-separate-container #primary .ast-article-single,
body.page-id-144 .ast-separate-container .comments-area,
body.page-id-144 .ast-separate-container .ast-archive-description,
body.page-id-144 .ast-separate-container .ast-author-box {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

body.home .entry-content > .alignwide,
body.home .entry-content > .alignfull,
body.page-id-144 .entry-content > .alignwide,
body.page-id-144 .entry-content > .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

body.home .wp-block-group,
body.home .wp-block-cover,
body.home .wp-block-columns,
body.page-id-144 .wp-block-group,
body.page-id-144 .wp-block-cover,
body.page-id-144 .wp-block-columns {
    max-width: 100% !important;
}

body.home .elementor-section.elementor-section-boxed > .elementor-container,
body.home .elementor-section .elementor-container,
body.page-id-144 .elementor-section.elementor-section-boxed > .elementor-container,
body.page-id-144 .elementor-section .elementor-container {
    max-width: 100% !important;
}

body.home .elementor-widget-wrap,
body.home .elementor-column,
body.home .elementor-top-section,
body.page-id-144 .elementor-widget-wrap,
body.page-id-144 .elementor-column,
body.page-id-144 .elementor-top-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Astra header/builder wrappers often add side gutters */
body.home #masthead .ast-container,
body.home .site-header-focus-item + .ast-breadcrumbs-wrapper,
body.home .site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row,
body.page-id-144 #masthead .ast-container,
body.page-id-144 .site-header-focus-item + .ast-breadcrumbs-wrapper,
body.page-id-144 .site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Tailwind/utility "container" blocks inside page content */
body.home .entry-content .container,
body.home .wp-block-post-content .container,
body.page-id-144 .entry-content .container,
body.page-id-144 .wp-block-post-content .container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: clamp(16px, 3vw, 42px) !important;
    padding-right: clamp(16px, 3vw, 42px) !important;
}

/* Turnos page: remove white card shell and keep booking full width */
body.page-id-144 .entry-content .max-w-4xl {
    max-width: min(1260px, 100%) !important;
}

body.page-id-144 .entry-content .rounded-2xl {
    border-radius: 0 !important;
}

body.page-id-144 .entry-content .shadow-2xl {
    box-shadow: none !important;
}

/* Turnos page polish: keep full width but improve rhythm and readability */
body.page-id-144 .entry-content main {
    display: block;
}

body.page-id-144 .entry-content header .container {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

body.page-id-144 .entry-content section.bg-gradient-to-b .container {
    padding-top: 6px !important;
    padding-bottom: 8px !important;
}

body.page-id-144 .entry-content section.section-bg-gray {
    padding-top: clamp(52px, 8vw, 92px) !important;
    padding-bottom: clamp(52px, 8vw, 92px) !important;
}

body.page-id-144 .entry-content section.section-bg-gray .max-w-4xl {
    margin-left: auto !important;
    margin-right: auto !important;
}

body.page-id-144 .entry-content footer .container {
    padding-top: clamp(42px, 6vw, 72px) !important;
    padding-bottom: clamp(30px, 5vw, 56px) !important;
}

/* Turnos page: orange interactive accents (instead of blue) */
body.page-id-144 .entry-content nav a:hover,
body.page-id-144 .entry-content .footer-link:hover {
    color: #ff6a00 !important;
}

body.page-id-144 .entry-content .amelia-v2-booking {
    --am-c-primary: #ff6a00 !important;
    --am-c-primary-op10: rgba(255, 106, 0, 0.1) !important;
    --am-c-primary-op20: rgba(255, 106, 0, 0.2) !important;
}

body.page-id-144 .entry-content .amelia-v2-booking button:hover,
body.page-id-144 .entry-content .amelia-v2-booking [role="button"]:hover,
body.page-id-144 .entry-content .amelia-v2-booking a:hover,
body.page-id-144 .entry-content .amelia-v2-booking [class*="active"],
body.page-id-144 .entry-content .amelia-v2-booking [class*="selected"] {
    border-color: #ff6a00 !important;
}

body.page-id-144 .entry-content .amelia-v2-booking [class*="active"] svg,
body.page-id-144 .entry-content .amelia-v2-booking [class*="selected"] svg,
body.page-id-144 .entry-content .amelia-v2-booking button:hover svg {
    color: #ff6a00 !important;
    fill: #ff6a00 !important;
}

/* Home mobile: testimonials as horizontal slider (not stacked) */
@media (max-width: 767px) {
    body.home #testimonios > .container > .grid {
        display: flex !important;
        gap: 14px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 4px 10px;
    }

    body.home #testimonios > .container > .grid::-webkit-scrollbar {
        height: 6px;
    }

    body.home #testimonios > .container > .grid::-webkit-scrollbar-thumb {
        background: rgba(234, 88, 12, 0.35);
        border-radius: 999px;
    }

    body.home #testimonios > .container > .grid > .testimonial-card {
        flex: 0 0 calc(100% - 28px) !important;
        min-width: calc(100% - 28px) !important;
        scroll-snap-align: start;
        margin: 0 !important;
    }
}

/* Premium visual polish: home + turnos */
body.home {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.home .nav-desktop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(90, 65, 45, 0.95) !important;
    border-bottom: 0 !important;
}

body.home .nav-desktop-inner,
body.home .container {
    max-width: min(1320px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.home .hero-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.2)) !important;
}

body.home .btn-primary {
    border-radius: 999px !important;
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28) !important;
}

body.home .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 34px rgba(234, 88, 12, 0.34) !important;
}

body.home .service-card,
body.home .featured-card,
body.home .team-img,
body.home .testimonial-card,
body.home .insurance-card,
body.home .map-facade {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

body.home .service-card:hover,
body.home .featured-card:hover,
body.home .testimonial-card:hover,
body.home .insurance-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12) !important;
}

body.home .section-bg {
    background: linear-gradient(180deg, #fafafa 0%, #f5f7fb 100%) !important;
}

body.home .team-specialty {
    border: 1px solid rgba(37, 118, 145, 0.2);
}

body.home #testimonios .testimonial-card blockquote {
    line-height: 1.65;
    border-left: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    height: auto !important;
}

body.home #testimonios .testimonial-card blockquote::before,
body.home #testimonios .testimonial-card blockquote::after {
    content: none !important;
    display: none !important;
}

body.page-id-144 .entry-content header {
    backdrop-filter: saturate(130%) blur(6px);
    -webkit-backdrop-filter: saturate(130%) blur(6px);
}

body.page-id-144 .entry-content #amelia-booking-container,
body.page-id-144 .entry-content #amelia-v2-booking-1000 {
    border-radius: 14px;
}

/* Turnos page header: keep it consistent with site navigation */
body.page-id-144 .entry-content > header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08) !important;
}

body.page-id-144 .entry-content > header > .container {
    max-width: min(1320px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 3vw, 42px) !important;
    padding-right: clamp(16px, 3vw, 42px) !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    min-height: 86px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 22px;
}

body.page-id-144 .entry-content > header img {
    height: 56px !important;
    width: auto !important;
}

body.page-id-144 .entry-content > header nav {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
}

body.page-id-144 .entry-content > header nav a {
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

body.page-id-144 .entry-content > header nav a:hover {
    color: #ea580c !important;
}

@media (max-width: 900px) {
    body.page-id-144 .entry-content > header > .container {
        min-height: 74px;
    }

    body.page-id-144 .entry-content > header img {
        height: 44px !important;
    }

    body.page-id-144 .entry-content > header nav {
        gap: 16px !important;
    }
}

/* Turnos page: definitive layout refinement (high specificity) */
body.page-id-144 .entry-content .container.mx-auto {
    max-width: min(1380px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(24px, 4vw, 72px) !important;
    padding-right: clamp(24px, 4vw, 72px) !important;
}

body.page-id-144 .entry-content header.bg-white.shadow-md.sticky {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.page-id-144 .entry-content header.bg-white.shadow-md.sticky .container.mx-auto {
    min-height: 88px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body.page-id-144 .entry-content header.bg-white.shadow-md.sticky img {
    height: 58px !important;
    width: auto !important;
}

body.page-id-144 .entry-content header.bg-white.shadow-md.sticky nav a {
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    padding: 6px 2px !important;
}

body.page-id-144 .entry-content header.bg-white.shadow-md.sticky nav a:hover {
    color: #ea580c !important;
}

body.page-id-144 .entry-content section.bg-gradient-to-b {
    padding-top: clamp(24px, 4vw, 44px) !important;
    padding-bottom: clamp(80px, 10vw, 132px) !important;
}

body.page-id-144 .entry-content section.bg-gradient-to-b h1 {
    letter-spacing: -0.02em;
}

body.page-id-144 .entry-content section.container.mx-auto.-mt-10,
body.page-id-144 .entry-content section.container.mx-auto.md\:-mt-12 {
    margin-top: clamp(-58px, -6vw, -42px) !important;
}

body.page-id-144 .entry-content section.container.mx-auto .max-w-4xl {
    max-width: min(1240px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.page-id-144 .entry-content section.container.mx-auto .max-w-4xl.bg-white {
    border-radius: 18px !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
    padding: clamp(16px, 2.8vw, 34px) !important;
}

body.page-id-144 .entry-content section.section-bg-gray {
    background: linear-gradient(180deg, #f7f9fc 0%, #f3f6fb 100%) !important;
}

/* Turnos page: "Guia para tu Turno" rearranged */
body.page-id-144 .entry-content section.section-bg-gray {
    padding-top: clamp(34px, 5vw, 56px) !important;
    padding-bottom: clamp(34px, 5vw, 56px) !important;
}

body.page-id-144 .entry-content section.section-bg-gray .max-w-4xl {
    max-width: min(1180px, 100%) !important;
}

body.page-id-144 .entry-content section.section-bg-gray .text-center.mb-12 {
    margin-bottom: clamp(22px, 4vw, 36px) !important;
}

body.page-id-144 .entry-content section.section-bg-gray .grid {
    gap: clamp(16px, 2.4vw, 30px) !important;
    align-items: stretch !important;
}

body.page-id-144 .entry-content section.section-bg-gray .grid > div {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: clamp(18px, 2.2vw, 28px);
}

body.page-id-144 .entry-content section.section-bg-gray .grid > div h3 {
    margin-bottom: 16px !important;
}

body.page-id-144 .entry-content section.section-bg-gray .grid > div .flex.items-start {
    margin-top: 0 !important;
    padding: 12px 0;
}

body.page-id-144 .entry-content section.section-bg-gray .grid > div .flex.items-start + .flex.items-start {
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

body.page-id-144 .entry-content footer.bg-brand-brown .container.mx-auto {
    max-width: min(1380px, 100%) !important;
}

@media (max-width: 900px) {
    body.page-id-144 .entry-content .container.mx-auto {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body.page-id-144 .entry-content header.bg-white.shadow-md.sticky .container.mx-auto {
        min-height: 72px !important;
    }

    body.page-id-144 .entry-content header.bg-white.shadow-md.sticky img {
        height: 44px !important;
    }
}

/* Turnos header = Home header style (definitive override) */
body.page-id-144 .entry-content header.bg-white.shadow-md.sticky {
    background: rgba(90, 65, 45, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22) !important;
}

body.page-id-144 .entry-content header.bg-white.shadow-md.sticky .container.mx-auto {
    max-width: 1280px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    min-height: 76px !important;
}

body.page-id-144 .entry-content header.bg-white.shadow-md.sticky img {
    height: 40px !important;
}

body.page-id-144 .entry-content header.bg-white.shadow-md.sticky nav a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

body.page-id-144 .entry-content header.bg-white.shadow-md.sticky nav a:hover {
    color: #fdba74 !important;
}

/* Final normalization using the exact provided HTML classes */
body.page-id-144 .entry-content > header.bg-white.shadow-md.sticky {
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    background: rgba(90, 65, 45, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 0 !important;
}

body.page-id-144 .entry-content > header.bg-white.shadow-md.sticky > .container.mx-auto.px-6.py-4.flex.justify-between.items-center {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: clamp(18px, 2.6vw, 32px) !important;
    padding-right: clamp(18px, 2.6vw, 32px) !important;
    min-height: 74px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body.page-id-144 .entry-content > header.bg-white.shadow-md.sticky a > img.h-12.md\:h-16 {
    height: 42px !important;
    width: auto !important;
}

body.page-id-144 .entry-content > header.bg-white.shadow-md.sticky nav.hidden.md\:flex.items-center.space-x-8 {
    display: flex !important;
    gap: 1.5rem !important;
}

body.page-id-144 .entry-content > header.bg-white.shadow-md.sticky nav.hidden.md\:flex.items-center.space-x-8 > a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    transition: color 0.2s ease !important;
}

body.page-id-144 .entry-content > header.bg-white.shadow-md.sticky nav.hidden.md\:flex.items-center.space-x-8 > a:hover {
    color: #fdba74 !important;
}

/* =========================================================
   CONSISTENCY LAYER (Home + Turnos) - single visual system
   ========================================================= */
:root {
    --ara-brown: #5a412d;
    --ara-brown-deep: #4a3424;
    --ara-orange: #ea580c;
    --ara-orange-soft: #fdba74;
    --ara-ink: #334155;
    --ara-ink-soft: #64748b;
    --ara-surface: #ffffff;
    --ara-bg: #f7f9fc;
    --ara-border: rgba(15, 23, 42, 0.09);
    --ara-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

body.home,
body.page-id-144 {
    color: var(--ara-ink);
    background: var(--ara-bg);
}

/* Home truly full width (remove global side gutters) */
body.home .site-content .ast-container,
body.home .ast-container,
body.home #primary,
body.home .content-area,
body.home .site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.home #page,
body.home #content,
body.home .hentry,
body.home .entry-content,
body.home .entry-content.clear,
body.home .entry-content[data-ast-blocks-layout] {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home {
    overflow-x: hidden !important;
}

body.home #content > .ast-container,
body.home article#post-2545,
body.home article#post-2545 .ast-article-single,
body.home article#post-2545 .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Home has embedded full HTML markup inside entry-content */
body.home article#post-2545 .entry-content > html,
body.home article#post-2545 .entry-content > body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home a,
body.page-id-144 a {
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    text-decoration: none !important;
}

body.home .nav-desktop,
body.page-id-144 .entry-content > header.bg-white.shadow-md.sticky {
    background: rgba(90, 65, 45, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2) !important;
    border: 0 !important;
}

body.home .nav-link,
body.home .mobile-menu-link,
body.page-id-144 .entry-content > header.bg-white.shadow-md.sticky nav a,
body.page-id-144 .entry-content #mobile-menu a {
    color: #ffffff !important;
    text-decoration: none !important;
}

body.home .nav-link:hover,
body.home .mobile-menu-link:hover,
body.page-id-144 .entry-content > header.bg-white.shadow-md.sticky nav a:hover,
body.page-id-144 .entry-content #mobile-menu a:hover {
    color: var(--ara-orange-soft) !important;
}

body.home .btn-primary,
body.page-id-144 .entry-content .btn-primary,
body.page-id-144 #to-top-btn {
    background: var(--ara-orange) !important;
    border-color: var(--ara-orange) !important;
    color: #fff !important;
}

body.home .btn-primary:hover,
body.page-id-144 .entry-content .btn-primary:hover,
body.page-id-144 #to-top-btn:hover {
    background: #c2410c !important;
    border-color: #c2410c !important;
}

body.home .section-bg,
body.page-id-144 .entry-content .section-bg-gray {
    background: linear-gradient(180deg, #fafbfd 0%, #f5f7fb 100%) !important;
}

body.home .service-card,
body.home .featured-card,
body.home .testimonial-card,
body.home .insurance-card,
body.home .map-facade,
body.page-id-144 .entry-content section.section-bg-gray .grid > div,
body.page-id-144 .entry-content section.container.mx-auto .max-w-4xl.bg-white {
    background: var(--ara-surface) !important;
    border: 1px solid var(--ara-border) !important;
    box-shadow: var(--ara-shadow) !important;
}

body.home .text-gray-600,
body.page-id-144 .entry-content .text-gray-600 {
    color: var(--ara-ink-soft) !important;
}

body.home .text-brand-brown,
body.page-id-144 .entry-content .text-brand-brown {
    color: var(--ara-brown) !important;
}

body.home .bg-brand-brown,
body.page-id-144 .entry-content .bg-brand-brown {
    background: var(--ara-brown) !important;
}

body.home .footer-link,
body.page-id-144 .entry-content .footer-link {
    color: #cbd5e1 !important;
}

body.home .footer-link:hover,
body.page-id-144 .entry-content .footer-link:hover {
    color: #ffffff !important;
}

/* Home team bios: prevent white-on-white text after toggle */
body.home .team-bio-text {
    color: #475569 !important;
}

body.home .team-bio-toggle,
body.home .team-bio-toggle span,
body.home .team-bio-toggle.is-expanded,
body.home .team-bio-toggle.is-expanded span {
    color: #c2410c !important;
    background: transparent !important;
    border: 0 !important;
}

body.home .team-bio-toggle:hover,
body.home .team-bio-toggle:hover span {
    color: #ea580c !important;
}

body.home .team-bio-toggle svg,
body.home .team-bio-toggle.is-expanded svg {
    color: #c2410c !important;
}

/* Turnos (template nuevo): remove outer frame/border and go true fullscreen */
body.page-id-144 {
    overflow-x: hidden !important;
}

body.page-id-144 .entry-content,
body.page-id-144 .entry-content > header,
body.page-id-144 .entry-content > main,
body.page-id-144 .entry-content > main > .relative {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-id-144 .entry-content .container.mx-auto {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Keep internal breathing room without creating page frame */
body.page-id-144 .entry-content header .container.mx-auto,
body.page-id-144 .entry-content main .hero-gradient .container.mx-auto,
body.page-id-144 .entry-content main section.py-16 .container.mx-auto,
body.page-id-144 .entry-content footer .container.mx-auto {
    padding-left: clamp(16px, 2.2vw, 32px) !important;
    padding-right: clamp(16px, 2.2vw, 32px) !important;
}

/* HARD edge-to-edge for Turnos page */
body.page-id-144 .entry-content .container,
body.page-id-144 .entry-content .container.mx-auto,
body.page-id-144 .entry-content [class*="max-w-"] {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.page-id-144 .entry-content > header .container.mx-auto,
body.page-id-144 .entry-content > main .container.mx-auto,
body.page-id-144 .entry-content > main .hero-gradient .container.mx-auto,
body.page-id-144 .entry-content > main section.container.mx-auto {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.page-id-144 .entry-content > main > .relative,
body.page-id-144 .entry-content > main > .relative > section,
body.page-id-144 .entry-content > main > .relative > section > div {
    max-width: 100% !important;
    width: 100% !important;
}

/* Break out of Astra constrained content wrapper to true viewport width */
body.page-id-144 .entry-content #main-header,
body.page-id-144 .entry-content > main,
body.page-id-144 .entry-content > main > .relative,
body.page-id-144 .entry-content .hero-gradient,
body.page-id-144 .entry-content > main > section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* Turnos final cleanup: white background, no top gap, better header spacing */
body.page-id-144,
body.page-id-144 .site,
body.page-id-144 #page,
body.page-id-144 #content,
body.page-id-144 .site-content,
body.page-id-144 .entry-content,
body.page-id-144 .entry-content > body {
    background: #ffffff !important;
}

body.page-id-144 .entry-content > body {
    margin: 0 !important;
    padding: 0 !important;
}

body.page-id-144 .entry-content #main-header {
    margin-top: 0 !important;
    top: 0 !important;
}

body.page-id-144 .entry-content .bg-brand-cream,
body.page-id-144 .entry-content .bg-brand-cream-dark {
    background: #ffffff !important;
}

/* Keep edge-to-edge page, but constrain header internals so menu has breathing room */
body.page-id-144 .entry-content #main-header > .container.mx-auto.px-6.py-3\.5.flex.justify-between.items-center {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(18px, 2.8vw, 40px) !important;
    padding-right: clamp(18px, 2.8vw, 40px) !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Kill Astra top/bottom spacing on this page (source of the top gap) */
body.page-id-144.ast-plain-container.ast-no-sidebar #primary,
body.page-id-144.ast-plain-container.ast-no-sidebar #content,
body.page-id-144.ast-plain-container.ast-no-sidebar #content > .ast-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Turnos bottom area cleanup: no boxed footer, no odd beige bands */
body.page-id-144 .entry-content > main > section.bg-brand-cream-dark {
    background: #ffffff !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

body.page-id-144 .entry-content > main > section.bg-brand-cream-dark .container.mx-auto {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 2.4vw, 32px) !important;
    padding-right: clamp(16px, 2.4vw, 32px) !important;
}

body.page-id-144 .entry-content > main > section.bg-brand-cream-dark .max-w-3xl {
    max-width: 100% !important;
    border-radius: 14px !important;
}

/* Legacy footer hacks removed (they caused split background blocks) */

/* ---- FINAL hard override for Turnos page shell (post-144) ---- */
body.page-id-144 #content > .ast-container,
body.page-id-144 #primary,
body.page-id-144 #main,
body.page-id-144 .site-main,
body.page-id-144 article#post-144,
body.page-id-144 article#post-144 > .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Astra page-builder injects this and causes the top empty band */
body.page-id-144.ast-page-builder-template .site-main > article#post-144 {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Keep page background clean white edge-to-edge */
body.page-id-144,
body.page-id-144 #page,
body.page-id-144 #content,
body.page-id-144 .site-content {
    background: #ffffff !important;
}

/* Footer truly edge-to-edge with inner content centered */
body.page-id-144 article#post-144 footer#contacto {
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-shadow: none !important;
    clip-path: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    background: #4a2f1f !important;
}

body.page-id-144 article#post-144 footer#contacto > .container.mx-auto {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 2.2vw, 32px) !important;
    padding-right: clamp(16px, 2.2vw, 32px) !important;
}

/* CLS protection is injected inline from plugin with smaller, dynamic-safe values */
