/* ==========================================================================
   Mya Curve Boutique — "el espejo dorado"
   El motivo sale de las propias fotos del negocio: casi todas están tomadas
   frente al espejo grande de marco dorado de la tienda, y en el borde de
   varias se cuela el filo del marco. Por eso cada foto del sitio va montada
   en un marco de arco con hairline de latón y un destello diagonal de cristal.
   El magenta es el del logo (#c61962, medido con PIL sobre logo.jpg).

   OJO CON EL TAMAÑO DE LAS FOTOS: las 32 fuentes son thumbnails de Facebook
   de 414x414 px, exportadas a 828 con LANCZOS 2x + unsharp. NINGÚN contenedor
   de foto puede pasar de ~420px de CSS o se ve la interpolación.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }  /* height:auto obligatorio: el
        atributo height del HTML le gana al aspect-ratio si no se neutraliza */
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:root {
  --cream:   #faf5f2;
  --paper:   #fffdfc;
  --blush:   #f7e6ee;
  --ink:     #2a0f1c;
  --ink-2:   #6f4f5c;
  --brand:   #c61962;
  --brand-d: #9c1250;
  --brass:   #b98a4e;
  --brass-l: #e6d2b0;
  --line:    #e9dcd8;
  --shadow:  0 18px 44px -26px rgba(42, 15, 28, .45);
  --disp: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --ui:   "Manrope", "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- tipografía */
.h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.15rem + 2.1vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin-bottom: .9rem;
}
.h2--center { text-align: center; max-width: 22ch; margin-inline: auto; }
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .7rem;
}
.eyebrow--c { text-align: center; }
.fine { font-size: .85rem; color: var(--ink-2); line-height: 1.55; }
.sec p { color: var(--ink-2); }
.sec p strong { color: var(--ink); }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: .82rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .94rem; letter-spacing: .01em;
  transition: background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 10px 24px -14px rgba(198, 25, 98, .8);
}
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn--ghost:hover { background: var(--blush); color: var(--brand-d); }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn--wide { width: 100%; text-align: center; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------------------------------------------------------------- marco espejo */
.frame {
  position: relative;
  border-radius: 50% 50% 5% 5% / 34% 34% 4% 4%;
  overflow: hidden;
  background: var(--blush);
  box-shadow: var(--shadow);
  max-width: 420px;           /* tope duro: las fuentes son de 414px */
}
.frame img { width: 100%; }
/* hairline de latón, siguiendo el arco del espejo */
.frame::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(185, 138, 78, .55);
  border-radius: 50% 50% 4% 4% / 33% 33% 3% 3%;
}
/* destello de cristal — flojito a propósito: sobre las fotos oscuras (el maxi negro, los
   lunares) un destello fuerte se lee como un defecto de la foto, no como un reflejo */
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(112deg, transparent 40%, rgba(255,255,255,.14) 47%,
              rgba(255,255,255,.03) 52%, transparent 57%);
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 245, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.nav__logo { display: block; margin-right: auto; }
.nav__logo img { height: 40px; width: auto; }
.menu { display: flex; align-items: center; gap: 1.55rem; }
.menu a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.menu a:hover { color: var(--brand); border-bottom-color: var(--brand); }
/* el CTA tiene que ganarle a `.menu a` — misma trampa de especificidad de otros builds */
.menu .menu__cta {
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: .5rem 1.1rem; border-radius: 999px;
}
.menu .menu__cta:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }

