/* ============================================
   Sin Rebote — Hoja de estilos única
   Mobile-first, sin dependencias externas
   ============================================ */

/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #0f172a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: #0f766e; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #115e59; }

/* Layout base */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-wide {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.site-header a.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
}
.site-header a.logo svg { width: 28px; height: 28px; }
.site-header a.logo span { font-size: 1.05rem; letter-spacing: -0.01em; }

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.site-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: #0f766e; }
@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}
.hero .lead {
  font-size: 1.15rem;
  color: #334155;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .hero { padding: 5rem 0 3.5rem; }
  .hero h1 { font-size: 2.75rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  cursor: pointer;
}
.btn-primary {
  background: #0f766e;
  color: #ffffff;
}
.btn-primary:hover {
  background: #115e59;
  color: #ffffff;
}
.btn-secondary {
  background: #ffffff;
  color: #0f766e;
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  border-color: #0f766e;
  color: #115e59;
}

/* Sections */
section {
  padding: 3rem 0;
}
section h2 {
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #0f172a;
}
section h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #0f172a;
}
section p { margin-bottom: 1.1rem; color: #1e293b; }
section ul, section ol {
  margin: 0 0 1.25rem 1.25rem;
  color: #1e293b;
}
section li { margin-bottom: 0.45rem; }
section + section { border-top: 1px solid #f1f5f9; }
@media (min-width: 720px) {
  section { padding: 4rem 0; }
  section h2 { font-size: 1.95rem; }
}

/* Tarjetas (problema/solución/recurso) */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .cards--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  background: #ffffff;
  transition: border-color 120ms ease;
}
.card:hover { border-color: #94a3b8; }
.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: #0f172a;
}
.card p {
  font-size: 0.96rem;
  color: #475569;
  margin: 0;
}
.card a {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
}

/* Bloque destacado (callout) */
.callout {
  border-left: 3px solid #0f766e;
  background: #f0fdfa;
  padding: 1.1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--warning {
  border-left-color: #b45309;
  background: #fffbeb;
}

/* Banner médico */
.med-disclaimer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.93rem;
  color: #475569;
  margin: 2rem 0 0;
}
.med-disclaimer strong { color: #0f172a; }

/* CTA FitDoctor (sobrio, al final de cada página) */
.cta-fitdoctor {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 1.75rem;
  margin: 3rem 0 1rem;
  text-align: left;
}
.cta-fitdoctor h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: #115e59;
}
.cta-fitdoctor p {
  font-size: 0.97rem;
  color: #1e293b;
  margin: 0 0 1rem;
}
.cta-fitdoctor a.btn { font-size: 0.95rem; }

/* Listado de blog y guías */
.list-stack { list-style: none; margin: 0; padding: 0; }
.list-stack > li {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
  margin: 0;
}
.list-stack > li:first-child { padding-top: 0; }
.list-stack > li:last-child { border-bottom: none; }
.list-stack h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.list-stack h3 a {
  color: #0f172a;
  text-decoration: none;
}
.list-stack h3 a:hover { color: #0f766e; }
.list-stack .meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.list-stack p {
  font-size: 0.95rem;
  color: #475569;
  margin: 0;
}

/* Artículo (blog y páginas largas) */
.article-meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}
.article h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
@media (min-width: 720px) {
  .article h1 { font-size: 2.4rem; }
}

/* Footer */
.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 2.5rem 0;
  margin-top: 3rem;
  background: #f8fafc;
  font-size: 0.92rem;
  color: #475569;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .site-footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.site-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: #475569; text-decoration: none; }
.site-footer a:hover { color: #0f766e; text-decoration: underline; }
.site-footer .legal {
  border-top: 1px solid #e2e8f0;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* Utilidades */
.muted { color: #64748b; }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Accesibilidad */
:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
  border-radius: 4px;
}
