/* ============================================================================
   Surname Rooms · /surname-rooms/ (template-parts/surname-rooms.php)
   ---------------------------------------------------------------------------
   Va ENCIMA de home-v2.css + livingname.css (el sistema de la portada y de The Living Name): sólo agrega lo propio de
   esta página. Las reglas son las del sistema (reference_sistema_visual_portada / _nuevo):
     · una familia, Montserrat, contraste 300 ↔ 700;
     · el oro marca el dato y la oferta (el número, el sello, la cifra), nunca es pulsable;
     · botones píldora navy; papel con radio --r (3 px); una sola familia de sombra (--tln-sombra), sólo en lo apoyado;
     · ritmo asimétrico 7/5.
   ========================================================================== */

/* El contenedor de Astra (.ast-container) es flex y deja la página a la mitad del ancho en la compu (owner, 03-11:
   «en desktop quedó cortada»): la página ocupa todo el ancho, como las de The Living Name. */
body.fc-salas-pub #content > .ast-container { display: block; max-width: none; padding-left: 0; padding-right: 0; }
body.fc-salas-pub #content { background: #FFFFFF; }
#fc-h3.fc-sr { width: 100%; }

/* ── 1 · Cabeza: el collage ─────────────────────────────────────────────────── */
/* El atado de cartas: un objeto recortado (no un recorte de diario), así que va sin marco blanco: sólo su sombra. */
#fc-h3 .fc-sr-collage .fc-sr-cartas {
  padding: 0; background: none; box-shadow: none; border-radius: 0;
  width: 40%; left: -20%; top: auto; bottom: 10%; transform: rotate(-9deg);
}
#fc-h3 .fc-sr-collage .fc-sr-cartas img { filter: drop-shadow(0 18px 26px rgba(20, 35, 46, .28)); }
/* La ficha de la sala: el dato real del apellido de ejemplo (o del que escribió), con la misma voz del sello. */
#fc-h3 .fc-sr-collage .fc-sr-ficha {
  width: 44%; right: -2%; left: auto; top: 54%; transform: rotate(2.5deg);
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 17px 16px; border-radius: var(--r); background: var(--navy);
  box-shadow: 0 22px 40px -20px rgba(10, 25, 34, .55);
}
#fc-h3 .fc-sr-ficha-k { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); }
#fc-h3 .fc-sr-ficha-t { font-size: clamp(17px, .5vw + 14px, 21px); font-weight: 600; line-height: 1.2; color: #FFFFFF; }
#fc-h3 .fc-sr-ficha-d { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
#fc-h3 .fc-sr-ficha-d b { color: #E2C877; font-weight: 600; }
@media (max-width: 900px) {
  #fc-h3 .fc-sr-collage .fc-sr-cartas { --borde: max(-22%, calc((100% - 100cqw) / 2 + 6px)); left: var(--borde); width: min(42%, calc(40% - var(--borde))); top: auto; bottom: 8%; }
  #fc-h3 .fc-sr-collage .fc-sr-ficha { --borde: max(-22%, calc((100% - 100cqw) / 2 + 6px)); right: var(--borde); width: min(54%, calc(48% - var(--borde))); top: 50%; padding: 12px 13px 13px; }
  #fc-h3 .fc-sr-ficha-d { font-size: 11.5px; }
}
#fc-h3#fc-h3 .fc-sr-busca .fc-tln-busca-n b { color: var(--tinta); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── 2 · La sala por dentro ─────────────────────────────────────────────────── */
#fc-h3 .fc-sr-intro { max-width: 60ch; margin-bottom: clamp(26px, 3vw, 44px); }
#fc-h3#fc-h3 .fc-sr-intro h2 { margin-top: 8px; }
#fc-h3 .fc-sr-aviso {
  max-width: 72ch; margin: -8px 0 26px; padding: 14px 18px; border-left: 2px solid var(--oro);
  background: #FFFFFF; font-size: var(--f-cap) !important; line-height: 1.55; color: var(--prosa) !important;
}
#fc-h3 .fc-sr-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
@media (max-width: 900px) { #fc-h3 .fc-sr-grid { grid-template-columns: minmax(0, 1fr); } }

#fc-h3 .fc-sr-marco { position: relative; background: #FFFFFF; border-radius: var(--r); box-shadow: var(--tln-sombra); overflow: hidden; }
/* La sala por dentro, con la forma del chat de verdad (04-11, owner): cabecera navy con avatar, muro con burbujas,
   el redactor abajo. Desenfocada: es un ejemplo, y la sala es sólo para miembros. */
#fc-h3 .fc-sr-cab { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px 20px; background: var(--navy); }
#fc-h3 .fc-sr-cab-av { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #0C2130; box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .5); color: var(--oro); font-size: 19px; font-weight: 600; }
#fc-h3 .fc-sr-cab-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#fc-h3 .fc-sr-cab-k { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); }
#fc-h3 .fc-sr-cab-t { font-size: clamp(20px, .7vw + 16px, 25px); font-weight: 300; letter-spacing: -.015em; line-height: 1.15; color: #FFFFFF; }
#fc-h3 .fc-sr-cab-d { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .74); }
#fc-h3 .fc-sr-muro { position: relative; padding: 14px 16px 18px; min-height: 440px; background-color: #EEF1F3; background-image: radial-gradient(rgba(17, 43, 61, .035) 1px, transparent 1px); background-size: 18px 18px; }
#fc-h3 .fc-sr-ej {
  position: absolute; top: 14px; right: 18px; z-index: 3; padding: 5px 11px; border-radius: var(--pill);
  background: #FFFFFF; border: 1px solid var(--tln-filete);
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tenue);
}
#fc-h3 .fc-sr-posts { display: flex; flex-direction: column; gap: 9px; filter: blur(3.5px); opacity: .78; user-select: none; pointer-events: none; }
#fc-h3 .fc-sr-dia { align-self: center; margin: 2px 0 4px; padding: 4px 12px; border-radius: 8px; background: rgba(255, 255, 255, .92); font-size: 11.5px; font-weight: 600; color: var(--tenue); }
#fc-h3 .fc-sr-posts article { display: flex; flex-direction: column; align-items: flex-start; max-width: 84%; padding: 0; border: 0; }
#fc-h3 .fc-sr-posts article.es-mio { align-self: flex-end; align-items: flex-end; }
#fc-h3 .fc-sr-b { padding: 8px 11px 6px; border-radius: 4px 12px 12px 12px; background: #FFFFFF; box-shadow: 0 1px 1px rgba(0, 0, 0, .07); }
#fc-h3 .es-mio .fc-sr-b { border-radius: 12px 4px 12px 12px; background: var(--navy); }
#fc-h3 .fc-sr-posts header { display: flex; align-items: baseline; gap: 6px; margin: 0 0 2px; font-size: 12.5px; }
#fc-h3 .fc-sr-posts b { font-weight: 600; }
#fc-h3 .fc-sr-c1 { color: #9A5B13; } #fc-h3 .fc-sr-c2 { color: #1E6F8C; } #fc-h3 .fc-sr-c3 { color: #8C2F4C; } #fc-h3 .fc-sr-c4 { color: #2E6B40; }
#fc-h3 .fc-sr-posts i { font-style: normal; font-size: 11px; color: var(--tenue); }
#fc-h3#fc-h3 .fc-sr-posts p { margin: 0 !important; font-size: 14px !important; line-height: 1.45 !important; color: var(--tinta) !important; }
#fc-h3#fc-h3 .es-mio .fc-sr-b p { color: #FFFFFF !important; }
#fc-h3 .fc-sr-posts time { display: block; margin: 3px 0 0; text-align: right; font-size: 10.5px; color: var(--tenue); }
#fc-h3 .es-mio time { color: rgba(255, 255, 255, .62); }
#fc-h3 .fc-sr-reac { position: relative; z-index: 1; margin: -5px 0 0 8px; padding: 1px 7px; border: 1px solid #E7E9EB; border-radius: var(--pill); background: #FFFFFF; font-size: 11.5px; color: var(--tenue); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
#fc-h3 .fc-sr-comp { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #F6F7F8; border-top: 1px solid #DFE3E7; }
#fc-h3 .fc-sr-comp-clip { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; color: var(--tenue); }
#fc-h3 .fc-sr-comp-caja { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); font-size: 13.5px; font-weight: 600; color: var(--tenue); }
#fc-h3 .fc-sr-comp-env { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #D9CFA8; color: rgba(17, 43, 61, .55); }
#fc-h3 .fc-sr-candado {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -44%);
  width: min(400px, calc(100% - 32px)); box-sizing: border-box; padding: 28px 26px 22px;
  background: rgba(255, 255, 255, .97); border-radius: var(--r); box-shadow: var(--tln-sombra); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
