/* ==========================================================================
   Tienda Lara · Páginas de cuenta (Mi Cuenta, direcciones, órdenes, seguridad)
   Mismo lenguaje visual que static/home/css/landing/landing-v2.css.
   Diseño: docs/superpowers/specs/2026-11-05-mi-cuenta-rediseno-design.md
   ========================================================================== */

@font-face {
  font-family: "Clash Display";
  src: url("../../catalogue/fonts/ClashDisplay-Variable.09fd55f1eaf6.woff2") format("woff2"),
       url("../../catalogue/fonts/ClashDisplay-Variable.303c83362916.woff") format("woff");
  font-weight: 200 700;
  font-display: swap;
}

.ac {
  --ac-blue: #3a6ac4;
  --ac-navy: #00063d;
  --ac-mist: #eef0ff;
  --ac-mango: #fdac2d;
  --ac-mango-soft: #ffe3b3;
  --ac-coral: #e2512f;
  --ac-ink: #0d1433;
  --ac-muted: #5b6380;
  --ac-line: #dfe3f0;
  --ac-line-strong: #b9c3e6;
  --ac-white: #ffffff;

  --ac-font-display: "Clash Display", "Poppins", system-ui, sans-serif;
  --ac-font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ac-radius-lg: 32px;
  --ac-radius: 24px;
  --ac-field: 14px;
  --ac-ease: cubic-bezier(.2, .7, .1, 1);

  /* base.html: navbar fijo de 70 px, con 30 px de margen superior desde 1000 px */
  padding: 140px clamp(16px, 4vw, 48px) 64px;
  min-height: 70vh;
  background: var(--ac-white); /* fondo propio, como la landing: sin él se ve el lienzo oscuro del navegador */
  color-scheme: light;
  color: var(--ac-ink);
  font-family: var(--ac-font-body);
  container-type: inline-size;
}
@media (max-width: 999px) { .ac { padding-top: 96px; } }

.ac *, .ac *::before, .ac *::after { box-sizing: border-box; }
.ac h1, .ac h2, .ac h3, .ac p, .ac dl, .ac dd, .ac ul { margin: 0; }
.ac ul { padding: 0; list-style: none; }
.ac [hidden] { display: none !important; }
.ac :focus-visible { outline: 3px solid var(--ac-mango); outline-offset: 3px; border-radius: 10px; }
.ac p, .ac dd, .ac li { text-wrap: pretty; }

.ac-wrap { width: 100%; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
/* Never wider than the floating navbar (base.css: nav.main-nav from 1000px up). Below that the navbar is fixed and full width. */
@media (min-width: 1000px) { .ac-wrap { width: min(80vw, 1100px); } }
.ac-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-muted { color: var(--ac-muted); }

/* ---------- Encabezado ---------- */
.ac-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ac-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-blue); }
.ac-eyebrow--on-dark { color: var(--ac-mango-soft); }
.ac-back { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--ac-blue); text-decoration: none; }
.ac-back:hover { color: var(--ac-navy); }
.ac-title { margin-top: 8px !important; font-family: var(--ac-font-display); font-weight: 600; font-size: clamp(2.1rem, 1.4rem + 3cqw, 3.4rem); line-height: 1; letter-spacing: -.02em; color: var(--ac-navy); }
.ac-lead { margin-top: 8px !important; color: var(--ac-muted); }

/* ---------- Título de cada página, dentro del contenido ---------- */
.ac-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.ac-page-title { margin-top: 6px !important; font-family: var(--ac-font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6cqw, 2.2rem); line-height: 1.05; letter-spacing: -.015em; color: var(--ac-navy); }
.ac-page-head .ac-lead { margin-top: 6px !important; }
.ac-page-head > div > .ac-page-title:first-child { margin-top: 0 !important; }

