/*
Theme Name: Dr. Carlos Miramontes
Theme URI: https://drmiramontes.com
Author: Tu Nombre
Author URI: https://ejemplo.com
Description: Tema para clínica de cirugía plástica – Dr. Carlos Miramontes. Tailwind + CSS.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miramontestheme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  display: inline-block;
  vertical-align: middle;
}

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
    --color-primary:      #137fec;
    --color-primary-dark: #0d68c9;
    --color-gold:         #D4AF37;
    --color-gold-dark:    #b08d4b;
  
    --color-bg:           #f6f7f8;
    --color-surface:      #ffffff;
    --color-border:       #dbe0e6;
    --color-text:         #111418;
    --color-muted:        #617589;
    --color-footer-link:  #9aa2ac;
  
    --font-base: 'Manrope', sans-serif;
  
    --radius-sm:   0.25rem;
    --radius-md:   0.5rem;
    --radius-lg:   0.75rem;
    --radius-xl:   1rem;
    --radius-2xl:  1.25rem;
    --radius-pill: 9999px;
  }
  
  /* ─────────────────────────────────────────
     GLOBAL RESET / BASE
  ───────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; }
  
  body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
  }
  
  a { text-decoration: none; color: inherit; }
  
  /* ─────────────────────────────────────────
     TYPOGRAPHY
  ───────────────────────────────────────── */
  .type-hero {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.033em;
  }
  
  .type-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  
  .type-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
  }
  
  .type-overline {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
  }
  
  .type-body-lg {
    font-size: 1.125rem;
    line-height: 1.65;
  }
  
  .type-body {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .type-body-sm {
    font-size: 0.875rem;
    line-height: 1.55;
  }
  
  .type-micro {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  /* Color helpers */
  .text-primary-brand { color: var(--color-primary); }
  .text-muted-brand   { color: var(--color-muted); }
  .text-gold          { color: var(--color-gold); }
  .bg-gold            { background-color: var(--color-gold); }
  .border-gold        { border-color: var(--color-gold); }
  .bg-gold-hover:hover,
  .hover\:bg-gold-hover:hover { background-color: var(--color-gold-dark); }
  .scrollbar-hide::-webkit-scrollbar,
  .hide-scrollbar::-webkit-scrollbar { display: none; }
  .scrollbar-hide,
  .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
  .hero-gradient {
    background: linear-gradient(to bottom, #FFFFFF 0%, #F8FAFC 100%);
  }
  .dark .hero-gradient {
    background: linear-gradient(to bottom, #101922 0%, #0d1520 100%);
  }
  .fade-transition {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  }
  .hero-mask {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  }
  .text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  .bg-gradient-fade {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  }
  .hero-gradient-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(255, 255, 255, 1) 100%);
  }
  .dark .hero-gradient-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(17, 24, 33, 1) 100%);
  }
  .before-after-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 40%);
  }

  /* ─────────────────────────────────────────
     BACKGROUNDS (extraídos de inline styles)
  ───────────────────────────────────────── */
  .hero-busto-bg {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuB0hDw_65X3qZEUl4lLFy9_fLL23Ph3sHSVvAQtRXr0HXkbCUkYX6-X0EHc6hXKRaBJmDxiaHyYoJsGDQ2M8mBFcyzRIZJo-43xsJp0BnQTFFZ_7bdnEmC4xcrqOs-AforuNRegFFYCCzWlJxwd9XqhhL5hLMsQo4z9YbjQXRKhwQuVkqZMqI5EdMeZlpaA26MjwsSHu-rc7o4_J35XGEd5MEZZCNWqxoh41rRVxZxh1Gcl3F1E7LpH5wMJaC3RSo9AfU18xlQBXtE");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .implante-redondo-bg {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuCpE0t_iiu4xZ0tam_3aBbuf0f-g--kjU0qs31G8QjC9sPkQZ2V92Z37QagiEbJGji2xnPm6vnDII_9gkaLYBJMsQZWHimsmM5MZCP_5FyXSKEDvGB5XOEk_hWwvodmTYEMnrHXqzjPyrDtTH8x53v7JpeRZVWsPIYmJmQGXu1bgRNhMMK4wl0d3AuOaA3nCiZoYRZ3YJmWmZW9vxU1i0Q4NCj-Zpnev5Zqad6PiLwwWvA8uuRGUTLnV7fw6GhPR2IHyTTZv8Y-wpI");
    background-size: cover;
    background-position: center;
  }
  .implante-anatomico-bg {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuAopuYzya2LYFh1aIvB20p_TJnRzrcTq6zh0sNaunJpinjv5gDTHbrGJZ1uKJu8GF_BY158KAV43eEhcNBRi_iIp_9Vx6vIJdtXVyq4G4JuwxOtplK6A68jMH89w7nCkHCROCvqkSvmQepYI-ed_WuI5hIBSxpC9K9eCZNtKgc0vzJt2MTGUvApcN4kWI96LroSXw2x8O0RCRWrx6yF56NT7JS3wrBRdM_ck3ewf0yUXtIHWqBiLuA-UNW1fyFo-2171ujLrNGzmV8");
    background-size: cover;
    background-position: center;
  }
  .resultado-busto-1-bg {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuC6ipTxhSQjL39iTm4a6ShRWMo6UMBrl8jzrTivOk59GQhe-BpTueiceKYgjDQ-Gt9laJ8rbAVLcM-W94uUBjNGuV-n0OKnU-rjNJbVwcM5yMNUYeRj32WG97xbjZdJjTFGEqTGm7PMs3mM0GlzFLdJSr-6kbP-SrOxZ3NEIpcnRJNapKcwot4V3n6aMIHXivwA8qfGOiUt84HZBijBndEMjmxjVKx9AL3kQpG442ZhVaQ79yXLXgHznw07rYtV0Nm7Rvb0ACOgu8A");
    background-size: cover;
    background-position: center;
  }
  .resultado-busto-2-bg {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuDdmZd4juVBi9bIXRN1FcUw0aDXH-HDWO3sznLwzVO9v_rp3mCVjT8eXCLAb3fUmb1SrcnHZ8OFiDNpE2CaIdkmo1awiZgdqNUDochaHE7zKS-7qSXVanHgZDTZ0Y3-1AfqgeiRtY-FnbfxeV4xZYmwwc7V_p31-8jCSJSL5AOna82GMw0u0p9QY5PkbWHhc5Em2eReOS-oLyyMhTDhqstHBzCLCqq9_sHbOajSXvG86WrPRcra3sBuHsnIkooB6Gs3BSFpLAScJng");
    background-size: cover;
    background-position: center;
  }
  .resultado-busto-3-bg {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuANzOWu87cckbcj_AGzowZNXLLB6wX2LjMQkKbmJfWXa6j8gNAe_awS4PHKJ0gdgl519oaphbDBtOlQC3-J7k5JzbB2m8sLlnPNIPSds63qK6PVDrr_jc2b37TkoAacQh9KUH2KU_27Uv21AcKpiN8-ovTnoPBrQNNjievhHstbCXRh5BtcDtU-rThVy6qlm1odjd1-2sO6IpWTSH9_JR9Wm47GaVo8wq7KKDbOehNV_hhzwl4NxzS87bbvneP2BZzb3ao6GNwtk7Y");
    background-size: cover;
    background-position: center;
  }
  .hero-mommy-bg {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.1)),
      url("https://lh3.googleusercontent.com/aida-public/AB6AXuC8u3eXm0-I5SHlUUSvvH7QJvvkEE3nQQIFCcA184HPqhxtLA1CvZ05-FLYf_wN0PDeKeJ2P4FBNorAX07jw-iztMudwxUqaRwBIQk8roXSCqWBwN0s0GWc_Jl42YzO3KOoeDjTgoATBm7tZtzfH0F5hscsLPjLtJlbW0TbLd_O-ixbIAyPuxmMf6g5iFwUfrFmyB6hlW9_WX1xUfXxhpsnSpgSFWQ7NFOPoRdBrldYfSrwhJ55vaerK8GBBmHnasBNz2Zvx7LVxyE");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .hero-liposuction-bg {
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuBSzjQq5_OPT-vEiSbszcGAoQTNazsuNMg3p6C_Wz0TYMThGPsWgt1tq_jUljYTzIKiORJ4_vjTnvSyhNI0KdcEfdD3WOlnDTZdZB63Hutnzb14F-6dWCbll8SMeVN7erDGmLNTXsUTZVftOCAH3GmmkMTWQhhnyoMc3WiY7CRpazXNbdypV-SZDvr6baRZ9zhODInT6N69rcapBJFIS3f4rRdm6q7fMz6aHGeAFXI7ty1Y328jj96vzOCOWBULmuwhN6tTLk2UqLg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .hero-bg {
    background-image: linear-gradient(rgba(16, 25, 34, 0.4) 0%, rgba(16, 25, 34, 0.6) 100%),
      url("https://lh3.googleusercontent.com/aida-public/AB6AXuCXMvALDXaWLH7z-H9Rj6Vn_T0PLm0etdV7_v250cfp0CNV6oxxD6XUAeHJX6sFE9NFOly39BTa4zKoYP_pCBzuzkwVlmHTcMxlWPuRhXO9m3fB2E9y2FBkwBUNrakwfGmc4oJbxMm0TGDE-5zZ7FlwOdAi0Q6MKMEPECb3WbhK6lK9h0K9gwXJft7CtaczFeHw3bji5Ch2hGevJnBYyseBgotfIQ8VIwlYeB3kvNwaVjdyBt86qrWb5JPsOEfUiaI_xCpI8X3h7H8");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }


  .about-doctor-img {
    background-size: cover;
    background-position: center;
  }

  .reviewer-avatar--sarah { background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuB0AmHvDkJNEoOKEwnfOrcaitsJsLrvaM732B0hFf5lq-sllS1rnSzWoFqLpv5qVzQdVpvUczmlYiTTL901gCa3nc9Qveu29HkFsu1sQ8tlJzIx5zwh8hOUY_J9uMzBYjRoubcZiftt16jVOICn_MR21xoTfyG2Sl3iVxKC4xYn3pXW3tKTSAEm5kYD-PGv4cSX6mL36yXT0qcO9SeZOPfnOqCJFk7--qVAsqxhly-pEE6P7z3wXg1ur1zMCLx2NdPl2iuOXw1l9zQ"); background-size: cover; background-position: center; }
  .reviewer-avatar--elena { background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuB9yzsfqcqaacoxmfcWaUVCTVhvre7q0rfAZmuslo4i_JhOpdXT57in67oTEI6Y8k0WhzK0qBboBZDXLHOzLSxB46N8f--_5Ui2K8Ooirmg3DTt-f1i65wejvfLTcm86qWM5Gkf_QM4Hnf4hcIct51LhvO24BcEAJEJtmzf-XrWKxy1wc5pepvmhKtCi_OUDuPKltuMStlyXiosFUAVcnoMuMnAJG9iGavhF9JTUqx4d1h4ObdQYFVXDK1pwCw7QDPL192WTuBgKfk"); background-size: cover; background-position: center; }
  .reviewer-avatar--jennifer { background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuB0RHMyspyc-zKeseFnNc4S1IUU6oeyLBnUjTOYXawD2mC7v-TWpQaM1Ofd_Ke-IUQ95R78MBZrIN1Q6GrfoZit1T6EkpTDKnz3-yGla76DwVR4Gk8PgAhRGoPMrRzedSu-2C-E3s43E1qp47MQHHWelEC-iN1nbCiDI9JRMgZ6wVYp0vi-Fu595eBs0004G9ipNIVnosZqaK4Dg0TRDCvTeZv1zEgU3omW5HItnBrykBLoXolHmqmtTKi1NpTARkQcUu1OX47Liqw"); background-size: cover; background-position: center; }

  /* Nav logo icon */
  .nav-logo-icon .material-symbols-outlined { font-size: 32px; }

  /* ─────────────────────────────────────────
     SUBMENÚ DESPLEGABLE – diseño armónico
  ───────────────────────────────────────── */
  .nav-primary ul { list-style: none; margin: 0; padding: 0; }
  .nav-primary { overflow: visible; }
  .nav-primary > ul {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: nowrap;
    height: 2.5rem;
    overflow: visible;
  }
  .nav-primary > ul > li {
    display: flex;
    align-items: center;
    height: 2.5rem;
    overflow: visible;
  }
  .nav-primary .menu-item-has-children { overflow: visible; }
  .nav-primary > ul > li > a {
    line-height: 1;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }
  .nav-primary .menu-item-has-children { position: relative; overflow: visible; }
  .nav-primary .menu-item-has-children > a {
    gap: 0.35rem;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .nav-primary .menu-item-has-children > a:hover,
  .nav-primary .menu-item-has-children.submenu-open > a {
    color: var(--color-primary);
  }
  .nav-primary .menu-item-has-children > a::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 0.25rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.6;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .nav-primary .menu-item-has-children.submenu-open > a::after {
    transform: rotate(180deg);
  }
  .nav-primary .menu-item-has-children .sub-menu,
  .nav-primary ul ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 0.5rem;
    min-width: 220px;
    padding: 0.5rem;
    list-style: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
    z-index: 9999;
  }
  .dark .nav-primary .sub-menu {
    background: #1a2632;
    border-color: #374151;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-primary .sub-menu .menu-item { margin: 0; }
  .nav-primary .sub-menu .menu-item + .menu-item { margin-top: 0.125rem; }
  .nav-primary .sub-menu a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-primary .sub-menu a:hover {
    background: rgba(19, 127, 236, 0.08);
    color: var(--color-primary);
  }
  .dark .nav-primary .sub-menu a { color: #e2e8f0; }
  .dark .nav-primary .sub-menu a:hover {
    background: rgba(19, 127, 236, 0.15);
    color: var(--color-primary);
  }
  .nav-primary .sub-menu .nav-submenu-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
  }
  .nav-primary .sub-menu .nav-submenu-description {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.4;
  }
  
  /* ─────────────────────────────────────────
     BUTTONS
  ───────────────────────────────────────── */
  .btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-base);
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease,
                box-shadow 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    text-decoration: none;
  }
  .btn-brand:active { transform: scale(0.97); }
  
  /* Sizes */
  .btn-brand--sm {
    font-size: 0.8125rem;
    height: 2.25rem;
    padding: 0 1rem;
  }
  .btn-brand--md {
    font-size: 0.9375rem;
    height: 2.75rem;
    padding: 0 1.5rem;
  }
  .btn-brand--lg {
    font-size: 1rem;
    height: 3.25rem;
    padding: 0 2rem;
  }
  
  /* Solid Primary */
  .btn-solid-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(19,127,236,0.3);
  }
  .btn-solid-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 6px 20px rgba(19,127,236,0.4);
    color: #fff;
  }
  
  /* Solid White */
  .btn-solid-white {
    background-color: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  }
  .btn-solid-white:hover {
    background-color: #f0f2f4;
    color: var(--color-primary);
  }
  
  /* Ghost White (sobre fondos oscuros/de color) */
  .btn-ghost-white {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
  }
  .btn-ghost-white:hover {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
  }
  
  /* Ghost Primary (sobre fondos claros) */
  .btn-ghost-primary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
  }
  .btn-ghost-primary:hover {
    background-color: var(--color-primary);
    color: #fff;
  }
  
  /* Text / Link */
  .btn-text {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 700;
    padding: 0;
    font-family: var(--font-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
  .btn-text:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  
  /* Contenedor global */
  .container-miramontes {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  @media (min-width: 768px) {
    .container-miramontes { padding: 0 2.5rem; }
  }
  
  /* ─────────────────────────────────────────
     HEADER (diseño original)
  ───────────────────────────────────────── */
  .miramontes-body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
  }
  
  .miramontes-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }
  
  .miramontes-header__brand {
    color: var(--color-text);
  }
  .miramontes-header__brand:hover { color: inherit; }
  
  .miramontes-header__icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .miramontes-header__icon .material-symbols-outlined {
    font-size: 32px;
  }
  
  .miramontes-header__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.015em;
  }
  
  .miramontes-nav__link,
  .miramontes-nav__list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s;
    text-decoration: none;
  }
  .miramontes-nav__link:hover,
  .miramontes-nav__list a:hover { color: var(--color-primary); }
  
  .miramontes-mobile-toggle {
    color: var(--color-text);
  }
  .miramontes-mobile-toggle__icon { font-size: 1.5rem; }

  .miramontes-header__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
  }

  @media (min-width: 768px) {
    .miramontes-header__bar {
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
    .miramontes-header__bar .nav-primary {
      justify-self: center;
    }
    .miramontes-header__actions {
      justify-self: end;
    }
  }

  .miramontes-wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    color: #6b7280;
    line-height: 1;
  }
  .dark .miramontes-wordmark { color: #c5cdd6; }
  .miramontes-wordmark__cma {
    font-family: "Pinyon Script", "Allura", cursive;
    font-size: clamp(1.85rem, 5vw, 2.5rem);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .miramontes-wordmark__sub {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
    margin-top: 0.05rem;
  }
  .miramontes-wordmark__rule {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0.28rem 0 0.32rem;
    background: currentColor;
    opacity: 0.45;
  }
  .miramontes-wordmark__tagline {
    font-family: "Allura", "Great Vibes", cursive;
    font-size: clamp(0.62rem, 2.35vw, 0.95rem);
    line-height: 1;
    white-space: nowrap;
  }

  @media (max-width: 767px) {
    .miramontes-header__brand .miramontes-wordmark__sub { display: none; }
    .miramontes-header__brand .miramontes-wordmark__cma { font-size: 1.65rem; line-height: 1; }
    .miramontes-header__silhouette { height: 2rem !important; }
  }

  .miramontes-mobile-nav[hidden] { display: none !important; }
  .miramontes-mobile-nav.is-open { display: block; }
  @media (max-width: 767px) {
    .miramontes-mobile-nav.is-open {
      position: fixed;
      inset: 0;
      top: var(--mirbm-mobile-header-height, 3.5rem);
      z-index: 45;
      overflow-y: auto;
      background: var(--color-surface);
    }
  }
  body.miramontes-mobile-nav-open { overflow: hidden; }
  @media (max-width: 767px) {
    body.miramontes-mobile-nav-open .miramontes-header-cta { display: none; }
  }

  .miramontes-header-cta__label--short { display: inline; }
  .miramontes-header-cta__label--full { display: none; }
  @media (min-width: 640px) {
    .miramontes-header-cta__label--short { display: none; }
    .miramontes-header-cta__label--full { display: inline; }
  }
  
  /* Compatibilidad con clases antiguas */
  .nav-link-brand { font-size: 0.875rem; font-weight: 500; color: var(--color-text); transition: color 0.2s; }
  .nav-link-brand:hover { color: var(--color-primary); }
  .nav-logo-icon { font-size: 2rem; color: var(--color-primary); }
  .nav-brand-name { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
  
  /* ─────────────────────────────────────────
     HERO SECTION
  ───────────────────────────────────────── */
  .hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image:
      linear-gradient(rgba(16,25,34,0.40) 0%, rgba(16,25,34,0.65) 100%),
      url("https://lh3.googleusercontent.com/aida-public/AB6AXuCXMvALDXaWLH7z-H9Rj6Vn_T0PLm0etdV7_v250cfp0CNV6oxxD6XUAeHJX6sFE9NFOly39BTa4zKoYP_pCBzuzkwVlmHTcMxlWPuRhXO9m3fB2E9y2FBkwBUNrakwfGmc4oJbxMm0TGDE-5zZ7FlwOdAi0Q6MKMEPECb3WbhK6lK9h0K9gwXJft7CtaczFeHw3bji5Ch2hGevJnBYyseBgotfIQ8VIwlYeB3kvNwaVjdyBt86qrWb5JPsOEfUiaI_xCpI8X3h7H8");
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(8px);
    width: fit-content;
  }
  
  /* ─────────────────────────────────────────
     PROCEDURE CARDS
  ───────────────────────────────────────── */
  .proc-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #fff;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .proc-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
    border-color: rgba(19,127,236,0.4);
  }
  
  .proc-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: rgba(19,127,236,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: background 0.3s, color 0.3s;
  }
  .proc-card:hover .proc-card__icon {
    background: var(--color-primary);
    color: #fff;
  }
  
  /* ─────────────────────────────────────────
     ABOUT SECTION
  ───────────────────────────────────────── */
  .about-section {
    background: var(--color-bg);
    padding: 5rem 0;
    overflow: hidden;
  }
  
  .about-img-wrap {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  }
  .about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
  }
  .blur-circle--blue-sm {
    width: 8rem; height: 8rem;
    background: rgba(19,127,236,0.2);
    bottom: -1.5rem; left: -1.5rem;
  }
  .blur-circle--blue-lg {
    width: 10rem; height: 10rem;
    background: rgba(96,165,250,0.2);
    top: -1.5rem; right: -1.5rem;
  }
  
  .about-stat-badge {
    position: absolute;
    bottom: 1.5rem; right: 1.5rem;
    z-index: 10;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .about-stat-badge__num {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
  }
  .about-stat-badge__label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
  }
  
  .check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .check-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--color-text);
  }
  .check-list .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 1.25rem;
  }
  
  /* ─────────────────────────────────────────
     TESTIMONIALS
  ───────────────────────────────────────── */
  .testimonials-section {
    background: var(--color-surface);
    padding: 5rem 0;
  }
  
  .testimonial-card {
    background: var(--color-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    height: 100%;
    transition: border-color 0.3s;
  }
  .testimonial-card:hover { border-color: rgba(19,127,236,0.25); }
  
  .star-row {
    display: flex;
    gap: 2px;
    color: var(--color-primary);
    margin-bottom: 1rem;
  }
  
  .reviewer-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
  }
  
  /* ─────────────────────────────────────────
     BEFORE / AFTER GALLERY
  ───────────────────────────────────────── */
  .gallery-section {
    background: var(--color-bg);
    padding: 5rem 0;
  }
  
  .divider-line {
    height: 4px;
    width: 5rem;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    margin: 0 auto;
  }
  
  .ba-card { position: relative; }
  .ba-card__inner {
    display: flex;
    aspect-ratio: 4/3;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s;
  }
  .ba-card:hover .ba-card__inner {
    box-shadow: 0 16px 50px rgba(0,0,0,0.16);
  }
  .ba-card__side {
    flex: 1;
    overflow: hidden;
    position: relative;
  }
  .ba-card__side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .ba-card:hover .ba-card__side img { transform: scale(1.05); }
  .ba-card__divider { border-left: 1px solid rgba(255,255,255,0.3); }
  
  .ba-label {
    position: absolute;
    bottom: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    backdrop-filter: blur(6px);
  }
  .ba-label--before { left: 0.75rem;  background: rgba(0,0,0,0.50); }
  .ba-label--after  { right: 0.75rem; background: rgba(19,127,236,0.80); }

  /* Resultados de pacientes (cards uniformes sin recorte de imagen). */
  .results-case-card {
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
  }
  .results-case-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center center;
    background: #f8fafc;
  }
  @media (min-width: 768px) {
    .results-case-card {
      height: 380px;
    }
  }
  
  .ba-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-pill);
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  
  .carousel-nav-btn {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
  }
  .carousel-nav-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
  }
  
  .carousel-dot {
    width: 0.5rem; height: 0.5rem;
    border-radius: 50%;
    background: #d1d5db;
    display: inline-block;
  }
  .carousel-dot--active { background: var(--color-primary); }

  /* Home hero — desktop: imagen a ancho completo sin recorte (2560×1086) */

  .home-hero__bg {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Cuadro de copy: solo el alto de su contenido, con aire alrededor sobre la foto */
  .home-hero__content {
    max-width: 640px;
    height: auto;
    flex: 0 0 auto;
    align-self: flex-start;
    padding-block: 1.75rem;
    background-color: rgb(0 0 0 / 0.62) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgb(255 255 255 / 0.08);
    box-shadow: 0 16px 48px rgb(0 0 0 / 0.18);
  }

  @media (min-width: 768px) {
    .home-hero__content {
      padding-block: 2rem;
    }
  }

  /* Móvil: foto arriba + tarjeta sólida abajo (legible, sin blur sobre imagen) */
  @media (max-width: 767px) {
    .home-hero {
      display: flex !important;
      flex-direction: column !important;
      min-height: 0;
      background-color: var(--color-bg);
    }

    .home-hero picture {
      flex-shrink: 0;
      display: block;
      width: 100%;
      overflow: hidden;
    }

    .home-hero .home-hero__bg {
      position: relative !important;
      inset: auto;
      height: clamp(14rem, 58vw, 22rem);
      width: 100%;
      object-fit: cover;
      object-position: center 18%;
    }

    .home-hero .home-hero__overlay {
      position: relative !important;
      inset: auto;
      padding: 0.875rem 1rem 1.125rem;
      align-items: stretch;
      justify-content: flex-start;
    }

    .home-hero .home-hero__content {
      width: 100%;
      max-width: none;
      padding: 1.125rem 1rem 1.25rem;
      gap: 0.875rem;
      border-radius: 1rem;
      background-color: #151c27 !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border: 1px solid rgb(255 255 255 / 0.07);
      box-shadow: 0 10px 28px rgb(17 20 24 / 0.1);
    }

    .home-hero__title {
      font-size: clamp(1.625rem, 6.8vw, 2rem);
      line-height: 1.12;
    }

    .home-hero__desc {
      font-size: 0.9375rem;
      line-height: 1.55;
      max-width: none;
    }

    .home-hero__actions {
      margin-top: 0.125rem;
    }

    .home-hero__btn {
      min-height: 2.75rem;
      font-size: 0.9375rem;
    }
  }

  /* Tablet: cuadro un poco más compacto sobre la imagen */
  @media (min-width: 768px) and (max-width: 1023px) {
    .home-hero__overlay {
      padding-block: 1.5rem;
    }

    .home-hero__content {
      max-width: 34rem;
      padding-block: 1.5rem;
    }
  }

  /* Home hero — botones responsive */
  .home-hero__actions {
    width: 100%;
  }

  .home-hero__btn {
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1.25;
  }

  .home-hero__btn--secondary {
    background-color: rgb(255 255 255 / 0.14);
    border: 1px solid rgb(255 255 255 / 0.35);
    backdrop-filter: blur(12px);
  }

  .home-hero__btn--secondary:hover {
    background-color: rgb(255 255 255 / 0.24);
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .home-hero__desc {
      max-width: 100%;
    }

    .home-hero__actions {
      flex-direction: column;
      width: 100%;
    }

    .home-hero__actions .home-hero__btn {
      width: 100%;
    }
  }

  @media (min-width: 1024px) {
    .home-hero__actions {
      width: auto;
    }

    .home-hero__actions .home-hero__btn {
      width: auto;
      min-width: 11.5rem;
    }
  }

  /* Iconos PNG — tarjetas de procedimientos Home */
  .home-proc-card__icon {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
  }

  .home-proc-card__icon-img {
    width: 100%;
    height: 100%;
    padding: 0.25rem;
    object-fit: contain;
    display: block;
  }

  /* Hero procedimientos — botones alineados con la Home */
  .proc-hero__actions {
    width: 100%;
  }

  .proc-hero__btn {
    box-sizing: border-box;
    line-height: 1.25;
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .proc-hero__actions {
      flex-direction: column;
      width: 100%;
    }

    .proc-hero__actions .proc-hero__btn {
      width: 100%;
    }
  }

  @media (min-width: 1024px) {
    .proc-hero__actions {
      width: auto;
    }

    .proc-hero__actions .proc-hero__btn {
      width: auto;
      min-width: 11.5rem;
    }
  }

  /* Carruseles horizontales sin desbordar el viewport */
  .miramontes-carousel-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .miramontes-carousel-track {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .miramontes-carousel-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
  }

  .miramontes-carousel-track.is-dragging img {
    pointer-events: none;
  }

  .miramontes-carousel-track > * {
    flex: 0 0 clamp(260px, 82vw, 400px);
    scroll-snap-align: center;
    min-width: 0;
  }

  .miramontes-carousel-nav {
    position: absolute;
    top: calc(50% - 1rem);
    transform: translateY(-50%);
    z-index: 2;
  }

  .miramontes-carousel-nav--prev {
    left: 0.5rem;
  }

  .miramontes-carousel-nav--next {
    right: 0.5rem;
  }

  .miramontes-carousel-nav[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
  }

  @media (max-width: 639px) {
    .miramontes-carousel-nav {
      display: none;
    }
  }
  
  /* ─────────────────────────────────────────
     CTA BANNER
  ───────────────────────────────────────── */
  .cta-section {
    background-color: var(--color-primary);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
  }
  .cta-section__bg {
    position: absolute;
    inset: 0;
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuDdqj79S6F-1P1-S81hgbmaKFiPCJl8KZWWzpJjxIxKWcfBcW7o4tPBapaGQKw48AZ5D4B0XqGh4opQAQrBVrbCGQeE9EIgIcNqMGqEqcnR6PvvEif57KQaKsyyOOEW7TcyPR322YR9tk1W16g2VH6ZTbdyvnpXpJNwby_tgFBRVk6m6weZEsycqZk7kSIfgQOcrE8k13zQR9T5CRgnKVjI1t4N0mCNxNQPh8neT2EWIwvMlK5-xd0jyHfAACFYKxrY3vDLeTx9zUk");
    background-size: cover;
    background-position: center;
    opacity: 0.10;
  }
  
  /* ─────────────────────────────────────────
     FOOTER (diseño original adaptado)
  ───────────────────────────────────────── */
  .miramontes-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
  }
  
  .miramontes-footer__icon {
    font-size: 1.75rem;
    color: var(--color-primary);
  }
  .miramontes-footer__title {
    font-size: 1.125rem;
    font-weight: 700;
  }
  .miramontes-footer__desc {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
  }
  .miramontes-footer__heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
  }
  .miramontes-footer__link {
    font-size: 0.875rem;
    color: var(--color-muted);
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    text-decoration: none;
  }
  .miramontes-footer__link:hover { color: var(--color-primary); }
  .miramontes-footer__info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
  }
  .miramontes-footer__info-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .miramontes-footer__hours {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
  }
  .miramontes-footer__bottom {
    border-top: 1px solid var(--color-border);
  }
  .miramontes-footer__copyright {
    font-size: 0.75rem;
    color: var(--color-footer-link);
  }
  .miramontes-footer__social {
    color: var(--color-footer-link);
    transition: color 0.2s;
    line-height: 1;
  }
  .miramontes-footer__social:hover { color: var(--color-primary); }
  .miramontes-footer__social .material-symbols-outlined { font-size: 1.25rem; }
  
  /* Compatibilidad */
  .site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 4rem 0 2rem; }
  .footer-link { font-size: 0.875rem; color: var(--color-muted); display: block; margin-bottom: 0.4rem; transition: color 0.2s; }
  .footer-link:hover { color: var(--color-primary); }
  .footer-icon-link { color: var(--color-footer-link); transition: color 0.2s; }
  .footer-icon-link:hover { color: var(--color-primary); }
  .footer-heading { font-size: 0.9375rem; font-weight: 700; color: var(--color-text); margin-bottom: 1rem; }
  .footer-info-row { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted); margin-bottom: 0.75rem; }
  .footer-info-row .material-symbols-outlined { font-size: 1.1rem; flex-shrink: 0; }
  .footer-hours-row { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--color-muted); margin-bottom: 0.4rem; }
  .footer-divider { border-top: 1px solid var(--color-border); margin-top: 2.5rem; padding-top: 1.5rem; }

  /* ─────────────────────────────────────────
     AGENDAMIENTO CON PAGO (Cal API + MP)
  ───────────────────────── */
  .mirbm-agendamiento {
    --mirbm-ag-border: var(--color-border);
    --mirbm-ag-muted: var(--color-muted);
    --mirbm-ag-surface: var(--color-surface);
    --mirbm-ag-text: var(--color-text);
  }
  .dark .mirbm-agendamiento {
    --mirbm-ag-border: #2a3441;
    --mirbm-ag-muted: #9aa2ac;
    --mirbm-ag-surface: #1a2632;
    --mirbm-ag-text: #f8fafc;
  }

  .mirbm-ag-banner {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  .mirbm-ag-banner--success {
    background: rgba(19, 127, 236, 0.12);
    color: var(--color-text);
    border: 1px solid rgba(19, 127, 236, 0.35);
  }
  .dark .mirbm-ag-banner--success {
    color: #e2e8f0;
    background: rgba(19, 127, 236, 0.2);
    border-color: rgba(19, 127, 236, 0.45);
  }
  .mirbm-ag-banner--pending {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--color-text);
  }
  .dark .mirbm-ag-banner--pending {
    color: #f8fafc;
  }
  .mirbm-ag-banner--error {
    background: rgba(185, 28, 28, 0.1);
    border: 1px solid rgba(185, 28, 28, 0.35);
    color: #7f1d1d;
  }
  .dark .mirbm-ag-banner--error {
    color: #fecaca;
    background: rgba(185, 28, 28, 0.2);
  }

  .mirbm-ag-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  .mirbm-ag-month-label {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    min-width: 12rem;
    text-align: center;
    color: var(--mirbm-ag-text);
    text-transform: capitalize;
  }
  .mirbm-ag-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--mirbm-ag-border);
    background: var(--mirbm-ag-surface);
    color: var(--mirbm-ag-text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
  }
  .mirbm-ag-nav-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .mirbm-ag-status {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--mirbm-ag-muted);
  }
  .mirbm-ag-status--error {
    color: #b91c1c;
  }
  .dark .mirbm-ag-status--error {
    color: #fca5a5;
  }

  .mirbm-ag-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .mirbm-ag-day__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mirbm-ag-text);
    text-transform: capitalize;
  }
  .mirbm-ag-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .mirbm-ag-slot-btn {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--mirbm-ag-border);
    background: var(--mirbm-ag-surface);
    color: var(--mirbm-ag-text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .mirbm-ag-slot-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .mirbm-ag-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  .mirbm-ag-modal[hidden] {
    display: none !important;
  }
  .mirbm-ag-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 20, 24, 0.55);
  }
  .mirbm-ag-modal__panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  }
  .dark .mirbm-ag-modal__panel {
    background: #1f2b36;
    border-color: #2a3441;
  }
  .mirbm-ag-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-text);
  }
  .dark .mirbm-ag-modal__title {
    color: #f8fafc;
  }
  .mirbm-ag-modal__slot {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--color-muted);
    text-transform: capitalize;
  }
  .dark .mirbm-ag-modal__slot {
    color: #9aa2ac;
  }
  .mirbm-ag-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mirbm-ag-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
  }
  .dark .mirbm-ag-label {
    color: #e2e8f0;
  }
  .mirbm-ag-input {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
  }
  .dark .mirbm-ag-input {
    background: #1a2632;
    border-color: #2a3441;
    color: #f8fafc;
  }
  .mirbm-ag-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.2);
  }
  .mirbm-ag-input--readonly,
  .mirbm-ag-input[readonly] {
    cursor: default;
    background-color: #f1f5f9;
    color: var(--color-muted);
  }
  .dark .mirbm-ag-input--readonly,
  .dark .mirbm-ag-input[readonly] {
    background-color: #243447;
    color: #9aa2ac;
  }
  .mirbm-ag-input--readonly:focus,
  .mirbm-ag-input[readonly]:focus {
    border-color: var(--color-border);
    box-shadow: none;
  }
  .dark .mirbm-ag-input--readonly:focus,
  .dark .mirbm-ag-input[readonly]:focus {
    border-color: #2a3441;
  }
  .mirbm-ag-submit {
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
  }
  .mirbm-ag-submit:hover:not(:disabled) {
    background: var(--color-primary-dark);
  }
  .mirbm-ag-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }
  .mirbm-ag-modal__close {
    margin-top: 1rem;
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--color-muted);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
  }
  .mirbm-ag-modal__close:hover {
    color: var(--color-primary);
  }
