/* La Estación · cuentas de clientes: entrar, Mi cuenta, favoritos y línea de tiempo del pedido. Primero el móvil. */

/* Cabecera: botón de la cuenta (con la inicial cuando has entrado) */
.hdr-cuenta { position: relative; }
.hdr-cuenta__i { position: absolute; right: 2px; top: 2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--y); color: #000; font-style: normal; font-weight: 900; font-size: 12px; display: grid; place-items: center; font-family: var(--f-d); box-shadow: 0 0 0 2px #000; }
.hdr-cuenta__i[hidden] { display: none; }

.acc-wrap { padding: 26px 0 80px; }
.note--bad { background: #fde8e6; border-left-color: var(--bad); color: #7a1d16; }
.acc-mini { font-size: 13px; color: var(--mute-l); margin: 0; }
.acc-mini a { text-decoration: underline; }
.acc-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: inherit; cursor: pointer; justify-self: start; }
.acc-link--bad { color: var(--bad); }
.btn--bad { --bg: var(--bad); --fg: #fff; }
.acc-volver { display: table; margin: 0 auto 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Entrar */
.acc-entrar { display: grid; gap: 22px; max-width: 980px; }
.acc-entrar .co__box { margin: 0; display: grid; gap: 16px; }
.acc-form { display: grid; gap: 14px; }
.acc-form[hidden] { display: none; }
.acc-form small { font-weight: 400; color: var(--mute-l); }
.acc-tabs { width: 100%; }
.acc-tabs .tab { flex: 1; text-align: center; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; border-radius: 8px; background: #fff; color: #1f1f1f; font-weight: 700; font-size: 17px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.18); transition: box-shadow .2s, background .2s; }
.btn-google:hover { box-shadow: inset 0 0 0 2px #000; background: #fafafa; }
.btn-google svg { width: 24px; height: 24px; }
.acc-o { display: flex; align-items: center; gap: 12px; color: var(--mute-l); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.acc-o::before, .acc-o::after { content: ''; flex: 1; height: 1px; background: var(--line-l); }
.acc-ventajas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.acc-ventajas li { display: flex; gap: 14px; align-items: flex-start; background: #000; color: #fff; border-radius: var(--r); padding: 18px; }
.acc-ventajas svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--y); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc-ventajas b { display: block; font-family: var(--f-d); font-size: 20px; text-transform: uppercase; }
.acc-ventajas span { color: var(--mute-d, #aaa); font-size: 14px; }
@media (min-width: 860px) { .acc-entrar { grid-template-columns: 1.15fr .85fr; align-items: start; } }

/* Mi cuenta: cabecera y pestañas */
.acc-hd { padding-bottom: 0; }
.acc-hd .h-l { font-size: clamp(38px, 6vw, 72px); margin-top: 8px; }
.acc-hd__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.acc-hd__mail { color: #aaa; margin: 8px 0 0; font-size: 14px; word-break: break-all; }
.acc-hd .btn--ghost { color: #fff; }
.acc-nav { display: flex; gap: 4px; margin: 22px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.acc-nav::-webkit-scrollbar { display: none; }
.acc-nav a { flex: none; padding: 10px 16px; border-radius: 30px; font-family: var(--f-d); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; color: #ccc; background: rgba(255,255,255,.07); }
.acc-nav a.is-on { background: var(--y); color: #000; }
.acc-cargando { color: var(--mute-l); }
.acc-vacio { text-align: center; padding: 50px 10px; display: grid; gap: 12px; justify-items: center; }
.acc-vacio .lead { margin: 0; }

/* Pedidos */
.acc-peds { display: grid; gap: 14px; }
.acc-ped { background: #fff; border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.acc-ped__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.acc-ped__top span { display: block; font-size: 13px; color: var(--mute-l); }
.acc-ped__cod { font-family: var(--f-d); font-weight: 900; font-size: 22px; letter-spacing: .03em; }
.acc-est { flex: none; display: inline-block; font-family: var(--f-d); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; background: var(--paper-2); color: #000; white-space: nowrap; }
.acc-est--enviado, .acc-est--listo_recoger { background: var(--y); }
.acc-est--entregado { background: #dff3e8; color: #0d6b3e; }
.acc-est--cancelado { background: #fde8e6; color: #9c2a21; }
.acc-est--pendiente_pago { background: #fff0cc; }
.acc-ped__fotos { display: flex; align-items: center; gap: 8px; }
.acc-ped__img { width: 54px; height: 60px; background: var(--paper); border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.acc-ped__img .packshot, .acc-ped__img img { width: 82%; height: 88%; object-fit: contain; }
.acc-ped__tot { margin-left: auto; font-family: var(--f-d); font-weight: 900; font-size: 24px; }
.acc-barra { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.acc-barra i { display: block; height: 100%; background: #000; border-radius: 3px; transition: width .6s var(--ease); min-width: 6px; }
.acc-ped__paso { margin: -4px 0 0; font-size: 14px; font-weight: 600; }
.acc-ped__acc { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-ped__acc .btn { flex: 1 1 auto; }

/* Favoritos */
.acc-favs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .acc-favs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .acc-favs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acc-fav { position: relative; }
.acc-fav .card { height: 100%; }
.acc-fav > .fav-btn { position: absolute; right: 10px; top: 10px; z-index: 3; }

/* Corazón de favoritos */
.fav-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); border: 0; cursor: pointer; transition: transform .2s; }
.fav-btn:active { transform: scale(.9); }
.fav-btn svg { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 1.9; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.fav-btn.is-on svg { fill: var(--bad); stroke: var(--bad); }
.pdp__tt { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pdp__tt .pdp__title { min-width: 0; overflow-wrap: anywhere; }
.fav-btn--pdp { margin-top: 6px; }

/* Avisos y direcciones */
.acc-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc-lista li { background: #fff; border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-lista li > div { flex: 1 1 200px; }
.acc-lista b { display: block; }
.acc-lista span { font-size: 13px; color: var(--mute-l); }
.acc-lista .acc-est { color: #000; font-size: 12px; }
.acc-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; }
.acc-dirs { display: grid; gap: 12px; }
@media (min-width: 760px) { .acc-dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc-dir { background: #fff; border-radius: var(--r); padding: 16px; display: grid; gap: 10px; align-content: start; box-shadow: inset 0 0 0 2px transparent; }
.acc-dir.is-main { box-shadow: inset 0 0 0 2px #000; }
.acc-dir p { margin: 0; white-space: normal; }
.acc-dir__hd { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.acc-dir__hd b { font-family: var(--f-d); font-size: 20px; text-transform: uppercase; }
.acc-dir__acc { display: flex; gap: 16px; flex-wrap: wrap; }
.acc-dir--nueva { background: var(--paper-2); }
.acc-dir textarea.input, .acc-datos textarea.input { height: 92px; padding: 12px 16px; resize: vertical; }

/* Mis datos */
.acc-datos { display: grid; gap: 14px; }
.acc-datos .co__box { margin: 0; }
.acc-datos h3 { margin: 0; font-family: var(--f-d); font-weight: 900; text-transform: uppercase; font-size: 24px; }
.acc-datos p { margin: 0; }
.acc-datos hr { border: 0; border-top: 1px solid var(--line-l); width: 100%; margin: 4px 0; }
.acc-datos .input:disabled { background: var(--paper); color: #555; }
@media (min-width: 900px) { .acc-datos { grid-template-columns: 1fr 1fr; align-items: start; } .acc-privacidad { grid-column: 1 / -1; } }

/* Checkout */
.co-cuenta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--y-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.co-cuenta.is-in { background: #e8f6ee; }
.co-dirs { display: grid; gap: 8px; margin-top: 14px; }
.co-dirs[hidden] { display: none; }
.radio-card--s { padding: 12px 14px; }
.radio-card--s + .radio-card--s { margin-top: 0; }
.radio-card--s span { white-space: pre-line; }
#addrBox.is-guardada > label, #addrBox.is-guardada > textarea { display: none; }

/* Línea de tiempo del pedido */
.tl-wrap { max-width: 720px; padding-bottom: 26px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: #fff; border-radius: var(--r); padding: 18px 18px 6px; }
.tl__p { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.tl__p::before { content: ''; position: absolute; left: 16px; top: 30px; bottom: 0; width: 3px; background: var(--paper-2); }
.tl__p:last-child::before { display: none; }
.tl__p.is-on::before { background: #000; }
.tl__p.is-now::before { background: linear-gradient(#000, var(--paper-2)); }
.tl__p > i { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; position: relative; z-index: 1; }
.tl__p.is-on > i { background: #000; }
.tl__p.is-now > i { background: var(--y); box-shadow: 0 0 0 6px rgba(255,176,0,.25); }
.tl__p > i svg { width: 18px; height: 18px; fill: none; stroke: var(--y); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tl__p.is-now > i svg { stroke: #000; }
.tl__p b { display: block; font-family: var(--f-d); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1.6; color: #999; }
.tl__p.is-on b { color: #000; }
.tl__p span { font-size: 13px; color: var(--mute-l); }
.tl--cancel .tl__p > i { background: var(--bad); }
.tl-envio { margin-top: 12px; background: #000; color: #fff; border-radius: var(--r); padding: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tl-envio svg { width: 30px; height: 30px; fill: none; stroke: var(--y); stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.tl-envio > div { flex: 1 1 180px; }
.tl-envio b { display: block; font-family: var(--f-d); font-size: 20px; text-transform: uppercase; }
.tl-envio span { color: #bbb; font-size: 14px; }
.tl-envio span b { display: inline; font-family: inherit; font-size: inherit; color: #fff; text-transform: none; letter-spacing: .04em; }
@media (min-width: 760px) {
  .tl { grid-auto-flow: column; grid-auto-columns: 1fr; padding: 24px 20px; }
  .tl__p { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding-bottom: 0; }
  .tl__p::before { left: 50%; right: -50%; top: 16px; bottom: auto; width: auto; height: 3px; }
  .tl__p.is-now::before { background: linear-gradient(90deg, #000, var(--paper-2)); }
  .tl__p b { font-size: 17px; line-height: 1.15; }
}

/* Ficha de producto en el móvil: las columnas no pueden ser más anchas que la pantalla
   (antes la página medía ~438 px en un móvil de 375 y el corazón de favoritos quedaba fuera). */
.pdp > * { min-width: 0; }
@media (max-width: 480px) { .buy .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 16px; letter-spacing: .03em; } .buy .qty { flex: none; } }
