/* Portada de la clínica.
   Sigue raw/diseño/centrobariatrico-portada-2026-09-22.png (repositorio de la
   wiki); los colores salen de muestrear el propio diseño. */

/* El sistema deja 4.5rem arriba para una barra fija que aquí no existe. */
body#section_home { padding-top: 0; }

#home-landing {
  --tinta:       #262D37;   /* títulos */
  --tinta-fuerte:#1C222D;
  --texto:       #494D56;   /* texto corrido */
  --tenue:       #7A7E85;   /* antetítulos */
  --oscuro:      #3D434C;   /* botones y pie */
  --oscuro-hover:#2E343C;
  --papel:       #FFFFFF;
  --hueso:       #F7F8F9;   /* fondo de la portada */
  --nube:        #FBFAFC;   /* franja de valores */
  --linea:       #C5C7CC;   /* borde de las píldoras */
  --linea-suave: #E4E6EA;

  font-family: var(--font-cuerpo, 'Inter', sans-serif);
  color: var(--texto);
  background: var(--papel);
  overflow-x: hidden;
}
#home-landing h1, #home-landing h2 { font-family: var(--font-titulo, 'Inter', sans-serif); color: var(--tinta); margin: 0; }
#home-landing p { margin: 0; }
#home-landing a { text-decoration: none; }

.lp-caja { width: min(1050px, calc(100% - 48px)); margin-inline: auto; }

/* ── Cabecera ───────────────────────────────────────────── */
.lp-nav { background: var(--papel); position: relative; z-index: 2; }
.lp-nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 95px; gap: 16px; }
.lp-marca img { height: 58px; width: auto; display: block; }
.lp-marca__texto { font-family: var(--font-titulo, 'Inter', sans-serif); font-size: 1.5rem; font-weight: 700; color: var(--tinta); }

.lp-acceso {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--oscuro); color: #fff;
  padding: 16px 40px; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  transition: background .15s, transform .15s;
}
.lp-acceso:hover { background: var(--oscuro-hover); color: #fff; transform: translateY(-1px); }

/* ── Portada ────────────────────────────────────────────── */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hueso); }
/* La foto se ancla a la derecha: los banners de esta clínica traen al médico a
   ese lado y el espacio libre a la izquierda, que es donde va el texto. */
.lp-hero__foto {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: right center;
}
.lp-hero__velo {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,
    rgba(247, 248, 249, .97) 0%, rgba(247, 248, 249, .93) 24%,
    rgba(247, 248, 249, .55) 40%, rgba(247, 248, 249, .08) 56%, rgba(247, 248, 249, 0) 70%);
}
.lp-hero--sinfoto { background: linear-gradient(120deg, var(--hueso), #EDEFF2); }

.lp-hero__in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px;
  align-items: center; position: relative;
  /* La altura sale del banner: con 1050 de ancho y su proporción, el hero del
     diseño mide unos 600px. Así el médico se ve completo. */
  padding-block: 84px; min-height: 600px; box-sizing: border-box;
}
.lp-hero__texto { max-width: 500px; }

.lp-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 600; color: var(--tenue); margin-bottom: 18px !important; }
.lp-titulo { font-size: clamp(1.95rem, 3.85vw, 2.96rem); line-height: 1.16; font-weight: 700; letter-spacing: -.01em; }
.lp-titulo span { display: block; }
.lp-titulo__dos { font-weight: 400; }

.lp-lead { margin-top: 22px !important; font-size: 1.02rem; line-height: 1.62; }
.lp-lead p { margin: 0 0 10px; }
.lp-lead p:last-child { margin-bottom: 0; }

