/* La página del proyecto para el cliente. Primero el teléfono: casi todos la
   abren desde el SMS. Naranja de la marca con texto oscuro encima (contraste
   AA), fuente del sistema, como la galería de fotos y ACG Field. */

:root {
  --orange: #f95c00;
  --orange-ink: #1a0c00;
  --orange-soft: #fff1e8;
  --orange-text: #8a3300;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #a1a1a6;
  --line: #e5e5ea;
  --bg: #f5f5f7;
  --card: #ffffff;
  --green: #147a5c;
  --green-soft: #e7f5ef;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cp {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { display: block; }

/* ── Cabecera ─────────────────────────────────────────────── */
.cp-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
}
.cp-logo { height: 32px; width: auto; display: block; }
.cp-logo-text { font-size: 17px; }

/* ── Botones píldora ──────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
  min-height: 44px; padding: 0 16px;
  transition: transform .12s ease, background-color .15s ease;
}
.pill:active { transform: scale(.97); }
.pill:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.pill svg { width: 18px; height: 18px; flex: none; }
.pill-soft { background: var(--bg); color: var(--ink); }
.pill-soft svg { color: var(--orange); }
.pill-orange { background: var(--orange); color: var(--orange-ink); }
.pill.wide { display: flex; width: 100%; margin-top: 14px; }
.cp-top .pill { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* ── Cuerpo ───────────────────────────────────────────────── */
.cp-body { max-width: 560px; margin: 0 auto; padding: 16px 14px 8px; display: flex; flex-direction: column; }
/* En el teléfono las dos columnas se deshacen y las tarjetas van intercaladas:
   estado, lo que viene, la visita, el PM, los pasos, los documentos. */
.cp-main, .cp-side { display: contents; }
.hello { order: 0; }
.o-hero { order: 1; } .o-next { order: 2; } .o-visit { order: 3; } .o-pm { order: 4; } .o-meet { order: 4; } .o-updates { order: 5; } .o-steps { order: 5; } .o-photos { order: 5; } .o-docs { order: 6; }
.hello { margin: 4px 6px 12px; color: var(--ink-2); font-size: 15px; }
.card { background: var(--card); border-radius: 22px; padding: 20px; margin-bottom: 12px; }
.card h2 { font-size: 17px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }

/* El estado de la obra */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.hero h1 { font-size: 27px; line-height: 1.12; letter-spacing: -0.02em; margin: 6px 0 2px; overflow-wrap: anywhere; }
.hero .city { color: var(--ink-2); margin: 0; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: var(--orange-soft); color: var(--orange-text); font-weight: 700; font-size: 13px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
}
.status.is-complete { background: var(--green-soft); color: var(--green); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); position: relative; flex: none; }
.status.is-complete .pulse { background: var(--green); }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--orange); opacity: 0; animation: cp-ring 2s ease-out infinite;
}
.status.is-complete .pulse::after { display: none; }
@keyframes cp-ring { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } .pill { transition: none; } }
.lead { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.28; margin: 12px 0 14px; }
.eta { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 16px; padding: 12px 14px; }
.eta svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.eta b { display: block; font-size: 16px; }
.eta span { font-size: 13px; color: var(--ink-2); }

.stages { list-style: none; padding: 0; margin: 22px 0 6px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.segs { display: flex; gap: 3px; height: 10px; }
.segs i { position: relative; display: block; flex: 1; height: 100%; overflow: hidden; border-radius: 3px; background: var(--line); }
.stage:first-child .segs i:first-child { border-radius: 999px 3px 3px 999px; }
.stage:last-child .segs i:last-child { border-radius: 3px 999px 999px 3px; }
/* Al abrir la página lo hecho se llena de izquierda a derecha, tramo tras tramo. */
.segs i.is-done::before {
  content: ""; position: absolute; inset: 0; background: var(--orange);
  transform-origin: left center;
  animation: cp-fill .55s cubic-bezier(0.23, 1, 0.32, 1) both;
  animation-delay: calc(150ms + var(--n, 0) * 90ms);
}
@keyframes cp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Dónde está ahora: el paso que viene, con rayas que avanzan. */
.segs i.is-next {
  background-color: var(--orange-soft);
  background-image: linear-gradient(-45deg, var(--orange) 25%, transparent 25%, transparent 50%, var(--orange) 50%, var(--orange) 75%, transparent 75%, transparent);
  background-size: 14px 14px;
  opacity: .75;
  animation: cp-push .9s linear infinite;
}
@keyframes cp-push { from { background-position: 0 0; } to { background-position: 14px 0; } }
.stage .lbl { display: block; font-size: 11.5px; margin-top: 8px; color: var(--ink-3); font-weight: 600; text-align: center; }
.stage.is-done .lbl { color: var(--ink-2); }
.stage.is-now .lbl { color: var(--ink); }

/* "Live": la página se pinta con los datos de ahora en cada visita. */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 3px 10px 3px 4px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.live-dot { position: relative; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--green); color: #fff; }
.live-dot svg { position: relative; z-index: 1; width: 10px; height: 10px; }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--green); border-radius: 50%;
  opacity: 0; animation: cp-ripple 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
