/* =====================================================================
   RÍO TIENDAS · estilos
   Marca: atardecer en la playa de Ituzaingó (sol naranja, río azul, arena).
   Las tiendas usan las variables --fondo, --tinta, --acento… de su paleta.
   ===================================================================== */
:root {
  --fondo: #FFF8F1; --superficie: #FFFFFF; --tinta: #2B2340; --suave: #6E6578; --acento: #E2683C; --acento2: #F4B26A;
  --banda: #2B2340; --sobre-acento: #FFFFFF; --sobre-banda: #FFFFFF;
  --linea: color-mix(in srgb, var(--tinta) 12%, transparent);
  --sol: #F08A4B; --coral: #E2683C; --rio: #1F6F8B; --arena: #F6EBDD; --ocaso: #2B2340;
  --radio: 16px; --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Fraunces", Georgia, serif; --texto: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--texto); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.12; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.suave { color: var(--suave); }
.num { font-variant-numeric: tabular-nums; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 18px; min-height: 44px; font-weight: 700; text-decoration: none; background: var(--acento); color: var(--sobre-acento); transition: transform 150ms var(--ease), filter 150ms ease; }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.sec { background: transparent; color: var(--tinta); border-color: var(--linea); }
.btn.wa { background: #1A8F49; color: #fff; }
.btn.chico { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.btn.peligro { background: transparent; color: #B3402A; border-color: color-mix(in srgb, #B3402A 40%, transparent); }
@media (hover: hover) and (pointer: fine) { .btn:hover { filter: brightness(1.06); } }

/* Formularios */
.campo { display: grid; gap: 5px; font-weight: 700; font-size: .9rem; min-width: 0; }
.campo input, .campo select, .campo textarea { font-weight: 400; background: var(--superficie); border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
.campo textarea { min-height: 84px; resize: vertical; }
.campo small { font-weight: 400; color: var(--suave); }
.fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.err { color: #B3402A; font-weight: 700; margin: 0; font-size: .92rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: #1E1A2B; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; z-index: 90; pointer-events: none; transition: opacity 200ms ease, transform 200ms var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ================= PÁGINA PRINCIPAL ================= */
.home { background: var(--arena); color: var(--ocaso); }
.home-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, #2B2340 0%, #6B3A5B 38%, #E2683C 72%, #F4B26A 100%); }
.home-hero .wrap { position: relative; z-index: 1; padding-block: 28px 120px; display: grid; gap: 18px; }
.home-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.home-marca { font-family: var(--display); font-weight: 600; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.home-marca .solcito { width: 22px; height: 22px; border-radius: 50%; background: #FFD08A; box-shadow: 0 0 0 4px rgb(255 208 138 / .25); }
.home-hero h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); max-width: 14ch; margin-top: 18px; }
.home-hero p.bajada { margin: 0; max-width: 48ch; font-size: 1.08rem; opacity: .92; }
.home-hero .btn { background: #fff; color: var(--ocaso); }
.home-hero .btn.sec { background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }
.sol { position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -40px; bottom: 40px; background: radial-gradient(circle, #FFE1A8 0%, #FFB86B 55%, rgb(255 184 107 / 0) 70%); }
.olas { position: absolute; left: 0; right: 0; bottom: -2px; height: 110px; }
.home section.bloque { padding-block: 48px 8px; display: grid; gap: 18px; }
.home h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.pasos-home { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: p; }
.pasos-home li { counter-increment: p; background: #fff; border-radius: var(--radio); padding: 18px; display: grid; gap: 6px; }
.pasos-home li::before { content: counter(p); font-family: var(--display); font-size: 1.6rem; color: var(--coral); font-weight: 600; }
.pasos-home span { color: #6E6578; }
.paletas { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.paleta { background: #fff; border-radius: 14px; padding: 10px; display: grid; gap: 8px; border: 2px solid transparent; text-align: left; }
.paleta[aria-pressed="true"] { border-color: var(--acento); }
.paleta .muestras { display: flex; height: 42px; border-radius: 10px; overflow: hidden; }
.paleta .muestras i { flex: 1; }
.paleta b { font-size: .92rem; }
.directorio { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tarjeta-tienda { background: #fff; border-radius: var(--radio); overflow: hidden; text-decoration: none; display: grid; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.tarjeta-tienda .cab { height: 84px; display: flex; align-items: flex-end; padding: 12px; gap: 10px; }
.tarjeta-tienda .logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid #fff; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; overflow: hidden; }
.tarjeta-tienda .cuerpo { padding: 12px 14px 16px; display: grid; gap: 4px; }
.tarjeta-tienda .cuerpo span { color: #6E6578; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) { .tarjeta-tienda:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgb(43 35 64 / .12); } }
.precio-plan { background: #fff; border-radius: var(--radio); padding: 22px; display: grid; gap: 10px; max-width: 520px; }
.precio-plan .monto { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--coral); }
.precio-plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.planes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.plan { background: #fff; border-radius: var(--radio); padding: 18px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--coral); }
.plan:nth-child(2) { border-top-color: var(--rio); } .plan:nth-child(3) { border-top-color: #B07A3E; } .plan:nth-child(4) { border-top-color: #1E8C7A; } .plan:nth-child(5) { border-top-color: #7B5BB5; }
.plan h3 { font-size: 1.35rem; }
.plan-para { color: #6E6578; font-size: .92rem; }
.plan .monto { font-family: var(--display); font-size: 1.9rem; font-weight: 600; color: var(--coral); }
.plan .monto small { font-family: var(--texto); font-size: .9rem; color: #6E6578; font-weight: 500; }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .94rem; }
.plan .fila { margin-top: 4px; }
.plan-tag { justify-self: start; background: var(--arena); color: var(--ocaso); border-radius: 999px; padding: 1px 9px; font-weight: 800; font-size: .74rem; }
.pie-home { background: var(--ocaso); color: #F6EBDD; margin-top: 56px; }
.pie-home .wrap { padding-block: 40px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.pie-home a { color: #FFD08A; font-weight: 700; }

/* ================= TIENDA ================= */
.t-aviso { background: var(--acento); color: var(--sobre-acento); text-align: center; font-weight: 700; font-size: .9rem; padding: 8px 16px; }
.t-cab { background: var(--banda); color: var(--sobre-banda); }
.t-cab .wrap { padding-block: 22px 26px; display: grid; gap: 12px; }
.t-barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.t-marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-logo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: var(--superficie); border: 3px solid color-mix(in srgb, var(--sobre-banda) 30%, transparent); flex: none; display: grid; place-items: center; font-weight: 800; color: var(--acento); font-size: 1.3rem; overflow: hidden; }
.t-marca h1 { font-size: clamp(1.4rem, 5vw, 2rem); overflow-wrap: anywhere; }
.t-marca small { opacity: .8; }
.t-desc { margin: 0; max-width: 60ch; opacity: .9; white-space: pre-line; }
.t-datos { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; opacity: .85; }
.btn-carrito { position: relative; background: var(--superficie); color: var(--tinta); border: 0; border-radius: 999px; padding: 10px 14px; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.btn-carrito { white-space: nowrap; text-decoration: none; flex: none; }
.btn-carrito b { background: var(--acento); color: var(--sobre-acento); border-radius: 999px; padding: 0 8px; font-size: .85rem; }
.t-herr { display: grid; gap: 10px; padding-block: 16px 6px; }
.t-buscar { width: 100%; max-width: 420px; background: var(--superficie); border: 1px solid var(--linea); border-radius: 999px; padding: 10px 16px; min-height: 44px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--linea); background: var(--superficie); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .9rem; color: var(--suave); }
.chip[aria-pressed="true"] { background: var(--acento); color: var(--sobre-acento); border-color: transparent; }
.grilla { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); padding-block: 8px 90px; }
@media (min-width: 700px) { .grilla { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } }
.card { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; cursor: pointer; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.card .foto { position: relative; aspect-ratio: 1; background: color-mix(in srgb, var(--acento2) 25%, var(--superficie)); }
.card .foto img { width: 100%; height: 100%; object-fit: cover; }
.card .etq { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.etq span { background: var(--acento); color: var(--sobre-acento); font-size: .72rem; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.etq span.agotado { background: #555; color: #fff; }
.card .info { padding: 10px 12px 12px; display: grid; gap: 4px; align-content: start; }
.card .cat { font-size: .74rem; color: var(--acento); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.card h3 { font-family: var(--texto); font-size: 1rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.precio { font-weight: 800; font-size: 1.08rem; }
.precio s { color: var(--suave); font-weight: 500; font-size: .85rem; margin-right: 6px; }
.card.off { opacity: .65; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / .08); } }
.vacio { color: var(--suave); text-align: center; padding: 30px 10px; grid-column: 1 / -1; margin: 0; }
.pausada { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.pausada div { display: grid; gap: 12px; max-width: 40ch; }

/* Hojas (producto, carrito, formularios) */
.velo { position: fixed; inset: 0; background: rgb(15 12 25 / .5); z-index: 50; display: grid; align-items: end; justify-items: center; }
@media (min-width: 760px) { .velo { align-items: center; } }
.hoja { background: var(--fondo); color: var(--tinta); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 14px; overscroll-behavior: contain; animation: subir 220ms var(--ease); }
@media (min-width: 760px) { .hoja { border-radius: 20px; } }
@keyframes subir { from { transform: translateY(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .hoja { animation: none; } .btn, .card, .tarjeta-tienda { transition: none; } }
.hoja-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hoja-cab h2 { font-size: 1.3rem; overflow-wrap: anywhere; }
.cerrar { border: 1px solid var(--linea); background: var(--superficie); border-radius: 999px; width: 40px; height: 40px; font-size: 1.2rem; flex: none; }
.galeria { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galeria::-webkit-scrollbar { display: none; }
.galeria img { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--superficie); }
.desc { margin: 0; white-space: pre-line; color: var(--suave); }
.opciones { display: flex; flex-wrap: wrap; gap: 6px; }
.op { border: 1px solid var(--linea); background: var(--superficie); border-radius: 10px; padding: 8px 12px; font-weight: 700; display: grid; text-align: left; }
.op small { font-weight: 500; color: var(--suave); }
.op[aria-pressed="true"] { border-color: var(--acento); box-shadow: inset 0 0 0 1px var(--acento); }
.cant { display: inline-flex; align-items: center; border: 1px solid var(--linea); border-radius: 999px; background: var(--superficie); }
.cant button { border: 0; background: none; width: 38px; height: 38px; font-size: 1.15rem; font-weight: 800; color: var(--acento); }
.cant span { min-width: 26px; text-align: center; font-weight: 800; }
.item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block: 10px; border-top: 1px solid var(--linea); }
.item:first-child { border-top: 0; }
.item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--superficie); }
.item .nom { font-weight: 700; overflow-wrap: anywhere; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; border-top: 2px solid var(--tinta); padding-top: 10px; }
.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radios label { display: flex; gap: 6px; align-items: center; border: 1px solid var(--linea); background: var(--superficie); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.flotante { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; box-shadow: 0 10px 24px rgb(0 0 0 / .2); }
.t-pie { border-top: 1px solid var(--linea); padding-block: 20px 110px; font-size: .85rem; color: var(--suave); display: grid; gap: 6px; }
.t-pie a { font-weight: 700; color: var(--acento); }

/* ---- datos destacados (todas) ---- */
.t-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.t-chips li { border: 1px solid color-mix(in srgb, var(--sobre-banda) 28%, transparent); border-radius: 999px; padding: 4px 11px; font-size: .84rem; font-weight: 700; }
.t-chips.claro li { border-color: var(--linea); background: var(--superficie); color: var(--tinta); }
.etq span.pocos { background: #FFE2A8; color: #6A4200; }
.n-fotos { position: absolute; right: 8px; bottom: 8px; background: rgb(0 0 0 / .55); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.pocos-txt { margin: 0; font-weight: 800; color: #9A5B00; }
.nota { display: block; color: var(--acento); font-weight: 600; }

/* ---- consultorio / servicios ---- */
.s-main { display: grid; gap: 30px; padding-block: 22px 110px; }
.s-bloque { display: grid; gap: 14px; scroll-margin-top: 16px; }
.s-bloque > h2 { font-size: clamp(1.35rem, 4.5vw, 1.8rem); }
.s-lista { display: grid; gap: 10px; }
.s-item { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.s-item.off { opacity: .6; }
.s-txt { display: grid; gap: 3px; min-width: 0; }
.s-txt h3 { font-family: var(--texto); font-size: 1.04rem; font-weight: 800; overflow-wrap: anywhere; }
.s-txt p { margin: 0; color: var(--suave); font-size: .92rem; }
.s-dur { font-size: .8rem; font-weight: 800; color: var(--acento); }
.s-der { display: grid; gap: 6px; justify-items: end; text-align: right; }
.s-sobre { margin: 0; max-width: 65ch; white-space: pre-line; color: var(--suave); }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--superficie); border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--suave); }
.s-cta { background: var(--banda); color: var(--sobre-banda); border-radius: 20px; padding: 22px; }
.s-cta .suave { color: inherit; opacity: .8; margin: 0; }
.s-cta .btn { justify-self: start; }

/* ---- gastronomía ---- */
.t-mesa { background: var(--acento2); color: var(--tinta); padding: 10px 16px; display: flex; gap: 6px 12px; flex-wrap: wrap; justify-content: center; text-align: center; font-size: .92rem; }
.t-mesa b { font-size: 1rem; }
.t-mesa.chico { border-radius: 12px; margin: 0; font-weight: 800; }
.carta { display: grid; gap: 22px; padding-block: 8px 100px; }
.carta-grupo { display: grid; gap: 8px; }
.carta-grupo h2 { font-size: 1.3rem; padding-bottom: 4px; border-bottom: 2px solid var(--acento); width: fit-content; }
.plato { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--superficie); border: 1px solid var(--linea); border-radius: 14px; padding: 12px; text-align: left; }
.plato.off { opacity: .6; }
.plato-txt { display: grid; gap: 4px; min-width: 0; }
.plato-txt h3 { font-family: var(--texto); font-size: 1rem; font-weight: 800; overflow-wrap: anywhere; }
.plato-txt p { margin: 0; color: var(--suave); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plato-txt .etq { display: flex; gap: 4px; flex-wrap: wrap; }
.plato img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }

/* ---- canchas ---- */
.c-estado { margin: 0; font-weight: 700; }
.turnos { display: grid; gap: 12px; }
@media (min-width: 760px) { .turnos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cancha { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 12px; display: grid; gap: 10px; }
.cancha h3 { font-family: var(--texto); font-size: 1rem; font-weight: 800; }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.hora { min-height: 42px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--acento) 45%, transparent); background: color-mix(in srgb, var(--acento) 12%, var(--superficie)); color: var(--tinta); font-weight: 800; font-variant-numeric: tabular-nums; }
.hora.ocup { background: repeating-linear-gradient(135deg, var(--linea) 0 4px, transparent 4px 8px); border-color: var(--linea); color: var(--suave); text-decoration: line-through; cursor: not-allowed; }
.hora.pasado { opacity: .35; cursor: not-allowed; border-color: var(--linea); background: none; }
@media (hover: hover) and (pointer: fine) { .hora:not(:disabled):hover { background: var(--acento); color: var(--sobre-acento); } }
.c-ley { display: flex; gap: 6px; align-items: center; margin: 0; font-size: .84rem; color: var(--suave); }
.c-ley i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 6px; }
.c-ley i.libre { background: color-mix(in srgb, var(--acento) 25%, var(--superficie)); border: 1px solid var(--acento); }
.c-ley i.ocup { background: repeating-linear-gradient(135deg, var(--linea) 0 3px, transparent 3px 6px); border: 1px solid var(--linea); }
.c-precios { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px 16px; display: grid; gap: 8px; }
.c-precios h3 { font-family: var(--texto); font-size: 1rem; font-weight: 800; }
.c-precios ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.c-precios li { display: flex; justify-content: space-between; gap: 10px; }
.c-precios p { margin: 0; font-size: .9rem; }
.eventos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.eventos article { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px 16px; display: grid; gap: 4px; }
.eventos h3 { font-family: var(--texto); font-size: 1rem; font-weight: 800; }
.eventos p { margin: 0; color: var(--suave); font-size: .92rem; }
.c-resumen { background: var(--superficie); border: 1px solid var(--linea); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.c-resumen span:first-letter { text-transform: uppercase; }
.c-form { display: grid; gap: 12px; }
.c-alias { background: var(--superficie); border: 2px dashed var(--acento); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; justify-items: start; }
.c-alias b { font-size: 1.25rem; letter-spacing: .02em; overflow-wrap: anywhere; }

/* ================= PANELES ================= */
.panel-body { background: #F6F2EC; color: #2B2340; }
.p-cab { background: var(--ocaso); color: #fff; position: sticky; top: 0; z-index: 30; }
.p-cab .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 12px; flex-wrap: wrap; }
.p-cab b { font-family: var(--display); font-size: 1.15rem; }
.p-cab .btn.sec { color: #fff; border-color: rgb(255 255 255 / .35); }
.p-main { padding-block: 18px 60px; display: grid; gap: 16px; }
.caja { background: #fff; border-radius: var(--radio); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.caja h2 { font-size: 1.2rem; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(180deg, #2B2340 0%, #6B3A5B 45%, #E2683C 85%, #F4B26A 100%); }
.login .caja { width: 100%; max-width: 400px; }
.aviso-cuota { border-radius: var(--radio); padding: 14px 16px; display: grid; gap: 8px; font-weight: 600; }
.aviso-cuota.ok { background: #E4F3EA; color: #1F5E3A; }
.aviso-cuota.aviso { background: #FFF1D6; color: #7A4B00; }
.aviso-cuota.vencida { background: #FBE3DA; color: #8A2E17; }
.aviso-cuota.grave { background: #8A2E17; color: #fff; }
.aviso-cuota .btn { justify-self: start; }
.tabs { display: flex; gap: 4px; background: #fff; border-radius: 999px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: none; border-radius: 999px; padding: 8px 14px; font-weight: 700; color: #6E6578; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--ocaso); color: #fff; }
.lista { display: grid; }
.renglon { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block: 10px; border-top: 1px solid #EEE7DE; }
.renglon:first-child { border-top: 0; }
.renglon img, .renglon .sinfoto { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #F3ECE3; }
.renglon .t1 { font-weight: 700; overflow-wrap: anywhere; }
.renglon .t2 { font-size: .84rem; color: #6E6578; }
.renglon .acc { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fotos-edit { display: flex; gap: 8px; flex-wrap: wrap; }
.fotos-edit div { position: relative; }
.fotos-edit img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.fotos-edit button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #2B2340; color: #fff; font-weight: 800; }
.subir { display: grid; place-items: center; width: 76px; height: 76px; border: 2px dashed #D9CFC2; border-radius: 10px; color: #6E6578; font-size: .78rem; text-align: center; cursor: pointer; }
.subir input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--coral); }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: #fff; border-radius: 14px; padding: 14px; }
.kpi span { display: block; font-size: .76rem; color: #6E6578; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font-size: 1.4rem; }
.meses { display: flex; gap: 6px; flex-wrap: wrap; }
.mes { border: 1px solid #E5DCD1; background: #fff; border-radius: 10px; padding: 6px 10px; font-size: .84rem; font-weight: 700; display: grid; text-align: left; }
.mes small { font-weight: 500; }
.mes.pagado { background: #E4F3EA; border-color: #BFE0CB; color: #1F5E3A; }
.mes.debe { background: #FBE3DA; border-color: #F1C3B3; color: #8A2E17; }
.mes.aviso { background: #FFF1D6; border-color: #F3D9A4; color: #7A4B00; }
.estado-pill { font-size: .76rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; }
.estado-pill.activa { background: #E4F3EA; color: #1F5E3A; }
.estado-pill.pausada { background: #EEE; color: #555; }
pre.sql { white-space: pre-wrap; word-break: break-word; background: #2B2340; color: #F6EBDD; border-radius: 12px; padding: 12px; font-size: .78rem; margin: 0; }

/* ---- paneles por plan ---- */
.renglon.sin-img { grid-template-columns: minmax(0, 1fr) auto; }
.editor-lista { display: grid; gap: 10px; }
.editor-item { border: 1px solid #EEE7DE; border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: #FCFAF7; }
.editor-item > input, .editor-item > textarea, .fila-precio input { background: #fff; border: 1px solid #E5DCD1; border-radius: 10px; padding: 8px 10px; min-height: 42px; width: 100%; font-weight: 400; }
.editor-item > textarea { min-height: 64px; resize: vertical; }
.editor-item .btn, .editor-lista > .btn { justify-self: start; }
.editor-item .fila .campo { flex: 1 1 120px; }
.fila-precio { display: grid; grid-template-columns: 110px 110px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
@media (max-width: 520px) { .fila-precio { grid-template-columns: 1fr 1fr auto; } .fila-precio input:nth-child(3) { grid-column: 1 / 3; grid-row: 2; } }
.caja > .fila .campo { flex: 1 1 110px; }
.res-fila { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 12px; padding-block: 12px; border-top: 1px solid #EEE7DE; align-items: start; }
.res-fila:first-child { border-top: 0; }
.res-fila .acc { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.res-hora { display: grid; font-variant-numeric: tabular-nums; }
.res-hora b { font-size: 1.1rem; }
.res-hora small { color: #6E6578; }
.res-datos { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.estado-res { justify-self: start; font-size: .76rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; }
.estado-res.confirmada { background: #E4F3EA; color: #1F5E3A; }
.estado-res.pendiente { background: #FFF1D6; color: #7A4B00; }
.estado-res.anotada { background: #E6EEF7; color: #1F4E79; }
.estado-res.vencida { background: #EEE; color: #666; }
.res-fila.vencida { opacity: .6; }
.qr-grilla { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.qr-tarjeta { border: 1px solid #EEE7DE; border-radius: 14px; padding: 14px; display: grid; gap: 6px; justify-items: center; text-align: center; break-inside: avoid; }
.qr-titulo { font-family: var(--display); font-size: 1.2rem; }
.qr-canvas { width: 100%; max-width: 200px; height: auto; image-rendering: pixelated; }
.qr-tarjeta small { color: #6E6578; }
.incluye { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.link-propio { overflow-wrap: anywhere; }
@media print {
  .p-cab, .tabs, .aviso-cuota, .no-imprimir { display: none !important; }
  .panel-body, .caja { background: #fff; padding: 0; }
  .qr-grilla { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .qr-tarjeta { border: 1px dashed #999; }
}
.plan-sel { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: .88rem; }
.plan-sel select { border: 1px solid #E5DCD1; border-radius: 999px; padding: 6px 10px; background: #fff; min-height: 36px; }
.p-cab.como-admin { background: #7A2E1F; }
.sin-publicar { display: block; color: #9A5B00; font-weight: 800; font-size: .8rem; }
.grilla-precios { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.plan-gratis { justify-self: start; background: #E4F3EA; color: #1F5E3A; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .82rem; }
.mes.gratis { cursor: default; }
