/* Portada pública de AIperLocal (`/`).
   Página clara y aireada: titulares grandes en liviana, manchas orgánicas de fondo, botones con
   degradado y tarjetas con sombra suave. Los colores salen del logo: azul marino del «Aiper», azul
   eléctrico del «Local» y el celeste del patrón.
   Sin estilos en línea: la CSP de este servidor solo permite hojas y scripts propios. */

@font-face {
  font-family: "Roboto";
  src: url("/static/fuentes/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pt-marino: #011743;
  --pt-azul: #004ffb;
  --pt-azul-oscuro: #0038c7;
  --pt-celeste: #61b8f3;
  --pt-texto: #5b6478;
  --pt-tenue: #8b93a7;
  --pt-burbuja: #eff5ff;
  --pt-burbuja-2: #f4faff;
  --pt-borde: #e7ecf6;
  --pt-ancho: 1160px;
  --pt-cabecera: 82px;
}

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

body.pt {
  margin: 0; background: #ffffff; color: var(--pt-texto);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.pt a { color: var(--pt-azul); text-decoration: none; }
.pt a:hover { text-decoration: underline; }
.pt h1, .pt h2, .pt h3 { color: var(--pt-marino); margin: 0; line-height: 1.25; font-weight: 400; }
.pt h1 { font-size: 46px; letter-spacing: -0.5px; }
.pt h2 { font-size: 32px; letter-spacing: -0.3px; }
.pt h3 { font-size: 19px; }
.pt p { margin: 0 0 16px; }
.pt ul, .pt ol { margin: 0; padding: 0; list-style: none; }
.pt img { max-width: 100%; height: auto; display: block; }
.pt-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pt-ancho { width: 100%; max-width: var(--pt-ancho); margin: 0 auto; padding: 0 24px; }

/* --- la ceja y los titulares ------------------------------------------------------------------ */
.pt-ceja {
  color: var(--pt-azul); font-size: 12.5px; font-weight: 500; letter-spacing: 2.4px;
  text-transform: uppercase; margin: 0 0 12px;
}
.pt-titular { margin: 0 0 48px; }
.pt-titular--centro { text-align: center; max-width: 720px; margin-inline: auto; }
.pt-titular p:last-child { color: var(--pt-tenue); margin: 14px 0 0; }

/* --- botones ---------------------------------------------------------------------------------- */
.pt .pt-boton, .pt a.pt-boton { color: #ffffff; }
.pt-boton {
  display: inline-block; padding: 13px 28px; border-radius: 6px; color: #ffffff;
  background: linear-gradient(120deg, var(--pt-azul) 0%, #3f7cff 100%);
  font-size: 14px; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(0, 79, 251, 0.75);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pt-boton:hover { color: #ffffff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 79, 251, 0.85); }
.pt-boton--grande { padding: 16px 34px; font-size: 15px; }
.pt a.pt-enlace-fuerte { color: var(--pt-marino); font-weight: 500; margin-left: 22px; }
.pt-enlace-fuerte::after { content: " →"; color: var(--pt-azul); }

/* --- cabecera --------------------------------------------------------------------------------- */
.pt-cabecera {
  position: sticky; top: 0; z-index: 50; background: #ffffff;
  border-bottom: 1px solid transparent; transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.pt-cabecera[data-pegada="si"] { box-shadow: 0 6px 24px rgba(1, 23, 67, 0.07); border-bottom-color: var(--pt-borde); }
.pt-cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--pt-cabecera); }
.pt .pt-logo { display: block; line-height: 0; }
.pt .pt-logo img { width: auto; height: 50px; }
.pt .pt-logo__iso { display: none; }

.pt-nav { display: flex; align-items: center; gap: 30px; }
.pt-nav a { color: var(--pt-marino); font-size: 15px; }
.pt-nav a:hover { color: var(--pt-azul); text-decoration: none; }
.pt-nav__activo { color: var(--pt-azul); }
.pt-nav__cta { color: #ffffff; margin-left: 6px; }
.pt-nav__cta:hover { color: #ffffff; }

.pt-menu-boton {
  display: none; width: 46px; height: 38px; padding: 9px 8px; background: transparent;
  border: 1px solid var(--pt-borde); border-radius: 6px; cursor: pointer;
}
.pt-menu-boton span[aria-hidden] { display: block; height: 2px; background: var(--pt-marino); margin: 3px 0; border-radius: 2px; }

/* --- manchas orgánicas de fondo ---------------------------------------------------------------- */
.pt-mancha { position: absolute; z-index: -1; display: block; pointer-events: none; }
.pt-mancha--hero {
  width: 880px; height: 760px; right: -180px; top: -140px; background: var(--pt-burbuja);
  border-radius: 46% 54% 38% 62% / 52% 42% 58% 48%;
}
.pt-mancha--figura {
  width: 112%; height: 118%; left: -6%; top: -9%; background: var(--pt-burbuja-2);
  border-radius: 56% 44% 62% 38% / 45% 58% 42% 55%;
}
.pt-mancha--suave {
  width: 118%; height: 118%; left: -9%; top: -9%; background: var(--pt-burbuja);
  border-radius: 48% 52% 60% 40% / 56% 44% 56% 44%;
}
.pt-mancha--derecha {
  width: 620px; height: 620px; right: -220px; top: 60px; background: var(--pt-burbuja-2);
  border-radius: 52% 48% 44% 56% / 48% 56% 44% 52%;
}

/* --- hero ------------------------------------------------------------------------------------- */
.pt-hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.pt-hero__fila { display: flex; align-items: center; gap: 56px; }
.pt-hero__texto { flex: 1 1 52%; min-width: 0; }
.pt-hero__texto h1 { margin-bottom: 22px; }
.pt-hero__bajada { font-size: 17px; max-width: 520px; margin-bottom: 30px; }
.pt-hero__acciones { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; margin: 0; }
.pt-hero__figura { position: relative; flex: 1 1 48%; min-width: 0; }
.pt-hero__figura img {
  position: relative; border-radius: 12px; box-shadow: 0 30px 60px -28px rgba(1, 23, 67, 0.45);
}

/* --- secciones -------------------------------------------------------------------------------- */
.pt-seccion { position: relative; padding: 86px 0; overflow: hidden; }
.pt-seccion--clara { background: #fbfdff; }

.pt-dos { display: flex; align-items: center; gap: 70px; }
.pt-dos--invertido { flex-direction: row-reverse; }
.pt-dos__texto { flex: 1 1 52%; min-width: 0; }
.pt-dos__texto h2 { margin-bottom: 18px; }
.pt-dos__figura { position: relative; flex: 0 1 42%; display: flex; justify-content: center; }
.pt-dos__figura img { position: relative; width: 78%; max-width: 330px; }
.pt-dos__figura--telefono img {
  width: 100%; max-width: 268px; border-radius: 26px; border: 8px solid var(--pt-marino);
  box-shadow: 0 30px 60px -26px rgba(1, 23, 67, 0.5);
}

.pt-puntos { margin: 0 0 26px; }
.pt-puntos li { position: relative; padding: 0 0 12px 30px; }
.pt-puntos li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--pt-celeste); box-shadow: 0 0 0 4px rgba(97, 184, 243, 0.22);
}

/* --- cómo trabaja: los cuatro pasos ------------------------------------------------------------ */
.pt-pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pt-pasos li { position: relative; text-align: center; padding: 0 6px; }
.pt-pasos li + li::before {
  content: ""; position: absolute; left: -58%; top: 56px; width: 100%; height: 14px;
  background: repeating-linear-gradient(90deg, var(--pt-borde) 0 8px, transparent 8px 16px);
}
.pt-pasos__circulo {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 118px; height: 118px; margin: 0 auto 20px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 14px 34px -16px rgba(1, 23, 67, 0.35);
  border: 1px solid var(--pt-borde);
}
.pt-pasos__circulo img { width: 72px; height: 72px; }
.pt-pasos h3 { margin-bottom: 8px; }
.pt-pasos p { font-size: 14.5px; line-height: 1.7; margin: 0; }

/* --- demos ------------------------------------------------------------------------------------- */
.pt-demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pt-demo a {
  display: block; height: 100%; background: #ffffff; border: 1px solid var(--pt-borde);
  border-radius: 14px; overflow: hidden; color: inherit;
  box-shadow: 0 16px 36px -26px rgba(1, 23, 67, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pt-demo a:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 26px 48px -26px rgba(1, 23, 67, 0.5); }
.pt-demo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--pt-borde); }
.pt-demo h3 { font-size: 17px; padding: 20px 22px 0; }
.pt-demo p { font-size: 14px; color: var(--pt-tenue); padding: 6px 22px 22px; margin: 0; }

/* --- lo que contesta ---------------------------------------------------------------------------- */
.pt-dichos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pt-dichos li { display: flex; gap: 18px; align-items: flex-start; }
.pt-inicial {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pt-azul), var(--pt-celeste)); color: #ffffff;
  font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center;
}
.pt-dichos blockquote { margin: 0; }
.pt-dichos blockquote p { font-size: 15px; line-height: 1.8; margin: 0 0 12px; }
.pt-dichos footer { font-size: 13px; color: var(--pt-tenue); line-height: 1.6; }
.pt-dichos footer b { color: var(--pt-marino); font-size: 15px; font-weight: 500; }

/* --- beneficios ---------------------------------------------------------------------------------- */
.pt-beneficios { margin: 0 0 30px; }
.pt-beneficios li { position: relative; padding: 0 0 16px 36px; }
.pt-beneficios li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--pt-azul) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.pt-beneficios b { color: var(--pt-marino); font-weight: 500; }

/* --- pie ------------------------------------------------------------------------------------------ */
.pt-pie { background: #fbfdff; border-top: 1px solid var(--pt-borde); padding: 70px 0 0; }
.pt-pie__fila { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 40px; }
.pt-pie__marca img { height: 46px; width: auto; margin-bottom: 18px; }
.pt-pie__marca p { font-size: 14.5px; max-width: 330px; }
.pt-pie h3 { font-size: 17px; margin-bottom: 16px; }
.pt-pie li { font-size: 14.5px; line-height: 2.1; }
.pt-pie a { color: var(--pt-texto); }
.pt-pie a:hover { color: var(--pt-azul); text-decoration: none; }
.pt-pie__contacto li { display: flex; align-items: center; gap: 10px; line-height: 1.8; padding: 5px 0; }
.pt-pie__contacto svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--pt-azul); stroke-width: 1.8; }
.pt-pie__legal { border-top: 1px solid var(--pt-borde); margin-top: 56px; padding-top: 22px; padding-bottom: 26px; }
.pt-pie__legal p { font-size: 13.5px; color: var(--pt-tenue); text-align: center; margin: 0; }

/* --- volver arriba ---------------------------------------------------------------------------------- */
.pt-arriba {
  position: fixed; right: 26px; bottom: 26px; z-index: 40; width: 46px; height: 46px;
  border-radius: 50%; background: linear-gradient(120deg, var(--pt-azul), #3f7cff);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -10px rgba(0, 79, 251, 0.8);
}
.pt-arriba[hidden] { display: none; }   /* `display: flex` le gana al atributo hidden */
.pt-arriba svg { width: 20px; height: 20px; fill: none; stroke: #ffffff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --- pantallas chicas ---------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .pt h1 { font-size: 36px; }
  .pt h2 { font-size: 27px; }
  .pt-hero { padding: 48px 0 64px; }
  .pt-hero__fila, .pt-dos, .pt-dos--invertido { flex-direction: column; gap: 42px; }
  .pt-hero__texto, .pt-dos__texto { flex: 1 1 auto; }
  .pt-hero__bajada { max-width: none; }
  .pt-dos__figura { flex: 1 1 auto; width: 100%; }
  .pt-seccion { padding: 64px 0; }
  .pt-pasos { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .pt-pasos li + li::before { display: none; }
  .pt-demos { grid-template-columns: repeat(2, 1fr); }
  .pt-dichos { grid-template-columns: 1fr; gap: 26px; }
  .pt-pie__fila { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .pt-menu-boton { display: block; }
  .pt-cabecera__fila { flex-wrap: wrap; min-height: 70px; }
  .pt .pt-logo__completo { display: none; }
  .pt .pt-logo__iso { display: block; }
  .pt .pt-logo img { height: 42px; }
  .pt-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .pt-nav[data-abierto="si"] { display: flex; }
  .pt-nav a { padding: 13px 0; border-top: 1px solid var(--pt-borde); }
  .pt-nav__cta { margin: 12px 0 0; text-align: center; border: 0; }
  .pt-pasos, .pt-demos, .pt-pie__fila { grid-template-columns: 1fr; }
  .pt-hero__acciones { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pt-enlace-fuerte { margin-left: 0; }
  .pt-mancha--hero { width: 520px; height: 460px; right: -200px; }
}

@media (prefers-reduced-motion: reduce) {
  .pt * { transition: none !important; }
}
