/* ============================================================
   estilos.css — Estilos de toda la tienda
   ------------------------------------------------------------
   Orden del archivo:
     1. Variables (colores, fuentes, medidas)
     2. Base (reseteo y elementos generales)
     3. Utilidades (contenedor, botones, formularios, avisos)
     4. Cabecera y pie
     5. Vistas: inicio, catálogo, carrito, cuenta, eventos, admin
     6. Adaptación a pantallas grandes (media queries)
   Diseño "mobile first": primero para móvil, luego se amplía.
   ============================================================ */

/* ---------- 1. Variables ---------- */
/* :root = el documento entero. Las variables se usan con var(--nombre) */
:root {
  /* Paleta sacada del logo: rosa chicle (fondo), frambuesa (letras) y malva (flores).
     Colores intensos, no pastel. */
  --rosa-chicle: #e37dad;     /* el fondo del logo */
  --frambuesa: #9d2b45;       /* las letras del logo: botones principales y enlaces */
  --frambuesa-oscura: #7a1e35;/* frambuesa al pasar el ratón */
  --malva: #b8597b;           /* las flores del logo */
  --malva-clara: #f3bfd6;     /* fondos suaves de etiquetas y tarjetas */
  --rosa: #e37dad;
  --rosa-claro: #f7b2d1;
  --mostaza: #f2a93b;         /* acento cálido para detalles */

  --crema: #fff1f7;           /* texto claro sobre fondos oscuros */
  --papel: #fffafc;           /* fondo de las tarjetas */
  --tinta: #3d0f1e;           /* texto principal: vino muy oscuro */
  --tinta-suave: #74304a;     /* texto secundario */
  --borde: #efb3cd;
  --error: #c0262d;

  --fuente-titulos: 'Fraunces', Georgia, serif;
  --fuente-texto: 'DM Sans', system-ui, sans-serif;

  --radio: 18px;
  --radio-grande: 32px;
  --sombra: 0 10px 30px -12px rgba(61, 15, 30, 0.35);
  --ancho-maximo: 1160px;

  /* Fondo de la página (cambian con los fondos de temporada, ver más abajo).
     Este es el fondo "Clásico": rosa intenso liso */
  --fondo: #f8c3db;
  --patron: none;
  --mancha-1: var(--rosa-chicle);
  --mancha-2: var(--malva);
}

/* ---------- 2. Base ---------- */
/* box-sizing: el padding y el borde cuentan dentro del ancho */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background-color: var(--fondo);
  background-image: var(--patron);
  background-size: 220px; /* tamaño de cada "baldosa" del dibujo que se repite */
  /* La página ocupa al menos toda la pantalla y el pie se queda abajo */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  font-family: var(--fuente-titulos);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem); /* clamp(mínimo, ideal, máximo): tamaño fluido */
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--frambuesa-oscura);
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* El atributo "hidden" siempre oculta, aunque otra regla diga display: block o flex */
[hidden] {
  display: none !important;
}

/* Anillo visible al navegar con teclado */
:focus-visible {
  outline: 3px solid var(--mostaza);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Texto solo para lectores de pantalla (invisible pero accesible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 3. Utilidades ---------- */
.contenedor {
  width: min(100% - 2.5rem, var(--ancho-maximo)); /* nunca toca los bordes en móvil */
  margin-inline: auto;
}

.seccion {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.seccion__cabecera {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.etiqueta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frambuesa);
  margin-bottom: 0.75rem;
}

.texto-suave {
  color: var(--tinta-suave);
}

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--tinta);
  border-radius: 999px; /* totalmente redondeado */
  background: var(--tinta);
  color: var(--crema);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.boton:hover {
  transform: translateY(-2px);
}

.boton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.boton--frambuesa {
  background: var(--frambuesa);
  border-color: var(--frambuesa);
}

.boton--frambuesa:hover {
  background: var(--frambuesa-oscura);
  border-color: var(--frambuesa-oscura);
}

.boton--contorno {
  background: transparent;
  color: var(--tinta);
}

.boton--contorno:hover {
  background: var(--tinta);
  color: var(--crema);
}

.boton--claro {
  background: var(--crema);
  color: var(--tinta);
  border-color: var(--crema);
}

.boton--pequeno {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.boton--ancho {
  width: 100%;
}

.boton-texto {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--frambuesa-oscura);
  text-decoration: underline;
  cursor: pointer;
}

/* Formularios */
.campo {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.campo label {
  font-weight: 700;
  font-size: 0.95rem;
}

.campo small {
  color: var(--tinta-suave);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='search'],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--borde);
  border-radius: 12px;
  background: var(--papel);
  font: inherit;
  color: var(--tinta);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--frambuesa);
  outline: none;
}

.casilla {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  cursor: pointer;
}

.casilla input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--frambuesa);
  flex-shrink: 0;
}

.casilla--pequena {
  font-size: 0.85rem;
}

.mensaje-error {
  color: var(--error);
  font-weight: 600;
  min-height: 1.5em;
}

/* Tarjeta genérica */
.tarjeta {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  padding: clamp(1.25rem, 4vw, 2rem);
}

/* Avisos flotantes (toast) */
.aviso {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--crema);
  font-weight: 600;
  box-shadow: var(--sombra);
  animation: aparecer 0.25s ease-out;
  max-width: calc(100% - 2rem);
}

.aviso--error {
  background: var(--error);
}

.aviso--saliendo {
  opacity: 0;
  transition: opacity 0.35s;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* Texto mientras carga algo */
.cargando {
  color: var(--tinta-suave);
  font-style: italic;
}

/* ---------- 4. Cabecera ---------- */
.cabecera {
  cursor: pointer; /* toda la barra lleva a la portada (ver layout.js); enlaces y botones tienen su propio cursor */
  position: sticky; /* se queda pegada arriba al hacer scroll */
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fondo) 92%, transparent); /* el fondo de temporada, casi opaco */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--tinta);
}

/* Logo de Todas las flores (imagen PNG transparente).
   Solo fijamos el alto; el ancho se calcula solo (width: auto) */
.logo__imagen {
  display: block;
  height: 64px;
  width: auto;
  margin: 0.35rem 0;
}

/* El logo del pie, más grande */
.logo--pie {
  margin: 0 0 1rem;
}

.logo--pie .logo__imagen {
  height: 110px;
  margin: 0;
}

