/* Chordogs · cliente (mobile-first: se diseña a 390 px y se escala a 1280 px) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--texto);
  font: 400 16px/1.5 var(--f-cuerpo);
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 3px solid var(--oro-claro); outline-offset: 2px; border-radius: 6px; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oro); color: var(--oro-tinta); padding: 10px 14px; border-radius: var(--r-s); font-weight: 700; transition: top .15s; }
.saltar:focus { top: 12px; }

.titulo { font-family: var(--f-titulo); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .98; letter-spacing: .005em; margin: 0; }
.fuego { color: var(--fuego-claro); }
.eyebrow { margin: 0 0 var(--e2); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: 48px; padding: 0 var(--e6); border: 0; border-radius: var(--r-pill);
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--curva), background-color .15s, opacity .15s, box-shadow .2s;
}
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-oro { background: var(--oro); color: var(--oro-tinta); }
.btn-oro:hover:not([disabled]) { background: var(--oro-claro); box-shadow: var(--brillo-oro); }
.btn-fuego { background: var(--fuego); color: #fff; }
.btn-fuego:hover:not([disabled]) { background: var(--fuego-claro); }
.btn-borde { background: transparent; color: var(--texto); border: 1.5px solid var(--linea-2); }
.btn-borde:hover:not([disabled]) { border-color: var(--oro); color: var(--oro-claro); }
.btn-texto { background: none; color: var(--suave); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 var(--e3); }
.btn-bloque { width: 100%; }
.btn--ok { background: var(--ok) !important; color: #052414 !important; }

/* ---------- barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--e3);
  padding: var(--e2) var(--e4); padding-top: calc(var(--e2) + env(safe-area-inset-top));
  background: rgba(14, 18, 23, .94); border-bottom: 1px solid var(--linea);
}
.barra__marca { display: flex; align-items: center; gap: var(--e2); margin-right: auto; }
.barra__nombre { font-size: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; background: var(--bg-3); border: 1px solid var(--linea);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chip--cerrado::before { background: var(--error); box-shadow: 0 0 8px var(--error); }
.btn-carrito {
  position: relative; width: 48px; height: 48px; display: grid; place-items: center; flex: none;
  border-radius: 50%; border: 1.5px solid var(--linea-2); background: var(--bg-2);
  transition: transform .15s var(--curva), border-color .15s;
}
.btn-carrito:hover { border-color: var(--oro); }
.btn-carrito:active { transform: scale(.92); }
.btn-carrito__cuenta {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--r-pill); background: var(--fuego); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---------- hero ---------- */
.hero { max-width: var(--ancho); margin: 0 auto; padding: var(--e6) var(--e4) var(--e4); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--e3); }
.hero__titulo { font-size: clamp(30px, 9vw, 54px); }
.hero__sub { margin: var(--e3) 0 0; color: var(--suave); max-width: 34ch; }
.hero__mascota { position: relative; width: clamp(110px, 30vw, 230px); }
.hero__brasa {
  position: absolute; inset: -18% -6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 61, .35), rgba(242, 169, 59, .12) 45%, transparent 68%);
  animation: respira 3.2s ease-in-out infinite;
}
@keyframes flota { 50% { transform: translateY(-6px); } }
@keyframes respira { 50% { opacity: .6; transform: scale(1.06); } }