.burger {
  display: none; order: 3; margin-left: auto;   /* siempre pegado a la derecha en móvil */
  background: none; border: 0; padding: .45rem; cursor: pointer;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(2.5rem, 5vw, 4.6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__logo { width: min(320px, 78%); margin-bottom: 1.4rem; }
.hero h1 {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(2.15rem, 1.2rem + 3.6vw, 3.7rem);
  line-height: 1.06; letter-spacing: -.015em; margin-bottom: 1.05rem;
}
.hero h1 em { font-style: italic; color: var(--brand); }
.lede { font-size: 1.06rem; color: var(--ink-2); max-width: 46ch; }
.hero__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }

/* Composición escalonada: las tres piezas se escalonan en diagonal y apenas se rozan.
   Con marcos de arco, encimarlas de verdad tapa justo la parte que interesa (el ruedo). */
.hero__art { position: relative; min-height: 540px; }
.hero__art .frame { position: absolute; }
.frame--a { width: 56%; top: 0; right: 0; z-index: 1; }
.frame--b { width: 46%; bottom: 0; left: 0; z-index: 3; }
.frame--c { width: 34%; bottom: 0; right: 4%; z-index: 2; }

/* ---------------------------------------------------------------- franja valores */
.band {
  position: relative; overflow: hidden;
  background: var(--blush);
  border-block: 1px solid var(--line);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}
.band__mark {
  position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
  height: 118%; width: auto; opacity: .07; pointer-events: none;
}
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.1rem; margin-top: 2.4rem; position: relative; }
.props__n {
  font-family: var(--disp); font-size: 1.05rem; font-weight: 700; color: var(--brass);
  display: block; margin-bottom: .5rem; letter-spacing: .08em;
}
.props h3 { font-family: var(--disp); font-size: 1.32rem; font-weight: 600; margin-bottom: .45rem; }
.props p { color: var(--ink-2); font-size: .97rem; }
.props li { padding-top: 1rem; border-top: 1px solid rgba(185, 138, 78, .38); }

/* ---------------------------------------------------------------- secciones */
.sec { padding: clamp(3.2rem, 6vw, 5.5rem) 0; }
.sec--tinted { background: var(--paper); border-block: 1px solid var(--line); }
.sec__note {
  text-align: center; max-width: 60ch; margin: 1.1rem auto 0; color: var(--ink-2);
}
.sec__note--sm { font-size: .95rem; margin-top: 2.6rem; }

/* filtros */
.filters {
  display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap;
  margin: 2.2rem 0 2.4rem;
}
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  padding: .5rem 1.05rem; border-radius: 999px; cursor: pointer;
  font-size: .88rem; font-weight: 600; transition: .18s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* rejilla de producto */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(1.5rem, 2.6vw, 2.4rem);
}
.card { display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card h3 {
  font-family: var(--disp); font-weight: 600; font-size: 1.22rem; line-height: 1.2;
  margin: 1.05rem 0 .4rem;
}
.card p { font-size: .93rem; color: var(--ink-2); margin-bottom: 1rem; }
.card__precio {
  font-family: var(--disp); font-weight: 700; font-size: 1.12rem;
  color: var(--brand-d); margin-bottom: .35rem;
}
.card__tallas {
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  background: var(--blush); padding: .3rem .65rem; border-radius: 999px;
  display: inline-block; margin-bottom: .65rem;
}
.grid__loading {
  grid-column: 1 / -1; text-align: center; color: var(--ink-2);
  font-size: .95rem; padding: 2.5rem 0;
}
.card .add { margin-top: auto; }
/* `overflow:hidden` + `border-radius` NO recorta a un hijo transformado: al hacer zoom en el
   hover la foto se salía por las esquinas de abajo del marco (se veían cuadradas). Promover el
   marco a su propia capa lo obliga a recortar de verdad. Va solo en las tarjetas, que son las
   únicas con hover, para no promover las 30 fotos del sitio. */
.frame--card { width: 100%; transform: translateZ(0); }
.frame--card img { transition: transform .5s ease; }
.card:hover .frame--card img { transform: scale(1.035); }

/* puntos para las piezas con más de una foto */
.dots {
  position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: .7rem;
  display: flex; gap: .38rem; padding: .34rem .5rem;
  /* SIN backdrop-filter, a propósito. Un backdrop-filter aquí dentro rompe el recorte
     redondeado del marco: en el zoom del hover la foto se salía por las esquinas de abajo y
     se veían cuadradas — y solo pasaba en las 10 tarjetas que tienen puntos. El fondo sólido
     translúcido se ve igual sobre los estampados. */
  background: rgba(42, 15, 28, .62); border-radius: 999px;
}
.dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.85); background: transparent;
}
.dots button[aria-current="true"] { background: #fff; }

.add {
  background: transparent; color: var(--brand); border: 1.5px solid var(--brand);
  border-radius: 999px; padding: .62rem 1.1rem; cursor: pointer;
  font-weight: 700; font-size: .89rem; transition: .18s;
}
.add:hover { background: var(--brand); color: #fff; }
.add.is-in { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* la tienda */
.split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.6rem); align-items: center; }
.split .h2 { max-width: 18ch; }
.split p + p { margin-top: .9rem; }
.split .fine { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.frame--wide { width: 100%; }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.6rem; counter-reset: s; }
.steps li { position: relative; padding-left: 3.4rem; }
.steps__n {
  position: absolute; left: 0; top: -.1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-family: var(--disp); font-weight: 700; font-size: 1.15rem;
}
.steps h3 { font-family: var(--disp); font-size: 1.2rem; font-weight: 600; margin-bottom: .35rem; }
.steps p { font-size: .95rem; }


/* contacto */
.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 3.6rem); align-items: center; }
/* Dirección: va entre el párrafo de contacto y los botones. El margen inferior
   lo pone .contact__btns con su margin-top, así que aquí solo el de arriba. */
