/* Nuevo inicio y menú · publicado 01-12-2026 (propuesta B). Deshacer: quitar el <link> de hero-v3.css y restaurar template.php del respaldo. */
/* =============================================================
   Rediseño del inicio y del menú (12-2026) · parte común
   ============================================================= */

/* ---------- Menú ---------- */
/* Barra a todo el ancho, más alta y con más aire (v2) */
.nav.nx { top: 0; padding-inline: 0; }
.nx .nav-inner { max-width: none; width: 100%; height: 76px; gap: 1.4rem; border-radius: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 0 max(var(--gutter), calc((100% - var(--maxw)) / 2)); background: rgba(11,18,34,.7); box-shadow: none; }
.nx .logo-img { height: 46px; }
.nx .nav-sep { display: none !important; }
.nx .burger { margin-left: 0; width: 44px; height: 44px; }
.nx .nav-links { gap: .2rem; }
.nx .nav-links a { font-size: 15px; padding: .55rem .85rem; color: #C9CEDA; }
.nx-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nx-login { display: none; height: 44px; padding: 0 1rem; border-radius: 999px; align-items: center; font-size: 15px; font-weight: 500; color: #E7E9EF; transition: color .2s, background-color .2s; }
.nx-login:hover { color: #fff; background: rgba(255,255,255,.07); }
.nx-trial { display: inline-flex; height: 40px; padding: 0 1rem; border-radius: 999px; align-items: center; font-size: 14px; font-weight: 600;
  background: #fff; color: var(--ink); transition: background-color .2s, color .2s, scale .16s var(--ease-ui, ease); white-space: nowrap; }
.nx-trial:hover { background: var(--orange); color: #fff; }
.nx-trial:active, .nx-login:active { scale: .97; }
@media (max-width: 959px) {
  .nx .nav-inner { height: 66px; gap: .6rem; }
  .nx .logo-img { height: 38px; }
}
@media (min-width: 960px) {
  .nx-login { display: inline-flex; }
  .nx-trial { height: 46px; font-size: 15px; padding: 0 1.4rem; }
  .nx .nav-links { margin-inline: auto 0; }
}
@media (min-width: 960px) and (max-width: 1180px) {
  .nx .nav-inner { gap: .8rem; }
  .nx .nav-links a { padding-inline: .6rem; font-size: 14.5px; }
  .nx-login { padding: 0 .7rem; }
}
.nx-menu-foot { display: grid; gap: 1rem; margin-top: 1.6rem; }
.nx-menu-foot .btn { justify-content: space-between; }
.nx-menu-row { display: flex; justify-content: space-between; gap: 1rem; }
.nx-menu-row a { min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; color: #C9CEDA; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.3); }

/* ---------- Inicio: estructura común ---------- */
.hero.hx { display: block; min-height: 0; padding: clamp(112px, 11vw, 136px) 0 clamp(40px, 5vw, 64px); }
.hx .hero-bg { display: none; }
.hx-inner { position: relative; }
.hx-copy { display: grid; justify-items: center; text-align: center; max-width: 900px; margin-inline: auto; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .8rem; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: #C9CEDA; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.hx .hx-title { margin-top: 1.1rem; max-width: 19ch; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.03; text-wrap: balance; }
.hx-sub { margin-top: 1.1rem; max-width: 44ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: #C3C8D4; text-wrap: balance; }
.hx-cta { margin-top: 1.7rem; }

/* ---------- Valoración + prueba gratis ---------- */
.hx-proof { display: grid; justify-items: center; gap: .75rem; }
.hx-rating { display: grid; justify-items: center; gap: .3rem; }
.hx-stars { font-size: 17px; letter-spacing: 3px; color: #FFB648; line-height: 1; }
.hx-rating p { display: grid; justify-items: center; gap: .15rem; line-height: 1.2; }
.hx-rating b { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.03em; color: #fff; }
.hx-rating p span { font-size: 14.5px; color: #C3C8D4; }
.hx-trial { display: inline-flex; align-items: center; gap: .55rem; height: 48px; padding: 0 1.25rem; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: #fff; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.04);
  transition: background-color .2s, border-color .2s, scale .16s var(--ease-ui, ease); }
.hx-trial svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .2s var(--ease-ui, ease); }
.hx-trial:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.hx-trial:hover svg { translate: 2px 0; }
.hx-trial:active { scale: .97; }
.hx-nocard { display: inline-flex; align-items: center; gap: .35rem; font-size: 13px; color: #9AA1B2; margin-top: -.2rem; }
.hx-nocard svg { width: 14px; height: 14px; fill: none; stroke: #3DDC97; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Iconos de línea */
.hx i svg, .hx-week i svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Entrada única del visual (el texto y el botón aparecen al instante) */
html.js .hx-stage, html.js .hx-week, html.js .hx-tri, html.js .hx-chips { animation: fmHeroIn .7s cubic-bezier(.23, 1, .32, 1) .1s both; }
@media (prefers-reduced-motion: reduce) {
  html.js .hx-stage, html.js .hx-week, html.js .hx-tri, html.js .hx-chips { animation: none; }
}

/* Móvil */
@media (max-width: 599px) {
  .hero.hx { padding-top: 100px; }
  .hx-eyebrow { font-size: 12px; }
  .hx .hx-title { font-size: 40px; margin-top: .9rem; }
  .hx-sub { font-size: 1.02rem; margin-top: .9rem; }
  .hx-cta { width: 100%; max-width: 400px; justify-content: space-between; margin-top: 1.4rem; }
}
@media (max-width: 359px) {
  .hx .hx-title { font-size: 35px; }
  .hx-cta, .nx-menu-foot .btn { font-size: 15px; padding-left: 1.1rem; gap: .6rem; }
  .nx-menu-row { flex-wrap: wrap; }
  .nx-trial { padding: 0 .8rem; font-size: 13px; height: 38px; }
  .nx .logo-img { height: 34px; }
}

/* ---------- Propuesta B · «Tu semana en Fitmind» (v2) ---------- */
.hero.hx-b { background: var(--navy); padding-top: clamp(104px, 9.5vw, 124px); }

/* Foto de fondo: oscurecida en el centro para que el texto se lea siempre */
.hx-b .hx-photo { display: block; position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hx-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hx-b .hx-photo::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(11,18,34,.82), rgba(11,18,34,.45) 70%),
    linear-gradient(180deg, rgba(11,18,34,.55) 0%, rgba(11,18,34,.25) 35%, rgba(11,18,34,.7) 75%, var(--navy) 100%); }
.hx-b .hx-photo:empty { background: radial-gradient(50% 40% at 50% 0%, rgba(255,70,0,.12), transparent 70%); }
.hx-b .hx-photo:empty::after { display: none; }

.hx-b .hx-cta { margin-top: 1.5rem; }
.hx-social { margin-top: 1rem; display: inline-flex; align-items: center; gap: .55rem; font-size: 15px; color: #C3C8D4; }
.hx-social b { color: #fff; font-weight: 600; }
.hx-social i { width: 18px; height: 18px; color: var(--orange-2); flex: none; }

/* Panel */
.hx-week { position: relative; margin: clamp(28px, 3.2vw, 40px) auto 0; max-width: 1120px; padding: 16px; border-radius: 26px;
  background: rgba(18,26,46,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.09); box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); }
.hw-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 4px 6px 14px; text-align: left; }
.hw-title { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.hw-subt { font-size: 13.5px; color: #A9B0C2; margin-top: .1rem; }
.hw-days { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hw-days li { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #9AA1B2; background: rgba(255,255,255,.05); }
.hw-days li.done { color: var(--orange-2); background: rgba(255,70,0,.12); }
.hw-days li.now { color: #fff; background: var(--orange); }

.hw-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 10px; }
.hw-card { padding: 16px; border-radius: 18px; background: var(--navy-3); border: 1px solid rgba(255,255,255,.05); text-align: left; display: flex; flex-direction: column; min-width: 0; }
.hw-k { display: flex; align-items: center; gap: .45rem; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #9AA1B2; }
.hw-k i { width: 16px; height: 16px; color: var(--orange-2); flex: none; }
.hw-card h3 { margin: .55rem 0 .7rem; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.hw-list { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.hw-list li { position: relative; padding-left: 26px; font-size: 14px; color: #C3C8D4; }
.hw-list li::before { content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); }
.hw-list li.ok::before { border-color: var(--orange); background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 6.8 11 12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Tarjeta del entrenador: foto más abierta (se ve el cuerpo) */
.hw-coach { flex-direction: row; gap: 14px; padding: 10px 16px 10px 10px; align-items: stretch; }
.hw-coach-ph { width: 118px; aspect-ratio: 4 / 5; height: auto; align-self: center; object-fit: cover; object-position: 50% 15%; border-radius: 12px; flex: none; background: #0E1424; }
.hw-coach-body { display: flex; flex-direction: column; justify-content: center; gap: .55rem; min-width: 0; }
.hw-coach-msg { font-size: 15px; line-height: 1.45; color: #E7E9EF; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: rgba(255,255,255,.06); }
.hw-coach-by { font-size: 13px; color: #A9B0C2; }
.hw-coach-by b { color: #fff; font-weight: 600; }

.hw-bars { flex: 1; min-height: 64px; margin-top: .9rem; display: flex; align-items: flex-end; gap: 6px; }
.hw-bars span { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px; background: rgba(255,255,255,.12); }
.hw-bars span.now { background: var(--orange); }
.hw-foot { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; color: #C3C8D4; }
.hw-foot i { width: 16px; height: 16px; color: var(--orange-2); flex: none; }

/* Prueba gratis, debajo del panel */
.hx-after { display: grid; justify-items: center; gap: .55rem; margin-top: clamp(22px, 2.6vw, 30px); }

@media (max-width: 1099px) {
  .hw-grid { grid-template-columns: repeat(3, 1fr); }
  .hw-coach { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .hw-grid { grid-template-columns: repeat(2, 1fr); }
  .hw-prog { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: end; }
  .hw-prog .hw-k { grid-column: 1 / -1; }
  .hw-prog .hw-bars { min-height: 56px; height: 56px; }
  .hw-prog .hw-foot { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 599px) {
  .hx-social { font-size: 14px; }
  .hx-week { padding: 10px; border-radius: 20px; margin-top: 24px; }
  .hw-top { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 6px 6px 10px; }
  .hw-days { gap: 4px; }
  .hw-days li { width: 28px; height: 28px; font-size: 11px; }
  .hw-grid { gap: 8px; }
  .hw-card { padding: 12px; border-radius: 14px; }
  .hw-coach { padding: 8px 12px 8px 8px; gap: 12px; }
  .hw-coach-ph { width: 92px; }
  .hw-coach-msg { font-size: 14px; }
  .hw-card h3 { font-size: 15px; }
  .hw-list li { font-size: 13px; padding-left: 22px; }
  .hw-list li::before { width: 15px; height: 15px; }
  .hw-k { font-size: 11px; }
}

/* Encaje de la foto de fondo: tu cara a la derecha, fuera del título */
.hx-photo picture { position: absolute; inset: 0; }
.hx-photo img { position: absolute; left: 0; top: 0; width: 125%; height: 100%; object-fit: cover; object-position: 0 12%; }
.hx-b .hx-photo::after { background:
  linear-gradient(90deg, rgba(11,18,34,.9) 0%, rgba(11,18,34,.72) 35%, rgba(11,18,34,.62) 58%, rgba(11,18,34,.12) 80%, rgba(11,18,34,.2) 100%),
  linear-gradient(180deg, rgba(11,18,34,.5) 0%, rgba(11,18,34,0) 22%, rgba(11,18,34,.35) 55%, rgba(11,18,34,.92) 82%, var(--navy) 100%); }
@media (max-width: 959px) {
  .hx-photo img { width: 100%; object-position: 70% 0; }
  .hx-b .hx-photo::after { background:
    linear-gradient(180deg, rgba(11,18,34,.62) 0%, rgba(11,18,34,.78) 30%, rgba(11,18,34,.9) 48%, var(--navy) 62%); }
}
@media (max-width: 599px) {
  .hx-photo picture, .hx-photo img { height: 760px; bottom: auto; }
  .hx-photo img { object-position: 50% 0; }
}
.hx-b .hx-photo { top: 0; bottom: 0; height: auto; }
.hx-photo img { max-width: none; }
@media (max-width: 959px) { .hx-photo img { max-width: 100%; } }
.hero.hx-b .hx-photo { inset: 0; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; mask-image: none; -webkit-mask-image: none; }
@media (min-width: 960px) {
  .hx-photo picture { inset: 0; }
  .hx-photo img { left: auto; right: -9%; top: 0; width: 76%; height: auto; aspect-ratio: 3 / 2; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, #000 62%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, #000 62%, transparent 100%); mask-composite: intersect; }
  .hx-b .hx-photo::after { background:
    radial-gradient(48% 42% at 50% 30%, rgba(11,18,34,.78), rgba(11,18,34,0) 100%),
    linear-gradient(180deg, rgba(11,18,34,.35) 0%, rgba(11,18,34,0) 20%, rgba(11,18,34,.25) 55%, rgba(11,18,34,.9) 85%, var(--navy) 100%); }
}
@media (min-width: 960px) and (max-width: 1279px) {
  .hx-photo img { right: -19%; }
}

/* Fondo original (mujer entrenando en casa) · 16:9 */
@media (min-width: 960px) {
  .hx-photo img { aspect-ratio: 16 / 9; object-position: 50% 50%; }
}
@media (max-width: 959px) {
  .hx-photo img { object-position: 67% 0; }
}

/* Sin formulario final (01-12-2026): enlace a WhatsApp bajo los planes */
.plan-reassure a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); transition: text-decoration-color .2s; }
.plan-reassure a:hover { text-decoration-color: var(--orange); }
