/* El Huesón — palette taken from the logo: orange #EE7E00, cyan #99F1FB, ink #101010. */

:root {
  --orange: #ee7e00;
  --orange-deep: #c96600;
  --orange-soft: #fff1e0;
  --cyan: #99f1fb;
  --cyan-soft: #e8fbfd;
  --cyan-deep: #0e7e8a;

  --ink: #101010;
  --ink-2: #3a3a3a;
  --muted: #7a756d;
  --line: #e8e2d9;
  --line-strong: #d4ccc0;
  --paper: #fffdfa;
  --cream: #fff6ea;
  --canvas: #f8f4ee;

  --ok: #1f7a45;
  --ok-soft: #e3f4e9;
  --warn: #a85a06;
  --warn-soft: #fcefdd;
  --danger: #b3261e;
  --danger-soft: #fceae8;

  --radius: 20px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 16, 0.05);
  --shadow: 0 2px 4px rgba(16, 16, 16, 0.04), 0 26px 50px -34px rgba(16, 16, 16, 0.5);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 44px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
dt {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 12px;
}

.lead {
  font-size: 18px;
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 54ch;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  appearance: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.12s ease,
    box-shadow 0.16s ease;
}

.btn:hover {
  background: var(--canvas);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange-deep);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn--ghost:hover {
  background: var(--canvas);
  border-color: transparent;
}

.btn--sm {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 9px;
}

.btn--block {
  width: 100%;
}

/* ------------------------------------------------------------------- header */

.site-header {
  position: relative;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 32px;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 128px;
  min-height: var(--header);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px -20px rgba(16, 16, 16, 0.55);
  display: grid;
  place-items: center;
  z-index: 2;
}

