/* ============================================================
   Spa'Perros y Spa'Gatos — sistema visual compartido
   Tokens extraídos del diseño original (.dc). Estética editorial
   vintage: Libre Caslon Display + Spectral, crema/oliva/terracota/
   verde, sombras duras tipo sello.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..700&family=Manrope:wght@300..700&display=swap');
:root {
  --cream: #F1E8D7;
  --cream-2: #F6F0DF;
  --cream-3: #FBF7EC;
  --sand: #E8DCC3;
  --paper: #EFE6CF;
  --ink: #2A2017;
  --ink-2: #4A3C2C;
  --ink-3: #5B4A37;
  --muted: #6B5942;
  --gold: #9A8038;
  --gold-2: #7E6A30;
  --gold-soft: #C2A75A;
  --terra: #AE5230;
  --green: #3C6E47;
  --green-dark: #234029;
  --line: rgba(42, 32, 23, .18);
  --line-2: rgba(42, 32, 23, .25);
  --sand-2: #D8C9A4;
  --label-gold: #9A8867;
  --green-pale: #BFE0C5;
  --serif: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
/* El atributo [hidden] debe ganar a cualquier display: de las clases (paneles/modales/forms colapsables). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
::selection { background: var(--gold); color: var(--cream); }
img { max-width: 100%; }
a { color: inherit; }
/* SIN SERIF: fuerza la tipografía sans, ganando a estilos inline y <style> viejos */
body { font-family: var(--body) !important; }
[style*="Libre Caslon"] { font-family: var(--serif) !important; }
[style*="Spectral"] { font-family: var(--body) !important; }

@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Botón WhatsApp flotante (compartido) */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green); color: var(--cream);
  text-decoration: none; font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 18px; border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink), 0 10px 30px -10px rgba(42, 32, 23, .6);
  transition: transform .12s ease, box-shadow .12s ease;
}
.wa-float:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink), 0 14px 34px -12px rgba(42, 32, 23, .6); }
.wa-float .wa-ico { font-size: 18px; }
.wa-float .wa-label { white-space: nowrap; }
@media (max-width: 560px) { .wa-float .wa-label { display: none; } .wa-float { padding: 14px; } }

/* ============================================================
   PÁGINA: Menú digital de servicios (/menu)
   ============================================================ */
.menu-wrap { max-width: 1020px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 80px; }
.menu-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.menu-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.menu-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 58px); line-height: 1; margin: 0 0 14px; }
.menu-sub { font-size: clamp(15px, 2.1vw, 18px); color: var(--ink-2); max-width: 52ch; margin: 0 auto; line-height: 1.55; }

.menu-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 30px; }
.menu-cat {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--cream-2); color: var(--ink-2); border: 1px solid var(--line-2);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.menu-cat:hover { border-color: var(--gold); color: var(--ink); }
.menu-cat.active { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: 2px 2px 0 var(--gold); }

.menu-card {
  background: var(--cream-2); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  box-shadow: 0 14px 34px -26px rgba(42, 32, 23, .7); margin-bottom: 22px; overflow: hidden;
}
.menu-card > .menu-card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 18px 22px 6px; border-bottom: 1px dashed var(--line-2);
}
.menu-card-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3.4vw, 30px); margin: 0; }
.menu-card-head .menu-card-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }

.menu-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px;
  border-bottom: 1px solid var(--line); position: relative;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .mi-emoji { font-size: 26px; width: 38px; flex: none; text-align: center; filter: sepia(.3); }
