/* ==========================================================================
   REFINAMIENTO EDITORIAL PREMIUM — MARÍA ROMERO ESTILISTAS (2026-11-25)
   Recupera la riqueza gráfica, jerarquía tipográfica, atmósfera rosa-vino,
   profundidad táctil de tarjetas, ornamento botánico y composición móvil
   de las dos referencias gráficas originalmente aprobadas:
   - spa-capilar-referencia-aprobada-20261106.png
   - maquillaje-referencia-aprobada.png
   Conserva border-radius: 0, todos los contenidos, Black Friday y funciones.
   ========================================================================== */

:root {
  --mr-ref-porcelain: #faf6f1;
  --mr-ref-silk: #f7eaf0;
  --mr-ref-silk-deep: #f2dfe8;
  --mr-ref-ink: #241016;
  --mr-ref-ink-soft: #59434d;
  --mr-ref-rose: #ab3e6f;
  --mr-ref-rose-deep: #962b5c;
  --mr-ref-rose-glow: #f3b5d1;
  --mr-ref-wine: #2b0c1a;
  --mr-ref-wine-mid: #4a172e;
  --mr-ref-wine-dark: #19060f;
  --mr-ref-hairline: rgba(171, 62, 111, 0.17);
  --mr-ref-hairline-strong: rgba(171, 62, 111, 0.34);
  --mr-ref-shadow-card: 0 12px 30px rgba(42, 14, 28, 0.068);
  --mr-ref-shadow-card-hover: 0 20px 44px rgba(42, 14, 28, 0.115);
  --mr-ref-shadow-cta: 0 8px 22px rgba(138, 36, 82, 0.25);
  --mr-ref-botanical: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 260' fill='none'%3E%3Cg stroke='%23ab3e6f' stroke-opacity='0.18' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M188 248C170 198 152 146 116 90C96 60 72 34 46 14'/%3E%3Cpath d='M162 184C130 180 100 166 78 144C108 142 138 154 162 184Z'/%3E%3Cpath d='M165 186C174 152 192 124 214 104C208 138 190 166 165 186Z'/%3E%3Cpath d='M138 128C104 126 76 112 52 90C84 86 114 98 138 128Z'/%3E%3Cpath d='M140 130C150 96 168 68 192 48C184 82 166 110 140 130Z'/%3E%3Cpath d='M108 76C80 76 54 64 34 44C62 42 88 52 108 76Z'/%3E%3Cpath d='M110 78C118 52 132 28 152 12C146 38 132 62 110 78Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* 1. CABECERA FIJA UNIVERSAL (STICKY) + BANNER BLACK FRIDAY NO FIJO */
html,
body {
  overflow-x: clip !important;
}

.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  background: rgba(250, 246, 241, 0.96) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mr-ref-hairline) !important;
  box-shadow: 0 4px 18px rgba(36, 16, 22, 0.04);
}

.mr-bf-banner,
[data-bf-banner] {
  position: relative !important;
  top: auto !important;
  z-index: 15 !important;
}

.site-header .desktop-nav a:not(.button):not(.header-phone):not(.btn) {
  color: var(--mr-ref-ink);
  position: relative;
  transition: color 0.2s ease;
}

.site-header .desktop-nav a:not(.button):not(.header-phone):not(.btn):hover,
.site-header .desktop-nav a[aria-current="page"]:not(.button):not(.btn) {
  color: var(--mr-ref-rose-deep) !important;
}

.site-header .desktop-nav a[aria-current="page"]:not(.button):not(.btn) {
  font-weight: 600;
}

.site-header .desktop-nav a[aria-current="page"]:not(.button):not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--mr-ref-rose);
}

