/* ============================================================
   Fígaro's Estudio Barbería — studiofigaros.com.mx
   ============================================================ */

:root {
  --navy: #16223f;
  --navy-2: #1d2d52;
  --ink: #0d1426;
  --red: #e63946;
  --red-2: #ff5a66;
  --blue: #2e6fd8;
  --blue-2: #5b93f0;
  --gold: #f4b942;
  --green: #2ec27e;
  --paper: #f7f8fc;
  --text: #eef1f8;
  --muted: #9aa6c3;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 111, 216, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(230, 57, 70, 0.18), transparent 55%),
    linear-gradient(180deg, var(--ink), var(--navy) 45%, var(--ink));
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--red); color: #fff; }

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

h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.04em; }

.container { width: min(1100px, 92vw); margin: 0 auto; }

section { padding: 72px 0; position: relative; }

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, var(--blue-2), #fff, var(--red-2), #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 7s linear infinite;
}

@keyframes shineText { to { background-position: 300% 0; } }

.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 1.05rem; }

/* ---------- Barra de navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 5vw;
  background: rgba(13, 20, 38, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav-brand img { width: 46px; height: 46px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.nav-brand span { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.08em; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: linear-gradient(135deg, var(--red), #c1121f);
  color: #fff !important; padding: 9px 20px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
  animation: ctaPulse 2.4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(230,57,70,.45); }
  50% { transform: scale(1.06); box-shadow: 0 8px 26px rgba(230,57,70,.7); }
}
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 110px 0 40px; position: relative; overflow: hidden;
}
#particles { position: absolute; inset: 0; pointer-events: none; }

.hero-logo {
  width: clamp(180px, 30vw, 300px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.55));
  animation: logoIn 1.1s cubic-bezier(0.2, 1.4, 0.4, 1) both, floaty 5s ease-in-out 1.2s infinite;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(-60px) scale(0.7) rotate(-6deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  text-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.hero h1 .accent { color: var(--red-2); }
.hero-tagline {
  max-width: 640px; margin: 16px auto 8px; color: var(--text);
  font-size: clamp(1rem, 2.4vw, 1.2rem); font-weight: 500;
}
.hero-since {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 999px; color: var(--gold);
  font-weight: 700; letter-spacing: 0.06em; margin-bottom: 26px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-big {
  font-size: 1.15rem; font-weight: 800; text-decoration: none;
  padding: 16px 38px; border-radius: 999px; border: none; cursor: pointer;
  position: relative; overflow: hidden; display: inline-flex; gap: 10px; align-items: center;
  transition: transform 0.2s;
}
.btn-big:active { transform: scale(0.96); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), #b00d1c);
  color: #fff; box-shadow: 0 10px 30px rgba(230, 57, 70, 0.5);
  animation: ctaPulse 2.4s ease-in-out infinite;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-ghost {
  background: transparent; color: #fff; border: 2px solid var(--blue-2);
}
.btn-ghost:hover { background: rgba(46, 111, 216, 0.2); }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; color: var(--muted); font-size: 1.6rem; animation: bounceDown 1.6s infinite; }
@keyframes bounceDown { 0%,100% { transform: translateY(0); opacity:.6; } 50% { transform: translateY(10px); opacity:1; } }

/* Postes de barbero */
.pole {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 26px; height: 64vh; border-radius: 14px;
  background: repeating-linear-gradient(45deg, var(--red) 0 16px, #fff 16px 32px, var(--blue) 32px 48px, #fff 48px 64px);
  background-size: 100% 200%;
  animation: poleSpin 1.6s linear infinite;
  box-shadow: inset 0 0 12px rgba(0,0,0,.35), 0 0 24px rgba(46,111,216,.35);
  border: 3px solid rgba(255,255,255,.65);
  opacity: .85;
}
.pole::before, .pole::after {
  content: ""; position: absolute; left: 50%; translate: -50% 0;
  width: 40px; height: 16px; background: linear-gradient(#e8e8e8, #9a9a9a);
  border-radius: 8px;
}
.pole::before { top: -18px; }
.pole::after { bottom: -18px; }
@keyframes poleSpin { to { background-position: 0 -91px; } }
.pole-left { left: max(12px, 3vw); }
.pole-right { right: max(12px, 3vw); }
@media (max-width: 900px) { .pole { display: none; } }

/* ---------- Cinta marquee ---------- */
.marquee {
  background: linear-gradient(90deg, var(--red), var(--navy-2), var(--blue), var(--navy-2), var(--red));
  background-size: 300% 100%;
  animation: shineText 12s linear infinite;
  padding: 12px 0; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  width: 104%; margin-left: -2%;
  transform: rotate(-1.2deg);
}
.marquee-track { display: inline-block; animation: marquee 22s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.12em; margin: 0 22px; color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px;
}
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 22px; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--gold));
  background-size: 200% 100%; animation: shineText 4s linear infinite;
}
.service-card:hover {
  transform: translateY(-8px) rotate(0.4deg);
  box-shadow: var(--shadow); border-color: rgba(255,255,255,.25);
}
.service-icon { font-size: 2.3rem; margin-bottom: 10px; display: inline-block; animation: floaty 4s ease-in-out infinite; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: 0.95rem; min-height: 40px; }
.service-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.price-tag {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--gold);
  text-shadow: 0 2px 12px rgba(244, 185, 66, 0.4);
}
.price-tag small { font-size: 0.9rem; color: var(--muted); font-family: var(--font-body); }
.btn-book {
  background: linear-gradient(135deg, var(--blue), #1c4fa8); color: #fff; border: none;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s; font-family: var(--font-body);
}
.btn-book:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(46, 111, 216, 0.5); }