.menu-item .mi-body { flex: 1; min-width: 0; }
.menu-item .mi-name { display: block; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.menu-item .mi-dur { display: block; font-family: var(--mono); font-size: 12px; color: var(--gold-2); margin-top: 3px; }
/* línea punteada de carta de restaurante entre nombre y precio */
.menu-item .mi-lead { flex: 1; border-bottom: 1.5px dotted rgba(42, 32, 23, .25); margin: 0 4px 6px; min-width: 18px; align-self: flex-end; }
.menu-item .mi-price { font-family: var(--serif); font-size: clamp(20px, 3vw, 26px); color: var(--green); white-space: nowrap; }
.menu-item .mi-cta {
  margin-left: 12px; flex: none; text-decoration: none; background: var(--green); color: var(--cream);
  font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 2px; box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.menu-item .mi-cta:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 560px) {
  .menu-item { flex-wrap: wrap; }
  .menu-item .mi-lead { display: none; }
  .menu-item .mi-cta { margin-left: 0; }
}

.menu-note { font-family: var(--mono); font-size: 11.5px; color: var(--gold-2); text-align: center; margin-top: 18px; line-height: 1.6; }
.menu-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

.menu-skeleton { height: 78px; background: linear-gradient(90deg, var(--cream-2), var(--paper), var(--cream-2)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border: 1px solid var(--line); margin-bottom: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================
   PÁGINA: Acceso del dueño (/login)
   ============================================================ */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--cream-2); border: 1px solid rgba(42, 32, 23, .16); box-shadow: 0 24px 60px -30px rgba(42, 32, 23, .55); border-radius: 4px; padding: clamp(28px, 5vw, 40px) clamp(24px, 5vw, 34px); text-align: center; }
.login-logo { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; margin: 0 auto 18px; display: block; }
.login-title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 4vw, 30px); margin: 0 0 8px; }
.login-sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--gold-2); margin: 0 0 28px; }
.login-field { text-align: left; margin-bottom: 18px; }
.login-field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.login-field input { width: 100%; padding: 12px 14px; background: var(--cream-3); border: 1px solid var(--line-2); border-radius: 2px; font-family: var(--body); font-size: 15.5px; color: var(--ink); }
.login-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.login-error { color: var(--terra); font-size: 13px; margin: -8px 0 16px; text-align: left; }
.login-error[hidden] { display: none; }
.login-submit { width: 100%; background: var(--green); color: var(--cream); border: none; font-family: var(--body); font-weight: 600; font-size: 16px; padding: 13px; border-radius: 2px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.login-submit:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.login-submit:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--ink); }
.login-submit:disabled { opacity: .65; cursor: default; transform: none; box-shadow: 2px 2px 0 var(--ink); }
.login-back { display: inline-block; margin-top: 22px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.login-back:hover { color: var(--ink); border-color: var(--gold); }

/* ============================================================
   PÁGINA: Panel del negocio (/panel)
   ============================================================ */
.panel-shell { display: flex; flex-wrap: wrap; min-height: 100vh; }

/* --- Sidebar --- */
.panel-sidebar { flex: 1 1 230px; max-width: 260px; background: var(--ink); color: var(--sand-2); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; }
.panel-sidebar-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid rgba(216, 201, 164, .18); }
.panel-logo { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.panel-brand { font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--cream); }
.panel-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.panel-nav { display: flex; flex-direction: column; gap: 6px; margin: 18px 0; flex: 1; }
.panel-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: none; color: var(--sand-2); font-family: var(--body); font-size: 14.5px; padding: 10px 12px; border-radius: 3px; cursor: pointer; transition: background .15s, color .15s; }
.panel-nav-item:hover { background: rgba(154, 128, 56, .18); color: var(--cream); }
.panel-nav-item.active { background: var(--gold); color: var(--ink); font-weight: 700; }
.panel-nav-item.active::after { content: '●'; margin-left: auto; font-size: 8px; }
.panel-nav-icon { font-size: 17px; width: 20px; text-align: center; flex: none; }
.panel-sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(216, 201, 164, .18); display: flex; flex-direction: column; gap: 12px; }
.panel-site-link { color: var(--green-pale); font-size: 13.5px; text-decoration: none; font-weight: 600; }
.panel-site-link:hover { text-decoration: underline; }
.panel-user { display: flex; align-items: center; gap: 10px; }
.panel-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); flex: none; }
.panel-user-name { font-size: 13.5px; color: var(--cream); font-weight: 600; }
.panel-user-role { font-size: 11.5px; color: var(--sand-2); }
.panel-logout { background: transparent; border: 1px solid rgba(216, 201, 164, .3); color: var(--sand-2); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px; border-radius: 2px; cursor: pointer; transition: all .15s; }
.panel-logout:hover { border-color: var(--terra); color: var(--terra); }

/* --- Main / topbar --- */
.panel-main { flex: 999 1 560px; display: flex; flex-direction: column; min-width: 0; }
.panel-topbar { position: sticky; top: 0; z-index: 20; background: rgba(246, 240, 223, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 18px clamp(16px, 3vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel-topbar h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 30px); margin: 0; }
.panel-topbar-date { font-family: var(--mono); font-size: 11.5px; color: var(--label-gold); margin-top: 4px; }
.panel-topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-search { background: var(--cream-3); border: 1px solid var(--line-2); border-radius: 2px; padding: 10px 14px; font-family: var(--body); font-size: 14px; color: var(--ink); min-width: 200px; }
.panel-search:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.panel-content { padding: clamp(18px, 3vw, 32px); flex: 1; }

/* --- Botones compartidos --- */
.panel-btn { background: var(--green); color: var(--cream); border: none; font-family: var(--body); font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: 2px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap; }
.panel-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.panel-btn:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--ink); }
.panel-btn-dark { background: var(--ink); color: var(--cream); border: none; font-family: var(--body); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 2px; cursor: pointer; box-shadow: 2px 2px 0 var(--gold); transition: transform .12s ease, box-shadow .12s ease; }
.panel-btn-dark:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--gold); }
.panel-btn-outline { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-family: var(--body); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 2px; cursor: pointer; transition: all .15s; }
.panel-btn-outline:hover { border-color: var(--gold); color: var(--ink); }
.panel-btn-sm { font-size: 12.5px; padding: 7px 12px; }
.panel-btn-wa { background: var(--green); color: var(--cream); text-decoration: none; border-radius: 2px; box-shadow: 2px 2px 0 var(--ink); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .12s ease, box-shadow .12s ease; }
.panel-btn-wa:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