/* ---------- Pestañas ---------- */
.ac-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--ac-mist); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ac-tabs::-webkit-scrollbar { display: none; }
.ac-tabs a { padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ac-muted); text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s; }
.ac-tabs a:hover { color: var(--ac-navy); background: rgba(255, 255, 255, .7); }
.ac-tabs a[aria-current="page"] { background: var(--ac-navy); color: var(--ac-white); }
/* On phones the four tabs share the width so the bar never runs off the right edge. */
@container (max-width: 600px) {
  .ac-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; width: 100%; padding: 4px; overflow: visible; }
  .ac-tabs a { padding: 9px 2px; font-size: .78rem; text-align: center; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Botones y enlaces ---------- */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: 0 1.3em; border-radius: 999px; border: 2px solid transparent; background: none; font: 600 .93rem/1 var(--ac-font-body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ac-ease), background-color .25s, color .25s, border-color .25s; }
.ac-btn:active { transform: scale(.97); }
.ac-btn--blue { background: var(--ac-blue); color: var(--ac-white); }
.ac-btn--blue:hover { background: var(--ac-navy); color: var(--ac-white); }
.ac-btn--line { border-color: var(--ac-line); color: var(--ac-navy); background: var(--ac-white); }
.ac-btn--line:hover { border-color: var(--ac-navy); color: var(--ac-navy); }
.ac-btn--navy { background: var(--ac-navy); color: var(--ac-white); }
.ac-btn--navy:hover { background: var(--ac-blue); color: var(--ac-white); }
.ac-btn--coral { background: var(--ac-coral); color: var(--ac-white); }
.ac-btn--coral:hover { background: #b93d20; color: var(--ac-white); }
.ac-btn--sm { min-height: 40px; font-size: .86rem; }
.ac-tool { border: 0; background: none; padding: 8px 10px; border-radius: 999px; font: 600 .84rem/1 var(--ac-font-body); color: var(--ac-blue); cursor: pointer; text-decoration: none; }
.ac-tool:hover { background: rgba(58, 106, 196, .1); color: var(--ac-blue); }
.ac-tool--danger { color: var(--ac-coral); }
.ac-tool--danger:hover { background: #fdece7; color: var(--ac-coral); }

/* ---------- Mensajes ---------- */
.ac-notices { display: grid; gap: 10px; }
.ac-notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #e8f5ee; color: #14532d; font-size: .92rem; }
.ac-notice .ac-icon { color: #15803d; }
.ac-notice--error { background: #fdece7; color: #7a2412; }
.ac-notice--error .ac-icon { color: var(--ac-coral); }

/* ---------- Sección con título ---------- */
.ac-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ac-section-title h2 { font-family: var(--ac-font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; color: var(--ac-navy); }
.ac-section-lead { margin: 4px 0 16px !important; color: var(--ac-muted); }
.ac-hint { display: flex; gap: 10px; align-items: center; margin-top: 14px !important; font-size: .88rem; color: var(--ac-muted); }

/* ---------- Tarjetas seleccionables («¿A quién le entregamos?») ---------- */
.ac-picks { display: grid; gap: 12px; }
.ac-pick {
  position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: center;
  padding: 16px 18px; border-radius: 22px; background: var(--ac-white);
  box-shadow: inset 0 0 0 1.5px var(--ac-line);
  transition: box-shadow .2s, background-color .2s;
}
.ac-pick:hover { box-shadow: inset 0 0 0 1.5px var(--ac-line-strong); }
.ac-pick.is-active { background: var(--ac-mist); }
.ac-pick:has(.ac-pick__radio:checked) { box-shadow: inset 0 0 0 2px var(--ac-blue); }
/* Toda la tarjeta elige: la etiqueta se extiende sobre ella. */
.ac-pick__label { position: static; display: contents; cursor: pointer; }
.ac-pick__label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ac-pick__radio { position: absolute; opacity: 0; pointer-events: none; }
.ac-pick__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ac-white); box-shadow: inset 0 0 0 2px var(--ac-line-strong); transition: box-shadow .2s var(--ac-ease); }
.ac-pick__radio:checked + .ac-pick__label .ac-pick__dot { box-shadow: inset 0 0 0 7px var(--ac-blue); }
.ac-pick__radio:focus-visible + .ac-pick__label .ac-pick__dot { outline: 3px solid var(--ac-mango); outline-offset: 3px; }
.ac-avatar { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--ac-mist); color: var(--ac-navy); font-family: var(--ac-font-display); font-weight: 600; font-size: 1.05rem; }
.ac-pick.is-active .ac-avatar { background: var(--ac-white); }
.ac-pick__body { min-width: 0; }
.ac-pick__name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; color: var(--ac-navy); font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.ac-pick__meta { display: block; margin-top: 3px; color: var(--ac-muted); font-size: .88rem; overflow-wrap: anywhere; }
.ac-pick__city { display: inline-flex; align-items: center; gap: 4px; color: var(--ac-blue); font-weight: 600; }
.ac-pick__city .ac-icon { width: 14px; height: 14px; }
.ac-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--ac-mango); color: var(--ac-navy); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* Herramientas y confirmación quedan por encima de la etiqueta extendida. */
.ac-pick__tools, .ac-pick__switch { position: relative; z-index: 1; }
.ac-pick__tools { display: flex; align-items: center; gap: 2px; }
.ac-pick__tools form { margin: 0; }
/* Only visible without JavaScript (with JS the «Cambiar dirección» dialog sends it). */
.ac-pick__switch { grid-column: 1 / -1; display: grid; justify-items: start; gap: 12px; margin: 6px 0 0; padding: 16px; border-radius: 16px; background: var(--ac-mango-soft); color: var(--ac-navy); }
.ac-pick__switch p { font-size: .92rem; }
.ac-pick--add { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 22px; border: 2px dashed var(--ac-line); color: var(--ac-blue); font-weight: 600; text-decoration: none; transition: border-color .2s, background-color .2s; }
.ac-pick--add:hover { border-color: var(--ac-blue); background: rgba(58, 106, 196, .05); color: var(--ac-blue); }
.ac-pick--add .ac-plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ac-mist); flex: none; }
.ac-pick--add small { display: block; color: var(--ac-muted); font-weight: 400; font-size: .84rem; }
@container (max-width: 600px) {
  .ac-pick { grid-template-columns: auto auto minmax(0, 1fr); padding: 14px; }
  .ac-pick__tools { grid-column: 3; margin-left: -10px; }
}

