/* CoreNutrition · Página de inicio (corenutrition.fit)
   Misma estructura que la portada de nutricionista.io, con los colores y
   componentes de las landings de ciudad (styles.css va antes). */

.hm { background: var(--paper); }
.hm .sn { background: rgba(241, 240, 237, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Etiqueta de sección con rayitas a los lados */
.hm-label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text); margin-bottom: 14px; }
.hm-label::before, .hm-label::after { content: ""; display: block; width: 26px; height: 1.5px; background: linear-gradient(90deg, var(--gold), transparent); }
.hm-label::after { background: linear-gradient(90deg, transparent, var(--gold)); }
.hm-label-plain::before, .hm-label-plain::after { display: none; }

/* ─── Hero ─── */
.hm-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 64px 40px 56px; }
.hm-hero-text > * { animation: entra-sube .75s cubic-bezier(.22, .61, .36, 1) both; }
.hm-hero-text > :nth-child(2) { animation-delay: .08s; }
.hm-hero-text > :nth-child(3) { animation-delay: .16s; }
.hm-hero-text > :nth-child(4) { animation-delay: .24s; }
.hm-hero-text > :nth-child(5) { animation-delay: .32s; }
.hm-h1 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--navy); margin-bottom: 22px; }
.hm-h1 em { font-family: var(--display); font-style: normal; font-weight: 600; letter-spacing: -.01em; background: linear-gradient(95deg, #c99206 0%, var(--gold) 40%, #e9bd3e 75%, #c99206 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-hero-text > p { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; max-width: 520px; }
.hm-stats { display: flex; gap: 32px; margin-bottom: 30px; flex-wrap: wrap; }
.hm-stat { display: flex; flex-direction: column; }
.hm-stat strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #b98030; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm-stat > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.hm-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-trust { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }

.hm-hero-media { position: relative; display: flex; justify-content: center; animation: entra-sube .9s .18s cubic-bezier(.22, .61, .36, 1) both; }
.hm-device { position: relative; padding: 12px; background: linear-gradient(160deg, #2b3561, #141a36); border-radius: 44px; box-shadow: 0 30px 70px rgba(20, 26, 54, .35), inset 0 0 0 1px rgba(255, 255, 255, .06); animation: flota 7s ease-in-out infinite; }
.hm-device::before { content: ""; position: absolute; inset: -16% -14%; z-index: -1; background: radial-gradient(circle at 50% 40%, rgba(220, 168, 24, .26), transparent 64%); pointer-events: none; }
.hm-notch { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .24); z-index: 3; }
.hm-screen { position: relative; width: 300px; aspect-ratio: 9 / 16; border-radius: 32px; overflow: hidden; background: #000; }
.hm-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 27, 56, .05) 40%, rgba(20, 27, 56, .78)); pointer-events: none; }
.hm-screen.is-playing::after { display: none; }
.hm-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-play { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; padding: 0 18px 30px; border: 0; background: transparent; color: #fff; cursor: pointer; text-align: center; }
.hm-play .vsl-play { margin-bottom: auto; margin-top: 46%; }
.hm-play:hover .vsl-play { transform: scale(1.07); }
.hm-play-txt { font-weight: 800; font-size: 17px; line-height: 1.3; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.hm-play-txt small { display: block; font-weight: 500; font-size: 12.5px; opacity: .85; }

/* ─── Barra de reseñas ─── */
.hm-proof { background: #f6ecc9; text-align: center; padding: 16px 24px; font-size: 15px; font-weight: 600; color: var(--ink); }
.hm-proof a { text-decoration: none; }
.hm-proof a:hover { text-decoration: underline; }
.hm-stars { color: #d9a514; margin-right: 6px; letter-spacing: 1px; }

/* ─── Ciudades ─── */
.hm-sedes { position: relative; overflow: hidden; max-width: 1200px; margin: 0 auto; padding: 88px 24px 80px; text-align: center; }
.hm-sedes::before { content: ""; position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 640px; height: 640px; max-width: 100%; background: radial-gradient(circle, rgba(220, 168, 24, .09) 0%, transparent 70%); pointer-events: none; }
.hm-sedes > * { position: relative; }
.hm-sedes h2, .hm-como h2, .hm-faq h2, .hm-cambios h2, .hm-yt h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); line-height: 1.15; }
.hm-sedes h2 em, .hm-yt h2 em, .hm-tc-title em { font-family: var(--display); font-style: normal; font-weight: 600; color: var(--gold-text); }
.hm-sedes-sub { margin: 10px auto 40px; font-size: 16.5px; color: var(--muted); }
.hm-counter { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--line); border-radius: 100px; padding: 8px 20px 8px 8px; margin-bottom: 30px; box-shadow: 0 2px 12px rgba(31, 42, 82, .05); }
.hm-counter-dot { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #c99206, var(--gold)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.hm-counter span { font-size: 14px; font-weight: 700; color: var(--ink); }
.hm-counter span em { font-style: normal; font-weight: 500; color: var(--muted); }
.hm-sedes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hm-sede { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 28px 16px 22px; background: var(--white); border: 1.5px solid rgba(226, 223, 215, .9); border-radius: 18px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .3s cubic-bezier(.25, .46, .45, .94), box-shadow .3s, border-color .3s; }
.hm-sede::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #c99206, var(--gold)); opacity: 0; transition: opacity .3s; }
.hm-sede:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(31, 42, 82, .1), 0 2px 8px rgba(220, 168, 24, .14); border-color: rgba(220, 168, 24, .4); }
.hm-sede:hover::before { opacity: 1; }
.hm-sede-img { position: relative; width: 92px; height: 92px; margin-bottom: 16px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #3a4a85, var(--navy-deep)); border: 3px solid #ece7dc; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(31, 42, 82, .12); transition: transform .3s, border-color .3s; }
.hm-sede:hover .hm-sede-img { transform: scale(1.05); border-color: var(--gold); }
.hm-sede-ini { font-family: var(--display); font-weight: 600; font-size: 42px; line-height: 1; color: var(--gold); }
.hm-sede-img--online { color: var(--gold); }
.hm-sede-img--online .ic { width: 38px; height: 38px; }
.hm-sede-st { position: absolute; right: 3px; bottom: 3px; width: 15px; height: 15px; border-radius: 50%; background: #2fb463; border: 2.5px solid #fff; animation: latido 2s ease-in-out infinite; }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 180, 99, .45); } 50% { box-shadow: 0 0 0 6px rgba(47, 180, 99, 0); } }
.hm-sede strong { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-sede-dir { font-size: 14px; color: var(--muted); margin-bottom: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-sede-tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; background: #fbf1d3; color: var(--gold-text); white-space: nowrap; }
.hm-sede-tag--on { background: #e3f4e8; color: #22663d; }
.hm-sedes-bottom { margin-top: 40px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ─── Cómo funciona ─── */
.hm-como { background: var(--cream); padding: 80px 24px; }
.hm-como-inner { max-width: 1040px; margin: 0 auto; text-align: center; }
.hm-como h2 { margin-bottom: 46px; }
.hm-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.hm-paso { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hm-paso-n { width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: 18px; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(220, 168, 24, .35); }
.hm-paso h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.hm-paso p { font-size: 15.5px; color: var(--muted); line-height: 1.6; max-width: 290px; }

/* ─── Preguntas ─── */
.hm-faq { background: var(--navy-deep); padding: 80px 24px; }
.hm-faq-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hm-faq .hm-label { color: var(--gold); }
.hm-faq h2 { color: #fff; margin-bottom: 34px; }
.hm-acc { text-align: left; }
.hm-acc-item { background: var(--white); border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s; }
.hm-acc-item.open { box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.hm-acc-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border: 0; background: transparent; cursor: pointer; text-align: left; font-size: 16.5px; font-weight: 700; color: var(--navy); }
.hm-acc-ic { flex: none; color: var(--gold-text); font-size: 24px; line-height: 1; transition: transform .3s; }
.hm-acc-item.open .hm-acc-ic { transform: rotate(45deg); }
.hm-acc-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.hm-acc-item.open .hm-acc-a { max-height: 360px; }
.hm-acc-a p { padding: 0 22px 20px; font-size: 15.5px; color: var(--muted); line-height: 1.65; }

/* ─── Guías ─── */
.hm-guias { padding: 72px 0 76px; background: var(--paper); }
.hm-caja { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hm-guias-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.hm-kicker { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 6px; }
.hm-guias h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.hm-guias-nota { font-size: 15.5px; color: var(--muted); }
.hm-guias-nota strong { color: var(--ink); }
.hm-guias-fila { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 26px; }
.hm-guias-fila .mf-item { width: auto; }
.hm-guias-fila .gc, .hm-guias-fila .ds { max-width: 206px; margin: 0 auto; }
.hm-guias .mf-cap { font-size: 15px; }
.hm-todos { display: inline-block; font-weight: 800; font-size: 15.5px; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ─── Cintas de antes y después ─── */
.hm-cambios { background: var(--cream); padding: 76px 0; }
.hm-cabecera { max-width: 1120px; margin: 0 auto 44px; padding: 0 24px; text-align: center; }
.hm-cabecera .hm-label { display: block; margin-bottom: 10px; }
.hm-desc { max-width: 660px; margin: 14px auto 0; font-size: 16.5px; color: var(--muted); }

/* ─── Transformaciones ─── */
.hm-tc { max-width: 1180px; margin: 0 auto; padding: 76px 24px 64px; }
.hm-tc-head { text-align: center; max-width: 740px; margin: 0 auto 34px; }
.hm-tc-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); background: #fbf3dc; border: 1px solid #f1e3b8; padding: 7px 15px; border-radius: 100px; margin-bottom: 16px; }
.hm-tc-label::before { content: "★★★★★"; letter-spacing: 1px; color: #d9a514; }
.hm-tc-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); margin-bottom: 14px; }
.hm-tc-sub { font-size: 16.5px; color: var(--muted); line-height: 1.65; }
.hm-tc-sub strong { color: var(--ink); }
.hm-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 30px; }
.hm-tab { font-size: 15px; font-weight: 700; color: var(--navy); background: var(--white); border: 1.5px solid var(--line); border-radius: 100px; padding: 11px 22px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.hm-tab:hover { border-color: var(--gold); }
.hm-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hm-corto { display: none; }
.hm-vids { margin-top: 0; grid-template-columns: repeat(5, 1fr); }
.hm-vids .vid-extra { display: list-item !important; }
.hm-rejilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-rejilla:not(.is-open) li:nth-child(n+9) { display: none; }
.hm-rejilla button { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--cream); cursor: zoom-in; box-shadow: 0 8px 22px rgba(31, 42, 82, .1); transition: transform .2s, box-shadow .2s; }
.hm-rejilla button:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 42, 82, .16); }
.hm-rejilla img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hm-mas-wrap { text-align: center; margin-top: 24px; }
.hm-tc-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* ─── Vídeos del canal ─── */
.hm-yt { background: var(--white); padding: 72px 24px 76px; }
.hm-yt-cab { text-align: center; margin-bottom: 30px; }
.hm-yt-cab p { margin-top: 10px; color: var(--muted); font-size: 16.5px; }
.hm-yt-fila { list-style: none; margin: 0 auto; padding: 0; max-width: 1140px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hm-short img { aspect-ratio: 9 / 16; object-fit: cover; }
.hm-short .vid-name { font-size: 14.5px; }
.hm-yt-mas { text-align: center; margin-top: 26px; }
.hm-yt-mas a { color: var(--gold-text); font-weight: 800; text-decoration: none; }
.hm-yt-mas a:hover { text-decoration: underline; }

/* ─── Pie ─── */
.hm-sf-main { grid-template-columns: 1fr 1fr 1fr 220px; }
.hm-sf-sello { order: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--white); border-radius: 16px; padding: 20px 16px 16px; text-decoration: none; color: var(--ink); text-align: center; align-self: start; }
.hm-sf-sello img { width: 160px; margin-bottom: 8px; }
.hm-sf-stars { color: #d9a514; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.hm-sf-sello strong { font-size: 16px; color: var(--navy); }
.hm-sf-pie { font-size: 13px; color: var(--muted); }
.hm-sf-sello:hover .hm-sf-pie { text-decoration: underline; color: var(--navy); }

/* ─── Botones flotantes ─── */
.hm-float { position: fixed; right: 20px; bottom: 24px; z-index: 450; display: flex; flex-direction: column; gap: 10px; }
.hm-float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); transition: transform .2s; }
.hm-float-btn:hover { transform: scale(1.08); }
.hm-float-btn .ic { width: 26px; height: 26px; }
.hm-float-wa { background: var(--wa); }
.hm-float-tel { background: var(--gold); color: var(--navy-deep); }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .hm-vids { grid-template-columns: repeat(4, 1fr); }
  .hm-yt-fila { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
}
@media (max-width: 960px) {
  .hm-hero { grid-template-columns: 1fr; padding: 36px 24px 44px; gap: 30px; }
  .hm-hero-text { text-align: center; }
  .hm-hero-text > p { margin-left: auto; margin-right: auto; }
  .hm-stats, .hm-cta { justify-content: center; }
  .hm-hero-media { order: -1; }
  .hm-screen { width: 230px; }
  .hm-sedes-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
  .hm-pasos { grid-template-columns: 1fr; gap: 30px; max-width: 420px; margin: 0 auto; }
  .hm-guias-fila { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-rejilla { grid-template-columns: repeat(3, 1fr); }
  .hm-vids { grid-template-columns: repeat(3, 1fr); }
  .hm-sf-main { grid-template-columns: 1fr 1fr 1fr; }
  .hm-sf-sello { order: -1; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
  .hm-sf-sello img { margin: 0; width: 140px; }
}
@media (max-width: 768px) {
  .hm-float { display: none; }
}
@media (max-width: 620px) {
  .hm-hero { padding: 24px 16px 36px; gap: 24px; }
  .hm-h1 { font-size: 36px; }
  .hm-h1 em { display: block; }
  .hm-hero-text > p { font-size: 16px; }
  .hm-stats { gap: 18px 22px; }
  .hm-stat strong { font-size: 24px; }
  .hm-cta { flex-direction: column; align-items: stretch; }
  .hm-cta .btn { width: 100%; }
  .hm-screen { width: 172px; border-radius: 24px; }
  .hm-device { border-radius: 36px; padding: 10px; }
  .hm-play { padding: 0 10px 16px; gap: 10px; }
  .hm-play .vsl-play { width: 58px; height: 58px; }
  .hm-play .vsl-play .ic { width: 24px; height: 24px; }
  .hm-play-txt { font-size: 13.5px; }
  .hm-play-txt small { font-size: 11px; }
  .hm-proof { font-size: 14px; padding: 13px 16px; }
  .hm-sedes { padding: 60px 16px 56px; }
  .hm-sedes-sub { margin-bottom: 26px; font-size: 15px; }
  .hm-sedes-grid { gap: 12px; }
  .hm-sede { padding: 18px 10px 16px; border-radius: 14px; }
  .hm-sede-img { width: 66px; height: 66px; margin-bottom: 10px; }
  .hm-sede-ini { font-size: 30px; }
  .hm-sede strong { font-size: 15px; }
  .hm-sede-dir { font-size: 12.5px; margin-bottom: 8px; }
  .hm-sede-tag { font-size: 11px; padding: 4px 9px; }
  .hm-sedes-bottom { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hm-como, .hm-faq { padding: 60px 18px; }
  .hm-acc-q { padding: 17px 18px; font-size: 15.5px; }
  .hm-guias, .hm-cambios { padding: 60px 0; }
  .hm-guias-fila { gap: 28px 16px; }
  .hm-tc { padding: 60px 16px 52px; }
  .hm-tabs { gap: 6px; }
  .hm-tab { font-size: 14px; padding: 10px 14px; white-space: nowrap; }
  .hm-largo { display: none; }
  .hm-corto { display: inline; }
  .hm-vids, .hm-rejilla { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hm-rejilla:not(.is-open) li:nth-child(n+5) { display: none; }
  .hm-yt { padding: 60px 0 60px; }
  .hm-yt-cab { padding: 0 18px; }
  .hm-yt-fila { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 18px 8px; max-width: none; scrollbar-width: none; }
  .hm-yt-fila::-webkit-scrollbar { display: none; }
  .hm-yt-fila > li { flex: 0 0 44%; scroll-snap-align: start; }
  .hm-sf-main { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-hero-text > *, .hm-hero-media, .hm-device, .hm-sede-st { animation: none; }
}
