/* ============================================================ */
/* RESET Y BASE — Voy Salud x Mr. Kine                          */
/* Estilo: corporativo serio, sin animaciones, alta densidad     */
/* ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  color: var(--color-neutral-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-900);
  text-decoration: underline;
}

/* Headings — todos en Inter, sin display font, sin letter-spacing tight */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  color: var(--color-neutral-900);
}

h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

h4 {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}

p {
  color: var(--color-neutral-700);
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Focus accesible para teclado */
:focus-visible {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 2px;
}

/* ============================================================ */
/* UTILIDADES                                                     */
/* ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link visible al focus */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-700);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  z-index: 1000;
  text-decoration: none;
  font-weight: var(--weight-semibold);
}

.skip-link:focus {
  top: 0;
}

/* ============================================================ */
/* SECCIONES                                                     */
/* ============================================================ */

section {
  padding: var(--space-16) 0;
}

@media (max-width: 768px) {
  section { padding: var(--space-12) 0; }
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-10);
}

.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-neutral-200);
}

.section-bar h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-900);
}

.section-bar a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary-700);
  white-space: nowrap;
}

.section-bar a:hover {
  text-decoration: underline;
}

/* ============================================================ */
/* BOTONES                                                       */
/* ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary-600);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-700);
  color: var(--color-white);
}

.btn-action {
  background: var(--color-action);
  color: var(--color-white);
}

.btn-action:hover {
  background: var(--color-action-hover);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary-700);
  border-color: var(--color-primary-600);
}

.btn-secondary:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-900);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