@keyframes cp-ripple { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.5); opacity: 0; } }
.updated { font-size: 12.5px; color: var(--ink-2); margin: 10px 0 0; }

/* Lo que viene */
.next p { margin: 0; color: #3a3a3c; }
.ok-line { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--green); font-weight: 600; font-size: 14px; }
.ok-line svg { width: 18px; height: 18px; flex: none; }

/* La próxima visita */
.visit-row { display: flex; align-items: center; gap: 12px; }
.visit-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.visit-ic svg { width: 20px; height: 20px; color: var(--orange); }
.visit-row b { display: block; font-size: 16px; }
.visit-row span { font-size: 13.5px; color: var(--ink-2); }
.chip-ok { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* Su project manager */
.pm { display: flex; gap: 14px; align-items: center; }
.pm img, .pm-initials { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.pm-initials { display: flex; align-items: center; justify-content: center; background: var(--orange-soft); color: var(--orange-text); font-size: 26px; font-weight: 700; }
.pm b { display: block; font-size: 17px; }
.pm span { font-size: 14px; color: var(--ink-2); }
.pm-actions { display: grid; gap: 8px; margin-top: 16px; }
.pm-actions.cols-1 { grid-template-columns: 1fr; }
.pm-actions.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pm-actions.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pm-actions .pill { flex-direction: column; gap: 4px; min-height: 64px; border-radius: 16px; font-size: 13px; padding: 8px 6px; }
.pm-actions .pill svg { width: 20px; height: 20px; }

/* Los pasos */
.steps { list-style: none; margin: 10px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 26px 1fr auto; column-gap: 12px; position: relative; padding-bottom: 16px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps li.is-done::before { background: var(--orange); }
.dot {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; background: #fff; box-shadow: inset 0 0 0 2px var(--line);
}
.is-done .dot { background: var(--orange); box-shadow: none; }
.is-done .dot svg { width: 14px; height: 14px; color: var(--orange-ink); }
.is-next .dot { box-shadow: inset 0 0 0 2px var(--orange); }
.is-next .dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); display: block; }
.steps .t { font-weight: 600; padding-top: 2px; }
.steps .is-todo .t { color: var(--ink-2); font-weight: 500; }
.steps .d { font-size: 13px; color: var(--ink-2); padding-top: 4px; white-space: nowrap; }
.steps .is-next .d { color: var(--orange-text); font-weight: 700; }
.steps .s { grid-column: 2 / 4; font-size: 14px; color: #3a3a3c; background: var(--orange-soft); border-radius: 12px; padding: 10px 12px; margin-top: 6px; }

/* Documentos */
.docs { list-style: none; margin: 6px 0 0; padding: 0; }
.docs li + li { border-top: 1px solid var(--line); }
.docs a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; min-height: 56px; }
.doc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; flex: none; }
.doc-ic svg { width: 20px; height: 20px; color: var(--orange); }
.doc-tx { min-width: 0; }
.doc-tx b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.doc-tx span { font-size: 12.5px; color: var(--ink-2); }
.docs .dl { margin-left: auto; color: var(--ink-2); flex: none; }
.docs .dl svg { width: 20px; height: 20px; }