/* ---------- carta ---------- */
#carta, #especial, #aviso-cerrado { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--e4); }
#carta:focus { outline: none; }
.categoria { margin-top: var(--e8); }
.categoria__titulo { font-size: 26px; margin-bottom: var(--e4); display: flex; align-items: center; gap: var(--e3); }
.categoria__titulo::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--linea-2), transparent); }
.rejilla { display: grid; gap: var(--e5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .rejilla { grid-template-columns: repeat(2, 1fr); gap: var(--e6); } .hero { padding-top: var(--e10); } }

.perro {
  position: relative; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--linea);
  border-radius: var(--r-l); overflow: hidden;
  transition: transform .25s var(--curva), box-shadow .25s, border-color .25s;
}
@media (hover: hover) { .perro:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); border-color: rgba(242, 169, 59, .4); } .perro:hover .perro__foto img { transform: scale(1.05); } }
.perro__media { position: relative; }
.perro__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(14, 18, 23, .96), rgba(14, 18, 23, .55) 55%, transparent); pointer-events: none; }
.perro__foto { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-3); aspect-ratio: 4 / 3; overflow: hidden; }
.perro__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--curva); }
.perro__sinfoto { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--bg-4), var(--bg-3)); }
.perro__sinfoto img { width: 42%; opacity: .45; height: auto; object-fit: contain; }
.perro__sobre { position: absolute; left: var(--e4); right: var(--e4); bottom: var(--e3); z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--e3); pointer-events: none; }
.perro__nombre { font-size: 26px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.perro__precio { font-family: var(--f-titulo); font-style: italic; font-weight: 900; font-size: 22px; color: var(--oro); background: rgba(14, 18, 23, .8); border: 1px solid rgba(242, 169, 59, .45); padding: 2px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.perro__cuerpo { display: flex; flex-direction: column; gap: var(--e4); padding: var(--e4); flex: 1; }
.perro__desc { margin: 0; color: var(--suave); font-size: 15px; flex: 1; }
.perro.agotado .perro__foto { filter: grayscale(1) brightness(.6); }
.perro.agotado .perro__nombre, .perro.agotado .perro__desc { color: var(--tenue); }
.perro.agotado .perro__precio { color: var(--tenue); border-color: var(--linea-2); }
.etiqueta-agotado {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--e6); border-radius: var(--r-pill);
  border: 1.5px dashed var(--linea-2); color: var(--tenue); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px;
}

/* especial de la noche */
.especial {
  position: relative; margin-bottom: var(--e2); border-radius: var(--r-xl); overflow: hidden; padding: 1.5px;
  background: linear-gradient(135deg, var(--oro), var(--fuego) 60%, var(--brasa));
  box-shadow: 0 14px 44px rgba(224, 65, 47, .2);
}
.especial__in { position: relative; border-radius: calc(var(--r-xl) - 1.5px); background: linear-gradient(160deg, #1d1612, var(--bg-2) 60%); display: grid; gap: 0; overflow: hidden; }
.especial__foto { aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; }
.especial__foto img { width: 100%; height: 100%; object-fit: cover; }
.especial__texto { padding: var(--e5); display: flex; flex-direction: column; gap: var(--e3); }
.especial__marca { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; background: var(--fuego); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.especial__nombre { font-size: clamp(26px, 7vw, 38px); }
.especial__precio, .especial__desc { margin: 0; }
.especial__precio { font-family: var(--f-titulo); font-style: italic; font-weight: 900; font-size: 30px; color: var(--oro); }
.especial__desc { color: var(--suave); }
@media (min-width: 720px) { .especial__in { grid-template-columns: 1fr 1fr; } .especial__foto { aspect-ratio: auto; min-height: 280px; } .especial__texto { padding: var(--e8); justify-content: center; } }

/* aviso de cerrado */
.cerrado {
  display: grid; grid-template-columns: auto 1fr; gap: var(--e4); align-items: center; margin-bottom: var(--e4);
  padding: var(--e4); border-radius: var(--r-l); background: var(--bg-2); border: 1px solid rgba(255, 122, 107, .4);
}
.cerrado img { width: 84px; filter: grayscale(1) brightness(.85); }
.cerrado h2 { font-size: 22px; margin-bottom: 4px; color: var(--error); }
.cerrado p { margin: 0; color: var(--suave); }

/* estados de carga / error */
.cargando { display: flex; justify-content: center; gap: 8px; padding: var(--e12) 0; }
.cargando__punto { width: 12px; height: 12px; border-radius: 50%; background: var(--oro); animation: salta 1s ease-in-out infinite; }
.cargando__punto:nth-child(2) { animation-delay: .15s; } .cargando__punto:nth-child(3) { animation-delay: .3s; }
@keyframes salta { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.vacio { text-align: center; padding: var(--e10) var(--e4); color: var(--suave); }
.vacio img { width: 130px; margin: 0 auto var(--e4); opacity: .9; }
.vacio h2 { font-size: 24px; color: var(--texto); margin-bottom: var(--e2); }
.pie { display: flex; align-items: center; justify-content: center; gap: var(--e3); padding: var(--e10) var(--e4) var(--e6); color: var(--tenue); font-size: 14px; }
.pie p { margin: 0; }
.sin-js { padding: var(--e6); text-align: center; }

/* barra flotante del carrito */
.barra-carrito {
  position: fixed; left: var(--e4); right: var(--e4); bottom: calc(var(--e4) + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 560px; margin: 0 auto; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: var(--e4);
  padding: 0 var(--e5); border: 0; border-radius: var(--r-pill); background: var(--oro); color: var(--oro-tinta);
  font-weight: 800; box-shadow: 0 12px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .15) inset;
  animation: sube .4s var(--curva) both;
}
.barra-carrito:active { transform: scale(.97); }
.barra-carrito.pulso { animation: pulso .5s var(--curva-rebote); }
.barra-carrito__izq { display: inline-flex; align-items: center; gap: var(--e3); }
.barra-carrito__cuenta { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--oro-tinta); color: var(--oro); font-size: 14px; }
.barra-carrito__total { font-family: var(--f-titulo); font-style: italic; font-weight: 900; font-size: 20px; }
@keyframes sube { from { transform: translateY(120%); } }
@keyframes pulso { 40% { transform: scale(1.06); } }

/* ---------- hojas (dialog): abajo en celular, lateral/centro en pantalla grande ---------- */
dialog.hoja { border: 0; padding: 0; margin: 0; background: transparent; color: inherit; max-width: none; max-height: none; width: 100%; height: 100%; overflow: hidden; }
dialog.hoja::backdrop { background: rgba(6, 8, 11, .72); opacity: 0; transition: opacity .28s; }
dialog.hoja.abierto::backdrop { opacity: 1; }
.hoja__panel {
  position: fixed; left: 0; right: 0; bottom: 0; max-height: 94dvh; display: flex; flex-direction: column;
  background: var(--bg-2); border-top: 1px solid var(--linea-2); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sombra-2); transform: translateY(100%); transition: transform .32s var(--curva);
}
.hoja.abierto .hoja__panel { transform: none; }
.hoja__cab { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); padding: var(--e4) var(--e5) var(--e3); flex: none; }
.hoja__cab h2 { font-size: 24px; }
.hoja__agarre { width: 44px; height: 5px; border-radius: 3px; background: var(--linea-2); margin: 10px auto 0; flex: none; }
.cerrar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--linea-2); border-radius: 50%; background: var(--bg-3); font-size: 22px; line-height: 1; transition: transform .15s; }
.cerrar:active { transform: scale(.9); }
.hoja__cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--e5) var(--e4); flex: 1; }
.hoja__pie { flex: none; padding: var(--e3) var(--e5) calc(var(--e4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--bg-2); display: grid; gap: var(--e3); }
@media (min-width: 720px) {
  .hoja:not(.hoja--carrito) .hoja__panel { inset: 0; margin: auto; width: min(560px, 92vw); height: fit-content; max-height: 90dvh; border-radius: var(--r-xl); border: 1px solid var(--linea-2); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .32s var(--curva), opacity .25s; }
  .hoja:not(.hoja--carrito).abierto .hoja__panel { transform: none; opacity: 1; }
  .hoja--carrito .hoja__panel { left: auto; top: 0; width: min(480px, 100vw); max-height: none; border-radius: var(--r-xl) 0 0 var(--r-xl); transform: translateX(100%); }
  .hoja--carrito.abierto .hoja__panel { transform: none; }
  .hoja__agarre { display: none; }
  .barra-carrito { left: auto; right: var(--e8); width: 360px; margin: 0; }
}

/* producto en la hoja */
.prod__foto { margin: 0 calc(var(--e5) * -1) var(--e4); aspect-ratio: 16 / 9; background: var(--bg-3); overflow: hidden; }
.prod__foto img { width: 100%; height: 100%; object-fit: cover; }
.prod__precio { font-family: var(--f-titulo); font-style: italic; font-weight: 900; color: var(--oro); font-size: 22px; }
.prod__desc { margin: var(--e2) 0 var(--e4); color: var(--suave); font-size: 15px; }
.grupo { margin: var(--e5) 0 0; padding: 0; border: 0; }
.grupo > legend { padding: 0; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--oro); margin-bottom: var(--e1); }
.grupo__ayuda { margin: 0 0 var(--e3); font-size: 14px; color: var(--tenue); }
.opciones { display: grid; gap: var(--e2); }
.opciones--chips { grid-template-columns: 1fr 1fr; }
.opcion { position: relative; display: flex; align-items: center; gap: var(--e3); min-height: 52px; padding: var(--e2) var(--e4); border-radius: var(--r-m); background: var(--bg-3); border: 1.5px solid var(--linea); cursor: pointer; transition: border-color .15s, background-color .15s, transform .12s; }
.opcion:active { transform: scale(.98); }
.opcion input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcion__caja { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--linea-2); display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.opcion__caja::after { content: ""; width: 6px; height: 11px; border: solid var(--oro-tinta); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .18s var(--curva-rebote); }
.opcion input[type=radio] + .opcion__caja { border-radius: 50%; }
.opcion input:checked + .opcion__caja { background: var(--oro); border-color: var(--oro); }
.opcion input:checked + .opcion__caja::after { transform: rotate(45deg) scale(1); }
.opcion:has(input:checked) { border-color: var(--oro); background: rgba(242, 169, 59, .08); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--oro-claro); outline-offset: 2px; }
.opcion__texto { flex: 1; font-weight: 500; line-height: 1.25; }
.opcion__extra { font-weight: 700; color: var(--oro); white-space: nowrap; }
.opciones--chips .opcion { padding: var(--e2) var(--e3); font-size: 15px; }
.opciones--chips .opcion:has(input:checked) { border-color: var(--fuego-claro); background: rgba(224, 65, 47, .12); }
.opciones--chips .opcion:has(input:checked) .opcion__caja { background: var(--fuego); border-color: var(--fuego); }
.opciones--chips .opcion:has(input:checked) .opcion__caja::after { border-color: #fff; }
.opciones--chips .opcion:has(input:checked) .opcion__texto { text-decoration: line-through; text-decoration-color: var(--fuego-claro); color: var(--suave); }
.prod__pie { display: grid; grid-template-columns: auto 1fr; gap: var(--e3); align-items: center; }

/* formularios */
.campo { display: block; margin-top: var(--e4); }
.campo__etiqueta { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--suave); }
.campo__opcional { font-weight: 400; color: var(--tenue); }
.entrada { width: 100%; min-height: 50px; padding: 0 var(--e4); border-radius: var(--r-m); border: 1.5px solid var(--linea-2); background: var(--bg-3); color: var(--texto); transition: border-color .15s, box-shadow .15s; }
textarea.entrada { padding: var(--e3) var(--e4); min-height: 76px; resize: vertical; }
.entrada::placeholder { color: var(--tenue); }
.entrada:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(242, 169, 59, .25); }
.entrada[aria-invalid=true] { border-color: var(--error); }
select.entrada { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B9C1CB' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--error); }
.nota-info { margin: var(--e3) 0 0; padding: var(--e3) var(--e4); border-radius: var(--r-m); background: rgba(242, 169, 59, .08); border: 1px solid rgba(242, 169, 59, .3); font-size: 14px; color: var(--suave); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.eleccion { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e2); margin-top: var(--e2); }
.eleccion--3 { grid-template-columns: repeat(3, 1fr); }
.eleccion .opcion { justify-content: center; text-align: center; flex-direction: column; gap: 2px; padding: var(--e3); min-height: 64px; }
.eleccion .opcion__caja { display: none; }
.eleccion .opcion__texto { flex: none; font-weight: 700; }
.eleccion small { color: var(--tenue); font-size: 12px; }

/* pasos */
.pasos-ind { display: flex; gap: var(--e2); list-style: none; margin: 0; padding: 0 var(--e5) var(--e3); flex: none; }
.pasos-ind li { flex: 1; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tenue); }
.pasos-ind li::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--bg-4); margin-bottom: 6px; transition: background-color .3s; }
.pasos-ind li.hecho::before, .pasos-ind li.actual::before { background: var(--oro); }
.pasos-ind li.actual { color: var(--texto); }
.paso { animation: entra .32s var(--curva) both; }
.paso--atras { animation-name: entraAtras; }
@keyframes entra { from { opacity: 0; transform: translateX(28px); } }
@keyframes entraAtras { from { opacity: 0; transform: translateX(-28px); } }

