/* CREAR · landings de servicio (propuesta). Solo lo compartido: marca, menú, cierre y animaciones.
   Cada landing trae su propio mundo en su <style>. Se carga después de styles.css. */
:root { --l-ease: cubic-bezier(.16, 1, .3, 1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn svg.i { width: 18px; height: 18px; }
.p-mag { transition: transform .35s var(--l-ease); }

/* Menú */
.p-nav.site-header { position: fixed; top: 0; left: 0; right: 0; background: var(--azul); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .3s; }
.p-nav .header-inner { height: 68px; }
.p-nav .wordmark img { height: 38px; }
.p-nav.is-scrolled { box-shadow: 0 6px 16px -10px rgba(5, 13, 22, .7); }
.p-nav .site-nav { gap: 4px; }
.p-nav .site-nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; transition: background-color .25s, color .25s; }
.p-nav .site-nav a[aria-current]:not(.btn) { color: #fff; background: rgba(20, 184, 166, .16); }
.p-nav .btn-nav { margin-left: 10px; }
.p-nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--teal-claro); transform-origin: left; transform: scaleX(var(--p, 0)); }
main { padding-top: 68px; }

/* Cierre y footer */
.p-close { padding: clamp(72px, 9vw, 120px) 0 0; background: #fff; color: var(--azul); }
.p-close h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.04; }
.p-end__head { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.p-end__head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex: none; }
.p-end__head p { flex: 1; color: var(--gris-medio); font-size: 1.1rem; }
.p-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.p-block { display: flex; flex-direction: column; gap: 18px; min-height: 220px; padding: 28px; border-radius: 18px; text-decoration: none; color: #fff; }
.p-block--wa { background: var(--teal); } .p-block--mail { background: var(--azul); } .p-block--ig { background: #fff; color: var(--azul); border: 1px solid var(--linea); }
.p-block__ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.p-block--ig .p-block__ic { background: #E3F4F2; color: var(--teal); }
.p-block__ic svg.i { width: 24px; height: 24px; }
.p-block b { margin-top: auto; font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); font-stretch: 112%; font-weight: 800; line-height: 1.15; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.p-block b svg.i { width: 34px; height: 34px; }
.p-block small { font-size: .95rem; opacity: .85; }
.p-foot { border-top: 1px solid var(--linea); margin-top: 56px; padding: 28px 0 40px; display: grid; grid-template-columns: auto minmax(300px, 1.6fr) auto auto; gap: 20px 40px; align-items: start; font-size: .95rem; color: var(--gris-medio); }
.p-foot img { width: 128px; height: auto; }
.p-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.p-foot a { color: var(--azul); text-decoration: none; } .p-foot a:hover { color: var(--teal); }

/* Animaciones compartidas */
.wd { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .55s var(--l-ease), transform .7s var(--l-ease); transition-delay: calc(var(--i) * 45ms); }
.p-words.in .wd { opacity: 1; transform: none; }
@keyframes p-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes p-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes p-pop { from { opacity: 0; transform: scale(.6); } }

@media (max-width: 980px) {
  .p-blocks { grid-template-columns: 1fr; }
  .p-block { min-height: 150px; }
  .p-foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .p-nav .header-inner { height: 60px; }
  main { padding-top: 60px; }
  .p-nav .site-nav { position: fixed; inset: 0; padding: 96px 28px 40px; gap: 6px; background: var(--azul); align-items: stretch; }
  .p-nav .site-nav.open a:not(.btn) { font-size: 2rem; font-weight: 800; font-stretch: 112%; color: #fff; padding: 8px 0; border-radius: 0; background: none; }
  .p-nav .site-nav.open .btn { margin: 24px 0 0; }
  .p-nav .wordmark, .p-nav .nav-toggle { position: relative; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .wd { opacity: 1; transform: none; transition: none; }
  .p-mag { transition: none; }
}

/* Celular: pie con espacio para el botón flotante de WhatsApp y enlaces fáciles de tocar. */
@media (max-width: 720px) {
  .p-foot { padding-bottom: 96px; }
  .p-foot nav { gap: 0 22px; }
  .p-foot nav a { display: inline-block; padding: 10px 0; }
  .p-foot p a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}
