/* Anamaste · Yoga Infantil — estilos comunes (cabecera, pie, páginas, asistente) */
:root {
  --mk-primario: #b0457f; --mk-secundario: #f0b3cc; --mk-fondo: #160810; --mk-texto: #fbeef4;
  --ciruela: #7a2457; --crema: #fdf6f9; --tinta: #3a1229;
  --f-tit: "Fraunces", Georgia, serif; --f-txt: "Nunito", system-ui, sans-serif;
  --wa: #25d366;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-txt); background: var(--mk-fondo); color: var(--mk-texto); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- Cabecera fija ------------------------------------------- */
.cab {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000; color: var(--tinta);
  display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.6rem);
  padding: .55rem clamp(.8rem, 3vw, 2.2rem);
  background: rgba(253,246,249,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(176,69,127,.12);
  box-shadow: 0 6px 30px rgba(122,36,87,.06);
}
.cab-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; }
.cab-logo img { width: 48px; height: auto; }
.cab-logo span { font-family: var(--f-tit); font-style: italic; font-weight: 600; font-size: 1.45rem; color: var(--ciruela); letter-spacing: .01em; }
.cab nav { display: flex; gap: clamp(.6rem, 1.6vw, 1.4rem); }
.cab nav a { text-decoration: none; font-weight: 700; font-size: .95rem; opacity: .8; }
.cab nav a:hover, .cab nav a[aria-current] { opacity: 1; color: var(--mk-primario); }
@media (max-width: 1100px) { .cab nav a.opc { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 999px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-family: var(--f-txt); transition: transform .2s, filter .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-tel { padding: .55rem 1rem; background: transparent; color: var(--ciruela); border: 1.5px solid rgba(122,36,87,.35); font-size: .95rem; }
.btn-wa { padding: .6rem 1.1rem; background: var(--mk-primario); color: #fff; font-size: .95rem; }
@media (max-width: 720px) {
  .cab { gap: .5rem; padding: .5rem .7rem; }
  .cab nav a.opc { display: none; }
  .cab nav { gap: .7rem; }
  .cab-logo span { display: none; }
  .cab-logo img { width: 40px; }
  .cab nav a { font-size: .85rem; }
  .btn-tel { padding: .45rem .7rem; font-size: .85rem; }
  .btn-wa { padding: .5rem; width: 2.3rem; height: 2.3rem; }
  .btn-wa .lbl { display: none; }
}
@media (max-width: 350px) { .btn-tel .num { display: none; } }

/* --- Pie estático -------------------------------------------- */
.pie { background: var(--crema); color: var(--tinta); padding: clamp(4rem, 10vw, 7rem) clamp(1.2rem, 5vw, 4rem) 2rem; text-align: center; position: relative; overflow: hidden; }
.pie::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -460px; transform: translateX(-50%); background: url(assets/mandala.svg) center/contain no-repeat; opacity: .08; pointer-events: none; }
.pie > * { position: relative; }
.pie-tit { font-family: var(--f-tit); font-weight: 600; font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1.02; color: var(--ciruela); letter-spacing: -.02em; }
.pie-tit em { color: var(--mk-primario); }
.pie-sub { max-width: 34rem; margin: 1.2rem auto 2.2rem; font-size: clamp(1rem, 2.4vw, 1.15rem); }
.pie-ctas { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.pie-ctas .btn { padding: 1rem 1.8rem; font-size: clamp(1rem, 2.6vw, 1.2rem); }
.pie-ctas .btn-wa { background: var(--wa); color: #0b3d1f; width: auto; height: auto; }
.pie-ctas .btn-wa .lbl { display: inline; }
.pie-ctas .btn-tel { color: var(--ciruela); border-color: var(--ciruela); }
.pie-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; max-width: 900px; margin: 3.4rem auto 0; text-align: left; }
.pie-datos h3 { font-family: var(--f-tit); color: var(--ciruela); font-size: 1.15rem; margin-bottom: .3rem; }
.pie-datos p, .pie-datos li { font-size: .95rem; list-style: none; }
.pie-datos a { font-weight: 800; color: var(--ciruela); text-decoration: none; }
.pie-legal { margin-top: 3rem; font-size: .8rem; opacity: .6; }

/* --- Páginas interiores (equipo, tienda) --------------------- */
.pag { background: var(--crema); color: var(--tinta); }
.pag-hero { position: relative; min-height: 78vh; display: grid; align-items: end; padding: 8rem clamp(1.2rem, 6vw, 5rem) clamp(3rem, 8vw, 5rem); overflow: hidden; color: #fff; }
.pag-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pag-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,8,16,.35) 0%, rgba(22,8,16,.15) 40%, rgba(22,8,16,.85) 100%); }
.pag-hero > div { position: relative; z-index: 1; max-width: 46rem; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.etq { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mk-secundario); margin-bottom: .8rem; }
.pag-hero h1 { font-family: var(--f-tit); font-weight: 600; font-size: clamp(2.4rem, 8vw, 5.4rem); line-height: 1; letter-spacing: -.02em; }
.pag-hero p { margin-top: 1rem; font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 36rem; }
.bloque { padding: clamp(3.5rem, 9vw, 7rem) clamp(1.2rem, 6vw, 5rem); max-width: 1200px; margin: 0 auto; }
.bloque h2 { font-family: var(--f-tit); font-weight: 600; color: var(--ciruela); font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 1rem; }
.bloque .intro { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 44rem; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.tarjeta { background: #fff; border-radius: 26px; padding: 2rem 1.7rem; box-shadow: 0 10px 40px rgba(122,36,87,.08); border: 1px solid rgba(176,69,127,.12); }
.tarjeta .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--mk-secundario) 45%, #fff); color: var(--ciruela); font-size: 1.5rem; margin-bottom: 1rem; }
.tarjeta h3 { font-family: var(--f-tit); font-size: 1.35rem; color: var(--ciruela); margin-bottom: .4rem; }
.duo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.duo img { border-radius: 30px; width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 70px rgba(122,36,87,.18); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.cita { font-family: var(--f-tit); font-style: italic; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.25; color: var(--ciruela); text-align: center; max-width: 52rem; margin: 0 auto; }
.franja { background: var(--ciruela); color: var(--crema); }
.franja .bloque h2 { color: #fff; }

/* --- Asistente (chat) ---------------------------------------- */
.chat-burbuja { position: fixed; left: 18px; bottom: 18px; z-index: 9500; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--mk-primario); color: #fff; box-shadow: 0 10px 30px rgba(122,36,87,.45); display: grid; place-items: center; transition: transform .25s; }
.chat-burbuja:hover { transform: scale(1.07); }
.chat-burbuja svg { width: 30px; height: 30px; }
.chat-burbuja .punto { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--wa); border: 2px solid #fff; }
.chat-caja { position: fixed; left: 18px; bottom: 92px; z-index: 9500; width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; color: var(--tinta); border-radius: 24px; box-shadow: 0 24px 70px rgba(22,8,16,.4); overflow: hidden; transform-origin: 0% 100%; transform: scale(.85) translateY(20px); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .25s; }
.chat-caja.abierta { transform: none; opacity: 1; pointer-events: auto; }
.chat-cab { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--ciruela); color: #fff; }
.chat-cab img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; padding: 5px; background: #fff; }
.chat-cab b { display: block; font-family: var(--f-tit); font-size: 1.05rem; }
.chat-cab small { opacity: .8; font-size: .78rem; }
.chat-cab button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; padding: .2rem .4rem; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--crema); }
.msg { max-width: 86%; padding: .65rem .9rem; border-radius: 18px; font-size: .93rem; line-height: 1.45; animation: msgIn .3s ease-out; }
.msg a { color: var(--mk-primario); font-weight: 800; }
.msg-bot { background: #fff; border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: 0 2px 8px rgba(122,36,87,.07); }
.msg-yo { background: var(--mk-primario); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg-yo a { color: #fff; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.chat-ops { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1rem 0; background: var(--crema); }
.chat-ops button { border: 1.5px solid var(--mk-primario); background: #fff; color: var(--ciruela); border-radius: 999px; padding: .35rem .75rem; font: 700 .8rem var(--f-txt); cursor: pointer; }
.chat-ops button:hover { background: var(--mk-primario); color: #fff; }
.chat-form { display: flex; gap: .5rem; padding: .7rem; background: var(--crema); border-top: 1px solid rgba(176,69,127,.15); }
.chat-form input { flex: 1; min-width: 0; border: 1.5px solid rgba(176,69,127,.3); border-radius: 999px; padding: .65rem 1rem; font: 1rem var(--f-txt); outline: none; background: #fff; }
.chat-form input:focus { border-color: var(--mk-primario); }
.chat-form button { border: 0; border-radius: 50%; width: 44px; height: 44px; background: var(--mk-primario); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-form button svg { width: 20px; height: 20px; }
.btn-wa-chat { display: inline-flex; margin-top: .5rem; padding: .5rem .9rem; border-radius: 999px; background: var(--wa); color: #0b3d1f !important; text-decoration: none; font-weight: 800; font-size: .88rem; }
@media (max-width: 720px) { .chat-burbuja { width: 56px; height: 56px; left: 14px; bottom: 14px; } .chat-caja { left: 12px; bottom: 80px; } }
.pie-logo { width: min(60vw, 240px); margin: 0 auto 1.6rem; }