/* líneas del carrito */
.linea { padding: var(--e4) 0; border-bottom: 1px solid var(--linea); display: grid; grid-template-columns: 1fr auto; gap: 2px var(--e3); }
.linea__nombre { font-weight: 700; font-size: 17px; }
.linea__detalle { grid-column: 1; margin: 0; font-size: 14px; color: var(--suave); }
.linea__detalle b { color: var(--oro); font-weight: 600; }
.linea__precio { grid-row: 1; grid-column: 2; font-weight: 700; }
.linea__acciones { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: var(--e2); }
.cantidad { display: inline-flex; align-items: center; border: 1.5px solid var(--linea-2); border-radius: var(--r-pill); background: var(--bg-3); }
.cantidad button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; font-size: 22px; line-height: 1; transition: background-color .15s, transform .12s; }
.cantidad button:active { transform: scale(.88); background: var(--bg-4); }
.cantidad button[disabled] { opacity: .35; }
.cantidad output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.totales { margin-top: var(--e4); display: grid; gap: 6px; }
.totales div { display: flex; justify-content: space-between; color: var(--suave); }
.totales .total { color: var(--texto); font-weight: 800; font-size: 20px; padding-top: var(--e2); border-top: 1px dashed var(--linea-2); }
.totales .total span:last-child { color: var(--oro); font-family: var(--f-titulo); font-style: italic; font-weight: 900; }