.brand-bubble img {
  width: 106px;
  height: 106px;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.brand-text small {
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-user {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px 5px 7px;
}

.user-chip::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--orange-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C96600' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 21c0-4 3.4-6 7.5-6s7.5 2 7.5 6'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #f6d3b0;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}

.menu-btn span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------- hero */

.hero {
  display: flex;
  align-items: center;
  padding: 72px 0 48px;
  background:
    radial-gradient(1000px 480px at 88% 32%, rgba(153, 241, 251, 0.55), transparent 62%),
    linear-gradient(180deg, #fffdfa 0%, #f0fcfd 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 60px;
  align-items: center;
}

h1 {
  font-size: clamp(38px, 5.1vw, 70px);
  line-height: 0.99;
  letter-spacing: -0.045em;
  font-weight: 830;
  text-wrap: balance;
}

.hero-copy .lead {
  margin-top: 24px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ gallery */

.gallery {
  position: relative;
}

.gallery-main {
  position: relative;
  margin: 0;
  border-radius: 24px;
  /* La sombra vive en el marco, no en las capas: el crossfade apila dos imágenes y,
     si cada una proyecta su sombra, la del fondo se duplica y la intensidad pulsa. */
  box-shadow: 0 30px 60px -38px rgba(16, 16, 16, 0.6);
}

.gallery-main > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.gallery-img--top {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.gallery-img--top.is-visible {
  opacity: 1;
}

.island {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 15px;
  box-shadow: 0 24px 50px -28px rgba(16, 16, 16, 0.55);
}

.island--hours {
  top: -20px;
  left: -26px;
  min-width: 208px;
}

.island--place {
  bottom: -20px;
  right: -26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.island--place:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 54px -26px rgba(16, 16, 16, 0.6);
}

.island__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.island__label {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.island strong {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.island__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.pin {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.island__lugar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 8px;
}

.status-dot[data-estado="abierto"] {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(31, 122, 69, 0.14);
}

.status-dot[data-estado="pronto"] {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(238, 126, 0, 0.16);
}

/* ----------------------------------------------------------------- sections */

.section {
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.section > .wrap {
  width: min(1180px, calc(100% - 64px));
}

.section h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 810;
  text-wrap: balance;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head .lead {
  margin-top: 14px;
}

/* ----------------------------------------------------------------- productos */

.productos {
  background: linear-gradient(180deg, #fff6ea 0%, #e9fafc 100%);
}

.cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdfa 0%, #fff6ea 100%);
  border: 1px solid rgba(16, 16, 16, 0.07);
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 1px 2px rgba(16, 16, 16, 0.05), 0 18px 34px -30px rgba(16, 16, 16, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cat::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -60px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 241, 251, 0.55), transparent 70%);
  pointer-events: none;
}

.cat:nth-child(even)::after {
  background: radial-gradient(circle, rgba(238, 126, 0, 0.16), transparent 70%);
}

.cat:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 16, 16, 0.12);
  box-shadow: 0 2px 4px rgba(16, 16, 16, 0.05), 0 26px 46px -30px rgba(16, 16, 16, 0.5);
}

.cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cat-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 15px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #f59a3a, #ee7e00);
  box-shadow: 0 12px 22px -12px rgba(238, 126, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cat-icon svg {
  width: 24px;
  height: 24px;
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

.cat:nth-child(2) .cat-icon {
  background: linear-gradient(145deg, #43c6cd, #0e7e8a);
  box-shadow: 0 12px 22px -12px rgba(14, 126, 138, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cat:nth-child(3) .cat-icon {
  background: linear-gradient(145deg, #e08a2a, #c96600);
  box-shadow: 0 12px 22px -12px rgba(201, 102, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cat:nth-child(4) .cat-icon {
  background: linear-gradient(145deg, #2fb6be, #0a5c64);
  box-shadow: 0 12px 22px -12px rgba(10, 92, 100, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cat-num {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  color: var(--orange-deep);
  background: var(--orange-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.cat h3 {
  margin: 10px 0 6px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.cat p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.cat ul {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.cat li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: 2px;
}

.store-band {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--ink);
}

.store-band .eyebrow {
  color: rgba(16, 16, 16, 0.65);
  margin-bottom: 6px;
}

.store-band h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.store-band p {
  margin-top: 5px;
  font-size: 14.5px;
  color: #4a320f;
}

.store-band .btn {
  border-color: var(--ink);
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------ el local */

.about {
  background: linear-gradient(155deg, #99f1fb 0%, #ddf8fb 65%, #f3fdfe 100%);
}

.about-copy {
  max-width: 760px;
}

.galeria-tienda {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 40px;
}

.galeria-tienda figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 32px -24px rgba(16, 16, 16, 0.5);
}

.galeria-tienda img {
  width: 100%;
  aspect-ratio: 1000 / 955;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galeria-tienda figure:hover img {
  transform: scale(1.04);
}

.about-copy .lead {
  color: #17383b;
  margin-top: 16px;
}

.about-copy p:not(.lead) {
  margin-top: 14px;
  font-size: 15px;
  color: #2c5255;
  max-width: 52ch;
}

.about-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -38px rgba(16, 16, 16, 0.55);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1000 / 955;
  object-fit: cover;
}

/* ------------------------------------------------------------------ contacto */

.contacto {
  background:
    radial-gradient(900px 420px at 12% 20%, rgba(153, 241, 251, 0.45), transparent 65%),
    linear-gradient(180deg, #fffdfa 0%, #f4fdfe 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: start;
}

.contact-copy .lead {
  margin-top: 14px;
}

.contacto-datos {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.contacto-datos a,
.contacto-datos span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.contacto-datos a:hover {
  color: var(--orange-deep);
}

.contacto-datos .dato-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 6px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

input,
textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  transition: border-color 0.15s ease;
}

input:hover,
textarea:hover {
  border-color: var(--ink-2);
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.form-error {
  font-size: 13px;
  color: var(--danger);
  min-height: 0;
}

.form-ok {
  font-size: 13.5px;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  background: var(--orange);
  color: var(--ink);
  padding: 30px 0 16px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
}

.footer-brand > div {
  min-width: 0;
}

.footer-bubble {
  display: block;
  flex: 0 0 auto;
}

.footer-bubble img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  box-shadow: 0 16px 28px -18px rgba(16, 16, 16, 0.55);
}

.footer-brand strong {
  display: block;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.footer-brand span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: #6a4300;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-left: auto;
  flex: 1 1 480px;
  max-width: 620px;
}

.footer-cols h3 {
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a4a00;
}

.footer-cols p,
.footer-cols a {
  display: block;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.5;
}

.footer-cols a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link {
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 16, 16, 0.18);
  flex-wrap: wrap;
}

.footer-bottom small {
  font-size: 12px;
  color: #6a4300;
}

/* ------------------------------------------------------------------- toasts */

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: #fdfaf6;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 550;
  border-left: 3px solid var(--orange);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6);
  max-width: 360px;
}

.toast--error {
  border-left-color: #ff6b5e;
}

/* --------------------------------------------------------------------- auth */

body.auth {
  background:
    radial-gradient(1000px 480px at 88% 32%, rgba(153, 241, 251, 0.55), transparent 62%),
    linear-gradient(180deg, #fffdfa 0%, #f0fcfd 100%);
  min-height: 100vh;
}

.auth-page {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 28px 0 34px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.auth-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 12px 22px -14px rgba(16, 16, 16, 0.6);
}

.auth-logo strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.auth-logo small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-back {
  padding: 8px 15px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.auth-back:hover {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

.auth-shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.auth-story,
.auth-panel {
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.07);
  box-shadow: 0 2px 4px rgba(16, 16, 16, 0.04), 0 32px 60px -40px rgba(16, 16, 16, 0.55);
}

.auth-story {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-photo {
  position: relative;
  flex: 1;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
}

.auth-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-photo-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
  box-shadow: 0 14px 26px -18px rgba(16, 16, 16, 0.7);
}

.auth-photo-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.auth-story-body {
  padding: 26px 28px 28px;
}

.auth-story-body h1 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 830;
}

.auth-story-body p:not(.eyebrow) {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 14.5px;
  color: var(--ink-2);
}

.auth-story-body ul {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}

.auth-story-body li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-story-body li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-deep);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
}

.auth-box {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.auth-box h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 780;
}

.auth-foot {
  margin: 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-intro {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 22px 0;
}

.auth-tabs button {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .field label {
  font-size: 12px;
}

.auth-error {
  font-size: 13px;
  color: var(--danger);
  min-height: 18px;
}

.auth-aviso {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #f0c8c3;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.auth-demo {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fdfcfa;
  font-size: 12.5px;
  color: var(--ink-2);
}

.auth-demo > strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.auth-demo code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.demo-info {
  flex: 1;
  min-width: 0;
}

.demo-rol {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-creds code {
  font-size: 11.5px;
}

/* -------------------------------------------------------------------- cuenta */

.cuenta-acciones {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cuenta-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cuenta-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 830;
}

.cuenta-hero .lead {
  margin-top: 10px;
}

.cuenta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.cuenta-card {
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.07);
  border-radius: 24px;
  padding: 22px 24px 24px;
  box-shadow: 0 2px 4px rgba(16, 16, 16, 0.04), 0 26px 52px -38px rgba(16, 16, 16, 0.5);
}

.cuenta-card--ancha {
  grid-column: 1 / -1;
}

.cuenta-card h2 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.dato-linea {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.dato-linea:last-of-type {
  border-bottom: 0;
}

.dato-linea span {
  color: var(--muted);
}

.mascota-lista {
  display: grid;
}

.mascota-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.mascota-item:last-child {
  border-bottom: 0;
}

.mascota-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 850;
}

.mascota-item__datos {
  min-width: 0;
}

.mascota-item__datos strong {
  display: block;
  font-size: 14px;
}

.mascota-item__datos small {
  color: var(--muted);
  font-size: 12px;
}

.mascota-item__acciones {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cuenta-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cuenta-form__fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.cuenta-form__acciones {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cuenta-saldo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  border: 1px solid rgba(238, 126, 0, 0.25);
  font-size: 13.5px;
  color: var(--ink-2);
}

.cuenta-saldo strong {
  font-size: 20px;
  font-weight: 830;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.compras-resumen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.compras-resumen strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 830;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.compra-linea {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.compra-linea:last-child {
  border-bottom: 0;
}

.compra-linea small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .cuenta-grid {
    grid-template-columns: 1fr;
  }

  .cuenta-card {
    padding: 18px 18px 20px;
    border-radius: 20px;
  }

  .compras-resumen {
    grid-template-columns: 1fr;
  }

  .mascota-item__acciones {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
}

/* ------------------------------------------------------------------ motion */

.hero-copy > * {
  animation: rise 0.65s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 0.06s;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 0.12s;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 0.18s;
}

.gallery {
  animation: rise 0.8s cubic-bezier(0.22, 0.7, 0.3, 1) 0.1s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .hero-grid,
  .contact-grid {
    gap: 40px;
  }

  .island--hours {
    left: -12px;
  }

  .island--place {
    right: -12px;
  }
}

@media (max-width: 900px) {
  :root {
    --header: 68px;
  }

  .site-header {
    gap: 12px;
    padding: 0 18px;
  }

  .brand {
    padding-left: 98px;
  }

  .brand-bubble {
    width: 86px;
    height: 86px;
    top: 0;
  }

  .brand-bubble img {
    width: 78px;
    height: 78px;
  }

  .brand-text small {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .site-user {
    order: 3;
    margin-left: 0;
  }

  .site-nav {
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(16, 16, 16, 0.4);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero,
  .section {
    min-height: 0;
    padding: 56px 0;
  }

  .hero {
    padding-top: 72px;
  }

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

  .gallery {
    margin-top: 10px;
  }

  .island--hours {
    top: -14px;
    left: 8px;
  }

  .island--place {
    bottom: -14px;
    right: 8px;
  }

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

  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .galeria-tienda {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-cols {
    margin-left: 0;
    max-width: none;
  }

  .auth-page {
    width: calc(100% - 32px);
    padding: 16px 0 24px;
    gap: 16px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  /* En móvil el formulario va primero: quien entra a /login quiere ingresar, no leer. */
  .auth-panel {
    order: -1;
  }

  .auth-story,
  .auth-panel {
    border-radius: 22px;
  }

  .auth-back {
    padding: 7px 12px;
    font-size: 12.5px;
  }

  .auth-photo {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
  }

  .auth-story-body {
    padding: 20px 22px 22px;
  }

  .auth-panel {
    padding: 28px 22px 30px;
  }
}

@media (max-width: 620px) {
  .wrap,
  .section > .wrap {
    width: calc(100% - 36px);
  }

  .hero,
  .section {
    padding: 44px 0;
  }

  h1 {
    font-size: clamp(32px, 9.6vw, 44px);
  }

  .section h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .lead {
    font-size: 16px;
  }

  .actions .btn {
    flex: 1;
  }

  .gallery-main,
  .gallery-main > img {
    border-radius: 18px;
  }

  .island {
    padding: 10px 12px;
  }

  .island--hours {
    left: 6px;
    top: -12px;
    min-width: 186px;
  }

  .island--place {
    right: 6px;
    bottom: -12px;
  }

  .contact-form {
    padding: 20px;
  }

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

  .galeria-tienda {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    gap: 24px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bubble img {
    width: 108px;
    height: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