/* ---------- Formularios (dirección, contraseña) ---------- */
.ac-form-single { width: 100%; max-width: 720px; }
.ac-form { display: grid; gap: 18px; margin: 0; }
.ac-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.ac-form fieldset + fieldset { padding-top: 22px; border-top: 1px solid var(--ac-line); }
/* float takes the legend out of the fieldset border, so the separator line never crosses it */
.ac-form legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 0; font-family: var(--ac-font-display); font-weight: 600; font-size: 1.25rem; color: var(--ac-navy); }
.ac-step { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ac-navy); color: var(--ac-white); font-size: .9rem; }
.ac-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@container (max-width: 600px) { .ac-row { grid-template-columns: 1fr; } }
.ac-field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.ac-field > label, .ac-label { font-size: .86rem; font-weight: 600; color: var(--ac-navy); }
.ac-field > label span { font-weight: 400; color: var(--ac-muted); }
.ac-field input, .ac-field select, .ac-field textarea {
  width: 100%; min-height: 50px; margin: 0; padding: 12px 16px;
  border-radius: var(--ac-field); border: 1.5px solid var(--ac-line); background-color: var(--ac-white);
  color: var(--ac-ink); font: 400 1rem/1.4 var(--ac-font-body);
  transition: border-color .2s, box-shadow .2s;
}
.ac-field textarea { min-height: 110px; resize: vertical; }
.ac-field input:hover, .ac-field select:hover, .ac-field textarea:hover { border-color: #c4cbe2; }
.ac-field input:focus, .ac-field select:focus, .ac-field textarea:focus { outline: none; border-color: var(--ac-blue); box-shadow: 0 0 0 4px rgba(58, 106, 196, .15); }
.ac-field input::placeholder, .ac-field textarea::placeholder { color: #9aa2bd; }
/* Flecha propia, separada del borde derecho */
.ac-field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300063d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 18px;
}
.ac-field select:disabled { cursor: not-allowed; color: var(--ac-muted); background-color: #f6f7fb; }
.ac-field small, .ac-help-text { font-size: .8rem; color: var(--ac-muted); }
.ac-field--error input, .ac-field--error select, .ac-field--error textarea, .ac-field--error .ac-phone__field { border-color: var(--ac-coral); }
.ac-error { font-size: .82rem; font-weight: 500; color: #b93d20; }
/* Teléfono cubano: mismo componente que registro (bandera fija + «+53» dentro del campo) */
.ac-phone { display: flex; }
.ac-phone__flag { flex: 0 0 56px; display: grid; place-items: center; border-radius: var(--ac-field) 0 0 var(--ac-field); background: var(--ac-blue); font-size: 20px; line-height: 1; }
.ac-phone__field { flex: 1; min-width: 0; display: flex; align-items: center; border: 1.5px solid var(--ac-line); border-left: 0; border-radius: 0 var(--ac-field) var(--ac-field) 0; background: var(--ac-white); transition: border-color .2s, box-shadow .2s; }
.ac-phone__field:hover { border-color: #c4cbe2; }
.ac-phone__field:focus-within { border-color: var(--ac-blue); box-shadow: 0 0 0 4px rgba(58, 106, 196, .15); }
.ac-phone__dial { padding-left: 16px; color: var(--ac-ink); }
.ac-field .ac-phone__field input { min-height: 47px; border: 0; padding: 12px 16px 12px 6px; background: none; box-shadow: none; }
.ac-form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.ac-dialog__icon--info { background: var(--ac-mango-soft); color: var(--ac-navy); }

/* ---------- Órdenes ---------- */
.ac-order-list { display: grid; gap: 12px; }
.ac-month { margin: 8px 0 -2px !important; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-muted); }
.ac-order-list .ac-month:first-child { margin-top: 0 !important; }
.ac-order-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px 18px; align-items: center;
  padding: 18px 20px; border-radius: 22px; background: var(--ac-white); box-shadow: inset 0 0 0 1.5px var(--ac-line);
  text-decoration: none; transition: box-shadow .2s;
}
.ac-order-row:hover { box-shadow: inset 0 0 0 1.5px var(--ac-blue); }
.ac-order-row:hover .ac-order-row__go { background: var(--ac-blue); color: var(--ac-white); }
.ac-order-row__icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--ac-mist); color: var(--ac-blue); }
.ac-order-row__id { display: block; font-weight: 600; color: var(--ac-navy); }
.ac-order-row__meta { display: block; margin-top: 2px; font-size: .86rem; color: var(--ac-muted); }
.ac-order-row__total { text-align: right; }
.ac-order-row__total strong { display: block; font-family: var(--ac-font-display); font-weight: 600; font-size: 1.2rem; color: var(--ac-navy); }
.ac-order-row__total small { font-size: .8rem; color: var(--ac-muted); }
.ac-order-row__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ac-mist); color: var(--ac-navy); transition: background-color .2s, color .2s; }
@container (max-width: 600px) {
  .ac-order-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; }
  .ac-order-row__go { display: none; }
  .ac-order-row__icon { width: 42px; height: 42px; }
}
.ac-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(32px, 6cqw, 64px) 24px; border-radius: var(--ac-radius-lg); background: var(--ac-mist); }
.ac-empty__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--ac-white); color: var(--ac-blue); margin-bottom: 6px; }
.ac-empty__icon .ac-icon { width: 28px; height: 28px; }
.ac-empty h2 { font-family: var(--ac-font-display); font-weight: 600; font-size: 1.6rem; color: var(--ac-navy); }
.ac-empty p { color: var(--ac-muted); max-width: 42ch; }
.ac-empty .ac-btn { margin-top: 10px; }