/* Fix definitivo de contraste ES | VA en TODAS las páginas (especialmente Spa y Masajes) */
.site-header .header-lang a,
.site-header .mobile-lang a {
  color: #5b3e4b !important;
  opacity: 0.82;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-header .header-lang a:hover,
.site-header .mobile-lang a:hover {
  color: var(--mr-ref-ink) !important;
  opacity: 1;
}

.site-header .header-lang a[aria-current="page"],
.site-header .mobile-lang a[aria-current="page"] {
  color: var(--mr-ref-ink) !important;
  opacity: 1 !important;
  font-weight: 600;
  border-bottom: 1.5px solid var(--mr-ref-rose);
}

/* 2. BOTONES SATINADOS ROSA-VINO (IDENTIDAD DE AMBAS REFERENCIAS, RADIUS 0) */
.button-pink,
.btn-primary,
.site-header .button-small,
.site-header .btn-small,
.spa-card-btn,
.mq-cat-btn,
.home-contact-submit,
.spa-submit {
  background: linear-gradient(135deg, #ba3f77 0%, #982b5c 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--mr-ref-shadow-cta);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button-pink:hover,
.btn-primary:hover,
.site-header .button-small:hover,
.site-header .btn-small:hover,
.spa-card-btn:hover,
.mq-cat-btn:hover,
.home-contact-submit:hover,
.spa-submit:hover {
  background: linear-gradient(135deg, #c64781 0%, #862250 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 26px rgba(134, 34, 80, 0.34);
}

/* 3. HÉROES EDITORIALES: ITÁLICA ROSA LUMINOSA + VELO VINO CÁLIDO EN LAS 5 PÁGINAS */
.opening-copy h1 em,
.spa-hero-title em,
.mas-hero h1 em,
.pel-hero h1 em,
.mq-hero h1 em {
  color: var(--mr-ref-rose-glow) !important;
  font-style: italic !important;
  font-weight: 400;
  text-shadow: 0 2px 26px rgba(24, 6, 14, 0.52);
}

.opening-copy h1,
.spa-hero-title,
.mas-hero h1,
.pel-hero h1,
.mq-hero h1 {
  letter-spacing: -0.015em;
  text-shadow: 0 2px 28px rgba(20, 5, 12, 0.45);
}

/* Velo cálido vino-burdeos (nunca gris plano) en héroes */
.spa-hero-shade,
.mas-hero-shade,
.mq-hero-veil {
  background: linear-gradient(
    96deg,
    rgba(34, 9, 20, 0.90) 0%,
    rgba(38, 11, 23, 0.72) 42%,
    rgba(38, 11, 23, 0.26) 72%,
    rgba(25, 6, 15, 0.14) 100%
  ) !important;
}

.spa-hero-link,
.mq-hero .editorial-link,
.pel-hero .editorial-link,
.opening-copy .editorial-link {
  color: #fff6fa;
  border-bottom: 1px solid rgba(243, 181, 209, 0.52);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.spa-hero-link:hover,
.mq-hero .editorial-link:hover,
.pel-hero .editorial-link:hover,
.opening-copy .editorial-link:hover {
  color: var(--mr-ref-rose-glow);
  border-color: var(--mr-ref-rose-glow);
}

/* 4. JERARQUÍA TIPOGRÁFICA DE SECCIONES (H2 CON ITÁLICA ROSA) */
main h2 em {
  color: var(--mr-ref-rose);
  font-style: italic;
}

.pel-cta h2 em,
.mq-cta h2 em,
.spa-cta h2 em,
.home-gift-panel h2 em,
.pel-hairid h2 em,
.mr-bf-spa-head h2 em {
  color: var(--mr-ref-rose-glow);
}

/* 5. RITMO TONAL DE SECCIONES Y FILETES EDITORIALES (REFERENCIAS SPA + MAQUILLAJE) */
.spa-benefits,
.mq-offerings-wrap,
.home-reviews {
  background: linear-gradient(180deg, #faf3f6 0%, #f5e6ed 100%);
  border-top: 1px solid var(--mr-ref-hairline);
  border-bottom: 1px solid var(--mr-ref-hairline);
}

.spa-catalog,
.mq-catalog {
  background: linear-gradient(180deg, var(--mr-ref-porcelain) 0%, #f8eef3 52%, var(--mr-ref-porcelain) 100%);
}

/* Filetes verticales delicados en bloques de beneficios/pilares (como en ambas referencias) */
@media (min-width: 901px) {
  .spa-benefits-grid > * + *,
  .mq-offerings > * + * {
    border-left: 1px solid var(--mr-ref-hairline);
    padding-left: 24px;
  }
}

/* 6. TARJETAS CON RIQUEZA TÁCTIL, PROFUNDIDAD Y CALIDEZ (SPA, MASAJES, MAQUILLAJE) */
.spa-card,
.mq-cat-card {
  background: linear-gradient(180deg, #fffefd 0%, #fcf6f8 100%) !important;
  border: 1px solid var(--mr-ref-hairline) !important;
  box-shadow: var(--mr-ref-shadow-card);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease;
}

.spa-card:hover,
.mq-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--mr-ref-hairline-strong) !important;
  box-shadow: var(--mr-ref-shadow-card-hover);
}

.spa-card-media,
.mq-cat-media-btn {
  overflow: hidden;
  position: relative;
}

.spa-card-media img,
.mq-cat-media-btn img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.spa-card:hover .spa-card-media img,
.mq-cat-card:hover .mq-cat-media-btn img {
  transform: scale(1.035);
}

.spa-card-top {
  border-bottom: 1px solid var(--mr-ref-hairline) !important;
  padding-bottom: 14px;
}

.spa-card-name,
.mq-cat-title {
  color: var(--mr-ref-ink);
  font-weight: 500;
}

.spa-card-price {
  color: var(--mr-ref-rose-deep) !important;
  font-weight: 600;
}

.spa-card-cat,
.mq-cat-count {
  background: rgba(34, 9, 20, 0.84) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(243, 181, 209, 0.25);
  letter-spacing: 0.14em;
}

/* Filtros del catálogo */
.spa-filter-btn {
  background: #fffdfb;
  border: 1px solid var(--mr-ref-hairline);
  color: var(--mr-ref-ink);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.spa-filter-btn:hover {
  border-color: var(--mr-ref-rose);
  color: var(--mr-ref-rose-deep);
}

.spa-filter-btn[aria-pressed="true"],
.spa-filter-btn.is-active {
  background: linear-gradient(135deg, #ba3f77 0%, #982b5c 100%) !important;
  color: #ffffff !important;
  border-color: #982b5c !important;
  box-shadow: 0 6px 16px rgba(138, 36, 82, 0.22);
}

/* Selector de variante (Spa Niño / Masaje a tres) */
.spa-variant-box {
  background: linear-gradient(180deg, #faf0f4 0%, #f6e7ee 100%) !important;
  border: 1px solid rgba(171, 62, 111, 0.22) !important;
}

.spa-variant-opt {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(171, 62, 111, 0.18);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.spa-variant-opt:has(input:checked) {
  background: #ffffff;
  border-color: var(--mr-ref-rose) !important;
  box-shadow: 0 3px 10px rgba(171, 62, 111, 0.12);
}

/* 7. ORNAMENTO BOTÁNICO EN BLOQUES EDITORIALES DESTACADOS (SELLO DE AMBAS REFERENCIAS) */
.home-gift-card,
.pel-bride,
.spa-booking-info {
  position: relative;
}

.home-gift-card {
  box-shadow: 0 18px 46px rgba(42, 14, 28, 0.11);
  border: 1px solid rgba(171, 62, 111, 0.2);
}

.home-gift-panel,
.spa-booking-info {
  background-image: var(--mr-ref-botanical);
  background-repeat: no-repeat;
  background-position: right -16px bottom -14px;
  background-size: 195px auto;
}

.pel-bride-copy {
  background-image: var(--mr-ref-botanical);
  background-repeat: no-repeat;
  background-position: right -12px bottom -12px;
  background-size: 185px auto;
}

/* 8. BANDAS DE CIERRE EN VINO PROFUNDO CON LUMINISCENCIA ROSA (REFERENCIAS SPA + MAQUILLAJE) */
.pel-cta,
.mq-cta,
.spa-cta {
  background: radial-gradient(ellipse at 50% 0%, #4e1931 0%, #2b0c1a 60%, #1a060f 100%) !important;
  border-top: 1px solid rgba(243, 181, 209, 0.2);
}

.pel-hairid {
  box-shadow: 0 18px 42px rgba(34, 9, 20, 0.24);
  border: 1px solid rgba(243, 181, 209, 0.22);
}

/* Formularios con profundidad editorial limpia */
.spa-booking-form,
.home-contact-form {
  background: linear-gradient(180deg, #fffefd 0%, #fcf6f8 100%);
  border: 1px solid var(--mr-ref-hairline);
  box-shadow: var(--mr-ref-shadow-card);
}

/* 9. JERARQUÍA DE CAPAS (Z-INDEX) PARA MENÚ MÓVIL, CESTA Y MODALES */
.site-header {
  z-index: 300 !important;
}

.mr-cart-toast {
  z-index: 500 !important;
}

.mr-cart-backdrop {
  z-index: 950 !important;
}

.mr-cart-drawer {
  z-index: 960 !important;
}

.mq-modal {
  z-index: 1000 !important;
}

/* Eliminación de retardo táctil en controles interactivos */
a, button, summary, label, input, select, textarea {
  touch-action: manipulation;
}

/* 10. COMPOSICIÓN MOBILE FIRST (360px, 375px, 390px, 412px — SIN ALTERAR ESCRITORIO) */
@media (max-width: 760px) {
  /* Cabecera móvil sin desborde horizontal en 360px / 375px / 390px */
  .site-header .header-inner {
    padding-inline: 10px !important;
    gap: 6px !important;
    min-height: 60px !important;
  }

  .site-header .brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .site-header .brand img {
    max-height: 28px !important;
    width: auto !important;
    max-width: 118px !important;
  }

  .site-header .header-lang {
    gap: 5px !important;
    flex-shrink: 0;
  }

  .site-header .header-lang a,
  .site-header .mobile-lang a {
    min-height: 38px !important;
    padding: 4px 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.76rem !important;
  }

  .site-header .mobile-header-actions {
    gap: 6px !important;
    flex-shrink: 0;
  }

  .site-header .mobile-header-actions .button-small,
  .site-header .mobile-header-actions .btn-small {
    padding: 0 9px !important;
    min-height: 38px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }

  .mr-cart-trigger {
    min-height: 38px !important;
    min-width: 44px !important;
    padding: 0 7px !important;
  }

  .nav-disclosure summary {
    min-width: 38px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Menú desplegable móvil limpio y con objetivos táctiles >= 44px */
  .nav-disclosure nav {
    z-index: 320 !important;
    box-shadow: 0 18px 42px rgba(34, 9, 20, 0.22) !important;
  }

  .nav-disclosure nav a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.98rem !important;
  }

  /* Masajes móvil: foto proporcionada + titular + intro + CTA visibles en 360x640 y 390x844 */
  .mas-hero {
    min-height: 0 !important;
    background: var(--mr-ref-wine-dark);
  }

  .mas-hero-media,
  .mas-hero-pic {
    height: clamp(160px, 25svh, 235px) !important;
    min-height: 160px !important;
    max-height: 235px !important;
  }

  .mas-hero-inner {
    padding: 16px 18px 24px !important;
    background: linear-gradient(180deg, #210814 0%, #2b0c1a 100%);
  }

  .mas-hero h1 {
    font-size: clamp(1.88rem, 8.2vw, 2.45rem) !important;
    line-height: 1.06 !important;
    margin-bottom: 8px !important;
  }

  .mas-hero .spa-hero-lead {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
  }

  /* Home, Spa Capilar, Peluquería y Maquillaje móvil: primera pantalla completa con CTA visible */
  .opening,
  .spa-hero,
  .pel-hero,
  .mq-hero {
    min-height: clamp(410px, calc(100svh - 178px), 560px) !important;
  }

  .spa-hero-shade,
  .mq-hero-veil {
    background: linear-gradient(
      180deg,
      rgba(25, 6, 15, 0.22) 0%,
      rgba(34, 9, 20, 0.64) 45%,
      rgba(26, 6, 15, 0.95) 100%
    ) !important;
  }

  .opening-copy,
  .spa-hero-content,
  .pel-hero-copy,
  .mq-hero-copy {
    padding-top: 20px !important;
    padding-bottom: 22px !important;
  }

  .opening-copy h1,
  .spa-hero-title,
  .pel-hero h1,
  .mq-hero h1 {
    font-size: clamp(1.92rem, 8.2vw, 2.55rem) !important;
    line-height: 1.06 !important;
    margin-bottom: 10px !important;
  }

  .opening-copy p,
  .spa-hero-lead,
  .pel-hero-lead,
  .mq-hero-lead {
    font-size: 0.93rem !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
  }

  /* Evitar auto-zoom y estilos nativos redondeados en iOS Safari */
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea {
    font-size: 16px !important;
    min-height: 46px;
    border-radius: 0 !important;
    -webkit-appearance: none;
    appearance: none;
  }

  /* Safe-area iPhone (Home Indicator) y scroll táctil contenido en cesta y galería */
  .mr-cart-drawer,
  .mq-modal {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mr-cart-drawer-foot,
  .mr-cart-toast {
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  /* Accesibilidad táctil en filtros, tarjetas, selectores y botones */
  .spa-filter-btn {
    min-height: 40px !important;
    padding: 8px 14px !important;
    font-size: 0.84rem !important;
  }

  .spa-card-btn,
  .mq-cat-btn {
    min-height: 46px !important;
    font-size: 0.82rem !important;
  }

  .spa-variant-opt {
    min-height: 44px !important;
    padding: 10px 12px !important;
  }

  .spa-variant-opt span {
    font-size: 0.88rem !important;
  }

  /* Legibilidad mínima >= 12px en etiquetas, duraciones y textos de apoyo */
  .spa-card-duration,
  .spa-card-cat,
  .mq-cat-count,
  .spa-variant-title,
  .home-footer-legal,
  .home-footer-legal a,
  .spa-card-list li,
  label {
    font-size: max(12px, 0.78rem) !important;
  }

  .home-gift-panel,
  .spa-booking-info,
  .pel-bride-copy {
    background-size: 135px auto;
  }
}

@media (max-width: 374px) {
  .site-header .brand img {
    max-width: 102px !important;
    max-height: 25px !important;
  }
  .site-header .mobile-header-actions .button-small,
  .site-header .mobile-header-actions .btn-small {
    padding: 0 8px !important;
    font-size: 0.72rem !important;
  }
}