/* Botón hamburguesa: tres rayas hechas con una raya y sus ::before/::after */
.menu-boton {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.menu-boton__raya,
.menu-boton__raya::before,
.menu-boton__raya::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--tinta);
  transition: transform 0.2s;
}

.menu-boton__raya {
  top: 21px;
}

.menu-boton__raya::before,
.menu-boton__raya::after {
  content: '';
  left: 0;
}

.menu-boton__raya::before {
  top: -7px;
}

.menu-boton__raya::after {
  top: 7px;
}

/* Menú en móvil: oculto hasta que se abre */
.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--fondo);
  border-bottom: 1px solid var(--borde);
  padding: 1rem 1.25rem 1.5rem;
}

.cabecera--abierta .menu {
  display: block;
}

.menu__lista {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.menu a {
  display: block;
  padding: 0.6rem 0;
  color: var(--tinta);
  text-decoration: none;
  font-weight: 600;
}

.menu a[aria-current='page'] {
  color: var(--frambuesa);
}

/* Subrayado de las opciones del menú: invisible (transparente) hasta pasar el ratón.
   Va justo bajo las letras, grueso y en rosa chicle (el color del logo).
   No se aplica al botón "Carrito", que ya tiene su propio fondo. */
.menu a:not(.menu__carrito) {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

/* Al pasar el ratón o al llegar con el teclado (Tab) */
.menu a:not(.menu__carrito):hover,
.menu a:not(.menu__carrito):focus-visible {
  text-decoration-color: var(--rosa-chicle);
}

/* La página en la que estás: subrayada siempre, en frambuesa */
.menu a[aria-current='page']:not(.menu__carrito) {
  text-decoration-color: var(--frambuesa);
}

.menu__acciones {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.menu__carrito {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}

.contador {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--frambuesa);
  color: white;
  font-size: 0.8rem;
}

.contador[hidden] {
  display: none;
}

/* ---------- 4b. Pie ---------- */
.pie {
  background: var(--frambuesa-oscura); /* frambuesa oscuro, del logo */
  color: #f8d5e5;
  padding-top: 3rem;
  margin-top: 2rem;
}

.pie a {
  color: #ffe9f2;
}

.pie__rejilla {
  display: grid;
  gap: 2rem;
}

/* Enlace a Instagram en el pie */
.red-social {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.3;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.red-social:hover {
  background: rgba(255, 255, 255, 0.08);
}

.red-social__icono {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  background: var(--rosa);
  color: var(--tinta);
  flex-shrink: 0;
}

.pie__marca {
  font-family: var(--fuente-titulos);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--crema);
}

.pie__enlaces {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.pie__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.newsletter__titulo {
  display: block;
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 0.6rem;
}

.newsletter__fila {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.newsletter input[type='email'] {
  border-color: transparent;
}

/* ---------- 5a. Vista: INICIO ---------- */
.portada {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 7rem);
}

/* Manchas de color orgánicas de fondo (formas con border-radius irregular) */
.portada::before,
.portada::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
}

.portada::before {
  width: 420px;
  height: 380px;
  background: var(--mancha-1);
  right: -120px;
  top: -60px;
}

.portada::after {
  width: 300px;
  height: 280px;
  background: var(--mancha-2);
  right: 180px;
  bottom: -120px;
}

.portada__rejilla {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.portada h1 em {
  font-style: italic;
  color: var(--frambuesa);
}

.portada__texto {
  font-size: 1.2rem;
  max-width: 34ch; /* ch = ancho de un carácter: líneas cómodas de leer */
  color: var(--tinta-suave);
}

.portada__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Composición de pendientes en la portada */
.portada__pendientes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.portada__pendientes svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 14px rgba(61, 15, 30, 0.22));
}

.portada__pendientes svg:nth-child(2) {
  transform: translateY(2.5rem);
}

/* Pasos "cómo trabajo" */
.pasos {
  display: grid;
  gap: 1.25rem;
  counter-reset: paso; /* contador CSS para numerar los pasos */
  list-style: none;
  padding: 0;
  margin: 0;
}

.paso {
  counter-increment: paso;
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  padding: 1.75rem;
}

.paso::before {
  content: '0' counter(paso);
  font-family: var(--fuente-titulos);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--frambuesa);
  display: block;
  margin-bottom: 0.5rem;
}

.banda-evento {
  background: var(--malva-clara);
  border-radius: var(--radio-grande);
  padding: clamp(1.5rem, 5vw, 3rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

/* ---------- 5b. Vista: CATÁLOGO ---------- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 2px solid var(--borde);
  background: var(--papel);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tinta);
  cursor: pointer;
}

.chip[aria-pressed='true'] {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--crema);
}

.filtros select {
  width: auto;
}

.rejilla-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); /* tantas columnas como quepan */
  gap: 1.5rem;
}

.producto {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.producto:hover {
  box-shadow: var(--sombra);
  transform: translateY(-3px);
}

.producto__imagen {
  aspect-ratio: 1; /* cuadrado */
  background: var(--rosa-claro);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border: 0;
  width: 100%;
  cursor: pointer;
}

.producto:nth-child(3n + 2) .producto__imagen {
  background: var(--malva-clara);
}

.producto:nth-child(3n + 3) .producto__imagen {
  background: #ffd3a3;
}

.producto__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radio);
}

.producto__imagen svg {
  height: 85%;
}

.producto__info {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.producto__coleccion {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tinta-suave);
}

.producto__nombre {
  font-family: var(--fuente-titulos);
  font-size: 1.25rem;
  margin: 0;
}

.producto__pie {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.precio {
  font-weight: 700;
  font-size: 1.1rem;
}

.stock-bajo {
  font-size: 0.85rem;
  color: var(--frambuesa-oscura);
  font-weight: 600;
}

.agotado {
  font-size: 0.9rem;
  color: var(--tinta-suave);
  font-weight: 600;
}

/* Ventana de detalle (<dialog>) */
.detalle {
  border: 0;
  border-radius: var(--radio-grande);
  padding: 0;
  width: min(100% - 2rem, 760px);
  background: var(--papel);
  color: var(--tinta);
}

.detalle::backdrop {
  background: rgba(61, 15, 30, 0.55);
}

.detalle__rejilla {
  display: grid;
}

.detalle__imagen {
  background: var(--rosa-claro);
  display: grid;
  place-items: center;
  padding: 2rem;
  min-height: 260px;
}

.detalle__imagen svg {
  height: 240px;
}

.detalle__info {
  padding: 2rem;
}

.detalle__cerrar {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--papel);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- 5c. Vista: CARRITO ---------- */
.carrito-rejilla {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.linea-carrito {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: center;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--borde);
}

.linea-carrito__imagen {
  width: 80px;
  height: 80px;
  border-radius: var(--radio);
  background: var(--rosa-claro);
  display: grid;
  place-items: center;
  padding: 0.4rem;
}

.linea-carrito__imagen svg {
  height: 100%;
}

.linea-carrito__controles {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.cantidad {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--borde);
  border-radius: 999px;
}

.cantidad button {
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--tinta);
}