/* datos de pago */
.pago-datos { margin-top: var(--e3); padding: var(--e4); border-radius: var(--r-m); background: var(--bg-3); border: 1px solid var(--linea); display: grid; gap: var(--e3); }
.pago-datos__fila { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); }
.pago-datos small { display: block; color: var(--tenue); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pago-datos strong { font-size: 20px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.btn-copiar { min-height: 44px; padding: 0 var(--e4); font-size: 14px; }

/* listo */
.listo { text-align: center; padding: var(--e6) 0; }
.listo img { width: 150px; margin: 0 auto var(--e4); animation: rebote .7s var(--curva-rebote) both; }
.listo h2 { font-size: 28px; margin-bottom: var(--e2); }
.listo .num { display: inline-block; margin: var(--e2) 0 var(--e3); padding: 6px 18px; border-radius: var(--r-pill); border: 1.5px dashed var(--oro); color: var(--oro); font-family: var(--f-titulo); font-style: italic; font-weight: 900; font-size: 26px; letter-spacing: .06em; }
.listo p { color: var(--suave); margin: 0 0 var(--e3); }
.listo .alerta { color: var(--oro-claro); font-weight: 600; }
@keyframes rebote { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }

/* aviso (toast) */
.aviso {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 440px); padding: 12px 20px; border-radius: var(--r-pill); background: var(--bg-4); color: var(--texto); border: 1px solid var(--linea-2);
  font-weight: 600; font-size: 15px; text-align: center; box-shadow: var(--sombra-2); transition: transform .3s var(--curva), opacity .3s;
}
.aviso.visible { transform: translate(-50%, 0); opacity: 1; }
.aviso.aviso--error { border-color: var(--error); }

/* ---------- intro "la mascota se come el perro" (versión premium) ---------- */
.cd-t{fill:var(--chordogs-tinta,#0E1217)}.cd-b{fill:var(--chordogs-blanco,#fff)}.cd-r{fill:var(--chordogs-rojo,#BE3A3C)}.cd-a{fill:var(--chordogs-amarillo,#EBA839)}
.cd-ts{fill:none;stroke:var(--chordogs-tinta,#0E1217)}.cd-mig{stroke:var(--chordogs-tinta,#0E1217)}.cd-brillo{fill:#F4C25B}
.ci { position: fixed; inset: 0; z-index: 200; display: none; padding: 0; margin: 0; border: 0; background: transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: none; color: inherit; }
html.intro-on .ci { display: block; }
.ci__fondo { position: absolute; inset: 0; background: var(--bg); }
.ci__brillo { position: absolute; left: 50%; top: 46%; width: min(150vw, 980px); aspect-ratio: 1; transform: translate(-50%,-50%); opacity: 0;
  background: radial-gradient(closest-side, rgba(255,138,61,.20), rgba(242,169,59,.09) 42%, rgba(242,169,59,.03) 62%, transparent 76%); pointer-events: none; }
.ci__pos { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 8vh; pointer-events: none; }
.ci__escena { width: min(84vw, 460px, 58vh); aspect-ratio: 286 / 268; transform-origin: 0 0; will-change: transform; --chordogs-tinta: var(--bg); }
.ci__escena svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ci__pista { position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom)); text-align: center; font: 600 13px/1 var(--f-cuerpo);
  letter-spacing: .14em; text-transform: uppercase; color: var(--suave); opacity: 0; pointer-events: none; }
html.intro-on .rv { opacity: 0; }
html.intro-on .rvw { transform: translateY(108%); }
.pal { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .06em; margin: 0 -.04em -.06em; }
.rvw { display: inline-block; will-change: transform; }
html.intro-on .hero__svg { visibility: hidden; }
html.intro-on .hero__brasa { opacity: 0; animation: none; }
html.lista .hero__brasa { animation: brasa-in 1s ease-out both, respira 3.2s ease-in-out 1s infinite; }
@keyframes brasa-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.hero__svg { display: block; width: 100%; aspect-ratio: 286 / 268; overflow: visible; --chordogs-tinta: var(--bg); }
html.lista .hero__svg { animation: flota 5s ease-in-out .3s infinite; }

/* --- integración con la página real (no está en la demo) --- */
/* mientras corre la intro, el revelado lo anima JS cuadro a cuadro: sin transiciones CSS que lo hagan ir "a la zaga" */
html.intro-on .rv, html.intro-on .rvw { transition: none !important; }
/* sin intro (o ya terminada) la mascota del hero flota; con la intro, flota .3 s después de aterrizar (html.lista) */
.hero__svg { animation: flota 5s ease-in-out infinite; }
html.intro-on .hero__svg { animation: none; }
/* Tarjetas que llegan DESPUÉS de la intro (vienen de Firestore): suben y aparecen, 0,45 s, escalonadas de 60 ms.
   Nunca quedan invisibles: la animación termina en opacity 1 y además js/cliente/revelado.js quita la clase. */
.entra { animation: entra-carta .45s var(--curva) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes entra-carta { from { opacity: 0; transform: translateY(26px); } }

/* ---------- movimiento reducido: sin animaciones (la intro reducida es solo un fundido de 0,3 s hecho por el reproductor) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