/* --- KPI (Resumen) --- */
.panel-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.panel-kpi-card { background: var(--cream-2); border: 1px solid var(--line); border-top: 4px solid; box-shadow: 0 14px 34px -26px rgba(42, 32, 23, .7); padding: 18px; }
.panel-kpi-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--label-gold); margin-bottom: 10px; }
.panel-kpi-value { font-family: var(--serif); font-size: 30px; margin-bottom: 6px; }
.panel-kpi-delta { font-size: 12.5px; font-weight: 600; }

/* --- Tarjetas genéricas / gráfica / agenda --- */
.panel-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.panel-card { background: var(--cream-2); border: 1px solid var(--line); box-shadow: 0 14px 34px -26px rgba(42, 32, 23, .7); padding: 20px; }
.panel-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-card-head h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0; }
.panel-card-head span { font-family: var(--mono); font-size: 11px; color: var(--label-gold); }

.panel-chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; border-bottom: 1.5px solid rgba(42, 32, 23, .25); }
.panel-chart-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.panel-chart-tip { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.panel-chart-bar { width: 100%; max-width: 34px; min-height: 3px; border: 1px solid; border-radius: 2px 2px 0 0; }
.panel-chart-labels { display: flex; gap: 10px; margin-top: 8px; }
.panel-chart-labels span { flex: 1 1 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--label-gold); }

.panel-agenda-list { display: flex; flex-direction: column; }
.panel-agenda-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.panel-agenda-row:last-child { border-bottom: none; }
.panel-agenda-time { font-family: var(--mono); font-size: 13px; color: var(--gold-2); width: 62px; flex: none; }
.panel-agenda-info { flex: 1; min-width: 0; font-size: 14.5px; }
.panel-agenda-pet { font-weight: 600; }
.panel-agenda-service { color: var(--label-gold); }

/* --- Chips de estado (color inline por dato) --- */
.panel-chip { display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 12px; padding: 7px 14px; cursor: pointer; white-space: nowrap; transition: transform .12s ease; }
.panel-chip:hover { transform: scale(1.05); }
.panel-chip-tag { cursor: default; font-size: 11.5px; }
.panel-chip-tag:hover { transform: none; }

/* --- Reservas --- */
.panel-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--cream-3); border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 20px; font-size: 13.5px; color: var(--ink-2); }
.panel-table-wrap { overflow-x: auto; background: var(--cream-2); border: 1px solid var(--line); box-shadow: 0 14px 34px -26px rgba(42, 32, 23, .7); }
.panel-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.panel-table thead { background: var(--ink); color: var(--sand-2); }
.panel-table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 14px 16px; font-weight: 500; }
.panel-table th.panel-cell-right, .panel-table td.panel-cell-right { text-align: right; }
.panel-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.panel-table tbody tr:last-child td { border-bottom: none; }
.panel-cell-strong { font-weight: 600; }
.panel-cell-muted { color: var(--label-gold); font-size: 12.5px; }
.panel-cell-mono { font-family: var(--mono); font-size: 13px; }
.panel-empty { padding: 32px; text-align: center; color: var(--ink-2); font-size: 14px; }

/* --- Clientes --- */
.panel-clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.panel-client-card { background: var(--cream-2); border: 1px solid var(--line); box-shadow: 0 14px 34px -26px rgba(42, 32, 23, .7); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.panel-client-top { display: flex; align-items: center; gap: 12px; }
.panel-client-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; flex: none; }
.panel-client-id { flex: 1; min-width: 0; }
.panel-client-name { font-size: 16px; font-weight: 600; }
.panel-client-phone { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.panel-client-pets .panel-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--label-gold); margin-bottom: 4px; }
.panel-client-visit { font-size: 13px; color: var(--ink-2); }
.panel-client-spent { color: var(--green); font-weight: 700; }
.panel-client-actions { display: flex; gap: 8px; }
.panel-client-actions .panel-btn-sm { flex: 1; text-align: center; }