.cantidad span {
  min-width: 1.8rem;
  text-align: center;
  font-weight: 700;
}

.resumen {
  position: sticky;
  top: 90px;
}

.resumen__fila {
  display: flex;
  justify-content: space-between;
  padding-block: 0.35rem;
}

.resumen__total {
  border-top: 2px solid var(--tinta);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.opciones-entrega {
  border: 0;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.5rem;
}

.opciones-entrega legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.opcion {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 2px solid var(--borde);
  border-radius: 14px;
  cursor: pointer;
}

.opcion:has(input:checked) {
  border-color: var(--frambuesa);
  background: #fde0ec;
}

.opcion input {
  accent-color: var(--frambuesa);
}

.nota-bizum {
  background: var(--malva-clara);
  border-radius: var(--radio);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.vacio {
  text-align: center;
  padding: 3rem 1rem;
}

.vacio__flor {
  font-size: 3.5rem;
  color: var(--rosa);
  line-height: 1;
}

.exito {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- 5d. Vista: CUENTA ---------- */
.pestanas {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--borde);
}

.pestana {
  padding: 0.75rem 1.1rem;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--tinta-suave);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.pestana[aria-selected='true'] {
  color: var(--tinta);
  border-bottom-color: var(--frambuesa);
}

.acceso {
  max-width: 480px;
  margin-inline: auto;
}

.cuenta-rejilla {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.pedido {
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.pedido__cabecera {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 700;
}

.pedido ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--tinta-suave);
}

.estado {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--rosa-claro);
}

.estado--pagado,
.estado--enviado {
  background: var(--malva-clara);
}

.estado--entregado {
  background: var(--malva);
  color: white;
}

.estado--cancelado {
  background: #eee;
  color: #777;
}

/* ---------- 5e. Vista: EVENTOS ---------- */
.lista-eventos {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.evento {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  padding: 1.5rem;
}

/* Cuadradito con la fecha, tipo calendario */
.fecha-bloque {
  width: 76px;
  text-align: center;
  border-radius: var(--radio);
  background: var(--frambuesa);
  color: white;
  padding: 0.6rem 0.4rem;
  align-self: start;
}

.evento--feria .fecha-bloque {
  background: var(--malva);
}

.fecha-bloque__dia {
  display: block;
  font-family: var(--fuente-titulos);
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
}

.fecha-bloque__mes {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.evento__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.95rem;
  color: var(--tinta-suave);
  margin-bottom: 0.75rem;
  padding: 0;
  list-style: none;
}

.evento__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.plazas {
  font-weight: 700;
  font-size: 0.95rem;
}

.inscrito {
  color: var(--malva);
  font-weight: 700;
}

/* ---------- 5f. Vista: ADMIN ---------- */
.tabla-admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tabla-admin th,
.tabla-admin td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--borde);
  vertical-align: top;
}

.tabla-scroll {
  overflow-x: auto; /* en móvil la tabla se desplaza de lado */
}

/* ---------- 5g. Packs en la tienda ---------- */
/* Dibujo de un pack: los pendientes que lleva, uno al lado del otro */
.pack-dibujo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2%;
  width: 100%;
  height: 100%;
}

.pack-dibujo svg,
.pack-dibujo img {
  flex: 1;
  min-width: 0;
  max-height: 90%;
  object-fit: contain;
}

/* Las fotos dentro de un pack se recortan en cuadrado con esquinas redondeadas */
.pack-dibujo img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.producto__incluye {
  font-size: 0.85rem;
  color: var(--tinta-suave);
  margin: 0.15rem 0 0.25rem;
}

.ahorro {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--frambuesa-oscura);
  background: var(--malva-clara);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
}

.menu__panel {
  color: var(--frambuesa) !important;
}

/* ---------- 5h. Panel de administración ---------- */
.panel-pestanas {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto; /* en móvil las pestañas se desplazan de lado */
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--borde);
  scrollbar-width: thin;
}

.panel-pestanas button {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--tinta-suave);
  cursor: pointer;
}

.panel-pestanas button[aria-selected='true'] {
  background: var(--tinta);
  color: var(--crema);
}

.panel-barra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.panel-barra input[type='search'] {
  max-width: 280px;
}

/* Lista de productos / eventos del panel */
.fila-admin {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  margin-bottom: 0.6rem;
}

.fila-admin--apagada {
  opacity: 0.55;
}

.fila-admin__imagen {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--rosa-claro);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4px;
}

.fila-admin__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.fila-admin__imagen svg {
  height: 100%;
}

.fila-admin__datos {
  min-width: 0; /* permite que el texto largo se corte en vez de desbordar */
}

.fila-admin__datos strong {
  display: block;
}

.fila-admin__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  font-size: 0.85rem;
  color: var(--tinta-suave);
}

.insignia {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--malva-clara);
  color: var(--frambuesa-oscura);
}

.insignia--solo_packs {
  background: #ffdca8;
  color: #7a4200;
}

.insignia--oculto {
  background: #eee;
  color: #777;
}

.insignia--agotado {
  background: #fbcfd2;
  color: var(--error);
}

/* Ventanas de formulario del panel */
.dialogo-form {
  width: min(100% - 1.5rem, 640px);
  max-height: calc(100vh - 2rem);
  padding: 0;
}

.dialogo-form form {
  padding: 1.5rem;
}

.dialogo-form h2 {
  padding-right: 2.5rem;
}

.rejilla-campos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.rejilla-campos .campo--ancho {
  grid-column: 1 / -1; /* ocupa las dos columnas */
}