.ac-order-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@container (max-width: 860px) { .ac-order-grid { grid-template-columns: 1fr; } }
.ac-order-side { display: grid; gap: 16px; }
.ac-items li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--ac-line); }
.ac-items li:first-child { border-top: 0; padding-top: 0; }
.ac-items__thumb { width: 52px; height: 52px; border-radius: 14px; background: var(--ac-mist); display: grid; place-items: center; overflow: hidden; color: var(--ac-blue); }
.ac-items__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-items__name { display: block; font-weight: 600; color: var(--ac-navy); line-height: 1.3; overflow-wrap: anywhere; }
.ac-items__unit { display: block; margin-top: 2px; font-size: .84rem; color: var(--ac-muted); }
.ac-items__sub { font-weight: 600; color: var(--ac-navy); text-align: right; }
.ac-qty { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; margin-right: 6px; border-radius: 999px; background: var(--ac-mist); color: var(--ac-navy); font-size: .76rem; font-weight: 600; }
.ac-deliver { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--ac-radius); padding: clamp(20px, 2.4cqw, 28px); background: var(--ac-navy); color: var(--ac-white); }
.ac-deliver::before { content: ""; position: absolute; z-index: -1; width: 140px; aspect-ratio: 1; border-radius: 50%; background: var(--ac-mango); right: -50px; top: -60px; }
.ac-deliver h2 { margin-top: 8px !important; font-family: var(--ac-font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.05; overflow-wrap: anywhere; }
.ac-deliver dl { display: grid; gap: 10px; margin-top: 16px !important; }
.ac-deliver dt { font-size: .74rem; color: rgba(255, 255, 255, .6); }
.ac-deliver dd { color: rgba(255, 255, 255, .92); font-size: .94rem; overflow-wrap: anywhere; }
.ac-sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--ac-muted); }
.ac-sum__row strong { color: var(--ac-navy); font-weight: 600; text-align: right; }
.ac-sum__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1.5px dashed var(--ac-line); }
.ac-sum__total span { font-weight: 600; color: var(--ac-navy); }
.ac-sum__total strong { font-family: var(--ac-font-display); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--ac-navy); text-align: right; }
.ac-help--soft { background: var(--ac-mist); color: var(--ac-navy); }
.ac-help--soft p { color: var(--ac-muted); }