/* --- Facturación --- */
.panel-bill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.panel-bill-card { background: var(--cream-2); border: 1px solid var(--line); border-top: 4px solid; box-shadow: 0 14px 34px -26px rgba(42, 32, 23, .7); padding: 18px; }
.panel-bill-card.is-dark { background: var(--ink); color: var(--cream); }
.panel-bill-card.is-dark .panel-kpi-label { color: var(--sand-2); }
.panel-bill-value { font-family: var(--serif); font-size: 28px; }
.panel-bill-dashed { background: transparent; border: 1.5px dashed var(--line-2); display: flex; align-items: center; justify-content: center; }

/* --- Servicios --- */
.panel-services-list { max-width: 640px; background: var(--cream-2); border: 1px solid var(--line); box-shadow: 0 14px 34px -26px rgba(42, 32, 23, .7); }
.panel-service-row { border-bottom: 1px solid var(--line); padding: 0 18px; }
.panel-service-row:last-child { border-bottom: none; }
.panel-service-view { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.panel-service-emoji { font-size: 22px; width: 30px; text-align: center; flex: none; }
.panel-service-info { flex: 1; min-width: 0; }
.panel-service-name { font-weight: 600; font-size: 15px; }
.panel-service-duration { font-family: var(--mono); font-size: 12px; color: var(--label-gold); margin-top: 2px; }
.panel-service-price { font-family: var(--serif); font-size: 20px; color: var(--green); }
.panel-service-edit { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 16px; align-items: flex-end; }
.panel-service-edit label { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 4px; }
.panel-service-edit input, .panel-service-edit select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--cream-3); font-family: var(--body); font-size: 13.5px; }
.panel-note { font-family: var(--mono); font-size: 11.5px; color: var(--label-gold); margin: 14px 0; line-height: 1.6; }

/* --- Mini-forms / modal --- */
.panel-modal-overlay { position: fixed; inset: 0; background: rgba(42, 32, 23, .55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.panel-modal-overlay[hidden] { display: none; }
.panel-modal { background: var(--cream-2); border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(42, 32, 23, .6); border-radius: 4px; padding: 26px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; }
.panel-modal h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 18px; }
.panel-form-field { margin-bottom: 14px; }
.panel-form-field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.panel-form-field input, .panel-form-field select, .panel-form-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--cream-3); font-family: var(--body); font-size: 14px; color: var(--ink); }
.panel-form-row { display: flex; gap: 10px; }
.panel-form-row .panel-form-field { flex: 1; }
.panel-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.panel-form-cancel { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-family: var(--body); font-weight: 600; padding: 10px 16px; border-radius: 2px; cursor: pointer; }
.panel-form-cancel:hover { border-color: var(--gold); color: var(--ink); }

/* --- Responsive --- */
@media (max-width: 860px) {
  .panel-shell { flex-direction: column; }
  .panel-sidebar { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; }
  .panel-sidebar-head { flex-direction: row; align-items: center; border-bottom: none; padding-bottom: 0; flex: 1 1 auto; }
  .panel-nav { flex-direction: row; overflow-x: auto; flex: 1 1 100%; order: 3; margin: 12px 0 0; }
  .panel-nav-item { width: auto; flex: none; }
  .panel-nav-item.active::after { display: none; }
  .panel-sidebar-foot { flex-direction: row; align-items: center; margin-top: 0; padding-top: 0; border-top: none; order: 2; gap: 14px; flex: none; }
  .panel-user-role { display: none; }
}
@media (max-width: 520px) {
  .panel-topbar-actions { width: 100%; }
  .panel-search { flex: 1; min-width: 0; }
}

/* ============================================================
   MOTION — capa de movimiento (transiciones, entradas, hover)
   Principios: solo transform/opacity; curvas suaves; respeta
   prefers-reduced-motion. No toca markup ni JS.
   ============================================================ */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Entrada suave de la página */
body { animation: pageIn .45s ease both; }

/* Transiciones base en interactivos (aditivo; no pisa transform inline) */
a, button, input, select,
.menu-cat, .mi-cta,
.panel-nav-item, .panel-chip, .panel-btn, .panel-btn-sm, .panel-btn-dark, .panel-btn-outline, .panel-btn-wa,
.panel-card, .panel-kpi-card, .panel-client-card, .panel-bill-card, .panel-service-row, .panel-table tbody tr,
#servicios article, figure, blockquote {
  transition: color .2s ease, background-color .22s ease, border-color .22s ease,
              box-shadow .25s var(--ease), transform .22s var(--ease);
}

/* Press feedback (botones sin JS de hover propio) */
.menu-cat:active, .mi-cta:active,
.panel-btn:active, .panel-btn-sm:active, .panel-btn-dark:active, .panel-btn-outline:active,
.panel-btn-wa:active, .panel-nav-item:active { transform: translateY(1px); }