.foto-campo {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.foto-campo__vista {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: var(--radio);
  background: var(--rosa-claro);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px;
}

.foto-campo__vista img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.foto-campo__vista svg {
  height: 100%;
}

.foto-campo__botones {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

/* Botón de subir foto: el <input type="file"> va escondido dentro de un label con aspecto de botón */
.boton-archivo input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.componente-fila {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.caja-info {
  background: var(--malva-clara);
  border-radius: var(--radio);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.dialogo-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.boton--peligro {
  background: transparent;
  border-color: var(--error);
  color: var(--error);
}

.textos-seccion {
  margin-bottom: 1.5rem;
}

.textos-seccion legend {
  font-family: var(--fuente-titulos);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0 0.4rem;
}

.textos-seccion {
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1rem 1.25rem 0.25rem;
  background: var(--papel);
}

.barra-guardar {
  position: sticky;
  bottom: 0;
  background: var(--fondo);
  padding: 0.85rem 0;
  border-top: 1px solid var(--borde);
  display: flex;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 520px) {
  .rejilla-campos {
    grid-template-columns: 1fr;
  }

  .fila-admin {
    grid-template-columns: 52px 1fr;
  }

  .fila-admin__imagen {
    width: 52px;
    height: 52px;
  }

  .fila-admin > .boton {
    grid-column: 1 / -1;
  }
}

/* ---------- 5i. Pestaña "Orden" del panel ---------- */
.lista-orden {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.orden-fila {
  display: grid;
  grid-template-columns: auto 48px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: 14px;
  margin-bottom: 0.4rem;
  transition: background 0.3s;
}

/* Fila recién movida: se ilumina un momento para ver dónde ha ido */
.orden-fila--movida {
  background: #fde0ec;
}

.orden-fila--sin-imagen {
  grid-template-columns: auto 1fr auto;
}

.orden-fila__posicion {
  font-weight: 700;
  color: var(--tinta-suave);
  min-width: 1.5rem;
  text-align: right;
}

.orden-fila__imagen {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--rosa-claro);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 3px;
}

.orden-fila__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.orden-fila__imagen svg {
  height: 100%;
}

.orden-fila__imagen .pack-dibujo svg {
  height: auto;
}

.flechas {
  display: flex;
  gap: 0.3rem;
}

.flechas button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--borde);
  background: var(--crema);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--tinta);
}

.flechas button:disabled {
  opacity: 0.3;
  cursor: default;
}

.orden-grupo {
  font-family: var(--fuente-titulos);
  font-size: 1.15rem;
  margin: 1.2rem 0 0.5rem;
}

/* ============================================================
   FONDOS DE TEMPORADA
   ------------------------------------------------------------
   Anabel elige el fondo en el panel (pestaña "Fondo"). La página
   pone en <html> el atributo data-estacion="primavera" (o verano,
   otono, invierno) y estas reglas cambian unas pocas variables:
     --fondo    color de fondo de la página
     --patron   dibujo que se repite (un SVG metido dentro del CSS)
     --mancha-1 y --mancha-2  colores de las manchas de la portada
   Las mismas reglas sirven para las vistas previas del panel,
   porque también llevan el atributo data-estacion.
   ============================================================ */
[data-estacion='primavera'] {
  --fondo: #f8c3db;
  --mancha-1: #ee8fbb;
  --mancha-2: #c9e39a;
  --patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg opacity='.28'%3E %3Ccircle cx=%2247.0%22 cy=%2246.0%22 r=%225.2%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2242.2%22 cy=%2252.7%22 r=%225.2%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2234.3%22 cy=%2250.1%22 r=%225.2%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2234.3%22 cy=%2241.9%22 r=%225.2%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2242.2%22 cy=%2239.3%22 r=%225.2%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2240%22 cy=%2246%22 r=%223.9%22 fill=%22%23F2A93B%22/%3E%3Ccircle cx=%22166.0%22 cy=%22120.0%22 r=%224.5%22 fill=%22%239D2B45%22/%3E%3Ccircle cx=%22161.9%22 cy=%22125.7%22 r=%224.5%22 fill=%22%239D2B45%22/%3E%3Ccircle cx=%22155.1%22 cy=%22123.5%22 r=%224.5%22 fill=%22%239D2B45%22/%3E%3Ccircle cx=%22155.1%22 cy=%22116.5%22 r=%224.5%22 fill=%22%239D2B45%22/%3E%3Ccircle cx=%22161.9%22 cy=%22114.3%22 r=%224.5%22 fill=%22%239D2B45%22/%3E%3Ccircle cx=%22160%22 cy=%22120%22 r=%223.3%22 fill=%22%23F2A93B%22/%3E%3Ccircle cx=%2293.0%22 cy=%22178.0%22 r=%223.8%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2289.5%22 cy=%22182.8%22 r=%223.8%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2284.0%22 cy=%22180.9%22 r=%223.8%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2284.0%22 cy=%22175.1%22 r=%223.8%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2289.5%22 cy=%22173.2%22 r=%223.8%22 fill=%22%23B8597B%22/%3E%3Ccircle cx=%2288%22 cy=%22178%22 r=%222.8%22 fill=%22%23F2A93B%22/%3E%3Ccircle cx=%22194.0%22 cy=%2228.0%22 r=%223.0%22 fill=%22%23FFF1F7%22/%3E%3Ccircle cx=%22191.2%22 cy=%2231.8%22 r=%223.0%22 fill=%22%23FFF1F7%22/%3E%3Ccircle cx=%22186.8%22 cy=%2230.4%22 r=%223.0%22 fill=%22%23FFF1F7%22/%3E%3Ccircle cx=%22186.8%22 cy=%2225.6%22 r=%223.0%22 fill=%22%23FFF1F7%22/%3E%3Ccircle cx=%22191.2%22 cy=%2224.2%22 r=%223.0%22 fill=%22%23FFF1F7%22/%3E%3Ccircle cx=%22190%22 cy=%2228%22 r=%222.2%22 fill=%22%23B8597B%22/%3E %3Cellipse cx='118' cy='40' rx='4' ry='9' fill='%23B8597B' transform='rotate(35 118 40)'/%3E %3Cellipse cx='30' cy='140' rx='4' ry='8' fill='%239D2B45' transform='rotate(-25 30 140)'/%3E %3Cellipse cx='200' cy='190' rx='3.5' ry='8' fill='%235E9E3F' transform='rotate(60 200 190)'/%3E %3Cellipse cx='120' cy='92' rx='3' ry='7' fill='%235E9E3F' transform='rotate(-50 120 92)'/%3E %3C/g%3E%3C/svg%3E");
}

[data-estacion='verano'] {
  --fondo: #fbc6cf;
  --mancha-1: #ff9e80;
  --mancha-2: #ffd166;
  --patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg opacity='.28'%3E %3Ccircle cx=%2250%22 cy=%2250%22 r=%229%22 fill=%22%23F2A93B%22/%3E%3Cline x1=%2262.0%22 y1=%2250.0%22 x2=%2267.0%22 y2=%2250.0%22 stroke=%22%23F2A93B%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2258.5%22 y1=%2258.5%22 x2=%2262.0%22 y2=%2262.0%22 stroke=%22%23F2A93B%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2250.0%22 y1=%2262.0%22 x2=%2250.0%22 y2=%2267.0%22 stroke=%22%23F2A93B%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2241.5%22 y1=%2258.5%22 x2=%2238.0%22 y2=%2262.0%22 stroke=%22%23F2A93B%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2238.0%22 y1=%2250.0%22 x2=%2233.0%22 y2=%2250.0%22 stroke=%22%23F2A93B%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2241.5%22 y1=%2241.5%22 x2=%2238.0%22 y2=%2238.0%22 stroke=%22%23F2A93B%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2250.0%22 y1=%2238.0%22 x2=%2250.0%22 y2=%2233.0%22 stroke=%22%23F2A93B%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2258.5%22 y1=%2241.5%22 x2=%2262.0%22 y2=%2238.0%22 stroke=%22%23F2A93B%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Ccircle cx=%22165%22 cy=%22150%22 r=%227%22 fill=%22%23E8553A%22/%3E%3Cline x1=%22175.0%22 y1=%22150.0%22 x2=%22180.0%22 y2=%22150.0%22 stroke=%22%23E8553A%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22172.1%22 y1=%22157.1%22 x2=%22175.6%22 y2=%22160.6%22 stroke=%22%23E8553A%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22165.0%22 y1=%22160.0%22 x2=%22165.0%22 y2=%22165.0%22 stroke=%22%23E8553A%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22157.9%22 y1=%22157.1%22 x2=%22154.4%22 y2=%22160.6%22 stroke=%22%23E8553A%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22155.0%22 y1=%22150.0%22 x2=%22150.0%22 y2=%22150.0%22 stroke=%22%23E8553A%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22157.9%22 y1=%22142.9%22 x2=%22154.4%22 y2=%22139.4%22 stroke=%22%23E8553A%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22165.0%22 y1=%22140.0%22 x2=%22165.0%22 y2=%22135.0%22 stroke=%22%23E8553A%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22172.1%22 y1=%22142.9%22 x2=%22175.6%22 y2=%22139.4%22 stroke=%22%23E8553A%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E %3Ccircle cx='150' cy='45' r='4' fill='%23E8553A'/%3E%3Ccircle cx='30' cy='170' r='5' fill='%23F2A93B'/%3E%3Ccircle cx='100' cy='110' r='3' fill='%23F2A93B'/%3E %3Ccircle cx='200' cy='90' r='3' fill='%23F2A93B'/%3E%3Ccircle cx='95' cy='200' r='4' fill='%23E8553A'/%3E %3Cpath d='M10 115 q10 -8 20 0 t20 0' fill='none' stroke='%232E9CB0' stroke-width='2.5' stroke-linecap='round'/%3E %3Cpath d='M120 190 q10 -8 20 0 t20 0' fill='none' stroke='%232E9CB0' stroke-width='2.5' stroke-linecap='round'/%3E %3C/g%3E%3C/svg%3E");
}

[data-estacion='otono'] {
  --fondo: #f6c0c4;
  --mancha-1: #e37dad;
  --mancha-2: #f4b66a;
  --patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg opacity='.28'%3E %3Cg transform=%22translate(45 45) rotate(-30) scale(1.1)%22%3E%3Cpath d=%22M0 -14 C10 -8 10 8 0 14 C-10 8 -10 -8 0 -14 Z%22 fill=%22%23B9461F%22/%3E%3Cpath d=%22M0 -12 L0 18%22 stroke=%22%23B9461F%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 opacity=%22.8%22/%3E%3C/g%3E%3Cg transform=%22translate(160 70) rotate(40) scale(0.9)%22%3E%3Cpath d=%22M0 -14 C10 -8 10 8 0 14 C-10 8 -10 -8 0 -14 Z%22 fill=%22%23E0901F%22/%3E%3Cpath d=%22M0 -12 L0 18%22 stroke=%22%23E0901F%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 opacity=%22.8%22/%3E%3C/g%3E%3Cg transform=%22translate(95 150) rotate(15) scale(1.2)%22%3E%3Cpath d=%22M0 -14 C10 -8 10 8 0 14 C-10 8 -10 -8 0 -14 Z%22 fill=%22%238A2E1A%22/%3E%3Cpath d=%22M0 -12 L0 18%22 stroke=%22%238A2E1A%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 opacity=%22.8%22/%3E%3C/g%3E%3Cg transform=%22translate(190 175) rotate(-60) scale(0.8)%22%3E%3Cpath d=%22M0 -14 C10 -8 10 8 0 14 C-10 8 -10 -8 0 -14 Z%22 fill=%22%23B9461F%22/%3E%3Cpath d=%22M0 -12 L0 18%22 stroke=%22%23B9461F%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 opacity=%22.8%22/%3E%3C/g%3E%3Cg transform=%22translate(25 185) rotate(70) scale(0.7)%22%3E%3Cpath d=%22M0 -14 C10 -8 10 8 0 14 C-10 8 -10 -8 0 -14 Z%22 fill=%22%23E0901F%22/%3E%3Cpath d=%22M0 -12 L0 18%22 stroke=%22%23E0901F%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 opacity=%22.8%22/%3E%3C/g%3E %3Ccircle cx='120' cy='30' r='3' fill='%238A2E1A'/%3E%3Ccircle cx='200' cy='120' r='2.5' fill='%23E0901F'/%3E %3C/g%3E%3C/svg%3E");
}

[data-estacion='invierno'] {
  --fondo: #eac4e6;
  --mancha-1: #b9a3ec;
  --mancha-2: #e37dad;
  --patron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg opacity='.35'%3E %3Cline x1=%2250%22 y1=%2250%22 x2=%2263.0%22 y2=%2250.0%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2257.8%22 y1=%2250.0%22 x2=%2261.6%22 y2=%2247.4%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2257.8%22 y1=%2250.0%22 x2=%2261.6%22 y2=%2252.6%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2250%22 y1=%2250%22 x2=%2256.5%22 y2=%2261.3%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2253.9%22 y1=%2256.8%22 x2=%2258.0%22 y2=%2258.7%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2253.9%22 y1=%2256.8%22 x2=%2253.6%22 y2=%2261.3%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2250%22 y1=%2250%22 x2=%2243.5%22 y2=%2261.3%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2246.1%22 y1=%2256.8%22 x2=%2246.4%22 y2=%2261.3%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2246.1%22 y1=%2256.8%22 x2=%2242.0%22 y2=%2258.7%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2250%22 y1=%2250%22 x2=%2237.0%22 y2=%2250.0%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2242.2%22 y1=%2250.0%22 x2=%2238.4%22 y2=%2252.6%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2242.2%22 y1=%2250.0%22 x2=%2238.4%22 y2=%2247.4%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2250%22 y1=%2250%22 x2=%2243.5%22 y2=%2238.7%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2246.1%22 y1=%2243.2%22 x2=%2242.0%22 y2=%2241.3%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2246.1%22 y1=%2243.2%22 x2=%2246.4%22 y2=%2238.7%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2250%22 y1=%2250%22 x2=%2256.5%22 y2=%2238.7%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2253.9%22 y1=%2243.2%22 x2=%2253.6%22 y2=%2238.7%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2253.9%22 y1=%2243.2%22 x2=%2258.0%22 y2=%2241.3%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22165%22 y1=%22135%22 x2=%22175.0%22 y2=%22135.0%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22171.0%22 y1=%22135.0%22 x2=%22173.9%22 y2=%22133.0%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22171.0%22 y1=%22135.0%22 x2=%22173.9%22 y2=%22137.0%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22165%22 y1=%22135%22 x2=%22170.0%22 y2=%22143.7%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22168.0%22 y1=%22140.2%22 x2=%22171.2%22 y2=%22141.7%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22168.0%22 y1=%22140.2%22 x2=%22167.7%22 y2=%22143.7%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22165%22 y1=%22135%22 x2=%22160.0%22 y2=%22143.7%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22162.0%22 y1=%22140.2%22 x2=%22162.3%22 y2=%22143.7%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22162.0%22 y1=%22140.2%22 x2=%22158.8%22 y2=%22141.7%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22165%22 y1=%22135%22 x2=%22155.0%22 y2=%22135.0%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22159.0%22 y1=%22135.0%22 x2=%22156.1%22 y2=%22137.0%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22159.0%22 y1=%22135.0%22 x2=%22156.1%22 y2=%22133.0%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22165%22 y1=%22135%22 x2=%22160.0%22 y2=%22126.3%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22162.0%22 y1=%22129.8%22 x2=%22158.8%22 y2=%22128.3%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22162.0%22 y1=%22129.8%22 x2=%22162.3%22 y2=%22126.3%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22165%22 y1=%22135%22 x2=%22170.0%22 y2=%22126.3%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22168.0%22 y1=%22129.8%22 x2=%22167.7%22 y2=%22126.3%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22168.0%22 y1=%22129.8%22 x2=%22171.2%22 y2=%22128.3%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2280%22 y1=%22180%22 x2=%2288.0%22 y2=%22180.0%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2284.8%22 y1=%22180.0%22 x2=%2287.1%22 y2=%22178.4%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2284.8%22 y1=%22180.0%22 x2=%2287.1%22 y2=%22181.6%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2280%22 y1=%22180%22 x2=%2284.0%22 y2=%22186.9%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2282.4%22 y1=%22184.2%22 x2=%2284.9%22 y2=%22185.4%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2282.4%22 y1=%22184.2%22 x2=%2282.2%22 y2=%22186.9%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2280%22 y1=%22180%22 x2=%2276.0%22 y2=%22186.9%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2277.6%22 y1=%22184.2%22 x2=%2277.8%22 y2=%22186.9%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2277.6%22 y1=%22184.2%22 x2=%2275.1%22 y2=%22185.4%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2280%22 y1=%22180%22 x2=%2272.0%22 y2=%22180.0%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2275.2%22 y1=%22180.0%22 x2=%2272.9%22 y2=%22181.6%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2275.2%22 y1=%22180.0%22 x2=%2272.9%22 y2=%22178.4%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2280%22 y1=%22180%22 x2=%2276.0%22 y2=%22173.1%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2277.6%22 y1=%22175.8%22 x2=%2275.1%22 y2=%22174.6%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2277.6%22 y1=%22175.8%22 x2=%2277.8%22 y2=%22173.1%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2280%22 y1=%22180%22 x2=%2284.0%22 y2=%22173.1%22 stroke=%22%235B6FB8%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2282.4%22 y1=%22175.8%22 x2=%2282.2%22 y2=%22173.1%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%2282.4%22 y1=%22175.8%22 x2=%2284.9%22 y2=%22174.6%22 stroke=%22%235B6FB8%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22190%22 y1=%2230%22 x2=%22196.0%22 y2=%2230.0%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22193.6%22 y1=%2230.0%22 x2=%22195.3%22 y2=%2228.8%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22193.6%22 y1=%2230.0%22 x2=%22195.3%22 y2=%2231.2%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22190%22 y1=%2230%22 x2=%22193.0%22 y2=%2235.2%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22191.8%22 y1=%2233.1%22 x2=%22193.7%22 y2=%2234.0%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22191.8%22 y1=%2233.1%22 x2=%22191.6%22 y2=%2235.2%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22190%22 y1=%2230%22 x2=%22187.0%22 y2=%2235.2%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22188.2%22 y1=%2233.1%22 x2=%22188.4%22 y2=%2235.2%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22188.2%22 y1=%2233.1%22 x2=%22186.3%22 y2=%2234.0%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22190%22 y1=%2230%22 x2=%22184.0%22 y2=%2230.0%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22186.4%22 y1=%2230.0%22 x2=%22184.7%22 y2=%2231.2%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22186.4%22 y1=%2230.0%22 x2=%22184.7%22 y2=%2228.8%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22190%22 y1=%2230%22 x2=%22187.0%22 y2=%2224.8%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22188.2%22 y1=%2226.9%22 x2=%22186.3%22 y2=%2226.0%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22188.2%22 y1=%2226.9%22 x2=%22188.4%22 y2=%2224.8%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22190%22 y1=%2230%22 x2=%22193.0%22 y2=%2224.8%22 stroke=%22%237E8FD0%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22191.8%22 y1=%2226.9%22 x2=%22191.6%22 y2=%2224.8%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E%3Cline x1=%22191.8%22 y1=%2226.9%22 x2=%22193.7%22 y2=%2226.0%22 stroke=%22%237E8FD0%22 stroke-width=%221.6%22 stroke-linecap=%22round%22/%3E %3Ccircle cx='120' cy='60' r='3' fill='%237E8FD0'/%3E%3Ccircle cx='25' cy='120' r='2.5' fill='%235B6FB8'/%3E%3Ccircle cx='130' cy='205' r='2.5' fill='%237E8FD0'/%3E%3Ccircle cx='205' cy='200' r='3' fill='%235B6FB8'/%3E %3C/g%3E%3C/svg%3E");
}

/* Vista previa de cada fondo en el panel */
.vista-estacion {
  position: relative;
  height: 120px;
  border-radius: var(--radio);
  overflow: hidden;
  background-color: var(--fondo);
  background-image: var(--patron);
  background-size: 150px;
  border: 1px solid var(--borde);
}

.vista-estacion::before,
.vista-estacion::after {
  content: '';
  position: absolute;
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
}

.vista-estacion::before {
  width: 110px;
  height: 95px;
  right: -25px;
  top: -20px;
  background: var(--mancha-1);
}

.vista-estacion::after {
  width: 80px;
  height: 70px;
  right: 55px;
  bottom: -30px;
  background: var(--mancha-2);
}

.estaciones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.estacion-opcion {
  /* Los botones centran su contenido en vertical: con flex en columna todo empieza arriba */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.6rem;
  border: 3px solid transparent;
  border-radius: calc(var(--radio) + 6px);
  background: var(--papel);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--tinta);
}

