/* ================================================
   PROPIRIS — landing en cantabriaweb.es/propiris/
   Identidad Propiris (Archivo + rojo #ec3013) dentro
   de la cabecera y el pie de CantabriaWeb.
   ================================================ */

.pp {
  --pp-red:      #ec3013;
  --pp-red-dk:   #ae1800;
  --pp-red-lt:   #ff5a3c;
  --pp-red-lt2:  #ff7a60;
  --pp-ink:      #201e1d;
  --pp-text:     #444141;
  --pp-gray:     #605d5d;
  --pp-paper:    #f1efed;
  --pp-line:     #e7e4e2;
  --pp-line-in:  #d7d3d3;
  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--pp-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.pp a { color: var(--pp-red-dk); }
.pp a:hover { color: var(--pp-red); }
.pp h1, .pp h2, .pp h3 { margin: 0; font-weight: 800; text-wrap: balance; }
.pp p { margin: 0; text-wrap: pretty; }
.pp b { font-weight: 700; }

.pp-wrap { max-width: 1120px; margin: 0 auto; }
.pp-sec { padding: 96px 24px; }
.pp-sec--lg { padding: 112px 24px; }
.pp-sec--paper { background: var(--pp-paper); }

/* Etiqueta sobre títulos: línea + texto en mayúsculas */
.pp-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pp-red-dk);
}
.pp-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--pp-red); flex: none; }

.pp-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.pp-h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.03em; line-height: 1.02; }
.pp-lead { font-size: 17px; line-height: 1.6; color: var(--pp-text); }

/* Botones */
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; border-radius: 8px; padding: 16px 26px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pp .pp-btn--primary { background: var(--pp-red); color: #fff; font-weight: 700; }
.pp .pp-btn--primary:hover { background: var(--pp-red-dk); color: #fff; }
.pp .pp-btn--ghost { border: 1px solid var(--pp-line-in); color: var(--pp-ink); font-weight: 600; padding: 16px 22px; }
.pp .pp-btn--ghost:hover { border-color: var(--pp-ink); color: var(--pp-ink); }

/* ─── 1. HERO ───────────────────────────────────── */
.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.pp-hero__text { display: flex; padding: 8rem 24px 56px; }
.pp-hero__inner {
  width: 100%; max-width: 540px;
  display: flex; flex-direction: column; gap: 26px; justify-content: center;
}
.pp-hero__logo { height: 34px; width: auto; align-self: flex-start; }
.pp-hero h1 { font-size: clamp(44px, 5.4vw, 74px); letter-spacing: -.035em; line-height: .98; }
.pp-hero h1 .pp-rojo { color: var(--pp-red); }
.pp-hero__sub { font-size: 18px; line-height: 1.6; color: var(--pp-text); max-width: 480px; }
.pp-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pp-hero__facts {
  display: flex; gap: 10px 28px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--pp-line);
  font-size: 14px; color: var(--pp-gray);
}
.pp-hero__facts b { color: var(--pp-ink); }
.pp-hero__panel {
  background: var(--pp-red); position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 56px 0 56px 24px;
}
.pp-hero__shot {
  width: 135%; flex: none; aspect-ratio: 16 / 10;
  background: #f1efed; border-radius: 12px 0 0 12px;
  box-shadow: 0 30px 60px rgba(80,10,0,.28), 0 0 0 1px rgba(80,10,0,.10);
  overflow: hidden;
}
.pp-hero__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }

/* Escritorio: texto alineado con el contenedor y captura de tamaño contenido */
@media (min-width: 960px) {
  .pp-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: min(780px, 100svh);
  }
  .pp-hero__text { padding: 10rem 48px 72px 24px; }
  .pp-hero__inner { margin-left: max(0px, calc(50vw - 570px)); }
  .pp-hero__panel { padding: 10rem 0 72px 56px; }
  .pp-hero__shot { width: min(122%, 980px); }
}