/* ---------- Landing ---------- */
header nav a:hover { color: var(--ink); }
#servicios article:hover { transform: translateY(-6px); box-shadow: 0 22px 46px -22px rgba(42, 32, 23, .6); }
figure { transition: transform .25s var(--ease); }
figure:hover { transform: translateY(-4px) rotate(-.6deg); }
blockquote:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -24px rgba(42, 32, 23, .55); }

/* ---------- Menú ---------- */
#menu-list .menu-card { animation: fadeUp .55s var(--ease) both; }
#menu-list .menu-card:nth-child(2) { animation-delay: .08s; }
#menu-list .menu-card:nth-child(3) { animation-delay: .16s; }
#menu-list .menu-card:nth-child(4) { animation-delay: .24s; }
#menu-list .menu-card:nth-child(5) { animation-delay: .32s; }
.menu-item .mi-emoji { transition: transform .25s var(--ease); }
.menu-item:hover { background: rgba(154, 128, 56, .07); }
.menu-item:hover .mi-emoji { transform: scale(1.14) rotate(-5deg); }
.menu-cat:hover { transform: translateY(-1px); }

/* ---------- Panel ---------- */
.panel-view:not([hidden]) { animation: fadeIn .34s ease both; }
.panel-kpi-card, .panel-bill-card { animation: fadeUp .5s var(--ease) both; }
.panel-kpi-grid .panel-kpi-card:nth-child(2) { animation-delay: .07s; }
.panel-kpi-grid .panel-kpi-card:nth-child(3) { animation-delay: .14s; }
.panel-kpi-grid .panel-kpi-card:nth-child(4) { animation-delay: .21s; }
.panel-card { animation: fadeUp .55s var(--ease) both; animation-delay: .1s; }
.panel-client-card { animation: fadeUp .5s var(--ease) both; }
.panel-chart-bar { transform-origin: bottom center; animation: barGrow .7s var(--ease-out) both; }

.panel-nav-item:hover { background: rgba(216, 201, 164, .1); }
.panel-kpi-card:hover, .panel-client-card:hover, .panel-bill-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(42, 32, 23, .5); }
.panel-table tbody tr:hover { background: rgba(154, 128, 56, .06); }
.panel-chip:hover { transform: translateY(-1px) scale(1.03); }
.panel-btn:hover, .panel-btn-dark:hover, .panel-btn-wa:hover { transform: translateY(-2px); }
.panel-service-row:hover { background: rgba(154, 128, 56, .04); }

/* Modal */
.panel-modal-overlay:not([hidden]) { animation: fadeIn .2s ease both; }
.panel-modal { animation: pop .28s var(--ease-out) both; }

/* ---------- Respeta prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   LANDING — profundidad de fondo y más vida (scope .home)
   Blooms de color suaves + viñeta fijos (parallax por scroll),
   respiración del logo, brillo del título, reveals con scale.
   ============================================================ */
body.home { background-attachment: fixed; }

/* Capa 1: blooms de color intensos que dan profundidad (detrás del contenido) */
body.home::before {
  content: ''; position: fixed; inset: -14%; z-index: -2; pointer-events: none; will-change: transform;
  background:
    radial-gradient(40% 32% at 10% 4%,  rgba(154, 128, 56, .40), transparent 66%),
    radial-gradient(38% 34% at 90% 10%, rgba(174, 82, 48, .32),  transparent 66%),
    radial-gradient(50% 46% at 84% 86%, rgba(60, 110, 71, .36),  transparent 68%),
    radial-gradient(46% 42% at 14% 94%, rgba(154, 128, 56, .32), transparent 68%);
  filter: blur(8px);
  animation: bloomDrift 17s ease-in-out infinite alternate;
}
/* Capa 2: viñeta para dar volumen a los bordes */
body.home::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 28%, transparent 46%, rgba(42, 32, 23, .18) 100%);
}
@keyframes bloomDrift {
  from { transform: translate3d(-3.2%, -2.2%, 0) scale(1.02) rotate(-1.2deg); }
  to   { transform: translate3d(3.6%, 2.8%, 0) scale(1.16) rotate(1.6deg); }
}

/* Hero: el logo respira, el título con brillo cálido más marcado */
body.home #inicio img { animation: floaty 6.5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(154, 128, 56, 0); }
  50%      { text-shadow: 0 2px 34px rgba(154, 128, 56, .6); }
}

/* Reveals de la landing con más carácter (fade + scale) */
body.home [data-reveal] { transform: translateY(30px) scale(.975); transition-duration: .85s; }
body.home [data-reveal].is-in { transform: none; }

/* ============================================================
   HERO WORD-POP — cada palabra del H1 entra con rebote (idea
   tomada del sistema de animación CozyPaws, adaptada a la marca).
   ============================================================ */
