/* theme.css - variables de color (las inyecta el tema desde el panel) y estilos base */
:root {
  --primary: #2f8f83;
  --primary-dark: #1f5f57;
  --accent: #e0885d;
  --bg: #f7f4ef;
  --surface: #ffffff;
  --text: #2b2f2e;
  --muted: #6b7773;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(31, 95, 87, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; }

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

/* Utilidades de tema */
.bg-primary { background: var(--primary); }
.bg-primary-dark { background: var(--primary-dark); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.bg-accent { background: var(--accent); }
.bg-surface { background: var(--surface); }
.bg-app { background: var(--bg); }
.text-muted { color: var(--muted); }
.ring-primary { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); transform: translateY(-2px); box-shadow: var(--shadow); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.25);
  border: 1px solid color-mix(in srgb, var(--primary) 8%, #e9e4dc);
}

.section-tag {
  display: inline-block;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: .35rem .8rem; border-radius: 999px;
}

/* Aparicion suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Blob decorativo */
.blob {
  position: absolute; border-radius: 45% 55% 60% 40% / 45% 45% 55% 55%;
  filter: blur(2px); opacity: .5; z-index: 0;
}

/* Navegacion */
.nav-link { position: relative; font-weight: 500; padding: .25rem 0; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--primary); transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

/* WhatsApp flotante */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25D366;
  box-shadow: 0 12px 24px -8px rgba(37,211,102,.6);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); }

/* Tabla de horarios responsive */
.schedule-day { border-radius: var(--radius); overflow: hidden; }

@media (max-width: 640px) {
  .hide-sm { display: none; }
}
