/* portada-base.css - estética de la portada pública, tomada del prototipo (04-prototipo/styles.css con los cambios del 06.10).
   Encabezado, hero, botones extra, WhatsApp flotante y pie. Solo clases pt-*; los colores salen de tokens.css.
   Sin recursos externos y sin atributos style en línea (CSP). */

body.pt { font-size: clamp(16px, .95rem + .15vw, 17px); --pt-cab-h: 64px; --pt-wa: #25d366; --pt-sec: 64px; }
@media (min-width: 1024px) { body.pt { --pt-cab-h: 76px; --pt-sec: 96px; } }
.pt .contenedor { max-width: 1200px; }
.pt .sobretitulo { font-size: clamp(12px, 11.6px + .1vw, 13px); letter-spacing: .12em; }

/* ---------- Botones extra ---------- */
.pt .btn { min-height: 48px; }
@media (min-width: 1024px) { .pt .btn { min-height: 44px; } }
.btn--acento { background: var(--acento); color: #fff; }
.btn--acento:hover { background: color-mix(in srgb, var(--acento) 92%, #000); box-shadow: var(--sombra-1); }
.btn--wa { background: #fff; color: var(--texto); border-color: var(--borde-suave); }
.btn--wa:hover { background: #fafafa; box-shadow: var(--sombra-1); }
.pt-ic-wa { color: var(--pt-wa); }
.pt-ic-azul { color: var(--primario); margin-top: 3px; }
.pt-btn-compacto { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.pt-btn-fit { width: fit-content; }
.pt-suave { color: var(--texto2); }

/* ---------- Encabezado ---------- */
.pt-cab {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: var(--safe-t);
  background: rgb(255 255 255 / 96%); color: var(--texto); box-shadow: 0 1px 0 var(--borde-suave);
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
@supports (backdrop-filter: blur(8px)) { .pt-cab { backdrop-filter: blur(8px); } }
.pt-cab[data-sobre-hero="1"] { background: transparent; box-shadow: none; color: #fff; backdrop-filter: none; }
.pt-cab[data-sobre-hero="1"] :focus-visible { outline-color: var(--celeste); }
.pt-cab__in { height: var(--pt-cab-h); display: flex; align-items: center; gap: 12px; }
.pt-marca { display: flex; flex-direction: column; justify-content: center; min-height: 44px; margin-right: auto; text-decoration: none; color: inherit; }
.pt-marca__nombre { font-family: var(--f-display); font-weight: 700; font-size: 25px; letter-spacing: .06em; line-height: 1; color: var(--primario); }
.pt-cab[data-sobre-hero="1"] .pt-marca__nombre { color: #fff; }
.pt-nav { display: none; }
.pt-cab__acciones { display: flex; align-items: center; gap: 8px; }
.pt-cab[data-sobre-hero="1"] .btn--primario { background: #fff; color: var(--primario); }
.pt-hamburguesa { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; color: inherit; border-radius: 12px; }
.pt-menu { position: absolute; inset: 100% 0 auto 0; background: #fff; color: var(--texto); padding: 8px var(--gutter) 16px; box-shadow: var(--sombra-2); display: grid; }
.pt-menu a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--borde-suave); color: var(--texto); text-decoration: none; font-size: 18px; font-weight: 600; }
body[data-cerrado] .pt-nav, body[data-cerrado] .pt-hamburguesa, body[data-cerrado] .pt-menu { display: none; }
@media (min-width: 1024px) {
  .pt-marca__nombre { font-size: 32px; }
  .pt-marca { margin-right: 0; }
  .pt-hamburguesa, .pt-menu { display: none; }
  .pt-nav { display: flex; flex: 1; justify-content: center; gap: 4px; }
  .pt-nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
  .pt-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- Hero ---------- */
.pt-hero { position: relative; overflow: hidden; color: #fff; background: var(--secundario); min-height: max(560px, min(88svh, 720px)); display: flex; align-items: flex-end; }
.pt-hero__foto { position: absolute; inset: 0; overflow: hidden; }
.pt-hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.pt-hero__foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--secundario) 74%, transparent) 0%, color-mix(in srgb, var(--secundario) 72%, transparent) 30%, color-mix(in srgb, var(--secundario) 88%, transparent) 100%);
}
.pt-hero__cont { position: static; width: 100%; padding-top: calc(var(--pt-cab-h) + var(--safe-t) + 32px); padding-bottom: calc(24px + var(--safe-b)); }
.pt-hero__texto { position: relative; z-index: 1; max-width: 560px; display: grid; gap: 0; }
.pt-hero .sobretitulo { color: #fff; opacity: .92; }
.pt-hero h1 { color: #fff; font-size: clamp(32px, 22.6px + 2.5vw, 52px); line-height: 1.15; text-shadow: 0 1px 2px rgb(0 0 0 / 25%); }
.pt-hero__bajada { margin-top: 12px; color: rgb(255 255 255 / 92%); text-shadow: 0 1px 2px rgb(0 0 0 / 25%); }
.pt-hero__botones { margin-top: 24px; display: grid; gap: 12px; }
.pt-hero__botones .btn { width: 100%; }
.pt-hero__confianza { margin-top: 16px; font-size: 14px; font-weight: 500; color: rgb(255 255 255 / 92%); overflow-wrap: anywhere; }
.pt-hero__confianza:empty { display: none; }
.pt-hero__confianza .icono { display: inline-block; vertical-align: -5px; margin-right: 6px; }
.pt-hero__texto > * { animation: pt-entrada .6s cubic-bezier(.2, .7, .2, 1) both; }
.pt-hero__texto > :nth-child(3) { animation-delay: 80ms; }
.pt-hero__texto > :nth-child(4) { animation-delay: 160ms; }
.pt-hero__texto > :nth-child(5) { animation-delay: 240ms; }
@keyframes pt-entrada { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 768px) {
  .pt-hero { min-height: 0; align-items: stretch; background: radial-gradient(90% 80% at 88% 30%, color-mix(in srgb, var(--primario) 38%, transparent) 0%, transparent 70%), var(--secundario); }
  .pt-hero__cont { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); gap: 40px; align-items: center; padding-top: calc(var(--pt-cab-h) + var(--safe-t) + 28px); padding-bottom: 48px; }
  .pt-hero__foto { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 5; max-height: 484px; width: 100%; justify-self: end; border-radius: 24px; box-shadow: 0 24px 48px rgb(0 10 30 / 35%), 0 0 0 1px color-mix(in srgb, var(--celeste) 45%, transparent); }
  .pt-hero__foto::after { background: linear-gradient(180deg, transparent 65%, color-mix(in srgb, var(--secundario) 22%, transparent)); }
  .pt-hero__botones { display: flex; flex-wrap: wrap; }
  .pt-hero__botones .btn { width: auto; }
}
@media (min-width: 1024px) { .pt-hero { min-height: 640px; } .pt-hero__cont { gap: 56px; padding-bottom: 56px; } }

/* ---------- WhatsApp flotante (solo si el consultorio tiene número) ---------- */
.pt-wa-flotante {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + var(--safe-b)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--pt-wa); color: #fff; box-shadow: var(--sombra-2);
}
.pt-wa-flotante .icono { width: 30px; height: 30px; }
.pt-wa-flotante:hover { box-shadow: 0 10px 28px rgb(0 30 60 / 28%); }
body.con-barra-fija .pt-wa-flotante { display: none; }
@media (min-width: 1024px) { body.con-barra-fija .pt-wa-flotante { display: grid; } }

/* ---------- Pie ---------- */
.pt-pie { background: var(--secundario); color: #fff; padding-block: 48px calc(32px + var(--safe-b)); }
.pt-pie a { color: #fff; }
.pt-pie__grid { display: grid; gap: 32px; }
.pt-pie__marca { display: flex; flex-direction: column; gap: 4px; }
.pt-pie__marca .pt-marca__nombre { color: #fff; font-size: 28px; }
.pt-pie__sub { font-size: 14px; opacity: .92; }
.pt-pie__firma { margin: 12px 0 20px; opacity: .92; }
.pt-pie__lista { display: grid; gap: 12px; align-content: start; }
.pt-pie__lista li { display: flex; gap: 10px; align-items: flex-start; }
.pt-pie__lista a { display: inline-flex; gap: 10px; align-items: center; min-height: 32px; }
.pt-pie__lista .icono { margin-top: 2px; }
.pt-pie__credito { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 20%); opacity: .85; }
@media (min-width: 768px) { .pt-pie__grid { grid-template-columns: 1.2fr 1.4fr 1fr; gap: 48px; } }