@keyframes wordPop {
  0%   { opacity: 0; transform: translateY(58px) scale(.7) rotate(-4deg); filter: blur(8px); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.03) rotate(1deg); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
body.home #inicio h1 .hw {
  display: inline-block; opacity: 0;
  animation: wordPop .9s cubic-bezier(.34, 1.56, .64, 1) both;
}
/* Stagger por orden de aparición (los <br> se ignoran con nth-of-type) */
body.home #inicio h1 span:nth-of-type(1) { animation-delay: .12s; }
body.home #inicio h1 span:nth-of-type(2) { animation-delay: .21s; }
body.home #inicio h1 span:nth-of-type(3) { animation-delay: .30s; }
body.home #inicio h1 span:nth-of-type(4) { animation-delay: .39s; }
body.home #inicio h1 span:nth-of-type(5) { animation-delay: .48s; }
body.home #inicio h1 span:nth-of-type(6) { animation-delay: .57s; }
body.home #inicio h1 span:nth-of-type(7) { animation-delay: .66s; }
body.home #inicio h1 span:nth-of-type(8) { animation-delay: .75s; }
/* El brillo cálido solo en las palabras doradas, tras el pop */
body.home #inicio h1 .hl { animation: wordPop .9s cubic-bezier(.34, 1.56, .64, 1) both, glowPulse 4.2s ease-in-out 1.1s infinite; }

/* ============================================================
   STAGGER — grids cuyos hijos [data-reveal] entran en cascada.
   ============================================================ */
body.home .stagger > [data-reveal]:nth-child(1) { transition-delay: .00s; }
body.home .stagger > [data-reveal]:nth-child(2) { transition-delay: .10s; }
body.home .stagger > [data-reveal]:nth-child(3) { transition-delay: .20s; }
body.home .stagger > [data-reveal]:nth-child(4) { transition-delay: .30s; }
body.home .stagger > [data-reveal]:nth-child(5) { transition-delay: .40s; }
body.home .stagger > [data-reveal]:nth-child(6) { transition-delay: .50s; }

/* PHOTO-REVEAL — fotos suben con más recorrido y escala (galería) */
body.home [data-reveal].pr { transform: translateY(64px) scale(1.05); transition-duration: 1.05s; }
body.home [data-reveal].pr.is-in { transform: none; }
body.home [data-reveal].pr { transition-timing-function: cubic-bezier(.16, 1, .3, 1); }

@media (prefers-reduced-motion: reduce) {
  body.home #inicio h1 .hw, body.home #inicio h1 .hl { animation: none; opacity: 1; }
  body.home .stagger > [data-reveal] { transition-delay: 0s; }
}

/* ============================================================
   HERO COMPUESTO (.hx) — composición estilo "CozyPaws" adaptada
   a la marca: titular grande centrado, tarjetas flotantes
   (servicio + reseñas) y franja de 3 imágenes al pie con overlays.
   Paleta de marca (crema/verde/oro/terracota), sin serif.
   ============================================================ */
.hx { position: relative; max-width: 1500px; margin: 0 auto; padding: clamp(24px,4vw,44px) 0 0; overflow: hidden; }
.hx-top {
  position: relative; max-width: 1180px; margin: 0 auto;
  padding: clamp(8px,2vw,20px) clamp(16px,4vw,40px) clamp(20px,4vw,44px);
  min-height: clamp(300px,40vw,440px); display: flex; align-items: center; justify-content: center;
}
.hx-title {
  font-family: var(--serif); font-weight: 500; text-align: center; margin: 0;
  font-size: clamp(44px,8.2vw,116px); line-height: .92; letter-spacing: -.02em; color: var(--ink);
  max-width: 15ch;
}
.hx-title .hl { color: var(--gold); }