#fc-h3 .fc-sr-candado-i { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 12px; border-radius: 50%; background: var(--navy); color: var(--oro); }
#fc-h3 .fc-sr-candado strong { display: block; font-size: clamp(20px, .5vw + 17px, 23px); font-weight: 600; line-height: 1.2; color: var(--tinta); }
#fc-h3#fc-h3 .fc-sr-candado p { margin: 8px 0 18px !important; font-size: 14.5px !important; line-height: 1.55 !important; color: var(--prosa) !important; }
#fc-h3 .fc-sr-candado .fc-h3-btn { width: 100%; box-sizing: border-box; justify-content: center; }
#fc-h3 .fc-sr-entrar { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--oro-osc); text-decoration: underline; text-underline-offset: 3px; }

/* El costado: el dato real del apellido (las dos cifras en 300 grandes, como «783,399» de The Living Name) */
#fc-h3 .fc-sr-lado { position: sticky; top: 96px; display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 32px); background: #FFFFFF; border-radius: var(--r); border: 1px solid var(--tln-filete); }
@media (max-width: 900px) { #fc-h3 .fc-sr-lado { position: static; } }
#fc-h3 .fc-sr-lado-k { margin: 0 !important; font-size: var(--f-eye) !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-osc) !important; }
#fc-h3 .fc-sr-cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 14px; padding-bottom: 18px; border-bottom: 1px solid var(--tln-filete); }
#fc-h3 .fc-sr-cifras div { display: flex; flex-direction: column; gap: 4px; }
#fc-h3 .fc-sr-cifras b { font-size: clamp(40px, 2.6vw + 24px, 60px); font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
#fc-h3 .fc-sr-cifras b .fc-sr-no { font-size: .5em; letter-spacing: 0; vertical-align: .35em; color: var(--oro-osc); }
#fc-h3 .fc-sr-cifras div > span { font-size: 13px; line-height: 1.35; color: var(--tenue); }
#fc-h3 .fc-sr-numero { white-space: nowrap; }
#fc-h3#fc-h3 .fc-sr-lado-p { margin: 0 0 16px !important; font-size: 15px !important; line-height: 1.55 !important; color: var(--prosa) !important; }
#fc-h3 .fc-sr-lado-p b { color: var(--tinta); font-weight: 600; }
#fc-h3 .fc-sr-lado-l { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
#fc-h3 .fc-sr-lado-l li { position: relative; margin: 0; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: var(--tinta); }
#fc-h3 .fc-sr-lado-l li::before {
  content: ""; position: absolute; left: 3px; top: .45em; width: 11px; height: 6px;
  border-left: 1.8px solid var(--oro-osc); border-bottom: 1.8px solid var(--oro-osc); transform: rotate(-45deg);
}
#fc-h3 .fc-sr-lado-b { justify-content: center; width: 100%; box-sizing: border-box; }
#fc-h3 .fc-sr-lado-b .fc-sr-no { font-size: .8em; }
#fc-h3 .fc-sr-lado-ln { margin-top: 14px; font-size: var(--f-cap) !important; text-align: center; }
/* el cambio de cifra al escribir otro apellido: se desvanece y vuelve (atenuado con movimiento reducido, no apagado) */
#fc-h3 [data-fc-sr-cifra], #fc-h3 [data-fc-sr-local], #fc-h3 [data-fc-sr-ficha] { transition: opacity .35s var(--sal); }
#fc-h3 .fc-sr-cambiando [data-fc-sr-cifra], #fc-h3 .fc-sr-cambiando [data-fc-sr-local], #fc-h3 .fc-sr-cambiando [data-fc-sr-ficha] { opacity: .15; }

