/* ============================================================
   CONTROL METABÓLICO 90 — Dr. Alfaro
   styles.css
   ============================================================ */

/* GOOGLE FONTS — cargadas desde HTML */

/* VARIABLES */
:root {
  --white:      #FFFFFF;
  --black:      #1C1C1C;
  --gray:       #6B7280;
  --light:      #F3F4F6;
  --red:        #D94F4F;
  --red-hover:  #C23E3E;
  --red-pale:   #FEF2F2;
  --red-light:  #FEE2E2;
  --border:     #E5E7EB;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.10);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* BASE */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* LAYOUT */
.container { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.section-gap { padding: 60px 24px; }
section { padding: 80px 24px; }

/* TYPOGRAPHY HELPERS */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 24px;
}

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo img {
  height: 34px;
  width: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--red-hover);
  transform: translateY(-1px);
  outline: none;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--red);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--red);
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--red); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 110px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.hero-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--red-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D94F4F'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-photo {
  margin: 40px auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
}

.hero-photo img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
  max-height: 400px;
}

/* ============================================================
   PROBLEMA
   ============================================================ */
.problem-box {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.problem-list li {
  padding: 13px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 15px;
  border-left: 3px solid var(--red);
  box-shadow: var(--shadow-sm);
}

.clinical-tension {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
}

.clinical-tension p {
  font-size: 14px;
  color: #7F1D1D;
  line-height: 1.65;
}

/* ============================================================
   VERDAD CLÍNICA
   ============================================================ */
.truth-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.truth-card {
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.truth-card .t-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.truth-conclusion {
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 24px;
}

/* Diferenciador */
.differentiator {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.differentiator h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.diff-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  align-items: flex-start;
}
.diff-row:last-child { margin-bottom: 0; }
.diff-no   { color: var(--gray); flex: 1; }
.diff-yes  { color: var(--black); font-weight: 500; flex: 1; }
.diff-arrow { color: var(--red); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   SOLUCIÓN
   ============================================================ */
.solution-box {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
}

.solution-box .eyebrow { color: #FCA5A5; }
.solution-box .divider { background: #FCA5A5; }
.solution-box h2.section-title { color: var(--white); }

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #E5E7EB;
  line-height: 1.5;
}

.solution-list li .num {
  background: var(--red);
  color: var(--white);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   QUÉ INCLUYE
   ============================================================ */
.includes-box {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
}

.includes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.include-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.include-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.include-text { font-size: 15px; font-weight: 500; }
.include-sub  { font-size: 13px; color: var(--gray); margin-top: 2px; }

/* ============================================================
   PARA QUIÉN ES
   ============================================================ */
.conditions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.condition-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
}

.condition-dot {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.forwhom-note {
  padding: 15px 18px;
  background: var(--red-pale);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
  font-size: 15px;
  color: var(--gray);
}

/* ============================================================
   GIMNASIO
   ============================================================ */
.gym-box {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.gym-box h2.section-title { font-size: clamp(20px, 4vw, 28px); }
.gym-box p { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 8px; }
.gym-box p:last-child { margin-bottom: 0; }

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  position: relative;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px; top: 36px; bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
  position: relative; z-index: 1;
}

.step-content h4 {
  font-size: 15px; font-weight: 600;
  margin-bottom: 3px; margin-top: 6px;
}
.step-content p { font-size: 14px; color: var(--gray); }

/* ============================================================
   AUTORIDAD
   ============================================================ */
.authority-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.authority-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.authority-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.authority-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.authority-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 600;
  margin-bottom: 10px;
}
.authority-text p {
  font-size: 15px; color: var(--gray);
  line-height: 1.7; margin-bottom: 8px;
}
.authority-text p:last-child { margin-bottom: 0; }
.authority-note { font-size: 13px !important; color: #9CA3AF !important; }

/* ============================================================
   ALTERNATIVA
   ============================================================ */
.alternative-box {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}

.alternative-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600;
  margin-bottom: 10px;
}
.alternative-box p {
  font-size: 15px; color: var(--gray);
  margin-bottom: 24px; line-height: 1.6;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final-box {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
}

.cta-final-box h2.section-title { color: var(--white); }
.cta-final-box p {
  font-size: 15px; color: #9CA3AF;
  margin-bottom: 28px; line-height: 1.6;
}

/* ============================================================
   LEGAL & FOOTER
   ============================================================ */
.legal {
  padding: 28px 24px;
  text-align: center;
}
.legal p {
  font-size: 12px; color: #9CA3AF;
  line-height: 1.6; max-width: 520px;
  margin: 0 auto;
}

.site-footer {
  padding: 20px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer p { font-size: 13px; color: #9CA3AF; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 200;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.50);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   RESPONSIVE — tablet / desktop
   ============================================================ */
@media (min-width: 640px) {
  .hero-photo { max-width: 400px; }
  .authority-inner { flex-direction: row; text-align: left; }
  .diff-row { align-items: center; }
}

@media (min-width: 768px) {
  .includes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