.estacion-opcion[aria-pressed='true'] {
  border-color: var(--frambuesa);
}

.estacion-opcion strong {
  display: block;
  margin-top: 0.6rem;
}

.estacion-opcion small {
  color: var(--tinta-suave);
}

/* ---------- 5j. Vista: GALERÍA ---------- */
.galeria-grupo {
  margin-bottom: 3rem;
}

/* Mosaico: columnas de ancho parecido; cada foto mantiene su forma (alta o ancha) */
.mosaico {
  columns: 3 240px; /* hasta 3 columnas, cada una de al menos 240 px */
  column-gap: 1rem;
}

.foto-galeria {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 1rem;
  border: 0;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--rosa-claro);
  cursor: zoom-in;
  break-inside: avoid; /* que una foto no se parta entre dos columnas */
}

.foto-galeria img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.foto-galeria:hover img {
  transform: scale(1.03);
}

.foto-galeria__titulo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(58, 42, 43, 0.75));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

/* Visor a pantalla completa */
.visor {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(30, 20, 22, 0.94);
  color: #fff;
}

.visor[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visor::backdrop {
  background: transparent;
}

.visor__figura {
  margin: 0;
  max-width: min(92vw, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.visor__figura img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  object-fit: contain;
}

.visor__figura figcaption {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  text-align: center;
}

.visor__figura small {
  opacity: 0.7;
}

.visor__cerrar,
.visor__flecha {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.visor__cerrar {
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}

.visor__flecha {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  line-height: 1;
}

.visor__flecha--anterior {
  left: 1rem;
}

.visor__flecha--siguiente {
  right: 1rem;
}

/* En el móvil las flechas bajan para no tapar la foto (también se puede deslizar) */
@media (max-width: 640px) {
  .visor__flecha {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }
}

/* ---------- 5k. Pestaña Galería del panel ---------- */
.galeria-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.foto-admin {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.foto-admin--oculta img {
  opacity: 0.35;
}

.foto-admin img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--rosa-claro);
}

.foto-admin__datos {
  padding: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.foto-admin__datos input[type='text'],
.foto-admin__datos select {
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}

.foto-admin__acciones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.foto-admin__acciones .flechas button {
  width: 36px;
  height: 36px;
}

/* ---------- 5l. Páginas legales ---------- */
.texto-legal {
  max-width: 780px;
}

.texto-legal h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
}

.texto-legal li {
  margin-bottom: 0.4rem;
}

.ficha-legal {
  list-style: none;
  padding: 1rem 1.25rem;
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}

.formulario-legal {
  padding: 1.25rem;
  border: 1px dashed var(--tinta-suave);
  border-radius: var(--radio);
  background: var(--papel);
}

.legal-enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--borde);
}