.contact__addr {
  margin-top: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.contact__addr-nota { font-weight: 400; color: var(--ink-2); }

.contact__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.contact__card {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--blush);
  border-radius: 26px; padding: 2.4rem 2rem 2.4rem 2.2rem;
}
.contact__mark {
  position: absolute; right: 5%; bottom: 8%; height: 84%; width: auto;
  opacity: .2; pointer-events: none;
}
.contact__card p { max-width: 64%; }   /* deja libre la mitad derecha para la silueta */
.contact__tag {
  position: relative; font-family: var(--disp); font-style: italic; font-size: 1.1rem;
  color: var(--brass-l); margin-bottom: .5rem;
}
.contact__phone { position: relative; font-family: var(--disp); font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; }
.contact__phone a { color: #fff; text-decoration: none; }
.contact__phone a:hover { color: var(--brass-l); }
.contact__card .fine { position: relative; color: #cbb0bd; margin-top: .5rem; }

/* pie */
.foot { background: var(--blush); border-top: 1px solid var(--line); padding: 2.8rem 0; text-align: center; }
.foot__in img { height: 62px; width: auto; margin: 0 auto 1rem; }
.foot p { color: var(--ink-2); font-size: .92rem; }
.foot .fine { max-width: 52ch; margin: .6rem auto 0; }

/* ---------------------------------------------------------------- pedido */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--ink); color: var(--cream);
  box-shadow: 0 -12px 30px -20px rgba(0,0,0,.8);
}
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.bar p { font-size: .95rem; }
.bar strong { color: var(--brass-l); font-size: 1.15rem; }

.scrim { position: fixed; inset: 0; z-index: 48; background: rgba(42, 15, 28, .5); backdrop-filter: blur(2px); }