.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-boton {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--oscuro); color: #fff; font-weight: 600; font-size: 1rem;
  padding: 20px 66px; border-radius: 10px;
  transition: background .15s, transform .15s;
}
.lp-boton:hover { background: var(--oscuro-hover); color: #fff; transform: translateY(-2px); }
.lp-boton--linea { background: transparent; color: var(--oscuro); border: 1.5px solid var(--linea); padding: 17px 34px; }
.lp-boton--linea:hover { background: transparent; border-color: var(--oscuro); color: var(--oscuro-hover); }
.lp-flecha { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.lp-nota { margin-top: 20px !important; font-size: .92rem; line-height: 1.5; color: var(--tenue); max-width: 390px; }

/* La ficha del médico va sobre el banner. En el diseño cae sobre el cielo, pero
   la foto se recorta distinto según el ancho de la ventana y puede acabar sobre
   el edificio: un fondo apenas visible la deja legible siempre, sin romper el
   aire del diseño. */
.lp-medico {
  width: 268px; align-self: center;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  border-radius: 14px; padding: 26px 28px;
}
.lp-medico h2 { font-size: 1.24rem; line-height: 1.3; font-weight: 700; color: var(--tinta-fuerte); }
.lp-medico__raya { display: block; width: 38px; height: 2px; background: var(--linea); margin: 16px 0; }
.lp-medico p { font-size: .98rem; line-height: 1.55; color: var(--texto); }

/* ── Por qué esta clínica ───────────────────────────────── */
.lp-valores { background: var(--nube); padding-block: 52px; }
.lp-valores__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-valor { text-align: center; padding-inline: 20px; border-left: 1px solid var(--linea-suave); }
.lp-valor:first-child { border-left: 0; }
.lp-valor__icono { display: block; margin-bottom: 18px; }
.lp-valor__icono svg {
  width: 38px; height: 38px;
  fill: none; stroke: var(--tinta); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.lp-valor h2 { font-size: 1.08rem; font-weight: 700; }
.lp-valor p { font-size: 1.04rem; line-height: 1.4; color: var(--texto); }

/* ── Tratamientos ───────────────────────────────────────── */
.lp-trata { background: var(--papel); padding-block: 56px 48px; text-align: center; }
.lp-eyebrow--centro { text-align: center; margin-bottom: 30px !important; }
.lp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.lp-chips li {
  border: 1px solid var(--linea); border-radius: 999px;
  padding: 12px 26px; font-size: .97rem; color: var(--tinta);
  background: var(--papel);
}
.lp-trata__nota { margin-top: 28px !important; font-size: 1rem; color: var(--texto); }
.lp-trata__cta { margin-top: 26px !important; }

/* ── Separador ──────────────────────────────────────────── */
.lp-separador {
  display: flex; align-items: center; gap: 24px;
  padding-bottom: 46px; color: var(--tenue);
  text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600;
}
.lp-separador::before, .lp-separador::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--linea-suave); }

/* ── Pie ────────────────────────────────────────────────── */
.lp-pie { background: var(--oscuro); color: rgba(255, 255, 255, .82); padding-top: 54px; }
.lp-pie__in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; padding-bottom: 42px; }
.lp-pie__marca img { height: 58px; width: auto; display: block; margin-bottom: 22px; filter: brightness(0) invert(1); }
.lp-pie__nombre { display: block; font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.lp-pie__marca p { font-size: .97rem; line-height: 1.6; }

.lp-pie__contacto { list-style: none; margin: 0; padding: 0 0 0 56px; display: grid; gap: 18px;
                    border-left: 1px solid rgba(255, 255, 255, .16); }
.lp-pie__contacto li { display: flex; align-items: flex-start; gap: 16px; font-size: .97rem; line-height: 1.55; }
.lp-pie__contacto i { margin-top: 3px; opacity: .7; width: 18px; text-align: center; }
.lp-pie a { color: rgba(255, 255, 255, .82); }
.lp-pie a:hover { color: #fff; text-decoration: underline; }

.lp-pie__barra {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 22px; font-size: .88rem; color: rgba(255, 255, 255, .7);
}

/* ── Pantallas chicas ───────────────────────────────────── */
@media (max-width: 980px) {
  .lp-hero__in { grid-template-columns: 1fr; gap: 28px; padding-block: 56px; }
  .lp-hero__texto { max-width: none; }
  .lp-medico { width: auto; max-width: 420px; }
  .lp-valores__in { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .lp-valor:nth-child(3) { border-left: 0; }
  .lp-pie__in { grid-template-columns: 1fr; gap: 34px; }
  .lp-pie__contacto { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .lp-caja { width: calc(100% - 32px); }
  .lp-nav__in { min-height: 76px; }
  .lp-marca img { height: 44px; }
  .lp-acceso { padding: 11px 16px; font-size: .9rem; }
  .lp-acceso span { display: none; }
  /* Con la foto detrás del texto hace falta más velo para que se lea. */
  .lp-hero__foto { opacity: .38; background-position: 72% center; }
  .lp-hero__velo { background: linear-gradient(180deg, rgba(247, 248, 249, .9), rgba(247, 248, 249, .8)); }
  .lp-cta .lp-boton { width: 100%; justify-content: center; padding-inline: 24px; }
  .lp-hero__in { min-height: 0; }
  .lp-nota { max-width: none; }
  .lp-valores__in { grid-template-columns: 1fr; row-gap: 30px; }
  .lp-valor { border-left: 0; padding-inline: 0; }
  .lp-chips li { padding: 10px 20px; font-size: .92rem; }
  .lp-separador { gap: 14px; font-size: .72rem; }
}
