/* ================================================================
   SmartBeat Electrofitness — Propuesta D (styles.css)
   Base: Propuesta A (dirección Híbrida) + elevación visual:
   header oscuro con logo, banda de confianza animada (marquee) de
   alto contraste, iconos en secciones, tarjetas con profundidad.
   Paleta de marca: 00C1C1 / 071313.
   ================================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f7f8;
  --ink: #071313;
  --ink-soft: #47575c;
  --line: #e2e9ec;
  --brand: #00c1c1;
  --brand-dark: #0a7f85;
  --brand-ink: #063d44;
  --brand-glow: rgba(0, 193, 193, .35);
  --dark: #071313;
  --dark-2: #0b1618;
  --dark-3: #0f2023;
  --star: #ffc21f;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --shadow: 0 10px 40px rgba(7, 19, 19, 0.08);
  --shadow-lg: 0 26px 60px rgba(7, 19, 19, 0.16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 800; color: var(--brand-dark);
  margin: 0 0 .8em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: .98rem; padding: .82em 1.55em;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #04211f; box-shadow: 0 10px 26px var(--brand-glow); }
.btn-primary:hover { background: #14d3d3; color: #04211f; box-shadow: 0 14px 32px var(--brand-glow); }
.btn-outline { background: transparent; color: var(--brand-ink); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #04211f; }
.btn-lg { padding: 1.02em 2em; font-size: 1.05rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; margin-top: 1em; font-weight: 700; color: var(--brand-dark); }
.link-arrow:hover { gap: .7em; text-decoration: none; }

/* ---------- Header (oscuro, con logo) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 19, 19, .72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: #d7e2e4; font-weight: 600; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav-secondary { color: #8fa2a6 !important; }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #eaf6f6; border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: var(--dark-2); }
.nav-mobile a { padding: 12px 4px; font-weight: 600; color: #dfe9ea; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-mobile a.btn { border: none; margin-top: 10px; color: #04211f; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1100px 720px at 90% 6%, rgba(0,193,193,.24), transparent 58%),
    radial-gradient(700px 500px at 8% 90%, rgba(0,193,193,.10), transparent 60%),
    linear-gradient(150deg, #071313 0%, #0e2528 52%, #071313 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center;
  padding: clamp(54px, 8vw, 104px) 22px;
}
.hero-content { max-width: 640px; }
.hero .eyebrow { color: var(--brand); }
.hero .eyebrow::before { background: var(--brand); }
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c7d6d8; max-width: 560px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 2rem; }
.hero-photo { position: relative; }
.hero-photo::after {
  content: ""; position: absolute; inset: -2px; border-radius: calc(var(--radius-lg) + 2px);
  box-shadow: inset 0 0 0 1px rgba(0,193,193,.35), 0 0 60px rgba(0,193,193,.22); pointer-events: none;
}
.hero-photo img {
  width: 100%; height: clamp(380px, 46vw, 580px); object-fit: cover; object-position: center;
  border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(0,0,0,.5);
  border: 1px solid rgba(0,193,193,.25);
}
.hero-photo-badge {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(7,19,19,.66); color: #eafcff; backdrop-filter: blur(6px);
  padding: 9px 15px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  border: 1px solid rgba(0,193,193,.4);
}
.rating { color: #e8eef2; font-size: 1rem; }
.rating strong { color: var(--star); }

/* ---------- Trust strip: MARQUEE de alto contraste ---------- */
.trust {
  background: linear-gradient(90deg, #00c1c1 0%, #17d4d0 50%, #00c1c1 100%);
  border-top: 2px solid rgba(255,255,255,.35);
  border-bottom: 2px solid rgba(7,19,19,.15);
  overflow: hidden; position: relative;
}
.trust::before, .trust::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.trust::before { left: 0; background: linear-gradient(90deg, #00c1c1, transparent); }
.trust::after { right: 0; background: linear-gradient(270deg, #00c1c1, transparent); }
.trust-marquee { display: flex; width: max-content; animation: trust-scroll 32s linear infinite; }
.trust:hover .trust-marquee { animation-play-state: paused; }
.trust-track { display: flex; align-items: center; }
.trust-item {
  display: inline-flex; align-items: center;
  color: #04211f; font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  padding: 15px 0; white-space: nowrap;
}
.trust-item::before {
  content: ""; width: 15px; height: 15px; margin: 0 30px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2304211f'%3E%3Cpath d='M13 2 3 14h7l-1 8 10-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trust-marquee { animation: none; flex-wrap: wrap; justify-content: center; }
  .trust-track:nth-child(2) { display: none; }
  .trust-track { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-alt::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: .5;
}
.section-title { max-width: 22ch; }
.section-intro { color: var(--ink-soft); font-size: 1.12rem; max-width: 62ch; margin-top: -.1em; }
.subhead { margin-top: 1.6em; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-dark); font-weight: 800; }

/* icon base */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.steps li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 30px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.steps li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), transparent 85%); }
.steps li:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(0,193,193,.4); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.step-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(140deg, var(--brand), var(--brand-dark)); color: #04211f; font-weight: 800; font-size: 1.15rem; box-shadow: 0 8px 18px var(--brand-glow); }
.step-icon { width: 30px; height: 30px; stroke: var(--brand-dark); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- Benefits ---------- */
.benefits { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; }
.benefits li {
  display: flex; align-items: flex-start; gap: 15px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500; box-shadow: 0 6px 20px rgba(7,19,19,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.benefits li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(0,193,193,.4); }
.benefit-icon { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 11px; background: rgba(0,193,193,.12); stroke: var(--brand-dark); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.benefits li span { align-self: center; }

/* ---------- Grid 2 (método) ---------- */
.grid-2 { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: start; }
.media-card {
  position: relative; min-height: 460px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(180deg, rgba(7,19,19,.12) 35%, rgba(7,19,19,.78) 100%),
    url("assets/metodo.jpg") center / cover no-repeat,
    linear-gradient(140deg, #0e2528, #071313);
}
.media-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,193,193,.25); border-radius: inherit; }
.media-badge { position: absolute; left: 18px; bottom: 18px; background: rgba(7,19,19,.6); color: #eafcff; padding: 9px 15px; border-radius: 999px; font-size: .82rem; font-weight: 700; border: 1px solid rgba(0,193,193,.4); backdrop-filter: blur(4px); z-index: 1; }
.claim { position: relative; background: linear-gradient(180deg, #fff, #f5fbfb); border: 1px solid rgba(0,193,193,.28); border-left: 4px solid var(--brand); border-radius: 14px; padding: 22px 24px 22px 26px; margin: 1.5em 0; box-shadow: var(--shadow); }
.claim h3 { color: var(--brand-ink); display: flex; align-items: center; gap: 10px; }
.claim h3::before { content: ""; width: 22px; height: 22px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7f85' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.claim p { margin: 0; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 2rem; }
.review { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,193,193,.4); }
.review::before { content: "\201C"; position: absolute; top: -18px; right: 14px; font-size: 6rem; line-height: 1; color: rgba(0,193,193,.14); font-family: Georgia, "Times New Roman", serif; }
.review blockquote { margin: 0 0 .9em; font-size: 1.06rem; color: var(--ink); position: relative; }
.review figcaption { color: var(--star); font-weight: 700; font-size: .92rem; }
.review figcaption span { color: var(--ink-soft); }

/* ---------- Plans ---------- */
.plans-table { width: 100%; border-collapse: collapse; margin-top: 2rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.plans-table th, .plans-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.plans-table thead th { background: linear-gradient(120deg, #0e2528, #071313); color: #eafcff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.plans-table tbody tr { transition: background .15s; }
.plans-table tbody tr:hover { background: rgba(0,193,193,.05); }
.plans-table td:nth-child(2) { font-weight: 800; color: var(--brand-ink); white-space: nowrap; }
.plans-table tbody tr:last-child td { border-bottom: 0; }
.plans-conditions { color: var(--ink-soft); font-size: .9rem; margin-top: 14px; }
.plans-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 2.4rem; }
.plans-cta > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.plans-cta > div:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,193,193,.4); }
.plans-cta h3 { margin-bottom: .3em; }
.plans-cta p { color: var(--ink-soft); margin-top: 0; }

/* ---------- Estudio ---------- */
.estudio-foto {
  height: clamp(240px, 40vw, 440px); border-radius: var(--radius-lg); margin: 1.6rem 0 .6rem;
  background: linear-gradient(180deg, rgba(7,19,19,.05), rgba(7,19,19,.3)), url("assets/comunidad.jpg") center 30% / cover no-repeat;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,193,193,.2);
}
.coaches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 1rem; max-width: 640px; }
.coach { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.coach-photo { aspect-ratio: 4/3; display: grid; place-items: center; color: rgba(234,252,255,.55); font-size: .85rem; letter-spacing: .05em; background: linear-gradient(140deg, #0e2528, #071313); }
.coach figcaption { padding: 16px 18px; display: flex; flex-direction: column; }
.coach figcaption strong { font-size: 1.05rem; }
.coach figcaption span { color: var(--ink-soft); font-size: .92rem; }
.estudio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 1.4rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--brand-ink); }

/* ---------- CTA final ---------- */
.cta-final {
  color: #fff; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(0,193,193,.2), transparent 60%),
    linear-gradient(160deg, #0b1618, #071313);
}
.cta-inner { max-width: 720px; position: relative; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #c7d6d8; }
.cta-notes { list-style: none; padding: 0; margin: 1.8rem auto; display: inline-flex; flex-direction: column; gap: 10px; text-align: left; }
.cta-notes li { position: relative; padding-left: 32px; color: #dbe8e8; }
.cta-notes li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300c1c1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.cta-contact { margin-top: 1.6rem; font-size: .95rem; color: #c7d6d8; }
.cta-contact a { color: var(--brand); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #b3c1c2; padding: 60px 0 26px; border-top: 1px solid rgba(0,193,193,.16); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; }
.site-footer a { color: #cdd9da; }
.footer-tag { color: #869598; max-width: 34ch; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 18px; font-size: .82rem; color: #74868a; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.07); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-mobile.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; }
  .hero-photo img { height: clamp(280px, 62vw, 400px); }
  .steps, .benefits, .reviews, .plans-cta, .coaches, .estudio-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .plans-table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 540px) {
  .hero-actions { gap: 14px; }
  .footer-grid { gap: 26px; }
  .trust-item { font-size: .88rem; }
}

/* ---------- Dark mode del sistema ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071313; --bg-alt: #0b1a1c; --ink: #eef6f6; --ink-soft: #9fb4b6;
    --line: #1d2e30; --brand-ink: #7fe6e6; --shadow: 0 10px 40px rgba(0,0,0,.5);
    --shadow-lg: 0 26px 60px rgba(0,0,0,.6);
  }
  body { background: var(--bg); }
  .steps li, .review, .benefits li, .plans-cta > div, .coach, .plans-table, .nav-mobile { background: #0e2022; }
  .claim { background: linear-gradient(180deg, #0e2022, #0b1a1c); }
  .section-alt { background: #0a1719; }
  .plans-table thead th { background: linear-gradient(120deg, #0b1a1c, #071313); }
  .step-icon, .benefit-icon { stroke: var(--brand); }
  .benefit-icon { background: rgba(0,193,193,.16); }
  .subhead { color: var(--brand); }
  /* La banda .trust mantiene su cyan explícito con texto oscuro: alto contraste también en dark. */
}