/* Pie */
.cp-foot { max-width: 560px; margin: 0 auto; padding: 18px 20px calc(34px + env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.cp-foot img { height: 24px; width: auto; opacity: .9; margin-bottom: 8px; display: inline-block; }
.cp-foot a { color: var(--ink); text-decoration: none; }
.cp-foot a.prefs { font-weight: 600; text-decoration: underline; }
.cp-foot .priv { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }

/* Pedir reunión (fase 2) */
.pill-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.pill-line svg { color: var(--orange); }
.meet .pill.wide { margin-top: 12px; }
.meet-form > summary { list-style: none; margin-top: 0 !important; }
.meet-form > summary::-webkit-details-marker { display: none; }
.meet-form[open] > summary { display: none; }
.meet-form form h2 { margin-top: 2px; }
.meet fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; max-width: 100%; }
.meet legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.meet-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meet-kind { position: relative; }
.meet-kind input { position: absolute; opacity: 0; inset: 0; }
.meet-kind span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; text-align: center;
  border-radius: 14px; background: var(--bg); font-weight: 600; font-size: 14px; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s ease, background-color .15s ease;
}
.meet-kind input:checked + span { background: var(--orange-soft); box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange-text); }
.meet-kind input:focus-visible + span { outline: 3px solid #60a5fa; outline-offset: 2px; }
.meet-slot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.meet select, .meet textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid transparent; border-radius: 12px; padding: 10px 12px; min-height: 46px;
}
.meet select:focus, .meet textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.meet textarea { resize: vertical; min-height: 84px; }
.meet-label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 8px; }
.meet-small { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.meet-note { font-size: 14px; color: #3a3a3c; background: var(--bg); border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; }
.meet-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14.5px; }
.meet-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.meet-list li:first-child { border-top: 0; }
.meet-alert { border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.meet-alert.is-ok { background: var(--green-soft); color: var(--green); }
.meet-alert.is-error { background: #fdecec; color: #b42318; }
@media (max-width: 380px) { .meet-slot { grid-template-columns: 1fr; } }
.meet-days { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.meet-day { flex: none; scroll-snap-align: start; position: relative; }
.meet-day input, .meet-time input { position: absolute; opacity: 0; inset: 0; }
.meet-day span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; min-height: 58px; padding: 6px 10px;
  border-radius: 14px; background: var(--bg); font-size: 13px; color: var(--ink-2); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s ease, background-color .15s ease;
}
.meet-day span b { font-size: 15px; color: var(--ink); }
.meet-day input:checked + span, .meet-time input:checked + span { background: var(--orange-soft); box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange-text); }
.meet-day input:focus-visible + span, .meet-time input:focus-visible + span { outline: 3px solid #60a5fa; outline-offset: 2px; }
.meet-times { display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.meet-time { position: relative; }
.meet-time span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--bg); font-weight: 600; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.meet-book:has(input[name=day]:checked) .pick-hint { display: none; }

/* Fase 3: entrar sin contraseña, "My projects" y pagos */
.cp-body.cp-narrow { display: block; max-width: 560px; }
.login h1 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin: 4px 0 8px; }
.login-help { color: #3a3a3c; margin: 0 0 6px; }
.login-input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--bg);
  border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; min-height: 50px;
}
.login-input:focus { outline: none; border-color: var(--orange); background: #fff; }
.login-code { font-size: 26px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.login-small { font-size: 13.5px; color: var(--ink-2); margin: 14px 0 0; text-align: center; }
.login-small a { color: var(--orange-text); font-weight: 600; }
.my-group { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 22px 6px 10px; }
.my-card { display: block; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.my-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.my-street { display: block; font-size: 22px; letter-spacing: -0.01em; margin-top: 4px; }
.my-rest { display: block; color: var(--ink-2); }
.my-card .status { margin-top: 12px; }
.my-card .stages { margin-top: 16px; }
.my-open { display: block; margin-top: 10px; color: var(--orange-text); font-weight: 700; font-size: 14.5px; }
.pay-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px; }
.pay-totals div { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.pay-totals span { display: block; font-size: 12.5px; color: var(--ink-2); }
.pay-totals b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pay-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pay-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.pay-list li:first-child { border-top: 0; }
.pay-list b { font-weight: 600; }
.pay-list .pdf { font-weight: 600; color: var(--ink); text-decoration: none; }
.pay-list .pdf small { font-size: 11px; font-weight: 700; color: var(--orange-text); background: var(--orange-soft); border-radius: 6px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
.pay-list .pdf:hover small { background: var(--orange); color: var(--orange-ink); }
.pay-list .amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pay-list .sub { font-size: 12.5px; color: var(--ink-2); }
.pay-list .st { font-size: 12.5px; text-align: right; color: var(--ink-2); }
.pay-list .st.is-paid { color: var(--green); font-weight: 600; }
.pay-note { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.top-actions { display: flex; gap: 8px; }
/* El inicio del portal: en el teléfono, obras, dinero, fotos y terminadas. */
.my-home .o-active { order: 1; } .my-home .o-updates { order: 2; } .my-home .o-money { order: 3; } .my-home .o-myphotos { order: 4; } .my-home .o-done { order: 5; }
.my-home .my-group:first-of-type { margin-top: 6px; }
.pay-totals .is-open b { color: var(--orange-text); }
.pay-totals .is-clear b { color: var(--green); }
.my-photos { display: block; text-decoration: none; padding: 16px; }
.my-photos-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 4px 10px; }
.my-photos-head b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-photos-head span { flex: none; font-size: 13.5px; font-weight: 700; color: var(--orange-text); }
.my-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.my-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { .my-card { transition: none; } }

/* Enlace sin página */
.gone h1 { font-size: 24px; margin: 0 0 6px; }
.gone .lead { font-size: 17px; font-weight: 500; color: #3a3a3c; }

@media (min-width: 700px) {
  .cp-body { padding-top: 28px; }
  .hero h1 { font-size: 32px; }
}

/* Escritorio: dos columnas. A la izquierda el estado, lo que viene y los pasos;
   a la derecha, fija al bajar, la visita, el PM y los documentos. */
@media (min-width: 960px) {
  .cp-top { padding-left: max(24px, calc((100% - 1080px) / 2)); padding-right: max(24px, calc((100% - 1080px) / 2)); }
  .cp-logo { height: 36px; }
  .cp-body {
    max-width: 1080px; padding: 36px 24px 12px;
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 24px; align-items: start;
  }
  .hello { grid-column: 1 / -1; margin: 0 4px 16px; font-size: 16px; }
  .cp-main { display: block; grid-column: 1; }
  .cp-side { display: block; grid-column: 2; position: sticky; top: 84px; }
  .card { border-radius: 26px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 10px 30px rgba(0,0,0,.05); }
  .hero { padding: 34px 36px 30px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 23px; max-width: 30ch; }
  .next, .o-steps { padding: 26px 30px; }
  .segs { height: 12px; }
  .stage .lbl { font-size: 12.5px; }
  .cp-foot { max-width: 1080px; }
  .my-home .my-group:first-child, .my-home .cp-side .my-group { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .segs i.is-done::before, .segs i.is-next { animation: none; }
  .live-dot::after { animation: none; opacity: 0; }
}

/* ── Fotos de la obra ─────────────────────────────────────── */
.photos h2 .count { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg); border-radius: 999px; padding: 2px 9px; margin-left: 4px; vertical-align: 2px; }
.photos h3 { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 16px 0 8px; }
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.photos h3 + .ph-grid { margin-top: 0; }
.ph { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.ph:hover img { transform: scale(1.04); }
.ph:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.ph-grid.is-cut [data-more] { display: none; }
.ph-view { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,12,.94); color: #fff; }
.ph-view[open] { display: flex; align-items: center; justify-content: center; }
.ph-view::backdrop { background: rgba(10,10,12,.94); }
.ph-view img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; }
.ph-cap { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; margin: 0; font-size: 13px; color: rgba(255,255,255,.75); white-space: pre; }
.ph-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ph-btn:hover { background: rgba(255,255,255,.26); }
.ph-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.ph-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.ph-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (min-width: 700px) { .ph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 960px) { .photos { padding: 26px 30px; } }
@media (prefers-reduced-motion: reduce) { .ph img { transition: none; } }

/* ── Novedades ────────────────────────────────────────────── */
.upd { list-style: none; margin: 4px 0 0; padding: 0; }
.upd li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 11px 0; position: relative; }
.upd li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.upd li[hidden] { display: none; }
.upd-ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--orange-soft); color: var(--orange); }
.upd-ic svg { width: 17px; height: 17px; }
.upd-step .upd-ic { background: var(--orange); color: #fff; }
.upd-pay .upd-ic { background: var(--green-soft); color: var(--green); }
.upd-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.upd-day { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upd-title { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
a.upd-title { color: var(--orange-text); }
.upd-text { font-size: 14px; color: #3a3a3c; overflow-wrap: anywhere; }
@media (min-width: 960px) { .o-updates.card { padding: 26px 30px; } .cp-side .o-updates.card { padding: 20px; } }