/* Enlaces legales del pie */
.pie__legal-enlaces {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

/* ---------- 6. Pantallas grandes ---------- */
/* @media: estas reglas solo se aplican si la pantalla mide 760px o más */
@media (min-width: 760px) {
  /* Logo de la cabecera algo más grande en ordenador */
  .logo__imagen {
    height: 78px;
  }

  .menu-boton {
    display: none;
  }

  .menu {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    background: none;
    align-items: center;
    gap: 2rem;
  }

  .menu__lista {
    display: flex;
    gap: 1.75rem;
    margin: 0;
  }

  .menu__carrito {
    background: var(--tinta);
    color: var(--crema) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
  }

  .portada__rejilla {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .pasos {
    grid-template-columns: repeat(3, 1fr);
  }

  .banda-evento {
    grid-template-columns: 1fr auto;
  }

  .pie__rejilla {
    grid-template-columns: 1fr 1.3fr 0.7fr;
  }

  .detalle__rejilla {
    grid-template-columns: 1fr 1fr;
  }

  .carrito-rejilla {
    grid-template-columns: 1.4fr 1fr;
  }

  .linea-carrito {
    grid-template-columns: 96px 1fr;
  }

  .linea-carrito__imagen {
    width: 96px;
    height: 96px;
  }

  .cuenta-rejilla {
    grid-template-columns: 1fr 1.3fr;
  }
}

/* Si la persona tiene activado "reducir movimiento", quitamos animaciones */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Aviso "¿Tienes cuenta? Entra…" en el carrito cuando no hay sesión */
.aviso-cuenta {
  margin-top: 1.25rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
  font-size: .95rem;
}
.aviso-cuenta p { margin: 0; }

/* Etiqueta "sin cuenta" en los pedidos del panel */
.etiqueta-sin-cuenta {
  display: inline-block;
  margin-left: .4rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: #f1e6d8;
  font-size: .75rem;
  font-weight: 600;
}

/* ---------- Botón flotante del carrito (abajo a la derecha) ---------- */
.carrito-flotante {
  position: fixed;                 /* se queda quieto aunque hagas scroll */
  right: 1.25rem;
  bottom: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom)); /* respeta la barra inferior del iPhone */
  z-index: 90;                     /* por encima del contenido, por debajo de ventanas y avisos */
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--frambuesa);
  color: white;
  border: 3px solid var(--crema); /* borde claro: se distingue también sobre el pie */
  box-shadow: 0 10px 24px -8px rgba(61, 15, 30, 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}

