/* ============================================================
   Centro de Salud MAS — landing
   Paleta y tipografía tomadas del sistema (public/assets/css/style.css)
   ============================================================ */
:root {
  --blanco: #ffffff;
  --azul-medio: #52637e;
  --azul-oscuro: #3a4961;
  --texto: #2c3745;
  --texto-suave: #5a6b7d;
  --borde: #d7dfe7;
  --fondo: #eef1f5;

  --ink: #14212f;
  --ink-2: #1f3348;
  --gold: #c68a46;
  --gold-light: #e7bd86;
  --mist: #a9bacb;

  --display: "Space Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9em;
}
.eyebrow--light { color: var(--gold-light); }

section { padding: 6rem 1.5rem; }
section > .eyebrow, section > h2 { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
section > h2 { max-width: 640px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ============================================================
   Alignment axis — signature element
   (misma lógica de gradiente diagonal que .landing__panel-foto
   en la pantalla de acceso de la app: dorado como hilo conductor)
   ============================================================ */
.axis {
  position: fixed;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 20px;
  z-index: 5;
  pointer-events: none;
}
.axis__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--mist) 8%, var(--mist) 92%, transparent);
  opacity: 0.45;
}
.axis__marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 138, 70, 0.22);
}
@media (prefers-reduced-motion: no-preference) {
  .axis__marker { transition: top 0.15s linear; }
}
@media (max-width: 980px) {
  .axis { display: none; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: rgba(20, 33, 47, 0.88);
  backdrop-filter: blur(6px);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--blanco);
  text-decoration: none;
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
}
.nav__links a:hover { color: var(--gold-light); }
.nav__toggle { display: none; }

@media (max-width: 700px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .nav__toggle span { display: block; height: 1.5px; background: var(--blanco); }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--ink-2);
    transition: max-height 0.25s ease;
  }
  .nav__links.abierto { max-height: 220px; }
  .nav__links a { padding: 1rem 1.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--blanco);
  padding: 4rem 1.75rem 5rem;
  min-height: 88vh;
}
.hero__text { max-width: 480px; margin-left: clamp(0px, 4vw, 3rem); }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--blanco);
}
.hero__sub {
  font-family: var(--body);
  font-size: 17px;
  color: var(--mist);
  max-width: 42ch;
  margin-bottom: 2em;
}
.hero__media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(198,138,70,0.16), transparent 55%);
  pointer-events: none;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; min-height: 0; }
  .hero__text { max-width: none; margin-left: 0; }
  .hero__media { order: -1; aspect-ratio: 16/11; }
}

/* ============================================================
   Filosofía strip
   ============================================================ */
.filosofia {
  background: var(--blanco);
  text-align: center;
  padding: 5rem 1.5rem;
  border-bottom: 1px solid var(--borde);
}
.filosofia p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--azul-oscuro);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ============================================================
   Servicios
   ============================================================ */
.servicios { background: var(--fondo); }
.servicios h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); }
.servicios__grid {
  max-width: var(--wrap);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.card__media { aspect-ratio: 4/5; overflow: hidden; border-radius: 6px; margin-bottom: 1.1rem; border: 1px solid var(--borde); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.15rem; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--texto-suave); }

@media (max-width: 980px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .servicios__grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ============================================================
   Proceso
   ============================================================ */
.proceso { background: linear-gradient(120deg, var(--ink), var(--ink-2)); color: var(--blanco); }
.proceso h2 { color: var(--blanco); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.proceso__pasos {
  list-style: none;
  margin: 3rem auto 0;
  padding: 0;
  max-width: 760px;
}
.proceso__pasos li {
  display: flex;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(169, 186, 203, 0.22);
}
.proceso__pasos li:last-child { border-bottom: 1px solid rgba(169, 186, 203, 0.22); }
.proceso__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold-light);
  min-width: 3ch;
}
.proceso__pasos h3 { color: var(--blanco); font-size: 1.1rem; margin-bottom: 0.3em; }
.proceso__pasos p { font-family: var(--body); color: var(--mist); font-size: 15px; margin: 0; max-width: 50ch; }

/* ============================================================
   Nosotros
   ============================================================ */
.nosotros {
  background: var(--fondo);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
}
.nosotros__media { border-radius: 6px; overflow: hidden; aspect-ratio: 4/3.3; border: 1px solid var(--borde); }
.nosotros__media img { width: 100%; height: 100%; object-fit: cover; }
.nosotros__text h2 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.nosotros__text p { font-family: var(--body); color: var(--texto); font-size: 16px; max-width: 46ch; }

@media (max-width: 900px) {
  .nosotros { grid-template-columns: 1fr; padding: 5rem 1.5rem; }
}

/* ============================================================
   Valores
   ============================================================ */
.valores { background: var(--blanco); }
.valores h2 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.valores__grid {
  max-width: var(--wrap);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.valor__icono { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1rem; }
.valor h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.35em; }
.valor p { font-family: var(--body); font-size: 14.5px; color: var(--texto-suave); margin: 0; }

@media (max-width: 900px) {
  .valores__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .valores__grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ============================================================
   Cierre
   ============================================================ */
.cierre {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  text-align: center;
  padding: 6rem 1.5rem;
}
.cierre__marca {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.4em;
  letter-spacing: -0.01em;
}
.cierre__frase {
  font-family: var(--body);
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 16px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--mist);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 13px;
}
.footer p { margin: 0.2em 0; }
