:root {
  --red: #ff3250; /* primario (rosa coral del logo) */
  --pink: #b3174f; /* variante profunda, solo para la clase B de la grilla */
  --orange: #ff7a00;
  --amber: #ffc000;
  --ink: #2b1218;
  --muted: #7d636a;
  --bg: #fff8f8;
  --bg-alt: #ffecec;
  --card: #ffffff;
  --line: #f4d8da;
  --grad: linear-gradient(135deg, var(--red) 0%, var(--orange) 55%, var(--amber) 100%);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: "Poppins", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }

/* Botones */
.btn { display: inline-block; padding: .8em 1.5em; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .15s, box-shadow .15s; box-shadow: 0 6px 18px rgba(255, 50, 80, .30); }
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.btn-white { background: #fff; color: var(--red); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.btn-ghost { background: transparent; border: 2px solid #fff; box-shadow: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 248, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 1.7rem; letter-spacing: -.5px; text-decoration: none; color: var(--red); display: flex; align-items: baseline; gap: 2px; }
.brand span { font-style: italic; font-weight: 600; color: var(--orange); }
.brand small { font-size: .65rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; height: max(440px, min(56vw, 100svh - 68px, 760px)); overflow: hidden; background: var(--ink); color: #fff; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; background-size: cover; background-position: center; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(60, 8, 22, .7) 0%, rgba(90, 15, 30, .5) 55%, rgba(0, 0, 0, .25) 100%); }
.slide-in { position: relative; padding-bottom: 40px; text-align: center; }
.slide-title { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; max-width: 760px; margin: 0 auto 1.2rem; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--red); font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
.dots { position: absolute; left: 0; right: 0; bottom: 50px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.dot[aria-current="true"] { background: var(--amber); width: 28px; border-radius: 999px; }

/* Accesos rápidos */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -32px; position: relative; z-index: 2; }
.card-quick { background: var(--card); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; box-shadow: 0 10px 30px rgba(120, 40, 0, .12); transition: transform .15s; }
.card-quick:hover { transform: translateY(-4px); }
.card-quick h3 { color: var(--red); margin-bottom: .2em; }
.card-quick p { margin: 0 0 .6rem; color: var(--muted); }
.card-quick span { font-weight: 600; color: var(--orange); }

/* Secciones */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.disc { background: var(--card); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.disc .tag { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem; }
.disc h3 { font-size: 1.4rem; }
.disc p { color: var(--muted); margin: 0 0 1rem; }
.disc a { font-weight: 600; color: var(--red); text-decoration: none; }

.band { background: var(--grad); color: #fff; text-align: center; padding: 64px 0; }
.band h2 { margin-bottom: 1.2rem; }

/* Quiénes somos */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.about-slogan { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 1rem; }
.about-intro { font-size: 1.1rem; margin: 0 0 2rem; }
.about-sub { font-size: 1.3rem; color: var(--red); margin-top: 2rem; }
.about-text { color: var(--muted); }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.about-card .tag { display: inline-block; padding: .2em .9em; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; font-size: .85rem; margin-bottom: .8rem; }
.about-card h3 { font-size: 1.6rem; margin-bottom: .4em; }
.about-card p { margin: 0; color: var(--muted); }
.about-card strong { color: var(--ink); }
.mv { margin-top: 2.5rem; }
.mv-card { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 10px 28px rgba(255, 50, 80, .24); }
.mv-card h3 { font-size: 1.5rem; }
.mv-card p { margin: 0; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* Planes */
.filters { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.filters label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
select { font: inherit; padding: .6em 1em; border-radius: 12px; border: 1px solid var(--line); background: #fff; min-width: 190px; color: var(--ink); }
.plan { background: var(--card); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.plan .sede { font-size: .8rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .5px; }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan .precio { font-size: 1.9rem; font-weight: 800; color: var(--red); margin: .2rem 0; }
.plan p { margin: 0; color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: .4rem 0 .8rem; }
.chip { background: var(--bg-alt); color: var(--red); border-radius: 999px; padding: .15em .7em; font-size: .78rem; font-weight: 600; }
.plan .btn { margin-top: auto; text-align: center; }

/* Horarios */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { border: 1px solid var(--line); background: #fff; padding: .55em 1.2em; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: .8rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); font-weight: 600; }
.schedule td:first-child { font-weight: 600; }
.code { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #fff; font-weight: 700; font-size: .9rem; }
.c-0 { background: var(--red); } .c-1 { background: var(--orange); } .c-2 { background: var(--pink); } .c-3 { background: #e0a000; } .c-4 { background: #d94b00; } .c-5 { background: #6b2b3a; }
.pills { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.code-pill { display: inline-block; padding: .3em .8em; border-radius: 999px; color: #fff; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: .9rem; }
.legend span { display: flex; align-items: center; gap: 8px; }
.prices td:first-child, .prices th:first-child { text-align: left; }

/* Horarios con foto teñida con los colores de la marca */
#horarios { color: #fff; background: linear-gradient(135deg, rgba(255, 50, 80, .9) 0%, rgba(255, 122, 0, .86) 60%, rgba(255, 192, 0, .82) 100%), url("assets/h1.png") center 30% / cover no-repeat; }
#horarios h2 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
#horarios .tab { border-color: transparent; color: var(--ink); }
#horarios .tab[aria-selected="true"] { background: var(--ink); color: #fff; }
#horarios table { box-shadow: 0 12px 32px rgba(90, 20, 0, .28); color: var(--ink); }
#horarios .legend { color: var(--ink); font-weight: 500; background: #fff; display: inline-flex; padding: .6rem 1.2rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(90, 20, 0, .2); }

/* Entrenamiento personalizado: foto teñida con los colores de la marca */
#personalizado { color: #fff; background: linear-gradient(135deg, rgba(200, 28, 80, .92) 0%, rgba(255, 50, 80, .86) 50%, rgba(255, 122, 0, .84) 100%), url("assets/h4.jpg") center / cover no-repeat; }
#personalizado h2 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
#personalizado .lead { color: #fff; opacity: .95; }
#personalizado .steps li, #personalizado table { color: var(--ink); box-shadow: 0 10px 28px rgba(90, 20, 0, .25); }
#personalizado .btn { background: #fff; color: var(--red); box-shadow: 0 6px 18px rgba(90, 20, 0, .25); }

/* Sedes */
.sede-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sede-card { display: grid; grid-template-columns: 1.4fr 1fr; }
.sede-card iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.sede-card > div { padding: 2rem; align-self: center; }
.sede-card h3 { font-size: 1.5rem; margin-bottom: .4em; }
.sede-card p { margin: 0 0 .5rem; color: var(--muted); }
.sede-card p a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink); }
.sede-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem !important; }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); box-shadow: none; }
@media (max-width: 760px) { .sede-card { grid-template-columns: 1fr; } .sede-card iframe { min-height: 240px; } }

/* Personalizado */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 1.5rem 0; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 1.2rem; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; margin-bottom: .6rem; }

/* Footer */
.site-footer { background: var(--red); color: #fff; padding: 56px 0 24px; margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; }
.site-footer a { display: block; text-decoration: none; margin-bottom: .4rem; opacity: .92; }
.site-footer a:hover { opacity: 1; }
.brand-foot { color: #fff; margin-bottom: .5rem; }
.brand-foot span { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.35); margin-top: 32px; padding-top: 18px; font-size: .85rem; opacity: .95; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); z-index: 60; }

/* Páginas legales */
.legal { padding: 56px 0 80px; max-width: 760px; }
.legal h1 { color: var(--red); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .quick { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 16px; gap: 14px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .quick { margin-top: -28px; }
}
@media (max-width: 520px) {
  .grid-4, .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