/* Tarjetas flotantes (desktop: absolutas a los lados) */
.hx-fcard { width: clamp(168px,14vw,216px); text-align: center; }
.hx-fcard.left  { position: absolute; top: clamp(30px,4vw,54px); left: clamp(16px,4vw,40px); z-index: 5; }
.hx-fcard.right { position: absolute; top: clamp(30px,4vw,54px); right: clamp(16px,4vw,40px); z-index: 5; }
.hx-media {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 22px 44px -26px rgba(42,32,23,.6); display: flex; align-items: center; justify-content: center;
}
.hx-fcard .hx-media { aspect-ratio: 4/5; background: var(--sand); }
.hx-circle {
  position: absolute; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #F4EEDD; background: var(--green); border: none; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink); transition: transform .14s ease, box-shadow .14s ease; text-decoration: none;
  font-size: 18px;
}
.hx-circle:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.hx-circle.br { bottom: 10px; right: 10px; }
.hx-circle.center { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; }
.hx-circle.center:hover { transform: translate(-50%,-50%) scale(1.06); }
.hx-fcap { margin: 12px 2px 0; }
.hx-fcap .k { display: block; font-size: 13px; color: var(--muted); }
.hx-fcap .v { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(17px,1.4vw,21px); color: var(--green-dark); margin-top: 2px; }
.hx-fcap.rc { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* Franja de 3 imágenes al pie */
.hx-strip { display: flex; align-items: flex-end; width: 100%; gap: 0; }
.hx-img { position: relative; margin: 0; flex: 1; overflow: hidden; }
.hx-img.c { flex: 1.265; }
.hx-panel {
  width: 100%; display: flex; align-items: center; justify-content: center; text-align: center;
  border-top: 1px solid var(--line); border-right: 1px solid rgba(42,32,23,.10);
}
.hx-img.l .hx-panel { height: clamp(320px,32vw,500px);  background: linear-gradient(160deg, #EBDFC6, var(--sand-2)); }
.hx-img.c .hx-panel { height: clamp(360px,36vw,560px);  background: var(--green-dark); }
.hx-img.r .hx-panel { height: clamp(320px,32vw,500px);  background: linear-gradient(200deg, #E8CFB6, #D8B48C); border-right: none; }
.hx-img.c .hx-panel img.photo { width: 100%; height: 100%; border-radius: 0; box-shadow: none; object-fit: cover; }
.hx-img .ph { font-size: clamp(40px,6vw,80px); }

/* Overlays sobre las imágenes */
.hx-ov { position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(16px,3.4vw,40px); z-index: 3; }
/* Chips laterales anclados a su esquina inferior (no centrados) */
.hx-img.l .hx-ov { left: clamp(14px,1.8vw,26px); right: auto; transform: none; }
.hx-img.r .hx-ov { right: clamp(14px,1.8vw,26px); left: auto; transform: none; }
.hx-stat {
  display: flex; align-items: center; gap: 11px; background: rgba(251,247,236,.94); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 16px; padding: 9px 16px 9px 9px; box-shadow: 0 14px 28px -18px rgba(42,32,23,.6);
  width: max-content; max-width: 250px;
}
.hx-avstack { display: flex; }
.hx-avstack span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--cream-3); margin-left: -10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #F4EEDD; overflow: hidden; }
.hx-avstack span:first-child { margin-left: 0; }
.hx-stat .lbl { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.hx-stat .lbl b { display: block; font-family: var(--serif); font-size: 15px; color: var(--ink); white-space: nowrap; margin-bottom: 1px; }
.hx-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--terra); color: #F4EEDD; text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: clamp(14px,1.2vw,15.5px); padding: 13px 22px; border-radius: 999px;
  box-shadow: 0 14px 26px -14px rgba(174,82,48,.8); transition: transform .14s ease;
}
.hx-pill:hover { transform: translateY(-2px); }
.hx-ov.center-cta { left: 0; right: 0; transform: none; text-align: center; padding: 0 clamp(14px,3vw,28px); }
.hx-ovtitle { position: absolute; left: 0; right: 0; bottom: calc(clamp(16px,3.4vw,40px) + 66px); z-index: 3; padding: 0 clamp(14px,3vw,28px); text-align: center; color: #F4EEDD; font-family: var(--serif); font-weight: 600; font-size: clamp(17px,1.9vw,25px); line-height: 1.15; text-shadow: 0 2px 14px rgba(0,0,0,.45); }

/* Sello con el logo — presencia de marca prominente sobre la foto central */
.hx-seal {
  position: absolute; top: clamp(18px,3vw,34px); left: 50%; transform: translateX(-50%); z-index: 4;
  width: clamp(78px,9vw,116px); height: clamp(78px,9vw,116px); border-radius: 50%;
  background: var(--cream-3); border: 2px solid var(--gold-soft);
  box-shadow: 0 12px 28px -12px rgba(42,32,23,.7); display: flex; align-items: center; justify-content: center;
}
.hx-seal img { width: 86%; height: 86%; border-radius: 50%; object-fit: cover; display: block; }

/* Fotos reales dentro de tarjetas y franja (llenan el marco) */
.hx-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-panel img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Scrim para que el titular/pill blancos se lean sobre la foto central */
.hx-img.c { border-radius: 0; }
.hx-img.c::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(35,64,41,.92) 0%, rgba(35,64,41,.35) 34%, transparent 60%);
}
.hx-img.l::after, .hx-img.r::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(42,32,23,.42), transparent 46%);
}