.carrito-flotante:hover {
  background: var(--frambuesa-oscura);
  transform: translateY(-2px);
}

.carrito-flotante:focus-visible {
  outline: 3px solid var(--tinta);
  outline-offset: 3px;
}

.carrito-flotante__icono {
  width: 1.75rem;
  height: 1.75rem;
}

/* Circulito con el número, en la esquina superior derecha del botón */
.carrito-flotante__numero {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--tinta);
  color: white;
  border: 2px solid var(--crema);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.carrito-flotante__numero[hidden] {
  display: none;
}

/* Saltito al añadir un artículo */
.carrito-flotante--salto {
  animation: salto-carrito 0.45s ease;
}

@keyframes salto-carrito {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); }
  65%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}

/* Si alguien tiene activado "reducir movimiento" en su móvil, sin saltito */
@media (prefers-reduced-motion: reduce) {
  .carrito-flotante--salto { animation: none; }
}

/* Los avisos (toast) suben un poco para no tapar el botón */
.con-carrito-flotante .aviso {
  bottom: 5.75rem;
}

/* El pie deja hueco abajo para que el botón no tape los últimos enlaces */
.con-carrito-flotante .pie {
  padding-bottom: 5rem;
}

/* ---------- "Web desarrollada por Canware" (al final del pie) ---------- */
.pie__credito {
  margin-block: 0; /* solo arriba y abajo: así no quitamos el centrado de .contenedor */
  padding-bottom: 1.5rem;
}