/* ── 3 · Cómo funciona: las ilustraciones (generadas para esta página, recortadas) ─────────────────────── */
#fc-h3 .fc-sr-fig { display: flex; justify-content: center; }
#fc-h3 .fc-sr-fig img { display: block; width: 100%; max-width: 210px; height: auto; margin: 6px auto 0; }

/* ── 4 · Dos formas de entrar ───────────────────────────────────────────────── */
#fc-h3 .fc-sr-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 760px) { #fc-h3 .fc-sr-dos { grid-template-columns: minmax(0, 1fr); } }
#fc-h3 .fc-sr-via { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px); background: #FFFFFF; border: 1px solid var(--tln-filete); border-radius: var(--r); }
#fc-h3 .fc-sr-via-s { display: block; width: 84px; height: 84px; margin: 0 0 18px; border-radius: 50%; background: radial-gradient(120% 120% at 20% 10%, #1E4460, var(--navy) 62%); box-shadow: 0 10px 22px -12px rgba(10, 25, 34, .6); }
#fc-h3 .fc-sr-via-s svg { display: block; width: 100%; height: 100%; }
#fc-h3 .fc-sr-via-img { display: block; width: 104px; height: 104px; margin: -10px 0 8px -8px; }
#fc-h3 .fc-sr-via-img img { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(20, 35, 46, .22)); }
#fc-h3#fc-h3 .fc-sr-via-k { margin: 0 0 8px !important; font-size: var(--f-eye) !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-osc) !important; }
#fc-h3#fc-h3 .fc-sr-via h3 { margin: 0 0 12px; font-size: var(--f-h3); font-weight: 600; line-height: 1.22; color: var(--tinta); }
#fc-h3#fc-h3 .fc-sr-via > p { margin: 0 0 18px !important; font-size: var(--f-body) !important; line-height: 1.6 !important; color: var(--prosa) !important; }
#fc-h3 .fc-sr-via ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
#fc-h3 .fc-sr-via li { position: relative; margin: 0; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--tinta); }
#fc-h3 .fc-sr-via li::before {
  content: ""; position: absolute; left: 3px; top: .45em; width: 11px; height: 6px;
  border-left: 1.8px solid var(--oro-osc); border-bottom: 1.8px solid var(--oro-osc); transform: rotate(-45deg);
}
#fc-h3 .fc-sr-via .fc-h3-btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 640px) { #fc-h3#fc-h3 .fc-sr-via .fc-h3-btn { align-self: stretch; width: 100%; box-sizing: border-box; justify-content: center; text-align: center; } }