/* Word-pop también aquí (el H1 no está en #inicio h1 sino .hx-title) */
body.home .hx-title .hw { display: inline-block; opacity: 0; animation: wordPop .9s cubic-bezier(.34,1.56,.64,1) both; }
body.home .hx-title span:nth-of-type(1) { animation-delay: .12s; }
body.home .hx-title span:nth-of-type(2) { animation-delay: .21s; }
body.home .hx-title span:nth-of-type(3) { animation-delay: .30s; }
body.home .hx-title span:nth-of-type(4) { animation-delay: .39s; }
body.home .hx-title span:nth-of-type(5) { animation-delay: .48s; }
body.home .hx-fcard, body.home .hx-img { opacity: 0; transform: translateY(28px); animation: fadeUp .8s ease .6s both; }
body.home .hx-fcard.right { animation-delay: .72s; }
body.home .hx-img.l { animation-delay: .66s; }
body.home .hx-img.c { animation-delay: .58s; }
body.home .hx-img.r { animation-delay: .74s; }
body.home .hx-ov, body.home .hx-ovtitle { opacity: 0; animation: fadeUp .7s ease 1.05s both; }

/* Icono de beneficio en chips de overlay */
.hx-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--terra); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }

/* ============================================================
   MOTION EXTRA (.hx) — vida continua + feedback al hover.
   Idle en elementos hijos (no chocan con la entrada fadeUp del padre).
   ============================================================ */
/* Tarjetas laterales: flotan suave; su foto hace zoom al pasar el mouse */
.hx-fcard .hx-media { animation: floaty 6.5s ease-in-out infinite; }
.hx-fcard.right .hx-media { animation-duration: 7.4s; }
.hx-fcard .hx-media img { transition: transform .7s cubic-bezier(.16,1,.3,1); }
.hx-fcard:hover .hx-media img { transform: scale(1.07); }
.hx-fcard { transition: filter .3s ease; }
.hx-fcard:hover { filter: drop-shadow(0 18px 26px rgba(42,32,23,.28)); }

/* Fotos de la franja: zoom lento al hover (bajo el scrim y overlays) */
.hx-img .photo { transition: transform .9s cubic-bezier(.16,1,.3,1); will-change: transform; }
.hx-img:hover .photo { transform: scale(1.06); }

/* Botón play: anillo que pulsa */
.hx-circle.center::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--green);
  animation: pulseRing 2.1s ease-out infinite; pointer-events: none;
}
@keyframes pulseRing { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* Pill: barrido de brillo al hover */
.hx-pill { position: relative; overflow: hidden; }
.hx-pill::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg);
  transition: left .6s ease;
}
.hx-pill:hover::after { left: 130%; }

/* Sello: respira */
.hx-seal img { animation: sealBreath 5.5s ease-in-out infinite; }
@keyframes sealBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.055); } }

/* Chips de overlay: entran con un leve rebote y flotan */
.hx-stat { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.hx-img:hover .hx-stat { transform: translateY(-3px); }

/* Responsive: ≤900px las tarjetas dejan de flotar y van en fila bajo el título */
@media (max-width: 900px) {
  .hx-top { flex-flow: row wrap; justify-content: center; align-items: flex-start; gap: 16px; min-height: 0; padding-top: 30px; }
  .hx-fcard.left, .hx-fcard.right { position: static; width: clamp(140px,40vw,210px); }
  .hx-title { order: -1; flex-basis: 100%; font-size: clamp(36px,10vw,62px); margin-bottom: 4px; }
}
/* Responsive: ≤640px la franja se apila (fotos apaisadas), overlays a lo ancho */
@media (max-width: 640px) {
  .hx-strip { flex-direction: column; }
  .hx-img, .hx-img.c { flex: none; width: 100%; }
  .hx-img.l .hx-panel, .hx-img.c .hx-panel, .hx-img.r .hx-panel { height: clamp(240px,62vw,380px); }
  .hx-img.c .hx-panel img.photo, .hx-img .photo { object-position: center 35%; }
  .hx-seal { top: 12px; width: 70px; height: 70px; }
  .hx-ovtitle { bottom: calc(clamp(14px,3vw,28px) + 60px); }
  .hx-stat { max-width: 82vw; }
  .hx-panel { border-right: none; border-bottom: 1px solid rgba(42,32,23,.10); }
}
@media (prefers-reduced-motion: reduce) {
  body.home .hx-title .hw, body.home .hx-fcard, body.home .hx-img, body.home .hx-ov, body.home .hx-ovtitle { animation: none; opacity: 1; transform: none; }
  .hx-fcard .hx-media, .hx-seal img, .hx-circle.center::after { animation: none; }
  .hx-fcard:hover .hx-media img, .hx-img:hover .photo, .hx-pill:hover::after { transform: none; }
}

/* Avatar del header: acceso al panel del negocio. Es un enlace real, no adorno. */
.nav-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--terra); color: #F4EEDD;
  display: flex; align-items: center; justify-content: center; flex: none; text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 16px; border: 2px solid var(--gold-soft);
  transition: transform .14s ease, box-shadow .14s ease;
}
.nav-avatar:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(42,32,23,.55); }
.nav-avatar:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