/* Contraseña con botón para mostrarla */
.ac-password { position: relative; }
.ac-field .ac-password input { padding-right: 56px; }
.ac-password__toggle { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border: 0; border-radius: 12px; background: none; color: var(--ac-muted); display: grid; place-items: center; cursor: pointer; }
.ac-password__toggle:hover { background: var(--ac-mist); color: var(--ac-navy); }
.ac-password__toggle .ac-icon { width: 20px; height: 20px; }
.ac-password__toggle .ac-icon--hide { display: none; }
.ac-password__toggle.shown .ac-icon--show { display: none; }
.ac-password__toggle.shown .ac-icon--hide { display: block; }
.ac-rules { display: grid; gap: 6px; margin: 0; padding: 14px 16px !important; border-radius: 14px; background: var(--ac-mist); font-size: .86rem; color: var(--ac-muted); }
.ac-rules li { display: flex; gap: 8px; align-items: flex-start; }
.ac-rules .ac-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--ac-blue); }

/* ---------- Diálogos ---------- */
.ac-dialog { margin: auto; max-height: calc(100dvh - 32px); overflow: auto; width: min(440px, calc(100vw - 32px)); padding: 30px; border: 0; border-radius: var(--ac-radius-lg); background: var(--ac-white); color: var(--ac-ink); font-family: var(--ac-font-body); box-shadow: 0 30px 60px -20px rgba(0, 6, 61, .5); }
.ac-dialog::backdrop { background: rgba(0, 6, 61, .45); backdrop-filter: blur(2px); }
.ac-dialog[open] { display: grid; gap: 14px; animation: ac-pop .25s var(--ac-ease); }
@keyframes ac-pop { from { opacity: 0; transform: translateY(8px); } }
.ac-dialog__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fdece7; color: var(--ac-coral); }
.ac-dialog h2 { margin: 0; font-family: var(--ac-font-display); font-weight: 600; font-size: 1.55rem; line-height: 1.1; color: var(--ac-navy); }
.ac-dialog p { margin: 0; color: var(--ac-muted); }
.ac-dialog p strong { color: var(--ac-navy); }
.ac-dialog__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.ac-dialog__close { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ac-mist); color: var(--ac-navy); display: grid; place-items: center; cursor: pointer; }