/* ── 5 · Preguntas ──────────────────────────────────────────────────────────── */
#fc-h3 .fc-sr-reglas { margin: 22px 0 0 !important; }

/* ── 6 · Cierre: la foto de las tres generaciones bajo el velo navy (el patrón de la portada) ──────────── */
#fc-h3 .fc-sr-cierre .fc-h3-fondo { background-position: 50% 62%; }
/* la foto es más luminosa que el facsímil de The Living Name: el velo va más denso para que el texto se lea entero */
#fc-h3 .fc-sr-cierre .fc-h3-velo { background: linear-gradient(180deg, rgba(10, 25, 34, .80) 0%, rgba(10, 25, 34, .70) 55%, rgba(10, 25, 34, .82) 100%) !important; opacity: 1 !important; }

/* lo escrito no es un apellido («family», «test», una letra): el aviso usa .fc-tln-busca-e (livingname.css) */
#fc-h3#fc-h3 .fc-sr-aviso:empty { display: none; }

/* el costado cuando quien mira YA es custodio de ese apellido (con sesión): «Nº 7 · is yours» y a su sala */
#fc-h3 .fc-sr-lado:not(.fc-sr-suyo) .fc-sr-si-si,
#fc-h3 .fc-sr-lado.fc-sr-suyo .fc-sr-si-no { display: none !important; }
