/* Tienda por pasos — estilo tienda online moderna (listado, ficha con caja de compra, cesta y datos con resumen fijo) */

body.tienda { background: #f2f4f7; }
.tienda-wrap { max-width: 1200px; margin: 0 auto; padding: 0 14px 48px; }

/* ── Barra superior ───────────────────────────────────────── */
.tienda-cesta-link { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ev-cab-text, #fff); text-decoration: none; padding: 6px 10px; font-weight: 700; font-size: .9rem; }
.tienda-cesta-link:hover { color: var(--ev-cab-text, #fff); text-decoration: none; }
.tienda-cesta-link .material-icons { font-size: 1.75rem; color: inherit; }
.tienda-cesta-count { position: absolute; top: -2px; left: 25px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 9px; background: var(--ev-accent); color: var(--ev-accent-text, #fff); border: 2px solid var(--ev-cab-primary, #142d54); box-sizing: content-box; font-size: .68rem; font-weight: 800; line-height: 16px; text-align: center; }
.tienda-cesta-txt { margin-left: 6px; }

/* Pasos: ver css/pasos.css (componente común de tienda e inscripciones) */

.tienda-titulo { font-size: 1.35rem; font-weight: 700; color: #111827; margin: 6px 0 14px; }
.tienda-migas { font-size: .82rem; color: #64748b; margin: 4px 0 12px; }
.tienda-migas a { color: var(--ev-primary); text-decoration: none; }
.tienda-migas a:hover { text-decoration: underline; }

/* ── Botones ──────────────────────────────────────────────── */
.tbtn { display: block; width: 100%; text-align: center; border: 1px solid transparent; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: filter .15s, box-shadow .15s; }
.tbtn:hover { filter: brightness(.95); text-decoration: none; }
.tbtn:focus-visible { outline: 3px solid rgba(var(--ev-primary-rgb), .35); outline-offset: 2px; }
.tbtn--add { background: linear-gradient(180deg, var(--ev-accent) 0%, var(--ev-accent-dark) 100%); color: var(--ev-accent-text, #fff); font-weight: 700; box-shadow: 0 2px 6px rgba(var(--ev-accent-rgb), .35); }
.tbtn--add:hover { color: #fff; }
.tbtn--add .material-icons { margin-right: 8px; vertical-align: -5px; }
.tbtn--compra { background: var(--ev-primary); color: var(--ev-text); }
.tbtn--compra:hover { color: var(--ev-text); }
.tbtn--sec { background: #fff; color: #111827; border-color: #cbd5e1; margin-top: 8px; }
.tbtn--sec:hover { color: #111827; background: #f8fafc; }
.tbtn[disabled], .tbtn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.tbtn--sm { padding: 7px 12px; font-size: .85rem; }

/* ── Precio ───────────────────────────────────────────────── */
.tprecio { color: #111827; font-weight: 700; white-space: nowrap; }
.tprecio__ent { font-size: 1.5em; }
.tprecio__dec { font-size: .75em; top: -.55em; position: relative; vertical-align: baseline; }
.tprecio__eur { font-size: .95em; }

/* ── Listado ──────────────────────────────────────────────── */
.tlista-barra { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.tlista-barra__cuenta { color: #475569; font-size: .9rem; margin-right: auto; }
.tlista-buscar { position: relative; flex: 1 1 220px; max-width: 360px; }
.tlista-buscar .material-icons { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.2rem; pointer-events: none; }
.tlista-buscar input { width: 100%; height: 40px; border: 1px solid #cbd5e1; border-radius: 999px; padding: 0 14px 0 38px; font-size: .92rem; }
.tlista-buscar input:focus, .tlista-orden select:focus { outline: 3px solid rgba(var(--ev-primary-rgb), .25); border-color: var(--ev-primary); }
.tlista-orden select { height: 40px; border: 1px solid #cbd5e1; border-radius: 999px; padding: 0 12px; font-size: .9rem; background: #fff; }

.tienda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.tienda-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.07); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; position: relative; }
.tienda-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.13); transform: translateY(-2px); }
.tienda-card__enlace { color: inherit; text-decoration: none; display: block; }
.tienda-card__enlace:hover { color: inherit; text-decoration: none; }
.tienda-card__img { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px; }
.tienda-card__img img { width: 100%; height: 100%; object-fit: contain; }
.tienda-card__img .material-icons { font-size: 3rem; color: #cbd5e1; }
.tienda-card__body { padding: 4px 14px 8px; }
.tienda-card__nombre { font-weight: 600; color: #111827; font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tienda-card__precio { margin-top: 4px; }
.tienda-card__etiquetas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tienda-card__etiquetas:empty { display: none; }
.tetiqueta { font-size: .72rem; font-weight: 700; border-radius: 4px; padding: 2px 7px; background: #e2e8f0; color: #334155; }
.tetiqueta--rojo { background: #fee2e2; color: #b91c1c; }
.tetiqueta--ambar { background: #fef3c7; color: #92400e; }
.tienda-card__accion { padding: 6px 14px 14px; margin-top: auto; }
.tienda-card.agotado .tienda-card__img img { opacity: .45; }
.tienda-vacia { text-align: center; color: #64748b; padding: 50px 10px; background: #fff; border-radius: 12px; }

/* ── Ficha de producto ────────────────────────────────────── */
.tprod { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.07); padding: 22px; }
.tprod__galeria { display: flex; gap: 10px; align-items: flex-start; }
.tprod__thumbs { width: 62px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.tprod__thumbs div { cursor: pointer; border: 2px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; }
.tprod__thumbs div:hover { border-color: rgba(var(--ev-primary-rgb), .5); }
.tprod__thumbs div.activa { border-color: var(--ev-primary); }
.tprod__thumbs img { width: 100%; display: block; }
.tprod__principal { flex: 1; min-width: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #fff; text-align: center; }
.tprod__principal img { max-width: 100%; max-height: 520px; display: inline-block; }
.tprod__nombre { font-size: 1.55rem; font-weight: 600; color: #111827; line-height: 1.25; }
.tprod__sep { border: 0; border-top: 1px solid #e5e7eb; margin: 14px 0; }
.tprod__precio-grande { font-size: 1.15rem; }
.tprod__texto-previo { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 10px 14px; font-size: .88rem; margin-bottom: 12px; }
.tprod__desc { color: #374151; font-size: .93rem; line-height: 1.6; }
.tprod__lbl { font-size: .85rem; font-weight: 700; color: #111827; display: block; margin: 16px 0 6px; }
.tprod__lbl small { font-weight: 400; color: #64748b; }
.tprod__ayuda { font-size: .82rem; color: #64748b; }
.tprod__error { color: #b91c1c; font-size: .85rem; margin-top: 6px; display: none; }
.tprod__error.visible { display: block; }

/* Tallas como botones */
.ttallas { display: flex; flex-wrap: wrap; gap: 8px; }
.ttalla { min-width: 52px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: .9rem; font-weight: 600; color: #111827; cursor: pointer; position: relative; }
.ttalla:hover { border-color: var(--ev-primary); }
.ttalla.sel { border: 2px solid var(--ev-primary); background: rgba(var(--ev-primary-rgb), .07); padding: 7px 11px; }
.ttalla[disabled] { color: #9ca3af; background: #f3f4f6; cursor: not-allowed; overflow: hidden; border-style: dashed; }
.ttalla[disabled]::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; border-top: 1px solid #9ca3af; transform: rotate(-24deg); }
.ttalla small { display: block; font-size: .68rem; font-weight: 600; color: #b45309; }
.ttalla:focus-visible { outline: 3px solid rgba(var(--ev-primary-rgb), .35); outline-offset: 2px; }

/* Caja de compra */
.tcompra { border: 1px solid #d5d9d9; border-radius: 12px; padding: 18px; position: sticky; top: 84px; background: #fff; }
.tcompra__precio { font-size: 1.1rem; }
.tcompra__entrega { font-size: .85rem; color: #374151; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.tcompra__entrega .material-icons { font-size: 1.05rem; vertical-align: -3px; color: #475569; margin-right: 4px; }
.tcompra__stock { font-size: 1.05rem; font-weight: 700; color: #15803d; margin: 12px 0 8px; }
.tcompra__stock.agotado { color: #b91c1c; }
.tcompra__cant { margin: 8px 0 12px; display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.tcompra__cant select { height: 38px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 8px; background: #f8fafc; }
.tcompra__total { font-size: .88rem; color: #475569; margin-bottom: 10px; }
.tcompra__total strong { color: #111827; }
.tcompra .tbtn + .tbtn { margin-top: 8px; }
.tcompra__seguro { margin-top: 14px; font-size: .8rem; color: #475569; display: flex; gap: 6px; align-items: flex-start; }
.tcompra__seguro .material-icons { font-size: 1.1rem; color: #15803d; }

.tprod__similares { margin-top: 30px; }

/* ── Cesta / resumen ──────────────────────────────────────── */
.tcesta { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.07); padding: 4px 22px 10px; }
.tcesta__cab { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 8px; border-bottom: 1px solid #e5e7eb; }
.tcesta__cab h2 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.tcesta__cab span { color: #64748b; font-size: .85rem; }
.tcesta-linea { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid #eef2f7; flex-wrap: wrap; }
.tcesta-lineas .tcesta-linea:last-child, .tcesta .tcesta-linea:last-child { border-bottom: none; }
.tcesta-foto { width: 88px; height: 88px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid #eef2f7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tcesta-foto img { width: 100%; height: 100%; object-fit: contain; }
.tcesta-foto .material-icons { color: #cbd5e1; }
.tcesta-info { flex: 1; min-width: 160px; }
.tcesta-nombre { font-weight: 600; color: #111827; text-decoration: none; font-size: 1rem; line-height: 1.3; display: block; }
.tcesta-nombre:hover { color: var(--ev-primary); }
.tcesta-det { font-size: .83rem; color: #64748b; margin-top: 3px; }
.tcesta-pu { font-size: .83rem; color: #64748b; margin-top: 3px; }
.tcesta-acciones { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.tcesta-cant { display: inline-flex; border: 1px solid #d1d5db; border-radius: 999px; overflow: hidden; background: #f8fafc; }
.tcesta-cant button { width: 34px; height: 34px; border: none; background: transparent; cursor: pointer; font-size: 1.15rem; line-height: 1; color: #111827; }
.tcesta-cant button:hover:not(:disabled) { background: #e5e7eb; }
.tcesta-cant button:disabled { opacity: .35; cursor: default; }
.tcesta-cant input { width: 40px; height: 34px; text-align: center; border: none; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.tcesta-cant input::-webkit-outer-spin-button, .tcesta-cant input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tcesta-cant--fija { border: none; background: none; font-weight: 600; color: #475569; padding: 0; }
.tcesta-sep { width: 1px; height: 18px; background: #d1d5db; }
.tcesta-borrar { background: none; border: none; color: var(--ev-primary); cursor: pointer; padding: 0; font-size: .85rem; }
.tcesta-borrar:hover { text-decoration: underline; }
.tcesta-importe { margin-left: auto; text-align: right; font-weight: 700; color: #111827; white-space: nowrap; }
.tcesta-avisos { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 10px 14px; font-size: .88rem; margin: 12px 0; }
.tcesta-avisos .material-icons { font-size: 1.05rem; vertical-align: -3px; }
.tcesta-vacia { text-align: center; padding: 60px 10px; color: #475569; background: #fff; border-radius: 14px; }
.tcesta-vacia .material-icons { font-size: 3.5rem; color: #cbd5e1; }

/* Resumen fijo (cesta y datos) */
.tresumen { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.07); padding: 20px; position: sticky; top: 84px; }
.tresumen h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.tresumen__fila { display: flex; justify-content: space-between; padding: 4px 0; color: #374151; font-size: .92rem; }
.tresumen__total { border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 10px; font-size: 1.15rem; font-weight: 700; color: #111827; }
.tresumen__sub { font-size: 1.05rem; margin-bottom: 12px; }
.tresumen__nota { font-size: .8rem; color: #64748b; margin: 10px 0 0; }
.tresumen__seguro { margin-top: 14px; font-size: .8rem; color: #475569; display: flex; gap: 6px; align-items: flex-start; }
.tresumen__seguro .material-icons { font-size: 1.1rem; color: #15803d; }
.tresumen .tcesta-linea { padding: 10px 0; gap: 10px; }
.tresumen .tcesta-foto { width: 52px; height: 52px; }
.tresumen .tcesta-nombre { font-size: .88rem; }
.tresumen .tcesta-importe { font-size: .88rem; }
.tresumen .tcesta-cant--fija { font-size: .8rem; }
.tresumen-lineas { max-height: 280px; overflow-y: auto; margin: 0 -4px 6px; padding: 0 4px; }

/* ── Minicarrito ──────────────────────────────────────────── */
.tdr-fondo { position: fixed; inset: 0; background: rgba(15,23,42,.45); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 1040; }
.tdr-fondo.abierto { opacity: 1; visibility: visible; }
.tdr { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; background: #fff; z-index: 1050; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -8px 0 28px rgba(0,0,0,.18); visibility: hidden; }
.tdr.abierto { transform: none; visibility: visible; }
.tdr-cab { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e5e7eb; font-size: 1.1rem; }
.tdr-x { background: none; border: none; cursor: pointer; color: #475569; display: inline-flex; padding: 2px; }
.tdr-ok { background: #ecfdf5; color: #166534; font-weight: 700; padding: 10px 18px; font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.tdr-cuerpo { flex: 1; overflow-y: auto; padding: 0 18px; }
.tdr-vacio { text-align: center; color: #64748b; padding: 50px 0; }
.tdr-vacio .material-icons { font-size: 3rem; color: #cbd5e1; }
.tdr-pie { border-top: 1px solid #e5e7eb; padding: 14px 18px 18px; }
.tdr-sub { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1rem; }
.tdr .tcesta-foto { width: 64px; height: 64px; }
.tdr .tcesta-linea { padding: 12px 0; gap: 10px; }
.tdr .tcesta-nombre { font-size: .9rem; }
body.tdr-abierto { overflow: hidden; }

@media (max-width: 991px) {
  .tcompra, .tresumen { position: static; }
}
@media (max-width: 575px) {
  .tprod { padding: 14px; }
  .tprod__galeria { flex-direction: column-reverse; }
  .tprod__thumbs { width: 100%; flex-direction: row; }
  .tprod__thumbs div { width: 56px; }
  .tcesta { padding: 2px 14px 8px; }
  .tcesta-foto { width: 72px; height: 72px; }
  .tienda-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tienda-card__body { padding: 2px 10px 6px; }
  .tienda-card__accion { padding: 4px 10px 12px; }
  .tienda-card__nombre { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tdr, .tdr-fondo, .tienda-card { transition: none; }
}

/* Marcador sin foto: inicial sobre el color del evento */
.tplaceholder { width: 100%; height: 100%; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ev-primary), var(--ev-primary-light)); color: var(--ev-text); font-size: 3.2rem; font-weight: 700; opacity: .92; }

/* Banner de la tienda */
.tienda-banner { margin: 16px 0 6px; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.1); background: var(--ev-primary); }
.tienda-banner img { width: 100%; display: block; }
@media (max-width: 575px) { .tienda-banner { border-radius: 10px; margin-top: 10px; } }

/* Pocos productos: tarjetas centradas en vez de alineadas a la izquierda */
.tienda-grid--pocos { grid-template-columns: repeat(auto-fit, minmax(235px, 300px)); justify-content: center; }
@media (max-width: 575px) { .tienda-grid--pocos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 576px) { .tienda-banner img { max-height: 300px; object-fit: cover; object-position: center 40%; } }

/* Enlace a la guía de tallas */
.tprod-guia { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ev-primary); text-decoration: none; border-bottom: 1px dashed currentColor; }
.tprod-guia:hover { color: var(--ev-primary-dark); text-decoration: none; }
.tprod-guia .material-icons { font-size: 1.15rem; }

/* Volver a la tienda (ficha) */
.tprod-volver { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.tprod-volver .tienda-migas { margin: 0; }
.tprod-volver__btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #cbd5e1; border-radius: 999px; padding: 6px 14px 6px 10px; font-size: .88rem; font-weight: 700; color: var(--ev-primary); text-decoration: none; }
.tprod-volver__btn:hover { background: #f8fafc; color: var(--ev-primary); text-decoration: none; }
.tprod-volver__btn .material-icons { font-size: 1.15rem; }
.tprod__principal { position: relative; }
.tprod__principal::after { content: "zoom_in"; font-family: "Material Icons"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; pointer-events: none; }

/* Ficha sin foto: marcador grande, sin zoom */
.tprod__principal--vacio { cursor: default; display: block; }
.tprod__principal--vacio::after { display: none; }
.tprod__principal--vacio .tplaceholder { font-size: 6rem; border-radius: 12px; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 340px; }

/* Barra del listado: título + contador a la izquierda, buscador a la derecha */
.tlista-barra__titulo { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.tlista-barra__titulo h2 { font-size: 1.2rem; font-weight: 700; color: #111827; margin: 0; }
.tlista-barra__cuenta { color: #64748b; font-size: .88rem; }

/* ══ Listado v2 (según propuesta): banner, tarjetas con precio + etiquetas, 1/2/4 columnas y lista en móvil ══ */
.tienda-wrap { max-width: 1280px; }
@media (min-width: 576px) { .tienda-banner img { max-height: 260px; object-position: center 45%; } }

.tienda-card { border-radius: 18px; box-shadow: 0 2px 14px rgba(var(--ev-primary-rgb), .10); }
.tienda-card__img { padding: 12px; }
.tienda-card__body { padding: 4px 16px 10px; }
.tienda-card__fila { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: 4px; }
.tienda-card__fila .tienda-card__precio { margin-top: 0; }
.tienda-card__etiquetas { margin-top: 0; justify-content: flex-end; }
.tienda-card__accion { padding: 6px 16px 16px; }
.tbtn__ico { font-size: 1.15rem; vertical-align: -4px; margin-right: 6px; }
.tbtn__ico--movil { display: none; }
.tbtn--opc { background: #fff; color: var(--ev-primary); border-color: var(--ev-primary); }
.tbtn--opc:hover { background: rgba(var(--ev-primary-rgb), .06); color: var(--ev-primary); }

/* Cuadrícula: 2 columnas desde 576 px y 4 desde 1200 px; con pocos productos, tarjetas centradas */
@media (min-width: 576px)  { .tienda-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1200px) { .tienda-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 576px)  { .tienda-grid--pocos { grid-template-columns: repeat(auto-fit, minmax(240px, 330px)); justify-content: center; } }

/* Móvil (< 576 px): una columna en formato lista — miniatura, datos y botón de cesta */
@media (max-width: 575px) {
  .tienda-grid, .tienda-grid--pocos { grid-template-columns: 1fr; gap: 10px; justify-content: stretch; }
  .tienda-card { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 0 12px; padding: 10px; border-radius: 16px; }
  .tienda-card__enlace { display: contents; }
  .tienda-card__img { grid-column: 1; aspect-ratio: 1 / 1; padding: 0; border-radius: 12px; background: #f1f5f9; }
  .tienda-card__img .tplaceholder { font-size: 2.2rem; border-radius: 12px; }
  .tienda-card__body { grid-column: 2; padding: 0; min-width: 0; }
  .tienda-card__accion { grid-column: 3; padding: 0; }
  .tienda-card__nombre { font-size: .95rem; min-height: 0; }
  .tienda-card__fila { flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px 8px; }
  .tienda-card__etiquetas { justify-content: flex-start; }
  .tienda-card__accion .tbtn:not(.disabled) { width: 44px; height: 44px; padding: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
  .tienda-card__accion .tbtn .tbtn__txt { display: none; }
  .tienda-card__accion .tbtn .tbtn__ico, .tienda-card__accion .tbtn .tbtn__ico--movil { display: inline-block; margin: 0; font-size: 1.4rem; vertical-align: middle; }
  .tienda-card__accion .tbtn--opc { background: linear-gradient(180deg, var(--ev-accent) 0%, var(--ev-accent-dark) 100%); color: var(--ev-accent-text, #fff); border-color: transparent; }
}

/* Los iconos de los botones heredan el color del texto (una regla global los pinta con el acento) */
.tbtn .material-icons { color: inherit !important; }

/* Banner del listado: imagen sin texto + título en HTML (el texto escala con el ancho del banner) */
.tienda-banner { position: relative; container-type: inline-size; }
.tienda-banner__texto { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); max-width: 62%; color: #fff; }
.tienda-banner__titulo { font-size: clamp(1.25rem, 6.2cqw, 4rem); font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0,0,0,.35); white-space: nowrap; }
.tienda-banner__titulo span { color: var(--ev-accent); }
.tienda-banner__sub { margin-top: .55em; padding-top: .5em; border-top: 3px solid var(--ev-accent); display: inline-block; font-size: clamp(.55rem, 2.1cqw, 1.35rem); font-weight: 700; font-style: italic; letter-spacing: .1em; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
@media (min-width: 576px) { .tienda-banner img { max-height: 300px; object-fit: cover; object-position: 60% 50%; } }
@media (max-width: 575px) { .tienda-banner img { aspect-ratio: 2.3 / 1; object-fit: cover; object-position: 85% 50%; } .tienda-banner__texto { left: 5%; max-width: 70%; } }

/* ══ Réplica de la propuesta (v3): cabecera compacta, pasos, banner, barra de título y tarjetas anchas ══ */

/* Cabecera compacta; el nombre del evento con el tamaño de la ficha del evento */
body.tienda .barra-datos_form { padding: .3rem 0; line-height: 1.2; border-top: 0; }
body.tienda .barra-inner { min-height: 56px; padding-top: 0 !important; padding-bottom: 0 !important; }
body.tienda .barra-datos_form .barra-event-name { font-size: 1.7rem; font-weight: 900; letter-spacing: .04em; line-height: 1.2; }
body.tienda .barra-datos_form .barra-year-badge { font-size: .95rem; font-weight: 800; padding: .12rem .55rem; }
body.tienda .tienda-cesta-link { padding: 2px 10px; }
body.tienda .tienda-cesta-link .material-icons { font-size: 1.6rem; }
@media (max-width: 576px) {
  body.tienda .barra-datos_form .barra-event-name { font-size: 1.05rem; line-height: 1.15; }
  body.tienda .barra-inner { min-height: 50px; }
}

/* Banner: imagen de la propuesta en formato panorámico */
.tienda-banner { margin: 0 0 12px; }
.tienda-banner img { width: 100%; display: block; }
@media (min-width: 576px) { .tienda-banner img { max-height: none; aspect-ratio: 5 / 1; object-fit: cover; object-position: center 48%; } }
@media (max-width: 575px) { .tienda-banner img { aspect-ratio: 2.6 / 1; object-fit: cover; object-position: center 48%; } }

/* Barra «Tienda online · N productos» + buscador */
.tlista-barra { min-height: 58px; padding: 10px 18px; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 1px 6px rgba(var(--ev-primary-rgb), .08); }
.tlista-barra__titulo h2 { font-size: 1.5rem; font-weight: 800; color: var(--ev-primary); letter-spacing: -.01em; }
.tlista-barra__cuenta { font-size: .98rem; font-weight: 400; color: #5b6475; }
.tlista-buscar { flex: 0 1 300px; }
.tlista-buscar input { height: 40px; border: 1.5px solid #c9d3e3; font-size: .92rem; }
.tlista-buscar .material-icons { color: var(--ev-primary); }

/* 1 o 2 productos: tarjetas más anchas, con la imagen apaisada */
@media (min-width: 576px) {
  .tienda-grid--ancho { grid-template-columns: repeat(auto-fit, minmax(300px, 480px)); }
  .tienda-grid--ancho .tienda-card__img { aspect-ratio: 16 / 10; }
  .tienda-grid--ancho .tienda-card__nombre { font-size: 1.15rem; }
  .tienda-grid--ancho .tienda-card__precio { font-size: 1.1rem; }
}

/* Imagen genérica «sin foto» (archivo) */
img.tplaceholder { display: block; object-fit: cover; opacity: 1; background: none; }

/* ══ Ajustes de revisión: tarjetas más compactas, botones alineados y cesta con más presencia ══ */

/* Imágenes de producto algo más bajas para que el botón de compra aparezca antes (la lista móvil no cambia) */
@media (min-width: 576px) {
  .tienda-card__img { aspect-ratio: 3 / 2; padding: 10px; }
  .tienda-card__body { padding: 2px 16px 8px; }
  .tienda-card__accion { padding: 4px 16px 14px; }
  .tienda-grid--ancho .tienda-card__img { aspect-ratio: 16 / 9; }
}

/* Botones siempre a la misma altura: mismo alto y pegados al pie de la tarjeta */
.tienda-card { display: flex; flex-direction: column; }
.tienda-card__accion { margin-top: auto; }
@media (min-width: 576px) {
  .tienda-card__accion .tbtn { min-height: 40px; display: flex; align-items: center; justify-content: center; margin-top: 0 !important; }
  .tienda-card__fila { min-height: 34px; }
}
@media (max-width: 575px) { .tienda-card { display: grid; } }

/* Cesta: zona clicable mayor (píldora), icono más grande y contador separado del texto */
.tienda-cesta-link { padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); gap: 12px; transition: background .15s; }
.tienda-cesta-link:hover { background: rgba(255,255,255,.22); }
.tienda-cesta-link .material-icons { font-size: 1.9rem; }
.tienda-cesta-count { top: -6px; left: 26px; min-width: 18px; height: 18px; line-height: 18px; font-size: .74rem; }
.tienda-cesta-txt { margin-left: 4px; }
body.tienda .tienda-cesta-link { padding: 6px 16px 6px 12px; }
body.tienda .tienda-cesta-link .material-icons { font-size: 1.9rem; }
@media (max-width: 575px) { .tienda-cesta-link, body.tienda .tienda-cesta-link { padding: 6px 10px; gap: 0; } }

/* 1 o 2 productos: tarjetas anchas pero con un máximo menor (400 px) */
@media (min-width: 576px) {
  .tienda-grid--ancho { grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); }
}

/* ══ Revisión: texto de botones algo mayor y títulos de producto con dos líneas reservadas ══ */
.tbtn { font-size: 1rem; }
.tbtn--sm { font-size: .95rem; }
@media (max-width: 575px) {
  .tbtn { font-size: 1.08rem; }
  .tbtn--sm { font-size: 1rem; }
  .tienda-card__accion .tbtn:not(.disabled) { width: 48px; height: 48px; }
  .tienda-card__accion .tbtn .tbtn__ico, .tienda-card__accion .tbtn .tbtn__ico--movil { font-size: 1.55rem; }
}
/* Título a dos líneas como máximo, con el hueco siempre reservado: así las tarjetas de una fila quedan alineadas y el botón abajo */
@media (min-width: 576px) {
  .tienda-card__nombre { min-height: 2.6em; }
}
@media (max-width: 575px) {
  .tlista-barra__titulo { flex-wrap: nowrap; gap: 8px; margin-right: 0; width: 100%; align-items: baseline; }
  .tlista-barra__titulo h2 { font-size: 1.2rem; white-space: nowrap; }
  .tlista-barra__cuenta { font-size: .85rem; white-space: nowrap; }
  .tlista-barra { min-height: 0; padding: 10px 16px; }
}

/* ══ Banner v4: imagen 4:1 sin texto + título superpuesto como en el ejemplo (todo escala con el ancho del banner) ══ */
.tienda-banner { position: relative; container-type: inline-size; border-radius: 14px; overflow: hidden; }
.tienda-banner img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; max-height: none; object-fit: cover; }
.tienda-banner__texto { position: absolute; left: 6.25cqw; top: 51%; transform: translateY(-50%); max-width: 56cqw; color: #fff; text-align: left; }
.tienda-banner__titulo { font-size: 5.6cqw; font-weight: 800; font-style: normal; line-height: 1; letter-spacing: .01em; white-space: nowrap; text-shadow: none; }
.tienda-banner__titulo span { color: var(--ev-accent); }
.tienda-banner__linea { width: 4cqw; height: .4cqw; min-height: 2px; margin: 1.9cqw 0 1.7cqw; background: var(--ev-accent); border-radius: 2px; }
.tienda-banner__sub { font-size: 1.9cqw; font-weight: 400; font-style: normal; letter-spacing: .02em; line-height: 1.2; margin: 0; padding: 0; border: 0; text-shadow: none; white-space: nowrap; }
@media (max-width: 575px) {
  .tienda-banner { border-radius: 10px; }
  .tienda-banner img { aspect-ratio: 4 / 1; }
  .tienda-banner__texto { left: 5.5cqw; max-width: 58cqw; }
  .tienda-banner__titulo { font-size: 7.4cqw; }
  .tienda-banner__linea { width: 5.5cqw; margin: 2.2cqw 0 2cqw; }
  .tienda-banner__sub { font-size: 2.7cqw; }
}

/* ══ v5 (según ejemplo): banner bajo, título de sección sin caja y tarjetas alineadas a la izquierda ══ */

/* Banner más bajo (≈ 8:1): se recorta la imagen por arriba y abajo; el texto va a escala y sin rayita */
.tienda-banner { margin-bottom: 16px; }
.tienda-banner img { aspect-ratio: 8 / 1; object-position: center 33%; }
.tienda-banner__texto { left: 4.5cqw; top: 50%; max-width: 62cqw; }
.tienda-banner__titulo { font-size: 3.6cqw; }
.tienda-banner__linea { display: none; }
.tienda-banner__sub { margin-top: .9cqw; font-size: 1.3cqw; letter-spacing: .03em; }
@media (max-width: 575px) {
  .tienda-banner img { aspect-ratio: 3.2 / 1; object-position: 80% 50%; }
  .tienda-banner__texto { left: 5cqw; max-width: 66cqw; }
  .tienda-banner__titulo { font-size: 6.6cqw; }
  .tienda-banner__sub { margin-top: 1.4cqw; font-size: 2.4cqw; }
}

/* «Productos disponibles»: título limpio sobre el fondo de la página, sin caja blanca */
.tlista-barra { background: none; box-shadow: none; border-radius: 0; padding: 0; min-height: 0; margin: 4px 0 14px; }
.tlista-barra__titulo { gap: 10px; }
.tlista-barra__titulo h2 { font-size: 1.35rem; font-weight: 800; color: var(--ev-primary); }
.tlista-barra__cuenta { font-size: .92rem; color: #5b6475; }

/* Tarjetas siempre alineadas a la izquierda y con el ancho de una columna de la rejilla de 4 */
@media (min-width: 576px) {
  .tienda-grid--pocos, .tienda-grid--ancho { grid-template-columns: repeat(auto-fill, minmax(240px, 280px)); justify-content: start; }
  .tienda-grid--ancho .tienda-card__img { aspect-ratio: 3 / 2; }
  .tienda-grid--ancho .tienda-card__nombre { font-size: .98rem; }
  .tienda-grid--ancho .tienda-card__precio { font-size: inherit; }
}

/* La cabecera usa el mismo contenedor que el contenido (.tienda-wrap) */
body.tienda .barra-datos_form .container { max-width: 1280px; width: 100%; padding-left: 14px; padding-right: 14px; margin-left: auto; margin-right: auto; }
body.tienda .barra-datos_form .barra-back-btn { margin-left: 0; }

/* El pie de página usa el mismo contenedor que el contenido */
body.tienda .ev-footer .container, body.tienda .ev-footer__inner { max-width: 1280px; width: 100%; padding-left: 14px; padding-right: 14px; margin-left: auto; margin-right: auto; }

/* 1 o 2 productos: tarjetas algo más grandes (a la izquierda, hasta 340 px) */
@media (min-width: 576px) {
  .tienda-grid--ancho { grid-template-columns: repeat(auto-fill, minmax(280px, 340px)); justify-content: start; }
  .tienda-grid--ancho .tienda-card__nombre { font-size: 1.08rem; }
  .tienda-grid--ancho .tienda-card__precio { font-size: 1.08rem; }
}

/* Móvil: la imagen se desplaza para que el carrito quede a la derecha, bien separado del título */
@media (max-width: 575px) {
  .tienda-banner img { object-position: 38% 50%; }
  .tienda-banner__titulo { font-size: 6.2cqw; }
  .tienda-banner__texto { max-width: 56cqw; }
}
@media (max-width: 575px) {
  .tienda-banner img { aspect-ratio: 3.5 / 1; object-position: 55% 50%; }
  .tienda-banner__texto { left: 4.5cqw; }
  .tienda-banner__sub { font-size: 2.6cqw; }
}

/* Flecha de vuelta con etiqueta de destino (escritorio) y zona clicable de 44 px; el nombre del evento es un enlace */
body.tienda .barra-back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 6px; color: #fff; text-decoration: none; flex-shrink: 0; }
body.tienda .barra-back-link:hover { color: #fff; text-decoration: none; }
body.tienda .barra-back-link .barra-back-btn { width: 44px; height: 44px; margin: 0; }
body.tienda .barra-back-link .barra-back-btn .material-icons { margin-left: 6px; }
body.tienda .barra-back-link:hover .barra-back-btn { background: rgba(255,255,255,.85) !important; }
body.tienda .barra-back-txt { font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
body.tienda a.barra-event-info, body.tienda a.barra-event-info:hover { color: inherit; text-decoration: none; }
body.tienda .barra-back-link:focus-visible, body.tienda a.barra-event-info:focus-visible { outline: 3px solid rgba(255,255,255,.6); outline-offset: 3px; border-radius: 10px; }
@media (max-width: 575px) { body.tienda .barra-back-link .barra-back-btn { width: 40px; height: 40px; } }

/* Escritorio: banner algo más alto (6,5:1) y recorte centrado en el carrito, para que no quede pegado a los bordes */
@media (min-width: 576px) {
  .tienda-banner img { aspect-ratio: 6.5 / 1; object-position: center 29%; }
}

/* Escritorio: imagen completa (sin recortar) anclada a la derecha sobre el azul de fondo, con el borde izquierdo fundido */
@media (min-width: 576px) {
  .tienda-banner { aspect-ratio: 6.5 / 1; background: #011f49; }
  .tienda-banner img {
    position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 4 / 1; object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 10%, #000 34%); mask-image: linear-gradient(90deg, transparent 0, transparent 10%, #000 34%);
  }
}

/* Guía de tallas separada de los botones de talla */
.tprod-guia-wrap { margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid #eef1f5; }


/* ══ Móvil (< 576 px): pasos con etiqueta, botón 48 px, cabecera con aire y banner con subtítulo mayor ══ */
@media (max-width: 575px) {
  /* 2. Botón de la tarjeta: 48 px; con opciones lleva flecha (abre la ficha) y sin opciones el carrito */
  .tienda-card__accion .tbtn:not(.disabled) { width: 48px; height: 48px; }

  /* 3. Cabecera: más sitio para el nombre, año más pequeño y separado de la cesta */
  body.tienda .barra-inner { gap: .6rem; }
  body.tienda .barra-datos_form .barra-event-info { gap: .45rem; flex: 1 1 auto; min-width: 0; }
  body.tienda .barra-datos_form .barra-year-badge { font-size: .74rem; padding: .08rem .45rem; margin-right: .5rem; }
  body.tienda .tienda-cesta-link { margin-left: .4rem; }

  /* 4. Banner: subtítulo algo mayor (sin cambiar la altura) */
  .tienda-banner__sub { font-size: 3.1cqw; }
}


/* ══ Cesta (según ejemplo) ══ */
.tcesta { padding: 4px 22px 18px; border-radius: 18px; }
.tcesta__cab { align-items: center; padding: 12px 0 10px; border-bottom: 1px solid #e3e8f0; }
.tcesta__cab h2 { font-size: 1.5rem; font-weight: 800; color: var(--ev-primary); letter-spacing: -.01em; line-height: 1.1; }
.tcesta-vaciar { background: none; border: 0; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500; color: #1f2a44; cursor: pointer; }
.tcesta-vaciar:hover { color: #b91c1c; }
.tcesta-vaciar .material-icons { font-size: 1.2rem; }

.tcesta-linea { gap: 16px; padding: 16px 0; border-bottom: 1px solid #e9edf3; flex-wrap: nowrap; }
.tcesta-foto { width: 84px; height: 84px; border-radius: 10px; border: 1px solid #e3e8f0; box-shadow: 0 2px 8px rgba(var(--ev-primary-rgb), .08); }
.tcesta-nombre { font-size: 1.02rem; font-weight: 700; color: var(--ev-primary); }
.tcesta-det { font-size: .85rem; color: #5b6475; margin-top: 3px; }
.tcesta-det strong { color: #4a5470; font-weight: 700; }
.tcesta-pu { font-size: .85rem; color: #5b6475; margin-top: 2px; }
.tcesta-importe { font-size: 1.15rem; font-weight: 800; color: var(--ev-primary); }
.tcesta-acciones { gap: 12px; margin-top: 10px; }
.tcesta-cant { border: 1.5px solid var(--ev-primary); border-radius: 999px; background: #fff; }
.tcesta-cant button { width: 34px; height: 34px; font-size: 1.3rem; color: var(--ev-primary); }
.tcesta-cant input { width: 40px; height: 34px; font-size: 1rem; font-weight: 700; color: var(--ev-primary); }
.tcesta-sep { height: 20px; background: #d5dbe5; }
.tcesta-borrar { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: #1f2a44; font-weight: 500; }
.tcesta-borrar:hover { text-decoration: none; color: #b91c1c; }
.tcesta-borrar .material-icons { font-size: 1.2rem; }

.tcesta-subtotal { margin-top: 8px; padding: 14px 18px; background: #f1f3f7; border-radius: 10px; text-align: right; font-size: 1.05rem; color: #1f2a44; }
.tcesta-subtotal strong { font-size: 1.3rem; font-weight: 800; color: var(--ev-primary); margin-left: 6px; }
.tcesta-seguir { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: #1f2a44; text-decoration: none; }
.tcesta-seguir:hover { color: var(--ev-primary); text-decoration: none; }
.tcesta-seguir .material-icons { color: var(--ev-accent-ink, var(--ev-accent)); font-size: 1.3rem; }

/* Resumen derecho */
.tresumen { padding: 20px; border-radius: 16px; }
.tresumen__sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .95rem; color: #1f2a44; margin-bottom: 14px; }
.tresumen__sub strong { font-size: 1.45rem; font-weight: 800; color: var(--ev-primary); }
.tbtn--tramitar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; font-size: 1.1rem; font-weight: 800; }
.tbtn--tramitar .material-icons { font-size: 1.35rem; margin: 0; vertical-align: middle; }
.tresumen .tresumen__nota { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 0; font-size: .88rem; line-height: 1.45; color: #46506a; }
.tresumen .tresumen__nota .material-icons { font-size: 1.4rem; color: #1f2a44; flex-shrink: 0; margin-top: 1px; }
.tresumen .tresumen__nota--seguro { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3e8f0; }
.tresumen .tresumen__nota--seguro .material-icons { color: #15803d; }

@media (max-width: 575px) {
  .tcesta { padding: 4px 16px 18px; }
  .tcesta__cab h2 { font-size: 1.6rem; }
  .tcesta-linea { flex-wrap: wrap; gap: 14px; padding: 18px 0; }
  .tcesta-foto { width: 84px; height: 84px; }
  .tcesta-nombre { font-size: 1.1rem; }
  .tcesta-importe { font-size: 1.25rem; margin-left: auto; }
  .tcesta-subtotal { font-size: 1.1rem; padding: 14px 16px; }
  .tcesta-subtotal strong { font-size: 1.35rem; }
  .tresumen { padding: 20px; }
}
.tcesta-borrar .material-icons, .tcesta-vaciar .material-icons, .tcesta-seguir .material-icons { color: inherit !important; }
.tcesta-seguir .material-icons { color: var(--ev-accent-ink, var(--ev-accent)) !important; }

@media (max-width: 575px) {
  .tcesta-linea { flex-wrap: nowrap; gap: 12px; align-items: flex-start; }
  .tcesta-foto { width: 72px; height: 72px; }
  .tcesta-info { min-width: 0; }
  .tcesta-importe { order: 3; font-size: 1.15rem; }
  .tcesta-acciones { gap: 8px 12px; }
  .tcesta-sep { display: none; }
  .tcesta-cant button { width: 36px; height: 36px; font-size: 1.3rem; }
  .tcesta-cant input { width: 38px; height: 36px; font-size: 1rem; }
  .tcesta-borrar { font-size: .95rem; }
  .tcesta-nombre { font-size: 1.05rem; }
  .tcesta-det, .tcesta-pu { font-size: .92rem; }
}

/* Cantidad más grande y gruesa; papelera rellena; iconos de aviso sin fondo */
.tcesta-cant input { font-size: 1.2rem; font-weight: 900; width: 44px; }
.tcesta-cant button { font-size: 1.4rem; font-weight: 700; }
.tcesta-borrar .material-icons, .tcesta-vaciar .material-icons { font-size: 1.2rem; }
.tresumen .tresumen__nota .material-icons { background: transparent !important; box-shadow: none !important; border-radius: 0; width: auto; height: auto; padding: 0; }
@media (max-width: 575px) { .tcesta-cant input { font-size: 1.25rem; width: 40px; } }

/* Iconos con solo el borde (papelera, camión): familia Material Icons Outlined */
.material-icons.mi-out { font-family: 'Material Icons Outlined', 'Material Icons' !important; }

/* Talla seleccionada con fondo azul */
.ttalla.sel { background: var(--ev-primary); color: var(--ev-text); border: 1px solid var(--ev-primary); padding: 8px 12px; box-shadow: 0 2px 8px rgba(var(--ev-primary-rgb), .3); }
.ttalla.sel small { color: var(--ev-accent-ink, var(--ev-accent)); }

/* Caja de compra: solo el importe total, grande (el precio unitario ya está a la izquierda) */
.tcompra__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0 14px; padding-top: 12px; border-top: 1px solid #e5e7eb; font-size: 1rem; color: #1f2a44; }
.tcompra__total strong { font-size: 2rem; font-weight: 800; color: var(--ev-primary); line-height: 1.1; }

/* Talla seleccionada: indicador de selección (check) */
.ttalla.sel { position: relative; }
.ttalla.sel::after { content: "\2713"; position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--ev-accent); color: var(--ev-accent-text, #fff); font-size: .7rem; font-weight: 900; line-height: 18px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* Panel derecho: estado inicial «Selecciona una talla» y máximo por pedido */
.tcompra__stock.pendiente { color: #64748b; font-size: .98rem; font-weight: 600; }
.tcompra__max { font-size: .82rem; color: #64748b; margin: -4px 0 8px; }


/* ══ Pantalla de datos (según ejemplo) ══ */
/* Títulos de sección: icono en círculo + título grande, sin franja */
.tdatos .sec-sep { background: none !important; border: 0 !important; padding: 0; margin: 4px 0 18px; display: flex; align-items: center; gap: 14px; }
.tdatos .sec-sep .material-icons { width: 50px; height: 50px; border-radius: 50%; background: #eef2f8; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--ev-primary) !important; flex-shrink: 0; }
.tdatos .sec-sep h5 { font-size: 1.7rem; font-weight: 800; color: var(--ev-primary); letter-spacing: -.01em; text-transform: none; margin: 0; }
.tdatos .sec-sep .sep-line { display: none; }

/* Campos: borde fino gris y esquinas redondeadas */
.tdatos label { font-size: 1rem; font-weight: 500; color: #1f2a44; margin-bottom: 6px; }
.tdatos .form-control { height: 46px; border: 1px solid #c9d3e3 !important; border-left: 1px solid #c9d3e3 !important; border-radius: 6px; background: #fff; font-size: 1rem; color: #111827; box-shadow: none; }
.tdatos .form-control:focus { border-color: var(--ev-primary) !important; box-shadow: 0 0 0 3px rgba(var(--ev-primary-rgb), .15); }
.tdatos select.form-control { padding-right: 34px; }
.tdatos .input-group-text { height: 46px; background: #fff; border: 1px solid #c9d3e3; border-right: 0; border-radius: 6px 0 0 6px; }
.tdatos .input-group > .form-control:not(:first-child) { border-left: 0 !important; border-radius: 0 6px 6px 0; }
/* Correo: sin icono delante (como en el ejemplo) */
.tdatos #email, .tdatos #email2 { border-radius: 6px !important; border-left: 1px solid #c9d3e3 !important; }
.tdatos #email, .tdatos #email2 { margin-left: 0; }
.tdatos .input-group:has(#email) .input-group-prepend, .tdatos .input-group:has(#email2) .input-group-prepend { display: none; }
/* Teléfono: prefijo con bandera en una sola caja, sin icono */
.tdatos .input-group:has(#tel_prefijo) .input-group-prepend { display: none; }
.tdatos #tel_prefijo { max-width: 140px; border-radius: 6px !important; border-left: 1px solid #c9d3e3 !important; }
.tdatos #tel_numero { border-radius: 6px; }

/* Avisos de email y WhatsApp: caja crema con filo naranja a la izquierda */
.tdatos .aviso-email, .tdatos .aviso-tel { display: flex; align-items: center; gap: 14px; background: #fff8e6; border: 1px solid #f3e1b0; border-left: 4px solid var(--ev-accent); border-radius: 6px; padding: 14px 18px; }
.tdatos .aviso-email.error_form, .tdatos .aviso-tel.error_form { background: #fef2f2; border-color: #fecaca; border-left-color: #dc2626; }
.tdatos .aviso-email__icon, .tdatos .aviso-tel__icon { color: var(--ev-accent-ink, var(--ev-accent)) !important; font-size: 1.6rem; }
.tdatos .aviso-email__texto, .tdatos .aviso-tel__texto { font-size: .95rem; color: #3b4560; line-height: 1.4; }
.tdatos .info-custom { font-size: .9rem; color: #5b6475; }
.tdatos-oblig { margin: 22px 0 0; font-size: .95rem; color: #5b6475; }
.tdatos-oblig span { color: #dc2626; font-weight: 700; margin-right: 4px; }

/* Resumen del pedido */
.tresumen__tit { display: flex; align-items: center; gap: 14px; font-size: 1.6rem; font-weight: 800; color: var(--ev-primary); margin: 0 0 14px; letter-spacing: -.01em; }
.tresumen__ico { width: 50px; height: 50px; border-radius: 50%; background: #eef2f8; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tresumen__ico .material-icons { font-size: 1.6rem; color: #1f2a44 !important; }
.tresumen-lineas { max-height: none; margin: 0; padding: 0; border-top: 1px solid #e3e8f0; }
.tresumen .tcesta-linea { padding: 16px 0; gap: 14px; flex-wrap: nowrap; border-bottom: 1px solid #e9edf3; }
.tresumen .tcesta-foto { width: 84px; height: 84px; border-radius: 10px; }
.tresumen .tcesta-nombre { font-size: 1.15rem; font-weight: 700; color: var(--ev-primary); }
.tresumen .tcesta-importe { font-size: 1.1rem; font-weight: 800; color: var(--ev-primary); }
.tresumen .tcesta-cant--fija { font-size: .98rem; color: #3b4560; }
.tresumen .tcesta-det { font-size: .98rem; }
.tresumen .tresumen__fila { font-size: 1.05rem; padding: 12px 0; }
.tresumen .tresumen__total { background: #f1f3f7; border-radius: 10px; border-top: 0; padding: 12px 16px; margin-top: 4px; font-size: 1rem; }
.tresumen .tresumen__total .dato_precio { font-size: 1.3rem; font-weight: 800; color: var(--ev-primary); }
.tresumen .bt_pagar { padding: 16px 20px; font-size: 1.2rem; font-weight: 700; border-radius: 999px; }
.tresumen__mod { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 500; color: var(--ev-primary); text-decoration: underline; text-underline-offset: 4px; }
.tresumen__mod:hover { color: var(--ev-primary-dark); }
.tresumen__mod .material-icons { font-size: 1.4rem; color: inherit !important; }

@media (max-width: 575px) {
  .tdatos .sec-sep .material-icons { width: 42px; height: 42px; font-size: 1.4rem; }
  .tdatos .sec-sep h5 { font-size: 1.35rem; }
  .tresumen__tit { font-size: 1.3rem; }
  .tresumen__ico { width: 42px; height: 42px; }
  .tdatos #tel_prefijo { max-width: 120px; }
}

/* Ajustes de la pantalla de datos */
.tdatos .sec-sep { margin: 36px 0 18px; }
.tdatos .multisteps-form__content > .sec-sep:first-child { margin-top: 42px; }
.tdatos .aviso-email, .tdatos .aviso-tel { width: 100%; max-width: none; }
.tdatos .input-group-text .material-icons { color: #1f2a44 !important; }
/* Icono de correo en versión contorno (no sólido) */
.tdatos .input-group-text .material-icons-outlined,
html body .multisteps-form__panel.tdatos .input-group-text .material-icons-outlined { color: #3b4a63 !important; font-size: 1.1rem !important; line-height: 1; }
.tresumen .tresumen__tit { font-size: 1.7rem; font-weight: 800; margin: 0 0 16px; }
.tresumen .tresumen__total > span:first-child { font-size: 1.15rem; font-weight: 800; color: var(--ev-primary); }
.tresumen .tresumen__total { align-items: center; }
@media (max-width: 575px) { .tresumen .tresumen__tit { font-size: 1.3rem; } .tdatos .sec-sep { margin-top: 28px; } }

/* ══ Datos v2: cabeceras de sección limpias y «Modificar cesta» como botón secundario ══ */
.tdatos .sec-sep { display: flex; align-items: center; gap: 12px; margin: 34px 0 18px; padding: 0 0 12px; border: 0 !important; border-bottom: 1px solid #e3e8f0 !important; background: none !important; }
.tdatos .multisteps-form__content > .sec-sep:first-child { margin-top: 6px; }
.tdatos .sec-sep .material-icons { width: auto; height: auto; background: none; border-radius: 0; font-size: 1.9rem; color: var(--ev-primary) !important; }
.tdatos .sec-sep h5 { font-size: 1.35rem; font-weight: 800; color: var(--ev-primary); letter-spacing: -.005em; margin: 0; }
.tdatos .sec-sep .sep-line { display: none; }
@media (max-width: 575px) { .tdatos .sec-sep .material-icons { font-size: 1.6rem; } .tdatos .sec-sep h5 { font-size: 1.2rem; } .tdatos .sec-sep { margin-top: 28px; } }

/* Resumen: título con el mismo estilo */
.tresumen .tresumen__tit { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 800; color: var(--ev-primary); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #e3e8f0; }
.tresumen .tresumen__ico { width: auto; height: auto; background: none; }
.tresumen .tresumen__ico .material-icons { font-size: 1.9rem; color: var(--ev-primary) !important; }
.tresumen .tresumen-lineas { border-top: 0; }

/* Modificar cesta: botón secundario a todo el ancho */
.tresumen .text-center.mt-3 { margin-top: 12px !important; }
.tresumen .tresumen__mod { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border: 1.5px solid var(--ev-primary); border-radius: 999px; background: #fff; color: var(--ev-primary); font-size: 1rem; font-weight: 700; text-decoration: none; transition: background .15s; }
.tresumen .tresumen__mod:hover { background: rgba(var(--ev-primary-rgb), .06); color: var(--ev-primary); text-decoration: none; }
.tresumen .tresumen__mod .material-icons { font-size: 1.3rem; color: inherit !important; }
.tdatos .multisteps-form__content > .sec-sep:first-child { margin-top: 28px !important; }
@media (max-width: 575px) { .tdatos .multisteps-form__content > .sec-sep:first-child { margin-top: 20px !important; } }
.tdatos.multisteps-form__panel { padding-top: 30px !important; }
.tdatos .multisteps-form__content > .sec-sep:first-child { margin-top: 0 !important; }
/* El contenido del formulario trae un margen superior negativo del CSS general: aquí no */
.tdatos .multisteps-form__content { margin-top: 0 !important; }
.tdatos.multisteps-form__panel { padding-top: 26px !important; }

/* Más aire antes de «Forma de envío» y «Aceptación» */
.tdatos .multisteps-form__content > .sec-sep:not(:first-child),
.tdatos .multisteps-form__content > * > .sec-sep:not(:first-child) { margin-top: 64px !important; }
@media (max-width: 575px) {
  .tdatos .multisteps-form__content > .sec-sep:not(:first-child),
  .tdatos .multisteps-form__content > * > .sec-sep:not(:first-child) { margin-top: 48px !important; }
}


/* Aviso de pedido pendiente de pago */
.tpend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; padding: 14px 18px; background: #fff8e6; border: 1px solid #f3e1b0; border-left: 4px solid var(--ev-accent); border-radius: 10px; }
.tpend.d-none { display: none; }
.tpend .material-icons { font-size: 1.8rem; color: var(--ev-accent-ink, var(--ev-accent)) !important; }
.tpend__txt { flex: 1 1 300px; font-size: .98rem; color: #3b4560; line-height: 1.4; }
.tpend__txt strong { color: #1f2a44; }
.tpend__pagar { padding: 10px 20px; border-radius: 999px; background: var(--ev-primary); color: var(--ev-text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.tpend__pagar:hover { color: var(--ev-text); text-decoration: none; filter: brightness(1.12); }
.tpend__borrar { background: none; border: 0; padding: 6px 4px; color: #1f2a44; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tpend__borrar:hover { color: #b91c1c; }
/* Con un pedido pendiente, los botones de añadir se ven apagados (siguen avisando al pulsarlos) */
body.tpend-activo .tbtn--add:not(.tbtn--tramitar) { opacity: .55; }


/* ══ Panel lateral de la cesta (según ejemplo) ══ */
.tdr { width: 400px; }
.tdr-cab { padding: 14px 20px; border-bottom: 1px solid #e3e8f0; }
.tdr-tit { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ev-primary); letter-spacing: -.01em; line-height: 1.1; }
.tdr-tit span { font-weight: 400; color: #3b4560; font-size: 1.05rem; }
.tdr-x { padding: 4px; }
.tdr-x .material-icons { font-size: 1.6rem; color: var(--ev-accent-ink, var(--ev-accent)) !important; }
.tdr-x:hover .material-icons { color: var(--ev-accent-dark) !important; }
.tdr-cuerpo { padding: 0 20px; }

/* Línea: foto | nombre + talla + cantidad | importe + precio por unidad */
.tdr .tcesta-linea { display: grid; grid-template-columns: 80px 1fr auto; grid-template-areas: "foto nombre importe" "foto det pu" "foto acciones acciones"; gap: 4px 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid #e3e8f0; }
.tdr .tcesta-info { display: contents; }
.tdr .tcesta-foto { grid-area: foto; width: 80px; height: 80px; border-radius: 10px; }
.tdr .tcesta-nombre { grid-area: nombre; font-size: 1rem; font-weight: 800; color: var(--ev-primary); line-height: 1.2; }
.tdr .tcesta-importe { grid-area: importe; font-size: 1.1rem; font-weight: 800; color: var(--ev-primary); text-align: right; margin: 0; }
.tdr .tcesta-det { grid-area: det; align-self: center; justify-self: start; margin: 0; padding: 4px 12px; background: #eef2f8; border-radius: 999px; font-size: .85rem; color: #1f2a44; }
.tdr .tcesta-det strong { color: #1f2a44; font-weight: 800; }
.tdr .tcesta-pu { grid-area: pu; align-self: center; text-align: right; font-size: .85rem; color: #5b6475; margin: 0; }
.tdr .tcesta-acciones { grid-area: acciones; margin-top: 6px; gap: 12px; }
.tdr .tcesta-cant { border-width: 1.5px; }
.tdr .tcesta-cant button { width: 32px; height: 32px; font-size: 1.3rem; font-weight: 700; }
.tdr .tcesta-cant input { width: 36px; height: 32px; font-size: 1.1rem; font-weight: 900; }
.tdr .tcesta-borrar { font-size: .85rem; }

/* Pie: caja de total y botones */
.tdr-pie { border-top: 0; padding: 6px 20px 20px; }
.tdr-sub { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 14px; padding: 14px 18px; background: #eef2f8; border-radius: 12px; font-size: 1rem; color: #1f2a44; }
.tdr-sub > span { font-weight: 400; }
.tdr-sub > span::first-line { font-weight: 800; }
.tdr-sub strong { font-size: 1.5rem; font-weight: 800; color: var(--ev-primary); }
.tdr .tbtn--tramitar { padding: 12px 16px; font-size: 1.05rem; }
.tdr .tbtn--tramitar .material-icons { font-size: 1.3rem; }
.tdr .tbtn--sec { padding: 10px 16px; font-size: .95rem; font-weight: 800; color: var(--ev-primary); border: 1.5px solid var(--ev-primary); margin-top: 10px; }

@media (max-width: 575px) {
  .tdr { width: 100%; }
  .tdr-cab, .tdr-cuerpo { padding-left: 16px; padding-right: 16px; }
  .tdr-tit { font-size: 1.15rem; } .tdr-tit span { font-size: 1rem; }
  .tdr .tcesta-linea { grid-template-columns: 68px 1fr auto; }
  .tdr .tcesta-foto { width: 68px; height: 68px; }
  .tdr-pie { padding: 4px 16px 18px; }
}


/* Aceptación: casillas e iconos centrados verticalmente respecto al texto */
.tdatos .cond-check { align-items: center; }
.tdatos .cond-check input[type="checkbox"] { margin: 0; flex: 0 0 auto; }
.tdatos .cond-check .cond-icono { margin: 0; align-self: center; display: inline-flex; align-items: center; justify-content: center; }
.tdatos .cond-check label { margin: 0; line-height: 1.45; }

/* Tarjeta de datos con esquinas redondeadas y botón de pago igual que los demás botones principales */
.tdatos.multisteps-form__panel { border-radius: 18px !important; box-shadow: 0 1px 6px rgba(var(--ev-primary-rgb), .1) !important; }
.tdatos .bt_pagar.tbtn { padding: 16px 20px; font-size: 1.2rem; font-weight: 700; }
.tdatos .bt_pagar .material-icons { color: inherit !important; }
.tdatos.multisteps-form__panel { background: #fff !important; }


/* Pedido pendiente mostrado en el panel de la cesta */
.tcesta-pendiente-lineas { max-width: 640px; margin: 18px auto 0; text-align: left; }
.tcesta-pendiente-total { max-width: 640px; margin: 10px auto 22px; }


/* Pie de página de la tienda: letra algo más pequeña */
body.tienda .ev-footer__links a { font-size: .82rem; }
body.tienda .ev-footer__org { font-size: .95rem; }
body.tienda .ev-footer__lbl { font-size: .6rem; }
body.tienda .ev-footer__bm { font-size: .66rem; }
/* Gastos de envío en el resumen: misma línea que un producto, con círculo e icono de camión */
.tresumen .tresumen__envio-ico { width: 84px; height: 84px; border: 0; background: transparent; box-shadow: none; }
.tresumen .tresumen__envio-ico .material-icons { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #eef2f8; font-size: 1.6rem; color: var(--ev-primary) !important; }
.tresumen .tresumen__envio { align-items: center; }
.tresumen .tresumen__envio .tcesta-nombre { font-weight: 600; color: #3b4560; }
@media (max-width: 575px) { .tresumen .tresumen__envio-ico { width: 72px; height: 72px; } }

/* ══ Opción 3 (pedido + inscripción): títulos en mayúsculas pequeñas con gris más oscuro (contraste) y campos con borde fino
      más el filo azul del evento a la izquierda. Prefijo «html body …panel.tdatos» para vencer a las reglas anteriores. ══ */
html body .multisteps-form__panel.tdatos label:not(.condiciones):not(.custom-control-label):not(.form-check-label) {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #475569; margin-bottom: 5px;
}
html body .multisteps-form__panel.tdatos label:not(.condiciones):not(.custom-control-label) .text-danger { text-transform: none; letter-spacing: 0; }

html body .multisteps-form__panel.tdatos .form-control,
html body .multisteps-form__panel.tdatos .form-control.text-uppercase,
html body .multisteps-form__panel.tdatos .form-control.text-lowercase,
html body .multisteps-form__panel.tdatos .form-control.borde_sin {
  border: 1px solid #c9d3e3 !important; border-left: 1px solid #c9d3e3 !important; border-radius: 6px;
}
html body .multisteps-form__panel.tdatos .input-group-text { border-left: 1px solid #c9d3e3; }
html body .multisteps-form__panel.tdatos .input-group > .input-group-prepend + .form-control,
html body .multisteps-form__panel.tdatos .input-group > .form-control:not(:first-child) { border-left: 0 !important; border-radius: 0 6px 6px 0; }
/* Campos sin icono delante: filo azul y esquinas completas */
html body .multisteps-form__panel.tdatos #email, html body .multisteps-form__panel.tdatos #email2,
html body .multisteps-form__panel.tdatos #tel_prefijo, html body .multisteps-form__panel.tdatos #idioma,
html body .multisteps-form__panel.tdatos #emergencia {
  border: 1px solid #c9d3e3 !important; border-left: 1px solid #c9d3e3 !important; border-radius: 6px !important;
}
html body .multisteps-form__panel.tdatos .form-control:focus { border-color: var(--ev-primary) !important; }

/* ══ Títulos de campo: primera letra en mayúscula y el resto en minúsculas (pedido + inscripción) ══ (no afecta a las opciones de forma de envío: son flex y ::first-letter no actúa) ══ */
html body .multisteps-form__panel.tdatos label:not(.condiciones):not(.custom-control-label):not(.form-check-label):not([id^="lbl_env_"]) {
  text-transform: lowercase; letter-spacing: .01em; font-size: .9rem; font-weight: 600;
}
html body .multisteps-form__panel.tdatos label:not(.condiciones):not(.custom-control-label):not(.form-check-label)::first-letter { text-transform: uppercase; }
/* Opciones «Presencial» y «A domicilio» de la forma de envío: texto tal cual (primera letra en mayúscula, el resto en minúsculas) */
html body .multisteps-form__panel.tdatos label[id^="lbl_env_"] { text-transform: none !important; letter-spacing: .01em; font-size: .95rem; font-weight: 600; }

/* Resumen de la cesta: título, desglose (subtotal y envío), total destacado y botón */
.tresumen--cesta { padding: 22px; }
.tresumen--cesta .tresumen__cab { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 800; color: var(--ev-primary); margin: 0 0 8px; padding-bottom: 14px; border-bottom: 1px solid #e3e8f0; }
.tresumen--cesta .tresumen__cab .material-icons { font-size: 1.9rem; color: inherit !important; }
.tresumen--cesta .tresumen__fila { align-items: baseline; gap: 12px; padding: 10px 0; font-size: 1rem; color: #1f2a44; }
.tresumen--cesta .tresumen__fila strong { font-weight: 700; }
.tresumen--cesta .tresumen__fila-nota { font-size: .88rem; color: #64748b; text-align: right; }
.tresumen--cesta .tresumen__total { display: flex; justify-content: space-between; align-items: baseline; background: #f1f3f7; border: 0; border-radius: 10px; padding: 12px 16px; margin: 8px 0 18px; }
.tresumen--cesta .tresumen__total span { font-size: 1.1rem; font-weight: 800; color: var(--ev-primary); }
.tresumen--cesta .tresumen__total strong { font-size: 1.7rem; font-weight: 800; color: var(--ev-primary); line-height: 1; }
.tresumen--cesta .tbtn--tramitar { padding: 15px 18px; font-size: 1.15rem; }

/* Importes de la cesta: el tamaño lo marca el contenedor; entero del mismo cuerpo y decimales pequeños elevados (como en el resto de la tienda) */
.tprecio--c { color: inherit; font-weight: inherit; }
.tprecio--c .tprecio__ent { font-size: 1em; }
.tprecio--c .tprecio__dec { font-size: .6em; top: -.5em; margin-left: 1px; }
.tprecio--c .tprecio__eur { font-size: .8em; margin-left: 2px; }
.tcesta-pu .tprecio--c .tprecio__dec { top: -.35em; }

/* Resumen del pedido en «Tus datos»: más compacto (imágenes y letra más pequeñas) */
body.tienda-datos .tresumen .tresumen__tit { font-size: 1.15rem; margin-bottom: 8px; padding-bottom: 10px; }
body.tienda-datos .tresumen .tresumen__ico .material-icons { font-size: 1.5rem; }
body.tienda-datos .tresumen .tcesta-linea { padding: 10px 0; gap: 10px; }
body.tienda-datos .tresumen .tcesta-foto { width: 56px; height: 56px; border-radius: 8px; }
body.tienda-datos .tresumen .tcesta-nombre { font-size: .92rem; font-weight: 700; }
body.tienda-datos .tresumen .tcesta-importe { font-size: .95rem; }
body.tienda-datos .tresumen .tcesta-det { font-size: .82rem; line-height: 1.35; }
body.tienda-datos .tresumen .tcesta-cant--fija { font-size: .82rem; }
body.tienda-datos .tresumen .tresumen__envio-ico { width: 56px; height: 56px; }
body.tienda-datos .tresumen .tresumen__envio-ico .material-icons { width: 38px; height: 38px; font-size: 1.25rem; }
body.tienda-datos .tresumen .tresumen__envio .tcesta-nombre { font-size: .9rem; }
body.tienda-datos .tresumen .tresumen__total { padding: 10px 14px; }
body.tienda-datos .tresumen .tresumen__total > span:first-child { font-size: 1rem; }
body.tienda-datos .tresumen .tresumen__total .dato_precio { font-size: 1.15rem; }
body.tienda-datos .tresumen .bt_pagar { padding: 13px 18px; font-size: 1.05rem; }
body.tienda-datos .tresumen .tresumen__seguro { font-size: .76rem; }
@media (max-width: 575px) { body.tienda-datos .tresumen .tresumen__envio-ico { width: 56px; height: 56px; } }

/* Cabecera no fija: se va con el scroll (tienda, inscripciones y pago). Las tarjetas laterales que se pegaban debajo de ella
   (resumen, caja de compra) quedan a 16 px del borde superior */
body.tienda .tresumen, body.tienda .tcompra { top: 16px; }