/* ---------- Calendario ---------- */
#agenda { background: rgba(0, 0, 0, 0.22); }
.cal-wrap {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(16px, 3vw, 34px); box-shadow: var(--shadow);
  max-width: 760px; margin: 0 auto;
}
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cal-title { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.08em; text-transform: capitalize; }
.cal-nav {
  background: var(--navy-2); border: 1px solid var(--border); color: #fff;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.cal-nav:hover:not(:disabled) { background: var(--blue); transform: scale(1.12); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow { text-align: center; color: var(--muted); font-weight: 700; font-size: 0.8rem; padding: 6px 0; text-transform: uppercase; }

.cal-day {
  aspect-ratio: 1; border-radius: 14px; border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-weight: 700; font-size: 1.05rem; cursor: default; position: relative;
  animation: popIn 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.4); } }
.cal-day .dnum { line-height: 1; }
.cal-day .dtag { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }

.cal-day.closed { opacity: 0.3; }
.cal-day.past { opacity: 0.22; text-decoration: line-through; }

.cal-day.open {
  cursor: pointer; color: #fff;
  background: linear-gradient(145deg, rgba(46, 194, 126, 0.22), rgba(46, 111, 216, 0.22));
  border-color: rgba(46, 194, 126, 0.45);
  transition: transform 0.18s, box-shadow 0.18s;
}
.cal-day.open .dtag { color: var(--green); }
.cal-day.open:hover { transform: scale(1.12) rotate(-2deg); box-shadow: 0 8px 22px rgba(46, 194, 126, 0.35); z-index: 2; }

.cal-day.partial {
  background: linear-gradient(145deg, rgba(244, 185, 66, 0.25), rgba(230, 57, 70, 0.15));
  border-color: rgba(244, 185, 66, 0.5);
}
.cal-day.partial .dtag { color: var(--gold); }

.cal-day.full {
  cursor: default; color: var(--muted);
  background: rgba(230, 57, 70, 0.14); border-color: rgba(230, 57, 70, 0.4);
}
.cal-day.full .dtag { color: var(--red-2); }