/* ---------- Mi Cuenta: «Ahora compras para» ---------- */
.ac-now {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--ac-radius-lg); padding: clamp(24px, 3.4cqw, 40px);
  background: var(--ac-navy); color: var(--ac-white);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end;
}
.ac-now::before { content: ""; position: absolute; z-index: -1; width: 230px; aspect-ratio: 1; border-radius: 50%; background: var(--ac-mango); right: -70px; top: -140px; }
.ac-now::after { content: ""; position: absolute; z-index: -1; width: 180px; height: 120px; right: 140px; bottom: 18px; background: radial-gradient(circle, rgba(255, 255, 255, .18) 2px, transparent 2.5px) 0 0 / 16px 16px; }
.ac-now__name { margin-top: 10px !important; font-family: var(--ac-font-display); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 2.6cqw, 2.9rem); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ac-now__where { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; color: rgba(255, 255, 255, .82); }
.ac-now__city { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .82rem; font-weight: 500; }
.ac-now__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-btn--mango { background: var(--ac-mango); color: var(--ac-navy); }
.ac-btn--mango:hover { background: var(--ac-white); color: var(--ac-navy); }
.ac-btn--line-light { border-color: rgba(255, 255, 255, .5); color: var(--ac-white); }
.ac-btn--line-light:hover { background: var(--ac-white); color: var(--ac-navy); border-color: var(--ac-white); }
@container (max-width: 700px) {
  .ac-now { grid-template-columns: 1fr; }
  .ac-now::before { width: 200px; right: -80px; top: -110px; }
  .ac-now::after { display: none; }
}

/* ---------- Mi Cuenta: tarjetas ---------- */
.ac-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@container (max-width: 700px) { .ac-tiles { grid-template-columns: 1fr; } }
.ac-card { border-radius: var(--ac-radius); padding: clamp(20px, 2.4cqw, 28px); background: var(--ac-white); box-shadow: inset 0 0 0 1px var(--ac-line); }
.ac-card--mist { background: var(--ac-mist); box-shadow: none; }
.ac-card h2 { font-family: var(--ac-font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ac-navy); line-height: 1.1; }
.ac-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ac-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ac-white); color: var(--ac-blue); flex: none; }
.ac-card:not(.ac-card--mist) .ac-card__icon { background: var(--ac-mist); }
.ac-card__more { margin-top: 14px !important; }
.ac-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ac-blue); text-decoration: none; }
.ac-link:hover { color: var(--ac-navy); }
.ac-link .ac-icon { transition: transform .25s var(--ac-ease); }
.ac-link:hover .ac-icon { transform: translateX(3px); }

.ac-orders li a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(0, 6, 61, .08); text-decoration: none; }
.ac-orders li:first-child a { border-top: 0; padding-top: 0; }
.ac-orders strong { font-weight: 600; color: var(--ac-navy); }
.ac-orders small { display: block; color: var(--ac-muted); font-size: .82rem; }
.ac-orders__amount { font-weight: 600; color: var(--ac-navy); text-align: right; }
.ac-orders .ac-icon { color: var(--ac-muted); }
.ac-orders a:hover strong { color: var(--ac-blue); }
.ac-stat { font-family: var(--ac-font-display); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--ac-navy); }
.ac-facts { display: grid; gap: 12px; }
.ac-facts div { display: grid; gap: 2px; }
.ac-facts dt { font-size: .78rem; color: var(--ac-muted); }
.ac-facts dd { font-weight: 600; color: var(--ac-navy); overflow-wrap: anywhere; }
.ac-note { margin-top: 16px !important; font-size: .86rem; color: var(--ac-muted); }
.ac-empty-line { color: var(--ac-muted); }