.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(430px, 100%);
  background: var(--paper);
  display: flex; flex-direction: column;
  box-shadow: -24px 0 60px -30px rgba(42,15,28,.7);
}
.cart[hidden] { display: none; }
.cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line);
}
.cart__head h2 { font-family: var(--disp); font-size: 1.35rem; font-weight: 600; }
.cart__x { background: none; border: 0; font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 0 .2rem; }
.cart__x:hover { color: var(--brand); }
.cart__body { overflow-y: auto; padding: 1.2rem 1.4rem 2rem; }
.cart__list li {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.cart__list img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: none; }
.cart__list p { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.cart__list button {
  margin-left: auto; flex: none; background: none; border: 0; cursor: pointer;
  color: var(--ink-2); font-size: 1.4rem; line-height: 1; padding: .2rem .3rem;
}
.cart__list button:hover { color: var(--brand); }
.cart__empty { color: var(--ink-2); font-size: .95rem; padding: .6rem 0 1rem; }
.cart__form { margin-top: 1.5rem; display: grid; gap: .9rem; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: .3rem; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--cream); font-size: .95rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; background: #fff; }
.cart__form .fine { text-align: center; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__logo { margin-inline: auto; width: min(300px, 68%); }
  .lede { margin-inline: auto; }
  .hero__btns { justify-content: center; }
  .hero__art { min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 2.5rem; }
  /* OJO: tiene que quedar `relative`, no `static`. El hairline de latón y el destello son
     ::after/::before absolutos; si el marco deja de estar posicionado, se anclan al abuelo
     (.hero__art, que sí es relative) y los tres se dibujan como un solo arco dorado gigante
     cruzando las tres fotos. */
  .hero__art .frame { position: relative; width: 100%; }
  .frame--b, .frame--c { align-self: end; }
  .props, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .frame--wide { max-width: 400px; margin-inline: auto; }
  .split .h2 { max-width: none; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .menu {
    position: fixed; inset: 68px 0 auto; z-index: 39;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .6rem 1.25rem 1.4rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .menu a:hover { border-bottom-color: var(--line); }
  .menu .menu__cta { text-align: center; margin-top: .9rem; border: 1px solid var(--brand); }
  .props, .steps, .refs { grid-template-columns: 1fr; }
  .props li, .refs figure { max-width: 420px; margin-inline: auto; width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .band__mark { right: -12%; opacity: .05; }
  .hero__art { gap: .55rem; }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
  .card { max-width: 420px; margin-inline: auto; width: 100%; }
  .bar__in { padding: .7rem 0; }
  .bar p { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ─────────────────────────────────────────────── catálogo: talla y consulta */
/* El inventario es por talla, así que la tarjeta tiene que dejar escogerla
   ANTES de añadir: el servidor comprueba existencia de esa talla en concreto. */
.card__talla {
  display: flex; align-items: center; gap: .5rem;
  margin: .1rem 0 .8rem;
  font-size: .84rem; font-weight: 700; color: var(--ink);
}
.card__talla select {
  flex: 1;
  font: inherit; font-weight: 500;
  /* 44px de alto mínimo: medido con qa.py, con .5rem se quedaba en 38px y es
     el control que hay que tocar sí o sí para comprar desde el celular. */
  min-height: 44px;
  padding: .6rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
}
.card__talla select:focus { border-color: var(--brand); outline: none; }

/* Una pieza sin precio no se puede cobrar: se dice, no se finge. */
.card__consulta { font-size: .88rem; color: var(--ink-2); margin: .2rem 0 .7rem; }
.add--consulta { display: inline-block; text-align: center; text-decoration: none; }

/* ───────────────────────────────────────────────────────── carrito y pago */
.cart__list li { align-items: flex-start; }
.cart__linea { flex: 1; min-width: 0; }
.cart__meta { font-size: .82rem; font-weight: 500; color: var(--ink-2); margin-top: .15rem; }
.cart__precio { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cart__totales {
  margin-top: 1.1rem; padding-top: .9rem; border-top: 2px solid var(--ink);
}
.cart__totales div { display: flex; justify-content: space-between; align-items: baseline; }
.cart__totales strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }

.field--entrega { border: 0; padding: 0; margin: 0; }
.field--entrega legend {
  font-size: .84rem; font-weight: 700; margin-bottom: .4rem; color: var(--ink);
}
.radio { display: flex; align-items: center; gap: .5rem; font-size: .92rem; padding: .2rem 0; }
.radio input { width: auto; }

/* El widget de SumUp se pinta aquí; sin margen se pega al botón. */
#sumup-card:not(:empty) { margin-top: 1.1rem; }

.cart__estado {
  margin-top: .9rem; padding: .7rem .85rem; border-radius: 10px;
  font-size: .9rem; background: var(--blush); color: var(--ink);
}
.cart__estado[data-tipo="error"] { background: #fdeceb; color: #a52311; }

/* ATH queda a la vista pero apagado hasta que el webhook esté registrado. */
.cart__ath {
  margin-top: 1.1rem; padding: .8rem .9rem;
  border: 1px dashed var(--line); border-radius: 12px;
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
  color: var(--ink-2);
}
.cart__ath-t { font-weight: 700; color: var(--ink); }
.cart__ath-n { font-size: .82rem; }

.cart__ok {
  font-family: var(--disp); font-size: 1.5rem; font-weight: 600;
  color: var(--brand); margin-bottom: .5rem;
}


/* ATH Móvil: su naranja de marca, para que se reconozca al instante. */
.btn--ath {
  background: #f36d21; border-color: #f36d21; color: #fff;
  margin-top: .6rem;
}
.btn--ath:hover { background: #d95c14; border-color: #d95c14; }
.btn--ath:disabled { opacity: .6; cursor: default; }
/* El script de ATH pinta su propio botón dentro de este div. */
#ATHMovil_Checkout_Button_payment:not(:empty) { margin-top: 1rem; }

/* Nota bajo un campo, para explicar por qué se pide sin alargar la etiqueta. */
.ayuda { font-size: .82rem; color: var(--ink-2); margin-top: .3rem; }


/* ─────────────────────────────────────────── modal de ATH Móvil */
/* Va por encima del drawer (que está en 60) y de su velo. */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  background: rgba(42, 15, 28, .55);
}
.modal[hidden] { display: none; }
.modal__caja {
  position: relative;
  background: var(--paper); border-radius: 20px;
  padding: 1.8rem 1.5rem 1.6rem;
  width: min(24rem, 100%);
  box-shadow: var(--shadow);
  text-align: center;
}
.modal__x {
  position: absolute; top: .5rem; right: .7rem;
  background: none; border: 0; font-size: 1.9rem; line-height: 1;
  color: var(--ink-2); cursor: pointer; padding: .2rem;
}
.modal__x:hover { color: var(--brand); }
.modal__t { font-family: var(--disp); font-size: 1.3rem; font-weight: 600; margin-bottom: .35rem; }
.modal__p { color: var(--ink-2); font-size: .95rem; margin-bottom: 1.1rem; }
.modal__caja .field { text-align: left; margin-bottom: .8rem; }
.modal__err {
  background: #fdeceb; color: #a52311; font-size: .88rem;
  padding: .6rem .75rem; border-radius: 10px; margin-bottom: .8rem;
}

/* Que se vea que está esperando algo, no colgado. */
.modal__spin {
  width: 38px; height: 38px; margin: .2rem auto 1rem;
  border: 3px solid var(--blush); border-top-color: var(--ath, #f36d21);
  border-radius: 50%;
  animation: girar 900ms linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .modal__spin { animation-duration: 3s; }
}

/* Desglose del pedido y acceso al carrito. */

.cart__totales div { gap: 1rem; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.cart__total { border-top: 1px solid var(--ink); padding-top: .75rem; margin-top: .75rem; }

/* Accesos al carrito: misma identidad en menú, portada y barra de pedido. */
.cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  font-family: var(--ui);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s;
}
.cart-trigger svg { width: 20px; height: 20px; flex: none; }
.menu .cart-trigger {
  padding: .75rem 1.25rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  box-shadow: 0 6px 16px -8px rgba(156, 18, 80, .5);
}
.btn.cart-trigger:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn--ghost.cart-trigger:hover {
  background: transparent;
  color: var(--brand);
}
.menu .cart-trigger:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  border-color: var(--brand);
  box-shadow: 0 6px 16px -8px rgba(156, 18, 80, .5);
  transform: translateY(-1px);
}
.cart-trigger:active { transform: translateY(0); box-shadow: none; }
.cart-trigger:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .cart-trigger { transition: none; }
  .cart-trigger:hover { transform: none; }
}

/* Mya Curve — portada inspirada en la referencia de la boutique. */
:root { --script: "Parisienne", cursive; }
.nav { background: #fcf3f2; }
.nav__in { min-height: 104px; }
.nav__logo img { height: 86px; width: 129px; object-fit: contain; }
.curve-hero { overflow: hidden; background: #fff8f5; }
.curve-hero__main { display: grid; grid-template-columns: 1.08fr 1fr; align-items: stretch; gap: 0; }
.curve-hero__copy { position: relative; z-index: 1; padding: clamp(2rem, 5vw, 4.5rem) 0 3rem; }
.curve-hero .eyebrow { font-size: clamp(.72rem, 1.2vw, .95rem); letter-spacing: .2em; margin-bottom: 1.5rem; }
.curve-hero h1 { font: 600 clamp(2.8rem, 5.2vw, 4.6rem)/1.08 var(--disp); letter-spacing: -.04em; }
.curve-hero h1 em { font-family: var(--script); font-size: 1.2em; font-weight: 400; color: var(--brand); letter-spacing: -.035em; }
.curve-heart { color: var(--brand); font-weight: 400; font-size: .8em; }
.curve-hero__tagline { width: fit-content; font-size: clamp(.95rem, 1.6vw, 1.25rem); margin-top: 1.8rem; padding-bottom: .7rem; border-bottom: 2px solid var(--brand); border-radius: 0 0 45% 0; }
.curve-hero__benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 2.1rem; max-width: 470px; text-align: center; }
.curve-hero__benefits li > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fbdde5; color: var(--brand); margin: 0 auto .65rem; }
.curve-hero__benefits svg { width: 29px; height: 29px; }
.curve-hero__benefits p { font-size: .85rem; line-height: 1.45; }
.curve-hero__visual { position: relative; min-width: 0; background: #fbe1e4; border-radius: 45% 0 0 0; }
.curve-hero__visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: inherit; }
.curve-hero__seal { position: absolute; left: -30px; bottom: 12%; width: 150px; height: 150px; display: flex; flex-direction: column; justify-content: center; text-align: center; border-radius: 50%; background: #c61962; color: #fff; font-size: .9rem; line-height: 1.25; border: 1px solid #ffffff50; transform: rotate(-8deg); }
.curve-hero__seal em { font: 400 2.1rem/1 var(--script); }
.curve-hero__bottom { position: relative; z-index: 2; padding-top: 0; }
.curve-proof { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 2.4rem; background: #fce9ec; border: 1px solid #f0cbd5; outline: 8px solid #fff8f5; border-radius: 22px; margin-top: -12px; }
.curve-proof > svg { width: 54px; height: 54px; flex: none; color: var(--brand); }
.curve-proof h2 { font-size: 1.05rem; font-weight: 700; }
.curve-proof p { font-size: .88rem; color: var(--ink-2); max-width: 55ch; }
.curve-proof .curve-proof__aside { margin-left: auto; padding-left: 2rem; border-left: 1px solid #d783a2; flex: none; }
.curve-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 1.8rem 1rem; max-width: 940px; margin: auto; }
.curve-action { display: flex; align-items: center; justify-content: center; gap: 1.1rem; padding: 1.2rem 1.4rem; border-width: 2px; }
.curve-action > svg { height: 30px; width: 30px; flex: none; }
.curve-action strong { display: block; font-size: 1.17rem; }
.curve-action small { display: block; font-size: .82rem; font-weight: 400; margin-top: .3rem; }
.curve-services { background: #fbecee; padding: 1.5rem 0; }
.curve-services ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.curve-services svg { height: 36px; width: 36px; color: var(--brand); margin-bottom: .35rem; }
.curve-services p { font-size: .82rem; line-height: 1.4; }
.curve-signoff { text-align: center; padding: 1rem; font: 400 clamp(1.5rem, 3vw, 2.2rem)/1.4 var(--script); color: var(--brand); }
@media (max-width: 1000px) {
  .curve-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); }
  .curve-hero__seal { width: 120px; height: 120px; left: -15px; }
}
@media (max-width: 760px) {
  .nav__in { min-height: 90px; }
  .nav__logo img { height: 76px; width: 114px; }
  .menu { top: 90px; }
  .burger span { background: var(--brand); }
  .curve-hero__main { width: 100%; grid-template-columns: 1fr 1fr; }
  .curve-hero__copy { padding: 2rem 0 2rem 1.25rem; }
  .curve-hero .eyebrow { font-size: .56rem; letter-spacing: .12em; margin-bottom: .8rem; }
  .curve-hero h1 { font-size: clamp(1.8rem, 5.8vw, 2.8rem); }
  .curve-hero__tagline { font-size: .76rem; margin-top: 1rem; max-width: 22ch; }
  .curve-hero__benefits { margin-top: 1.1rem; gap: .35rem; }
  .curve-hero__benefits li > span { width: 35px; height: 35px; }
  .curve-hero__benefits svg { width: 20px; height: 20px; }
  .curve-hero__benefits p { font-size: .6rem; }
  .curve-hero__visual > img { object-position: 48% top; }
  .curve-hero__seal { left: -8px; bottom: 5%; width: 86px; height: 86px; font-size: .62rem; }
  .curve-hero__seal em { font-size: 1.5rem; }
  .curve-proof { padding: 1rem; gap: .85rem; border-radius: 16px; }
  .curve-proof > svg { width: 30px; height: 30px; }
  .curve-proof h2 { font-size: .87rem; }
  .curve-proof p { font-size: .74rem; }
  .curve-proof .curve-proof__aside { display: none; }
  .curve-actions { padding: 1.25rem 0; gap: .65rem; }
  .curve-action { gap: .5rem; padding: .9rem .65rem; white-space: normal; }
  .curve-action > svg { width: 22px; height: 22px; }
  .curve-action strong { font-size: .85rem; }
  .curve-action small { font-size: .64rem; }
  .curve-services ul { grid-template-columns: repeat(2, 1fr); row-gap: 1.3rem; }
  .curve-services p { font-size: .75rem; }
}