.cal-day.today { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.cal-day.selected {
  outline: 3px solid var(--gold); outline-offset: 2px;
  transform: scale(1.1); z-index: 3;
  animation: selectedGlow 1.4s ease-in-out infinite;
}
@keyframes selectedGlow {
  0%,100% { box-shadow: 0 0 0 rgba(244,185,66,0); }
  50% { box-shadow: 0 0 26px rgba(244,185,66,.6); }
}

.cal-legend { display: flex; gap: 18px; justify-content: center; margin-top: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot-open { background: var(--green); } .dot-partial { background: var(--gold); }
.dot-full { background: var(--red); } .dot-closed { background: #4a5366; }

/* Horarios del día */
.slots-panel { margin-top: 26px; display: none; animation: slideUp 0.4s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.slots-panel.show { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } }
.slots-title { text-align: center; font-weight: 700; margin-bottom: 14px; font-size: 1.05rem; }
.slots-title b { color: var(--gold); text-transform: capitalize; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot {
  padding: 12px 6px; border-radius: 12px; text-align: center; font-weight: 800; font-size: 1rem;
  border: 1px solid rgba(46, 194, 126, 0.5); color: #fff; cursor: pointer;
  background: linear-gradient(145deg, rgba(46, 194, 126, 0.2), rgba(46, 111, 216, 0.16));
  transition: transform 0.15s, box-shadow 0.15s;
  animation: popIn 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.slot:hover { transform: scale(1.1); box-shadow: 0 8px 20px rgba(46, 194, 126, 0.4); }
.slot.taken {
  cursor: not-allowed; color: #7d8499; text-decoration: line-through;
  background: rgba(230, 57, 70, 0.12); border-color: rgba(230, 57, 70, 0.35);
}
.slot.taken::after { content: " ✂"; text-decoration: none; }
.slot.taken:hover { transform: none; box-shadow: none; }

/* ---------- Modal de reserva ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(8, 12, 24, 0.78); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 18px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: linear-gradient(165deg, var(--navy-2), var(--ink));
  border: 1px solid var(--border); border-radius: 22px;
  width: min(460px, 100%); padding: 30px 28px;
  box-shadow: var(--shadow); position: relative;
  animation: modalIn 0.4s cubic-bezier(0.2, 1.3, 0.4, 1) both;
  max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(50px) scale(0.9); } }
.modal h3 { font-size: 1.7rem; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.modal .modal-sub b { color: var(--gold); text-transform: capitalize; }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 1.5rem; cursor: pointer; transition: color 0.2s, transform 0.2s;
}
.modal-close:hover { color: #fff; transform: rotate(90deg); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.83rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 1rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: #fff;
  font-family: var(--font-body); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(46, 111, 216, 0.25);
}
.field select option { background: var(--navy); }

.btn-whatsapp {
  width: 100%; padding: 15px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
  font-size: 1.08rem; font-weight: 800; font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s; margin-top: 6px;
}
.btn-whatsapp:hover { transform: scale(1.03); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4); }
.btn-whatsapp:disabled { opacity: 0.6; cursor: wait; }

.form-error { color: var(--red-2); font-size: 0.9rem; min-height: 1.2em; margin-top: 8px; text-align: center; }

/* Confirmación */
.success-pop { text-align: center; padding: 10px 0; }
.success-pop .check {
  width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #1d9e63);
  display: grid; place-items: center; font-size: 2.6rem; color: #fff;
  animation: popIn 0.5s cubic-bezier(0.3, 1.8, 0.5, 1) both;
  box-shadow: 0 0 40px rgba(46, 194, 126, 0.5);
}

/* ---------- Ubicación ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 820px) { .loc-grid { grid-template-columns: 1fr; } }
.loc-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 16px; justify-content: center;
}
.loc-item { display: flex; gap: 14px; align-items: flex-start; }
.loc-item .ico { font-size: 1.6rem; }
.loc-item h4 { font-size: 1.05rem; margin-bottom: 2px; }
.loc-item p, .loc-item a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.loc-item a:hover { color: var(--blue-2); }
.map-frame {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  min-height: 320px; box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(0.9); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border); padding: 34px 0 26px;
  text-align: center; color: var(--muted); font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
}
footer .foot-logo { width: 64px; margin: 0 auto 10px; opacity: 0.9; }
.lock-btn {
  background: none; border: none; color: #39435e; cursor: pointer;
  font-size: 1.05rem; margin-top: 14px; transition: color 0.25s, transform 0.25s;
}
.lock-btn:hover { color: var(--gold); transform: scale(1.25); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  animation: ctaPulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Reveal al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Panel Admin ---------- */
.admin-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: linear-gradient(180deg, #0a0f1f, #131c33);
  overflow-y: auto;
}
.admin-overlay.show { display: block; }
.admin-bar {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 5vw; background: rgba(10, 15, 31, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.admin-bar h2 { font-size: 1.5rem; }
.admin-bar .admin-actions { display: flex; gap: 10px; }
.admin-body { width: min(900px, 92vw); margin: 26px auto 80px; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-tab {
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  padding: 10px 20px; border-radius: 999px; cursor: pointer; font-weight: 700; font-family: var(--font-body);
  transition: all 0.2s;
}
.admin-tab.active { background: linear-gradient(135deg, var(--blue), #1c4fa8); color: #fff; border-color: transparent; }

.admin-pane { display: none; animation: slideUp 0.35s both; }
.admin-pane.show { display: block; }

.admin-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 18px;
}
.admin-card h3 { margin-bottom: 16px; font-size: 1.3rem; color: var(--blue-2); }

.booking-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.04); margin-bottom: 8px;
  border: 1px solid transparent; transition: border-color 0.2s;
}
.booking-row:hover { border-color: var(--border); }
.booking-row .bk-when { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); min-width: 130px; }
.booking-row .bk-who { flex: 1; }
.booking-row .bk-who small { color: var(--muted); display: block; }
.booking-row .bk-src { font-size: 0.7rem; padding: 3px 10px; border-radius: 999px; font-weight: 800; letter-spacing: 0.04em; }
.bk-src.web { background: rgba(46, 194, 126, 0.18); color: var(--green); }
.bk-src.admin { background: rgba(244, 185, 66, 0.16); color: var(--gold); }
.btn-del {
  background: rgba(230, 57, 70, 0.15); border: 1px solid rgba(230, 57, 70, 0.4); color: var(--red-2);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1rem; transition: all 0.2s;
}
.btn-del:hover { background: var(--red); color: #fff; }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; } }

.btn-admin {
  background: linear-gradient(135deg, var(--blue), #1c4fa8); color: #fff; border: none;
  padding: 12px 26px; border-radius: 12px; font-weight: 800; cursor: pointer; font-size: 1rem;
  font-family: var(--font-body); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-admin:hover { transform: scale(1.04); box-shadow: 0 8px 20px rgba(46, 111, 216, 0.4); }
.btn-admin.danger { background: linear-gradient(135deg, var(--red), #b00d1c); }
.btn-admin.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }

.svc-row {
  display: grid; grid-template-columns: 60px 1fr 1.4fr 110px 40px; gap: 10px; margin-bottom: 10px; align-items: center;
}
@media (max-width: 720px) { .svc-row { grid-template-columns: 50px 1fr 90px 36px; } .svc-row .svc-desc { display: none; } }
.svc-row input {
  padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06);
  border: 1px solid var(--border); color: #fff; font-family: var(--font-body); width: 100%;
}

.day-checks { display: flex; gap: 8px; flex-wrap: wrap; }
.day-checks label {
  display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.05);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--border);
  font-size: 0.9rem; user-select: none;
}
.day-checks label:has(input:checked) { background: rgba(46, 111, 216, 0.3); border-color: var(--blue-2); }

.admin-msg { min-height: 1.3em; margin-top: 10px; font-size: 0.92rem; font-weight: 600; }
.admin-msg.ok { color: var(--green); }
.admin-msg.err { color: var(--red-2); }

.demo-banner {
  position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 70;
  background: rgba(244, 185, 66, 0.95); color: #1a1a1a; font-weight: 700; font-size: 0.85rem;
  padding: 8px 18px; border-radius: 999px; box-shadow: var(--shadow); display: none;
}
.demo-banner.show { display: block; }

/* Confetti canvas */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; }

/* ---------- Botón instalar app ---------- */
.install-btn {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: none; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), #1c4fa8); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
  padding: 12px 20px; font-weight: 800; font-size: 0.95rem; font-family: var(--font-body);
  cursor: pointer; box-shadow: 0 10px 26px rgba(46, 111, 216, 0.45);
  animation: ctaPulse 3s ease-in-out infinite;
}
.install-btn.show { display: inline-flex; }
.install-btn:active { transform: scale(0.95); }

.ios-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 18px 0 6px; }
.ios-steps li {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
}
.ios-steps .step-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #1c4fa8); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.ios-steps p { font-size: 0.95rem; color: var(--text); }
.ios-steps small { color: var(--muted); }
.ios-share-icon {
  display: inline-block; vertical-align: -3px; width: 17px; height: 17px;
  fill: var(--blue-2);
}

/* ============================================================
   Móvil (≤ 560px)
   ============================================================ */
@media (max-width: 560px) {
  section { padding: 46px 0; }
  .container { width: 94vw; }

  .nav { padding: 8px 4vw; }
  .nav-brand img { width: 38px; height: 38px; }
  .nav-brand span { font-size: 1.15rem; }
  .nav-links { gap: 0; }
  .nav-cta { padding: 8px 14px; font-size: 0.85rem; }

  .hero { padding: 92px 0 56px; }
  .hero h1 { font-size: 2.35rem; padding: 0 8px; }
  .hero-tagline { font-size: 0.98rem; padding: 0 14px; }
  .hero-since { font-size: 0.82rem; padding: 5px 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 18px; }
  .btn-big { justify-content: center; padding: 15px 22px; font-size: 1.05rem; }
  .scroll-hint { bottom: 12px; }

  .marquee-track span { font-size: 0.98rem; margin: 0 13px; }

  .section-title { font-size: 1.9rem; }
  .section-sub { font-size: 0.95rem; margin-bottom: 30px; padding: 0 6px; }
  .service-card p { min-height: 0; }
  .price-tag { font-size: 1.45rem; }

  .cal-wrap { padding: 14px 10px 18px; border-radius: 18px; }
  .cal-title { font-size: 1.35rem; }
  .cal-nav { width: 38px; height: 38px; }
  .cal-grid { gap: 4px; }
  .cal-day { border-radius: 10px; font-size: 0.92rem; gap: 1px; }
  .cal-day .dtag { font-size: 0.46rem; letter-spacing: 0.02em; }
  .cal-day.selected { transform: scale(1.06); outline-width: 2px; }
  .cal-legend { gap: 9px 14px; font-size: 0.76rem; margin-top: 14px; }
  .slots-grid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
  .slot { padding: 11px 4px; font-size: 0.92rem; }

  .modal { padding: 24px 18px; border-radius: 18px; }
  .modal h3 { font-size: 1.45rem; }

  .loc-card { padding: 22px 18px; }
  .map-frame { min-height: 250px; }
  .map-frame iframe { min-height: 250px; }

  .wa-float { width: 54px; height: 54px; right: 13px; bottom: 13px; }
  .wa-float svg { width: 28px; height: 28px; }
  .install-btn { left: 13px; bottom: 13px; padding: 11px 16px; font-size: 0.88rem; }

  .admin-bar { padding: 10px 4vw; gap: 8px; }
  .admin-bar h2 { font-size: 1.15rem; }
  .btn-admin { padding: 10px 16px; font-size: 0.9rem; }
  .admin-tab { padding: 8px 14px; font-size: 0.88rem; }
  .admin-card { padding: 18px 14px; }
  .booking-row { flex-wrap: wrap; gap: 8px 12px; padding: 11px 12px; }
  .booking-row .bk-when { min-width: 0; font-size: 1.05rem; }
  .booking-row .bk-who { flex-basis: 100%; order: 3; }

  .demo-banner { width: max-content; max-width: 92vw; font-size: 0.78rem; text-align: center; }
}

/* Pantallas muy angostas */
@media (max-width: 370px) {
  .cal-day .dtag { display: none; }
  .hero h1 { font-size: 2.05rem; }
}