/* ---------- Ayuda y cerrar sesión ---------- */
.ac-help { border-radius: var(--ac-radius); padding: clamp(20px, 2.6cqw, 28px); background: var(--ac-blue); color: var(--ac-white); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ac-help h2 { font-family: var(--ac-font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.ac-help p { color: rgba(255, 255, 255, .85); margin-top: 6px !important; font-size: .92rem; }
/* Cerrar sesión: tarjeta «Sesión» al final de Resumen */
.ac-session { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: clamp(20px, 2.4cqw, 26px); border-radius: var(--ac-radius); background: var(--ac-mist); }
.ac-session h2 { font-family: var(--ac-font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.1; color: var(--ac-navy); }
.ac-session p { margin-top: 4px !important; color: var(--ac-muted); font-size: .9rem; }
.ac-session form { margin: 0; }
@container (max-width: 600px) { .ac-session form, .ac-session .ac-btn { width: 100%; } }

/* ---------- Sin sesión ---------- */
.ac-guest { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(32px, 6cqw, 64px) 24px; border-radius: var(--ac-radius-lg); background: var(--ac-mist); }
.ac-guest h2 { font-family: var(--ac-font-display); font-weight: 600; font-size: 1.6rem; color: var(--ac-navy); }
.ac-guest p { color: var(--ac-muted); max-width: 46ch; }
.ac-guest__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ---------- Diálogo «¿Para quién compras?» ---------- */
.ac-dialog--wide { width: min(560px, calc(100vw - 24px)); padding: 28px; gap: 18px; }
.ac-dialog--wide h2 { font-size: 1.7rem; padding-right: 40px; }
.ac-dialog__foot { display: flex; justify-content: flex-end; }
@media (max-width: 600px) {
  .ac-dialog--wide { padding: 22px 16px; margin-bottom: 0; border-radius: var(--ac-radius-lg) var(--ac-radius-lg) 0 0; width: 100vw; max-width: 100vw; max-height: 88dvh; }
  .ac-dialog--wide h2 { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ac *, .ac *::before, .ac *::after { transition: none !important; animation: none !important; }
}

/* ---------- Orden confirmada (checkout/order_placed.html) ---------- */
.ac-placed { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: start; gap: 10px; padding: clamp(24px, 4.5cqw, 48px); border-radius: var(--ac-radius-lg); background: var(--ac-blue); color: var(--ac-white); }
.ac-placed::before { content: ""; position: absolute; z-index: -1; width: clamp(160px, 26cqw, 280px); aspect-ratio: 1; border-radius: 50%; background: var(--ac-mango); right: -70px; top: -90px; }
.ac-placed .ac-eyebrow { color: var(--ac-mango-soft); }
.ac-placed .ac-title { margin-top: 0 !important; max-width: 18ch; color: var(--ac-white); font-size: clamp(1.9rem, 1.3rem + 2.6cqw, 3rem); text-wrap: balance; }
.ac-placed .ac-lead { margin-top: 0 !important; color: rgba(255, 255, 255, .85); }
.ac-placed__id { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px !important; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.ac-placed__id b { padding: 5px 12px; border-radius: 999px; background: var(--ac-white); color: var(--ac-navy); font-weight: 600; }
.ac-items + .ac-sum__row { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--ac-line); }
.ac-next ol { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: ac-step; }
.ac-next li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: var(--ac-muted); font-size: .92rem; }
.ac-next li::before { counter-increment: ac-step; content: counter(ac-step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ac-navy); color: var(--ac-white); font-weight: 600; font-size: .82rem; }
.ac-next li strong { display: block; color: var(--ac-navy); }
.ac-placed-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@container (max-width: 520px) { .ac-placed-actions .ac-btn { flex: 1 1 100%; } }