.credito {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
}

/* Solo si es un enlace (<a>): al pasar el ratón se ve más fuerte */
a.credito:hover {
  opacity: 1;
}

.credito img {
  height: 32px;
  width: auto;
}

/* Mensaje del catálogo cuando todavía no hay pendientes */
.catalogo-vacio {
  grid-column: 1 / -1; /* ocupa toda la fila de la rejilla */
  max-width: 34rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radio);
  background: var(--papel);
  box-shadow: var(--sombra);
}

.catalogo-vacio p {
  margin: 0 0 0.5rem;
}

.catalogo-vacio p:last-child {
  margin-bottom: 0;
}

/* =============================================================
   EDITOR DE TEXTOS SOBRE LA PÁGINA (solo lo ve Anabel)
   ============================================================= */

/* Botón "✏️ Editar textos" (abajo a la izquierda; el carrito está a la derecha) */
.boton-editar-textos {
  position: fixed;
  left: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 90;
  padding: 0.7rem 1.1rem;
  border: 3px solid var(--crema);
  border-radius: 999px;
  background: var(--tinta);
  color: var(--crema);
  font: 600 0.9rem var(--fuente-texto);
  box-shadow: 0 10px 24px -8px rgba(61, 15, 30, 0.6);
  cursor: pointer;
}

.boton-editar-textos:hover {
  background: var(--frambuesa-oscura);
}

/* Cada texto editable: borde punteado */
.editable {
  outline: 2px dashed rgba(157, 43, 69, 0.6);
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text;
  transition: background 0.15s;
}

.editable:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* El que se está escribiendo ahora: borde continuo */
.editable:focus {
  outline: 2px solid var(--frambuesa);
  background: rgba(255, 255, 255, 0.6);
}

/* Cambiado y sin guardar: borde mostaza */
.editable.editado {
  outline-color: var(--mostaza);
  outline-style: solid;
}

/* En el pie (fondo oscuro), borde claro para que se vea */
.pie .editable {
  outline-color: rgba(255, 241, 247, 0.6);
}

.pie .editable.editado {
  outline-color: var(--mostaza);
}

.pie .editable:hover,
.pie .editable:focus {
  background: rgba(255, 255, 255, 0.1);
}

/* Mientras edita, ocultamos el carrito flotante (no lo necesita y taparía la barra) */
.modo-edicion .carrito-flotante {
  display: none;
}

/* Los avisos (toast) suben para no tapar la barra */
.modo-edicion .aviso {
  bottom: 6.5rem;
}

/* Barra de abajo: "N cambios sin guardar · Descartar · Guardar" */
.barra-edicion {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.8rem;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  padding: 0.7rem 0.9rem 0.7rem 1.2rem;
  border-radius: var(--radio);
  background: var(--tinta);
  color: var(--crema);
  box-shadow: 0 14px 34px -10px rgba(61, 15, 30, 0.7);
  font-size: 0.9rem;
}

.barra-edicion[hidden] {
  display: none;
}

.barra-edicion__texto {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.barra-edicion__texto small {
  color: #ffd38a;
}

/* Botones de la barra: claros sobre el fondo oscuro */
.barra-edicion .boton:not(.boton--frambuesa) {
  background: transparent;
  color: var(--crema);
  border-color: rgba(255, 241, 247, 0.6);
}

/* Cuadrito "Palabra del título en color" (portada) */
.editor-destacada {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0.25rem 0 1rem;
  padding: 0.45rem 0.6rem 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--papel);
  box-shadow: var(--sombra);
  font-size: 0.85rem;
}

.editor-destacada input {
  width: 9rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--borde);
  border-radius: 999px;
  font: inherit;
}

.editor-destacada small {
  color: var(--error);
}

.editor-destacada small[hidden] {
  display: none;
}