/* ─── 2. PROBLEMA ──────────────────────────────── */
.pp-problem { background: var(--pp-ink); color: var(--pp-paper); }
.pp-problem .pp-wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px; align-items: end;
}
.pp-problem__lines {
  display: flex; flex-direction: column; gap: 10px;
  font-size: clamp(28px, 3.4vw, 42px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.15; color: #a8a3a2;
}
.pp-problem__lines strong { color: var(--pp-red-lt); font-weight: 800; padding-top: 6px; }
.pp-problem p { font-size: 18px; line-height: 1.6; color: #d9d5d3; max-width: 460px; }

/* ─── 3. VÍDEO ─────────────────────────────────── */
.pp-video .pp-wrap { display: flex; flex-direction: column; gap: 28px; }
.pp-video__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pp-video__head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.025em; line-height: 1.05; }
.pp-video__head span { font-size: 14px; color: var(--pp-gray); }
.pp-video__player {
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #efedeb; /* mismo fondo que el vídeo (cuadrado) */
  border: 1px solid var(--pp-line);
}
.pp-video__player video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ─── 4. FUNCIONES ─────────────────────────────── */
.pp-features .pp-wrap { display: flex; flex-direction: column; gap: 96px; }
.pp-feature {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 64px; align-items: center;
}
.pp-feature__text { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 960px) { .pp-feature--rev .pp-feature__text { order: 2; } }
.pp-feature__num { font-size: 13px; font-weight: 700; color: var(--pp-red); letter-spacing: .04em; }
.pp-feature h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.025em; line-height: 1.08; }
.pp-feature__text > p { font-size: 17px; line-height: 1.6; color: var(--pp-text); }
.pp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pp-line); }
.pp-list li {
  font-size: 15px; line-height: 1.4; padding: 12px 0;
  border-bottom: 1px solid var(--pp-line); display: flex; gap: 12px;
}
.pp-list li::before { content: ''; width: 8px; height: 8px; margin-top: 6px; border-radius: 2px; background: var(--pp-ink); flex: none; }
.pp-feature__shot {
  aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: var(--pp-paper); border: 1px solid var(--pp-line);
}
.pp-feature__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* ─── 5. SEGURIDAD ─────────────────────────────── */
.pp-security .pp-wrap { display: flex; flex-direction: column; gap: 40px; }
.pp-cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.pp-card {
  background: #fff; border: 1px solid var(--pp-line); border-radius: 14px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.pp-card__mark { width: 36px; height: 36px; display: block; }
.pp-card__mark--sq   { border-radius: 8px; background: var(--pp-red); }
.pp-card__mark--dot  { border-radius: 50%; background: var(--pp-ink); }
.pp-card__mark--line { border-radius: 8px; border: 2px solid var(--pp-ink); }
.pp-card h3 { margin-top: 8px; font-size: 21px; letter-spacing: -.01em; }
.pp-card p { font-size: 15px; line-height: 1.55; color: var(--pp-gray); }

/* ─── 6. CÓMO SE CONTRATA ──────────────────────── */
.pp-plans .pp-wrap { display: flex; flex-direction: column; gap: 40px; }
.pp-plans .pp-head { max-width: 680px; }
.pp-cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.pp-plan { border: 1px solid var(--pp-ink); border-radius: 14px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.pp-plan__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pp-plan h3 { font-size: 26px; letter-spacing: -.02em; }
.pp-plan__tag { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--pp-red-dk); }
.pp-plan ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pp-line); }
.pp-plan li { font-size: 15px; padding: 13px 0; border-bottom: 1px solid var(--pp-line); }
.pp-plan__foot { font-size: 15px; color: var(--pp-gray); }
.pp-plan__foot b { color: var(--pp-ink); }
.pp-plan--dark { background: var(--pp-ink); color: var(--pp-paper); border-color: var(--pp-ink); }
.pp-plan--dark .pp-plan__tag { color: var(--pp-red-lt2); }
.pp-plan--dark ul, .pp-plan--dark li { border-color: #444141; }
.pp-plan--dark .pp-plan__foot { color: #cfcaca; }
.pp-plan--dark .pp-plan__foot b { color: #fff; }

/* ─── 7. PROCESO ───────────────────────────────── */
.pp-steps { padding: 0 24px 112px; }
.pp-steps ol {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1120px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-top: 1px solid var(--pp-ink);
}
.pp-steps li { padding: 28px 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pp-steps__n { font-size: 48px; font-weight: 800; letter-spacing: -.03em; color: var(--pp-red); line-height: 1; }
.pp-steps h3 { font-size: 20px; }
.pp-steps p { font-size: 15px; line-height: 1.55; color: var(--pp-gray); }

/* ─── 8. PRESUPUESTO ───────────────────────────── */
.pp-quote { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); scroll-margin-top: 90px; }
.pp-quote__side { background: var(--pp-red); color: #fff; display: flex; padding: 88px 24px; }
.pp-quote__side-in {
  width: 100%; max-width: 500px; margin-left: max(0px, calc(50vw - 560px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.pp-quote__side-top { display: flex; flex-direction: column; gap: 22px; }
.pp-quote__logo { height: 30px; width: auto; align-self: flex-start; }
.pp-quote h2 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -.035em; line-height: .98; }
.pp-quote__side-top p { font-size: 19px; line-height: 1.5; font-weight: 500; max-width: 400px; }
.pp-quote__call { display: flex; flex-direction: column; gap: 6px; font-size: 19px; font-weight: 600; }
.pp-quote__call span { font-size: 13px; letter-spacing: .1em; font-weight: 700; }
.pp .pp-quote__call a { color: #fff; }
.pp .pp-quote__call a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pp-quote__formside { background: var(--pp-paper); display: flex; padding: 88px 24px; }
.pp-quote__formwrap { width: 100%; max-width: 520px; }

.pp-form { display: flex; flex-direction: column; gap: 16px; }
.pp-form[hidden] { display: none; }
.pp-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pp-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.pp-field small { font-size: 13px; font-weight: 400; color: var(--pp-gray); }
.pp-field input, .pp-field select, .pp-field textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--pp-ink);
  border: 1px solid var(--pp-line-in); border-radius: 8px; background: #fff; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pp-field input, .pp-field select { height: 48px; padding: 0 14px; }
.pp-field select { padding: 0 12px; }
.pp-field textarea { padding: 12px 14px; resize: vertical; }
.pp-field input:focus, .pp-field select:focus, .pp-field textarea:focus {
  border-color: var(--pp-ink); box-shadow: 0 0 0 3px rgba(236,48,19,.18);
}
.pp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--pp-text); }
.pp-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pp-red); flex: none; }
.pp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pp-form__error { font-size: 14px; color: var(--pp-red-dk); font-weight: 600; }
.pp-form__error:empty { display: none; }
.pp-form button {
  font: inherit; height: 54px; border: 0; border-radius: 8px; background: var(--pp-ink);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s ease;
}
.pp-form button:hover { background: var(--pp-red); }
.pp-form button:disabled { opacity: .7; cursor: progress; }

.pp-thanks { display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.pp-thanks[hidden] { display: none; }
.pp-thanks img { height: 44px; width: auto; align-self: flex-start; }
.pp-thanks h3 { font-size: 32px; letter-spacing: -.02em; }
.pp-thanks p { font-size: 17px; line-height: 1.55; color: var(--pp-text); }
.pp-thanks b { color: var(--pp-ink); }
.pp .pp-thanks button { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--pp-red-dk); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }

/* Animación de entrada: reutiliza .fade-up del tema */
@media (prefers-reduced-motion: reduce) {
  .pp .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ═══ Comparativa de planes ═══════════════════════════ */
.pp-cmp { overflow-x: auto; border: 1px solid var(--pp-line); border-radius: 14px; background: #fff; }
.pp-cmp:focus-visible { outline: 2px solid var(--pp-red); outline-offset: 2px; }
.pp-cmp table { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.pp-cmp th, .pp-cmp td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--pp-line); vertical-align: middle; }
.pp-cmp tbody tr:last-child th, .pp-cmp tbody tr:last-child td { border-bottom: 0; }
.pp-cmp tbody th { text-align: left; font-weight: 600; color: var(--pp-ink); width: 30%;
  position: sticky; left: 0; background: #fff; z-index: 1; }
.pp-cmp tbody th small { display: block; font-weight: 400; font-size: 13px; color: var(--pp-gray); margin-top: 2px; line-height: 1.4; }
.pp-cmp thead th { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--pp-ink);
  padding-top: 24px; padding-bottom: 20px; vertical-align: bottom; border-bottom: 2px solid var(--pp-ink); }
.pp-cmp thead td { position: sticky; left: 0; background: #fff; border-bottom: 2px solid var(--pp-ink); }
.pp-cmp thead small { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--pp-gray); margin-top: 4px; }
.pp-cmp__grupo { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pp-red-dk); margin-bottom: 6px; }
/* El plan destacado, en la tarjeta negra */
.pp-cmp .pp-cmp__dest { background: var(--pp-ink); color: #fff; border-bottom-color: #3a3735; }
.pp-cmp thead .pp-cmp__dest { color: #fff; border-radius: 12px 12px 0 0; border-bottom-color: var(--pp-red); }
.pp-cmp thead .pp-cmp__dest small { color: #cfcaca; }
.pp-cmp thead .pp-cmp__dest .pp-cmp__grupo { color: var(--pp-red-lt2); }
.pp-cmp tbody tr:last-child .pp-cmp__dest { border-radius: 0 0 12px 12px; }
.pp-cmp .pp-cmp__propio { background: var(--pp-paper); }
.pp-si { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--pp-red); color: #fff; font-size: 14px; font-weight: 800; }
.pp-cmp__dest .pp-si { background: #fff; color: var(--pp-ink); }
.pp-no { color: var(--pp-line-in); font-weight: 700; }
.pp-cmp__dest .pp-no { color: #605d5d; }
.pp-cmp__nota { font-size: 14px; color: var(--pp-gray); max-width: 820px; margin-top: -16px; }
.pp-plans__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pp-plans__cta span { color: var(--pp-gray); font-size: 15px; }
@media (max-width: 700px) {
  .pp-cmp table { min-width: 640px; font-size: 13px; }
  .pp-cmp th, .pp-cmp td { padding: 10px 10px; }
  .pp-cmp tbody th { width: 120px; min-width: 120px; max-width: 120px; font-size: 13px; }
  .pp-cmp tbody th small { display: none; }
  .pp-cmp thead th { font-size: 16px; }
  .pp-cmp thead small { display: none; }
  .pp-si { width: 22px; height: 22px; font-size: 12px; }
}

/* ═══ ANIMACIONES (Propiris Motion) ═══════════════════
   Solo transform, opacity y clip-path. Sin JS o con «reducir movimiento», todo se ve quieto. */

/* Intro «entrar por el encaje»: propiris-intro.js pone .pp-intro antes de pintar y la capa tapa
   toda la página desde el primer fotograma; propiris.js la anima y quita la clase.
   Plan B: si el JS no llega, la capa se retira sola a los 3,5 s. */
.pp-ov { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  pointer-events: none; visibility: hidden; }
.pp-intro .pp-ov { visibility: visible; animation: pp-ocultar 0s 3.5s forwards; }
@keyframes pp-ocultar { to { visibility: hidden; } }
.pp-ov svg { width: clamp(110px, 22vw, 180px); overflow: visible; display: block; }
/* Durante el zoom el SVG ocupa toda la ventana y se acerca cambiando su viewBox: se redibuja en vectorial, nítido */
.pp-ov--zoom svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-ov [data-a="psq"], .pp-ov [data-a="pdot"] { transform-box: fill-box; transform-origin: center; }

/* Portada: rojo, titular blanco y el escritorio de la app en 3D (se endereza con el scroll) */
.pp-hero2 { position: relative; overflow: hidden; background: var(--pp-red); color: #fff; padding: 8rem 24px clamp(48px, 7vw, 96px); }
.pp-hero2__in { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); transform-origin: 50% 40%; }
.pp-hero2__text, .pp-hero2__a, .pp-hero2__b { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1024px) {   /* titular a la izquierda, texto y botones a la derecha: el escritorio entra en la portada */
  .pp-hero2 { padding-top: 9rem; }
  .pp-hero2__text { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
  .pp-hero2__b { gap: 18px; padding-bottom: 6px; }
  .pp-hero2__facts { padding-top: 16px; }
}
.pp-hero2 .pp-eyebrow { color: #fff; }
.pp-hero2 .pp-eyebrow::before { background: #fff; }
.pp-hero2__logo { height: 34px; width: auto; align-self: flex-start; }
.pp-hero2 h1 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: .95; color: #fff; }
.pp-negro { color: var(--pp-ink); }
.pp-hero2__sub { margin: 0; font-size: 18px; line-height: 1.6; max-width: 560px; color: #fff; }
.pp .pp-btn--negro { background: var(--pp-ink); color: #fff; font-weight: 700; gap: 28px; }
.pp .pp-btn--negro:hover { background: #000; color: #fff; }
.pp .pp-btn--blanco { border: 1px solid rgba(255,255,255,.75); color: #fff; font-weight: 600; padding: 16px 22px; }
.pp .pp-btn--blanco:hover { background: #fff; color: var(--pp-ink); }
.pp-hero2__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.45);
  font-size: 14px; color: rgba(255,255,255,.88); }
.pp-hero2__facts b { color: #fff; }
.pp-linea { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.pp-linea > [data-a] { display: block; }
.pp-hero2__stage { position: relative; perspective: 1400px; }
.pp-hero2__tilt { transform-origin: 50% 0; will-change: transform; container-type: inline-size; }

/* Fichas flotantes sobre el escritorio */
.pp-fc { position: absolute; z-index: 3; border-radius: 10px; padding: 12px 14px; box-shadow: 0 18px 40px rgba(32,30,29,.28);
  font-size: 13px; line-height: 1.35; display: flex; will-change: transform, opacity; }
.pp-fc--1 { top: 22%; right: -8px; background: #fff; color: var(--pp-ink); align-items: center; gap: 12px; max-width: 260px; }
.pp-fc--1 b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--pp-red); }
.pp-fc--1 div, .pp-fc--2 { flex-direction: column; display: flex; }
.pp-fc--2 { bottom: 14%; left: -8px; background: var(--pp-ink); color: #fff; max-width: 240px; }
.pp-fc--2 span { color: #d6d2d0; }
@media (max-width: 640px) { .pp-fc--1 { right: 6px; top: 8%; } .pp-fc--2 { left: 6px; bottom: 6%; } }

/* Escritorio de Propiris dibujado en HTML (aquí sí hay radios: es la interfaz del producto) */
.ppp { background: #f3f2f2; color: #201e1d; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(32,30,29,.35);
  font-family: 'Archivo', sans-serif; font-size: 13px; line-height: 1.3; text-align: left; }
.ppp-cab { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e4e2e1; }
.ppp-logo { height: 20px; width: auto; flex: none; }
.ppp-buscar { flex: 1; min-width: 0; max-width: 420px; display: flex; gap: 8px; background: #efeeed; border-radius: 6px; padding: 7px 10px;
  white-space: nowrap; overflow: hidden; }
.ppp-buscar span { color: #6b6765; }
.ppp-yo { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ppp-yo span { width: 26px; height: 26px; border-radius: 50%; background: #ec3013; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.ppp-cuerpo { display: flex; min-height: 0; }
.ppp-lateral { flex: 0 0 176px; background: #fff; border-right: 1px solid #e4e2e1; padding: 8px 8px 14px; display: flex; flex-direction: column; gap: 2px; }
.ppp-grupo { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8a8583; padding: 10px 8px 4px; font-weight: 600; }
.ppp-item { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; font-weight: 600; }
.ppp-item i { width: 26px; height: 26px; border-radius: 6px; background: #efeeed; display: grid; place-items: center; flex: none; }
.ppp-item small { margin-left: auto; font-size: 10.5px; font-weight: 700; background: #efeeed; border-radius: 999px; padding: 1px 7px; }
.ppp-item--on { background: #fde7e2; font-weight: 800; }
.ppp-item--on i { background: #ec3013; color: #fff; }
.ppp-main { flex: 1; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ppp-hola { display: flex; flex-direction: column; gap: 4px; }
.ppp-hola > span { font-size: 11px; color: #6b6765; }
.ppp-hola > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ppp-hola strong { font-size: 26px; letter-spacing: -.02em; font-weight: 800; line-height: 1.1; }
.ppp-botones { display: flex; gap: 6px; flex-wrap: wrap; font-weight: 700; font-size: 12px; }
.ppp-botones span { background: #fff; border: 1px solid #dcd9d8; border-radius: 5px; padding: 5px 10px; }
.ppp-botones .ppp-b1 { background: #ec3013; border-color: #ec3013; color: #fff; }
.ppp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.ppp-kpi { background: #201e1d; color: #fff; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; position: relative; min-height: 84px; }
.ppp-kpi b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ppp-kpi strong { font-size: 12px; }
.ppp-kpi > span:last-child { font-size: 10.5px; color: #bdb8b6; }
.ppp-kicon { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: #ec3013; color: #fff; display: grid; place-items: center; }
.ppp-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ppp-tarjeta { background: #fff; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.ppp-tit { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid #eceae9; }
.ppp-tit i { width: 3px; height: 12px; background: #ec3013; }
.ppp-att { background: #201e1d; color: #fff; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.ppp-att b { font-size: 24px; font-weight: 800; }
.ppp-att strong { font-size: 12px; }
.ppp-fase { display: grid; grid-template-columns: 78px minmax(0, 1fr) 18px; gap: 8px; align-items: center; font-size: 12px; }
.ppp-fase b { text-align: right; }
.ppp-pista, .pp-live__pista { height: 6px; border-radius: 3px; background: #eceae9; overflow: hidden; display: block; }
.ppp-pista span, .pp-live__pista span { display: block; height: 100%; border-radius: 3px; background: #201e1d; transform-origin: left; }
.ppp-act { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.ppp-act div { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ppp-act em { font-style: normal; background: #efeeed; border-radius: 10px; padding: 1px 8px; font-size: 10.5px; font-weight: 700; }
.ppp-act > span { color: #6b6765; }
@container (max-width: 760px) { .ppp-lateral { display: none; } .ppp-buscar span { display: none; } }

/* Encajes en vivo: puntúa y ordena */
.pp-live { background: #fff; }
.pp-live__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pp-live__izq { display: flex; flex-direction: column; gap: 18px; }
.pp-h2 span { color: var(--pp-red); }
.pp-live__inm { background: var(--pp-ink); color: #fff; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 12px 28px rgba(32,30,29,.18); }
.pp-live__inm em { align-self: flex-start; font-style: normal; background: var(--pp-red); border-radius: 10px; padding: 2px 10px; font-size: 11px; font-weight: 800; }
.pp-live__inm strong { font-size: 20px; }
.pp-live__inm span { color: #d6d2d0; font-size: 14px; }
.pp-live__lista { background: #fff; border: 1px solid var(--pp-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 24px rgba(32,30,29,.08); font-family: 'Archivo', sans-serif; }
.pp-live__filas { display: flex; flex-direction: column; gap: 2px; }
.pp-live__fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 110px) 34px; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 8px; }
.pp-live__fila > div { display: flex; flex-direction: column; min-width: 0; }
.pp-live__fila strong { font-size: 14px; }
.pp-live__fila div span { font-size: 12px; color: #6b6765; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-live__fila b { text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.pp-live__call { display: flex; padding-top: 4px; }
.pp-live__call span { background: var(--pp-red); color: #fff; border-radius: 6px; padding: 8px 12px; font-weight: 700; font-size: 13px; }

/* Embudo: la ficha de Marta viaja de Nuevo a Cerrado */
.pp-emb__marco { position: relative; display: flex; flex-direction: column; gap: 32px; }
.pp-emb__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; font-family: 'Archivo', sans-serif; }
.pp-emb__col { background: #e9e7e6; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pp-emb__cab { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pp-emb__cab span:last-child { background: #fff; border-radius: 10px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.pp-emb__hueco { height: 58px; border: 1.5px dashed #c9c5c3; border-radius: 8px; }
.pp-emb__ficha { background: #fff; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 12px; }
.pp-emb__ficha span { color: #6b6765; }
.pp-emb__viaja { position: absolute; top: 0; left: 0; z-index: 5; background: var(--pp-ink); color: #fff; border-radius: 8px; padding: 8px 10px;
  display: flex; flex-direction: column; justify-content: center; font-size: 12px; box-shadow: 0 14px 30px rgba(32,30,29,.3);
  visibility: hidden; font-family: 'Archivo', sans-serif; }
.pp-emb__viaja strong { font-size: 13px; }
.pp-emb__viaja span { color: #e2dedc; }

/* Cortina roja sobre el presupuesto (al enviar el formulario) */
.pp-quote { position: relative; overflow: hidden; }
.pp-cortina { position: absolute; inset: 0; z-index: 5; background: var(--pp-red); display: flex; align-items: center;
  padding: 0 clamp(16px, 4vw, 40px); transform: translateY(101%); pointer-events: none; }
.pp-cortina img { height: clamp(32px, 7vw, 64px); width: auto; }
