/* ============================================================
   Estudio Compás — academia de danza. Rosa/violeta/teal vibrante.
   ============================================================ */

:root {
  --color-bg: #fffaf9;
  --color-bg-alt: #fbeef0;
  --color-ink: #2b1f2c;
  --color-muted: #7a6a78;
  --color-pink: #ef5da8;
  --color-violet: #8451e0;
  --color-teal: #2bb3a3;
  --color-yellow: #ffc857;
  --color-line: #f0dde3;

  --font-display: 'Quicksand', sans-serif;
  --font-sans: 'Nunito', sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); background: var(--color-bg); color: var(--color-ink); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); line-height: 1.2; margin: 0 0 0.4em; }
p { color: var(--color-muted); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 700; color: var(--color-pink); margin-bottom: 0.7em; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85em 1.8em; border-radius: 999px; font-weight: 700; font-size: 0.94rem; border: 2px solid transparent; cursor: pointer; transition: all 0.15s ease; }
.btn-primary { background: linear-gradient(90deg, var(--color-pink), var(--color-violet)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-sm { padding: 0.55em 1.3em; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* header con horario embebido */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 250, 249, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.brand em { color: var(--color-pink); font-style: normal; }
.header-schedule { display: flex; align-items: center; gap: 10px; background: var(--color-bg-alt); border-radius: 999px; padding: 8px 18px; font-size: 0.84rem; flex: 1; justify-content: center; max-width: 460px; }
.schedule-label { text-transform: uppercase; font-size: 0.7rem; font-weight: 700; color: var(--color-pink); }
.schedule-day { font-weight: 700; }
.schedule-classes { color: var(--color-muted); }
@media (max-width: 760px) { .header-schedule { display: none; } }

/* hero */
.hero { position: relative; padding: 100px 0 80px; text-align: center; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; }
.shape-a { width: 340px; height: 340px; background: var(--color-pink); top: -100px; left: -80px; }
.shape-b { width: 300px; height: 300px; background: var(--color-teal); bottom: -100px; right: -60px; }
.hero-inner { position: relative; max-width: 640px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.hero-lead { font-size: 1.05rem; max-width: 48ch; margin: 0 auto 2em; }

/* sections shared */
section { padding: 90px 0; }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }

/* wheel selector (reemplaza tabs) */
.wheel-wrap { display: flex; justify-content: center; }
.wheel { position: relative; width: 340px; height: 340px; }
.wheel-item {
  position: absolute; top: 50%; left: 50%; width: 130px; height: 46px; margin-top: -23px; margin-left: -65px;
  transform: rotate(var(--angle)) translate(140px) rotate(calc(-1 * var(--angle)));
  background: #fff; border: 2px solid var(--color-line); border-radius: 999px; font-weight: 700; font-size: 0.86rem;
  cursor: pointer; color: var(--color-muted);
}
.wheel-item.active { background: linear-gradient(90deg, var(--color-pink), var(--color-violet)); color: #fff; border-color: transparent; }
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 200px; height: 200px;
  border-radius: 50%; background: var(--color-bg-alt); display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 20px; border: 2px dashed var(--color-line);
}
.wheel-center h3 { margin-bottom: 8px; }
.wheel-center p { font-size: 0.84rem; margin: 0; }
@media (max-width: 480px) { .wheel { width: 280px; height: 280px; } .wheel-item { transform: rotate(var(--angle)) translate(110px) rotate(calc(-1 * var(--angle))); width: 110px; font-size: 0.78rem; } .wheel-center { width: 160px; height: 160px; } }

/* timetable */
.timetable { background: var(--color-bg-alt); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 14px 16px; text-align: center; border: 1px solid var(--color-line); font-size: 0.9rem; }
th { background: var(--color-ink); color: #fff; font-family: var(--font-display); }
.cell { font-weight: 700; border-radius: 8px; }
.cell.ballet { background: rgba(239,93,168,0.15); color: var(--color-pink); }
.cell.urbano { background: rgba(132,81,224,0.15); color: var(--color-violet); }
.cell.salsa { background: rgba(255,200,87,0.2); color: #a97a10; }
.cell.contemporaneo { background: rgba(43,179,163,0.15); color: var(--color-teal); }

/* teachers */
.teachers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card { text-align: center; }
.teacher-photo { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 14px; }
.t1 { background: linear-gradient(135deg, var(--color-pink), var(--color-violet)); }
.t2 { background: linear-gradient(135deg, var(--color-violet), var(--color-teal)); }
.t3 { background: linear-gradient(135deg, var(--color-yellow), var(--color-pink)); }
.t4 { background: linear-gradient(135deg, var(--color-teal), var(--color-yellow)); }
.teacher-card h3 { font-size: 1rem; margin-bottom: 0.2em; }
.teacher-card p { font-size: 0.85rem; margin: 0; color: var(--color-pink); font-weight: 600; }

/* vertical marquee testimonials */
.testimonials-inner { text-align: center; }
.vertical-marquee { height: 220px; overflow: hidden; max-width: 560px; margin: 0 auto; mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.vertical-marquee-track { display: flex; flex-direction: column; gap: 20px; animation: scrollUp 16s linear infinite; }
.vertical-marquee-track p { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 16px 20px; font-size: 0.94rem; color: var(--color-ink); margin: 0; }
@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-form { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 32px; }
.form-row { margin-bottom: 18px; }
label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
input, select { width: 100%; padding: 0.75em 0.9em; border: 1px solid var(--color-line); border-radius: 10px; background: #fff; font-family: inherit; }
input:focus, select:focus { outline: none; border-color: var(--color-pink); }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 700; color: var(--color-pink); }

/* footer en bloques de color */
.footer-blocks { display: grid; grid-template-columns: repeat(4, 1fr); }
.footer-block { display: flex; align-items: center; justify-content: center; padding: 40px 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer-block.ballet { background: var(--color-pink); }
.footer-block.urbano { background: var(--color-violet); }
.footer-block.salsa { background: #d9a521; }
.footer-block.contemporaneo { background: var(--color-teal); }
.footer-bottom { text-align: center; padding: 16px 0; font-size: 0.8rem; color: var(--color-muted); }

/* responsive */
@media (max-width: 960px) {
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-blocks { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 48px; }
}
