:root {
  /* --text, --muted, --bg y --shadow alineados con los valores que la SPA
     React usa por encima de public-site.css (vienen de
     frontend-react/src/styles.css → index-Cq_up8cw.css). Sin esto, el
     menú del área privada aparecía visualmente más oscuro/marcado que
     el del área pública aunque ambos usaran font-weight: 700. */
  --bg: #eaf2fa;
  --surface: #ffffff;
  --text: #233246;
  --muted: #5c7491;
  --primary: #005b9a;
  --primary-strong: #004274;
  --border: #d6e1ea;
  --shadow: 0 24px 60px rgba(36, 64, 97, 0.12);
  --radius: 16px;
  --arraigo: #13a66f;
  --renovacion: #1976d2;
  --familiar: #f59f0b;
  --nacionalidad: #d94848;
  --estancia: #8b5cf6;
  --trabajo: #14b8a6;
  --otros: #78716c;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  /* Anula el line-height: 1.5 que Bootstrap fija en body, para que los
     elementos sin line-height propio (como .main-nav a) tengan el mismo
     inline-box que en la SPA React (que no carga Bootstrap). Sin esto,
     los enlaces del menú quedaban unos píxeles desplazados al navegar
     entre el área pública y la privada. */
  line-height: normal;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, #ffffff 0%, #f5f9fc 38%, #ecf3f8 100%);
  scroll-behavior: smooth;
  scroll-padding-top: 122px;
}

a { color: inherit; text-decoration: none; }

body.modal-open {
  overflow: hidden;
}

/* Anula el padding-left/right que Bootstrap aplica a .container, así el
   contenedor del Blade tiene exactamente el mismo ancho útil y posición
   que el de la SPA React (que no carga Bootstrap). */
.container { width: min(1140px, 92vw); margin: 0 auto; padding-left: 0; padding-right: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 254, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 218, 234, 0.45);
  box-shadow: 0 1px 0 rgba(200, 218, 234, 0.25);
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand-logo {
  width: clamp(160px, 18vw, 260px);
  height: auto;
  display: block;
}

.main-nav {
  justify-self: start;
  margin-left: 0.6rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.main-nav a {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: 0.7rem; }

.lang-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfd2e0;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.2rem 0.25rem;
  box-shadow: 0 6px 14px rgba(34, 86, 123, 0.12);
}
/* En desktop solo se ve el selector de header-actions; el del menú móvil
   permanece oculto hasta que se aplique la media query de móvil. */
.lang-control.lang-control-mobile { display: none; }

.lang-select {
  min-width: 84px;
  text-align: center;
  text-align-last: center;
  border: 0;
  border-radius: 999px;
  background: #edf5fb;
  box-shadow: inset 0 0 0 1px #d4e3ef;
  padding: 0.54rem 2rem 0.54rem 0.85rem;
  font-family: inherit;
  font-weight: 800;
  color: #2f5f81;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #3f6f92 50%),
    linear-gradient(135deg, #3f6f92 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.btn {
  border: 0;
  border-radius: 11px;
  padding: 0.62rem 1rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { border: 1px solid var(--border); background: #fff; color: var(--text); }

.private-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(0, 72, 122, 0.28);
  color: #ffffff;
  white-space: nowrap;
}

.main-nav .private-link,
.main-nav .private-link span {
  color: #ffffff;
}

.private-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  padding: 5.6rem 0 4.8rem;
  overflow: hidden;
  perspective: 1200px;
  scroll-margin-top: 116px;
}

.hero-banner {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(94deg, rgba(7, 16, 31, 0.9) 0%, rgba(12, 27, 47, 0.76) 22%, rgba(17, 34, 57, 0.44) 42%, rgba(22, 34, 51, 0.16) 64%, rgba(22, 34, 51, 0.04) 100%),
    radial-gradient(circle at 75% 18%, rgba(255, 245, 228, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(8, 22, 41, 0.18)),
    url("./hero-nicolas-nebrija.webp");
  background-size: cover;
  background-position: center center;
  transform: scale(1.12);
  filter: saturate(0.96) contrast(1.04) brightness(0.98);
  animation: heroBackgroundBase 28s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

.hero-banner::before,
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./hero-nicolas-nebrija.webp");
  background-size: cover;
  background-position: center center;
  will-change: transform, opacity;
}

.hero-banner::before {
  opacity: 0.14;
  mix-blend-mode: screen;
  transform: scale(1.1);
  filter: blur(1px) saturate(1.02) brightness(1.08);
  animation: heroBackgroundNear 16s ease-in-out infinite alternate;
}

.hero-banner::after {
  opacity: 0.26;
  transform: scale(1.18);
  filter: blur(12px) saturate(0.94) brightness(0.9);
  animation: heroBackgroundFar 34s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 233, 200, 0.24), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%, rgba(5, 20, 40, 0.28) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(7, 24, 54, 0), rgba(7, 24, 54, 0.34));
}

.hero-depth {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.hero-depth::before {
  content: "";
  position: absolute;
  inset: 6% 4% auto auto;
  width: 40vw;
  max-width: 620px;
  height: 40vw;
  max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,202,0.26), rgba(255,255,255,0.05) 48%, transparent 72%);
  filter: blur(14px);
  animation: heroGlow 15s ease-in-out infinite;
}

.hero-depth::after {
  content: "";
  position: absolute;
  left: auto;
  right: -10%;
  top: 16%;
  width: 32vw;
  max-width: 420px;
  height: 30vw;
  max-height: 380px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(255,214,171,0.12) 42%, transparent 72%);
  filter: blur(18px);
  transform: none;
  animation: heroGlow 18s ease-in-out infinite reverse;
}

.hero-grid-layer {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-grid-layer-back {
  opacity: 0.08;
  animation: heroFloatSlow 18s ease-in-out infinite;
}

.hero-grid-layer-front {
  opacity: 0.14;
  animation: heroFloatFast 12s ease-in-out infinite;
}

.hero-square {
  position: absolute;
  display: block;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 28px 52px rgba(4, 20, 43, 0.14);
  backdrop-filter: blur(8px);
}

.hero-grid-layer-front .hero-square {
  border-color: rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
}

.hero-square-1 { top: 10%; left: 6%; width: 110px; height: 110px; transform: rotate(-12deg); }
.hero-square-2 { top: 18%; left: 22%; width: 74px; height: 74px; transform: rotate(8deg); }
.hero-square-3 { top: 11%; right: 18%; width: 136px; height: 136px; transform: rotate(14deg); }
.hero-square-4 { bottom: 17%; right: 8%; width: 92px; height: 92px; transform: rotate(-10deg); }
.hero-square-5 { top: 30%; right: 26%; width: 158px; height: 158px; transform: rotate(-14deg); }
.hero-square-6 { bottom: 22%; left: 14%; width: 128px; height: 128px; transform: rotate(12deg); }
.hero-square-7 { top: 50%; right: 12%; width: 84px; height: 84px; transform: rotate(16deg); }
.hero-square-8 { bottom: 10%; left: 30%; width: 66px; height: 66px; transform: rotate(-8deg); }

.hero-orb,
.hero-card {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-orb {
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.9;
}

.hero-orb-a {
  animation: heroGlow 12s ease-in-out infinite;
  width: 280px;
  height: 280px;
  top: 6%;
  left: -6%;
  background: radial-gradient(circle, rgba(255,255,255,0.24), rgba(126,203,255,0.1) 58%, transparent 72%);
}

.hero-orb-b {
  animation: heroGlow 15s ease-in-out infinite reverse;
  width: 360px;
  height: 360px;
  right: -10%;
  top: 14%;
  background: radial-gradient(circle, rgba(120,214,255,0.24), rgba(255,255,255,0.05) 58%, transparent 72%);
}


.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
}

.hero .eyebrow,
.hero h1,
.hero .hero-copy { color: #f2f8ff; }

.hero-copy-block {
  position: relative;
  z-index: 2;
  padding-top: 0.6rem;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; }

h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-top: 0.4rem; max-width: 18ch; }
.hero h1 { text-shadow: 0 10px 22px rgba(0, 0, 0, 0.33); }

.hero-copy { max-width: 58ch; margin: 1rem 0 1.35rem; }

.hero-card {
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.48);
  padding: 1.3rem;
  box-shadow: 0 32px 54px rgba(7, 24, 54, 0.24);
  backdrop-filter: blur(12px);
}

.hero-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.hero-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 700;
}

.hero-metrics {
  position: relative;
  z-index: 3;
  margin: 1.7rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 240px));
  justify-content: center;
  gap: 0.95rem;
}

.hero-metrics article {
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 0.95rem 0.8rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 16px 24px rgba(6, 25, 49, 0.24);
}

.hero-metrics strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.hero-metrics span {
  color: #e7f3ff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot-arraigo { background: var(--arraigo); }
.dot-renovacion { background: var(--renovacion); }
.dot-familiar { background: var(--familiar); }
.dot-nacionalidad { background: var(--nacionalidad); }
.dot-estancia { background: var(--estancia); }
.dot-trabajo { background: var(--trabajo); }
.dot-otros { background: var(--otros); }

.section {
  padding: 2.9rem 0;
  scroll-margin-top: 118px;
}
.section-alt {
  background: linear-gradient(180deg, rgba(233, 241, 247, 0.7), rgba(233, 241, 247, 1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { margin-bottom: 1.2rem; }
.section-head h2 { margin-top: 0.45rem; font-size: clamp(1.4rem, 2.35vw, 2.2rem); max-width: 35ch; }
.section-head p { color: var(--muted); max-width: 70ch; }

/* CTA discreto B2B (despachos partners) en home publica — tira sutil. */
.partners-cta-strip {
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(243, 247, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
}
.partners-cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.partners-cta-strip-text { flex: 1; min-width: 0; }
.partners-cta-strip-text .eyebrow {
  color: var(--primary, #005b9a);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.partners-cta-strip-text h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text, #233246);
  font-weight: 700;
  line-height: 1.3;
}
.partners-cta-strip-text p {
  margin: 0;
  color: var(--muted, #5c7491);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 70ch;
}
.partners-cta-strip .btn-ghost {
  flex-shrink: 0;
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--primary, #005b9a);
  color: var(--primary, #005b9a);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.partners-cta-strip .btn-ghost:hover {
  background: rgba(0, 91, 154, 0.08);
}
@media (max-width: 720px) {
  .partners-cta-strip-inner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .partners-cta-strip .btn-ghost { width: 100%; text-align: center; }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: start;
}

.about-main {
  display: grid;
  gap: 0.65rem;
}

.about-cards {
  display: grid;
  gap: 0.75rem;
}

.about-metrics {
  margin-top: 0.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.about-metrics article {
  background: linear-gradient(180deg, #f8fcff, #eff7fd);
  border: 1px solid #cddfed;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  box-shadow: 0 8px 16px rgba(27, 72, 109, 0.08);
}

.about-metrics strong {
  display: block;
  font-size: 1.1rem;
  color: #0f5f9b;
}

.about-metrics span {
  display: block;
  margin-top: 0.2rem;
  color: #4d6f89;
  font-size: 0.8rem;
  font-weight: 700;
}

.about-commitment {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.about-commitment h3 {
  margin-bottom: 0.55rem;
}

.about-commitment .simple-list {
  gap: 0.55rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.product-card {
  gap: 0.45rem;
}

.product-card h3 {
  margin-bottom: 0.25rem;
}

.product-card p {
  margin: 0;
  color: #4f697f;
}

.product-card .simple-list {
  margin-top: 0.2rem;
  margin-bottom: 0.15rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 1.15rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  color: #fff;
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { margin-bottom: 0.45rem; }
.service-card p { margin: 0; opacity: 0.92; }

.service-sheet-link {
  margin-top: auto;
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
}

.service-arraigo { background: linear-gradient(145deg, #1cbf83, #109c68); }
.service-renovacion { background: linear-gradient(145deg, #2b8ef3, #1868bd); }
.service-familiarUE { background: linear-gradient(145deg, #ffb223, #de8d00); }
.service-nacionalidad { background: linear-gradient(145deg, #ea5959, #c73f3f); }
.service-estancia { background: linear-gradient(145deg, #8b5cf6, #6d28d9); }
.service-trabajo { background: linear-gradient(145deg, #14b8a6, #0d9488); }
.service-otros { background: linear-gradient(145deg, #78716c, #57534e); }
.service-nosabe { background: linear-gradient(145deg, #0d4f8b, #0a3d6d); border: 2px dashed rgba(255,255,255,0.4); }
.assistant-services .service-nosabe { grid-column: 1 / -1; }

/* ── Marquee service gallery ── */
.marquee-wrap {
  overflow: hidden;
  position: relative;
  margin: 0 -1.5rem;
  padding: 1rem 0 1.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / 3)); }
}
.marquee-card {
  flex-shrink: 0;
  width: 290px;
  border-radius: 16px;
  padding: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  cursor: default;
}
.marquee-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.marquee-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1) inset;
  z-index: 2;
}
.marquee-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.marquee-card-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}
.marquee-card-body { flex: 1; }
.marquee-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.marquee-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.88;
}
.marquee-card .service-sheet-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
  backdrop-filter: blur(4px);
}
.marquee-card .service-sheet-link:hover {
  background: rgba(255,255,255,0.3);
  transform: translateX(3px);
}
@media (max-width: 700px) {
  .marquee-card { width: 240px; padding: 1.2rem; }
  .marquee-track { animation-duration: 25s; }
}

.sheet-page {
  background:
    radial-gradient(circle at 12% 0%, #ffffff 0%, #f4f9fd 36%, #ecf3f8 100%);
}

.sheet-hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 3.4rem;
  color: #fff;
  isolation: isolate;
}

.sheet-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 69, 117, 0.7), rgba(10, 42, 81, 0.6)),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.18), transparent 20%),
    url("./sheet-depth-original.svg");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroBackgroundBase 24s ease-in-out infinite alternate;
}

.sheet-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.23), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 38%, rgba(8, 24, 46, 0.26) 100%);
}

.sheet-hero .container::before,
.sheet-hero .container::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: -1;
  pointer-events: none;
}

.sheet-hero .container::before {
  top: -12%;
  right: -4%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(255,255,255,0.03) 56%, transparent 72%);
  filter: blur(10px);
  animation: heroGlow 14s ease-in-out infinite;
}

.sheet-hero .container::after {
  left: 48%;
  bottom: -24%;
  width: 420px;
  height: 180px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(126,216,255,0.08), transparent 74%);
  filter: blur(18px);
  transform: translateX(-50%) rotate(-6deg);
  animation: heroGlow 18s ease-in-out infinite reverse;
}

.sheet-hero .container {
  position: relative;
  z-index: 1;
}

.sheet-hero.sheet-arraigo::before {
  background:
    linear-gradient(125deg, rgba(18, 132, 91, 0.76), rgba(7, 54, 104, 0.62)),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.18), transparent 20%),
    url("./sheet-depth-original.svg");
  background-size: cover;
  background-position: center;
}

.sheet-hero.sheet-renovacion::before {
  background:
    linear-gradient(125deg, rgba(26, 108, 188, 0.78), rgba(6, 56, 108, 0.62)),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.18), transparent 20%),
    url("./sheet-depth-original.svg");
  background-size: cover;
  background-position: center;
}

.sheet-hero.sheet-familiar::before {
  background:
    linear-gradient(125deg, rgba(209, 133, 0, 0.78), rgba(96, 63, 10, 0.64)),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.16), transparent 20%),
    url("./sheet-depth-original.svg");
  background-size: cover;
  background-position: center;
}

.sheet-hero.sheet-nacionalidad::before {
  background:
    linear-gradient(125deg, rgba(187, 65, 65, 0.78), rgba(109, 34, 34, 0.64)),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.16), transparent 20%),
    url("./sheet-depth-original.svg");
  background-size: cover;
  background-position: center;
}

.sheet-head h1 {
  color: #fff;
  margin-top: 0.25rem;
  max-width: 15ch;
}

.sheet-head .eyebrow,
.sheet-head p {
  color: #eaf5ff;
}

.sheet-kpis {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  max-width: 760px;
}

.sheet-kpis article {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 0.72rem 0.78rem;
  backdrop-filter: blur(3px);
}

.sheet-kpis strong {
  display: block;
  font-size: 1.16rem;
  color: #fff;
}

.sheet-kpis span {
  font-size: 0.77rem;
  letter-spacing: 0.01em;
  color: #e6f2ff;
  font-weight: 700;
}

.sheet-main {
  padding-top: 1.5rem;
}

.sheet-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.info-card h2 {
  font-size: 1.2rem;
}

.info-card h3 {
  font-size: 1.02rem;
  margin-top: 0.8rem;
}

.info-card p {
  margin: 0.45rem 0 0;
  color: #4f697f;
}

.inline-badges {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inline-badge {
  border-radius: 999px;
  border: 1px solid #c8dced;
  background: #f3f9ff;
  color: #335d7d;
  font-size: 0.77rem;
  font-weight: 800;
  padding: 0.28rem 0.62rem;
}

.doc-block {
  display: grid;
  gap: 0.7rem;
}

.doc-group {
  border: 1px dashed #b8d2e6;
  border-radius: 12px;
  background: #f7fbff;
  padding: 0.85rem;
}

.doc-group h3 {
  margin-top: 0;
}

.doc-group .simple-list {
  margin-top: 0.42rem;
}

.sheet-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.sheet-timeline article {
  border: 1px solid #d5e4ef;
  border-radius: 11px;
  background: #f8fcff;
  padding: 0.62rem;
}

.sheet-timeline strong {
  display: block;
  font-size: 0.9rem;
}

.sheet-timeline span {
  color: #5d768f;
  font-size: 0.79rem;
  font-weight: 700;
}

.final-cta {
  margin-top: 1.1rem;
  background:
    linear-gradient(130deg, rgba(0, 83, 137, 0.92), rgba(20, 117, 180, 0.9)),
    url("./hero-mix.svg");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  color: #fff;
}

.final-cta h2 {
  color: #fff;
  margin-bottom: 0.35rem;
}

.final-cta p {
  margin: 0;
  color: #e4f2ff;
}

.final-cta-actions {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.final-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.wizard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.wizard-step {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #8aa1b8;
  background: #f3f8fc;
}

.wizard-step.is-active,
.wizard-step.is-done {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--primary), #247abf);
}

.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; }

.assistant-services,
.option-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.assistant-service,
.option-pill {
  border: 1px solid var(--border);
  background: #f9fcff;
  border-radius: 13px;
  padding: 0.85rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}

.assistant-service.is-selected,
.option-pill.is-selected {
  border-color: #88b9db;
  background: #e9f4fc;
}

.wizard-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.8rem;
}

.checklist {
  margin-top: 1rem;
  display: none;
  border: 1px dashed #9ec5df;
  background: #f5fbff;
  border-radius: 13px;
  padding: 1rem;
}

.checklist.is-visible { display: block; }
.checklist ul { margin: 0.6rem 0 0; color: var(--muted); padding-left: 1.1rem; }

.checklist-cta {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed #b7d2e6;
}

.checklist-cta p {
  margin: 0;
  color: #345f80;
  font-weight: 700;
}


@keyframes heroBackgroundBase {
  0% { transform: scale(1.11) translate3d(0, 0, 0); background-position: 58% 50%; }
  50% { transform: scale(1.15) translate3d(-14px, -10px, 0); background-position: 56% 48%; }
  100% { transform: scale(1.13) translate3d(10px, 8px, 0); background-position: 60% 52%; }
}

@keyframes heroBackgroundNear {
  0% { transform: scale(1.16) translate3d(-8px, -4px, 0); }
  50% { transform: scale(1.22) translate3d(20px, -16px, 0); }
  100% { transform: scale(1.18) translate3d(-14px, 12px, 0); }
}

@keyframes heroBackgroundFar {
  0% { transform: scale(1.24) translate3d(0, 0, 0); }
  50% { transform: scale(1.32) translate3d(-28px, 18px, 0); }
  100% { transform: scale(1.27) translate3d(18px, -20px, 0); }
}

@keyframes heroFloatSlow {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(14px, -10px, 0) rotate(1.2deg); }
  50% { transform: translate3d(-8px, 12px, 0) rotate(-0.8deg); }
  75% { transform: translate3d(10px, 6px, 0) rotate(0.6deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes heroFloatFast {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  20% { transform: translate3d(-18px, 10px, 0) rotate(-1.8deg); }
  45% { transform: translate3d(12px, -14px, 0) rotate(1.2deg); }
  70% { transform: translate3d(18px, 8px, 0) rotate(1.8deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes heroGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.82; }
  50% { transform: translate3d(14px, -12px, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.82; }
}

.hero-copy-block,
.hero-card,
.hero-metrics,
.step,
.service-card,
.panel,
.faq-item,
.testimonial-card {
  transition: transform 260ms ease, opacity 500ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.hero-card {
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 46px rgba(7, 24, 54, 0.24);
}

.hero-card:hover,
.service-card:hover,
.testimonial-card:hover,
.faq-item:hover {
  transform: translateY(-4px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-section {
  background: radial-gradient(circle at top left, rgba(219, 236, 248, 0.56), transparent 42%), #f7fbfe;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.1rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid #d4e3ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(27, 72, 109, 0.08);
  overflow: hidden;
}

.faq-item[open] {
  border-color: #9fc3de;
  box-shadow: 0 18px 34px rgba(18, 58, 91, 0.12);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 800;
  color: #1f425f;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #2c6c95;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.1rem 1rem;
}

.faq-answer p {
  margin: 0;
  color: #537089;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  right: 0.9rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(49, 111, 150, 0.12);
  font-weight: 800;
}

.testimonial-quote {
  position: relative;
  margin: 0;
  color: #355b79;
  font-weight: 700;
}

.testimonial-meta {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.95rem;
}

.testimonial-meta strong {
  color: #153b58;
}

.testimonial-meta span {
  color: #6a859b;
  font-size: 0.84rem;
  font-weight: 700;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.step span { color: var(--primary); font-weight: 800; font-size: 0.9rem; }
.step p { margin-bottom: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form,
.panel,
.upload-form { display: grid; gap: 0.8rem; }

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

label span { font-size: 0.92rem; font-weight: 700; }
select,
input,
textarea {
  width: 100%;
  border: 1px solid #c5d7e5;
  border-radius: 11px;
  padding: 0.62rem 0.72rem;
  font: inherit;
}

select:focus,
input:focus,
textarea:focus {
  outline: 2px solid #9ec6e3;
  border-color: #9ec6e3;
}

/* Feedback de validación accesible para formularios públicos (login, register, ...).
 * .form-alert:  bloque resumen al principio del form (role="alert" en el HTML).
 * .field-error: mensaje inline debajo de un campo, enlazado vía aria-describedby. */
.form-alert {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #fdecec;
  border: 1px solid #f3c6c6;
  color: #8a1c2b;
  font-size: 0.9rem;
}
.form-alert ul { margin: 0; padding-left: 1.1rem; }
.field-error {
  display: block;
  color: #8a1c2b;
  font-size: 0.82rem;
  margin: 0.25rem 0 0.15rem;
}
/* Indicador visual de campo obligatorio (el texto accesible va en el mismo
 * label, este asterisco lleva aria-hidden="true" en el HTML). */
.req {
  color: #c5283d;
  font-weight: 700;
  margin-left: 0.15em;
}
.form-required-note {
  font-size: 0.8rem;
  color: var(--muted, #536377);
  margin: 0 0 0.6rem;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #d57383;
}
input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  outline-color: #d57383;
  border-color: #d57383;
}

.private-main { padding-bottom: 2rem; }

.private-hero {
  position: relative;
  overflow: hidden;
  padding: 2.7rem 0 1.2rem;
  background:
    linear-gradient(120deg, rgba(0, 69, 117, 0.62), rgba(10, 42, 81, 0.45)),
    url("./hero-mix.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
  border-bottom: 1px solid #2f76ad;
}

.private-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 35%);
}

.private-hero .container {
  position: relative;
  z-index: 1;
}

.private-hero .eyebrow,
.private-hero p,
.private-hero h1 { color: #f3f9ff; }

.private-hero h1 {
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.login-panel { max-width: none; }
.login-forgot-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: #536377;
  text-decoration: none;
  margin-top: 0.15rem;
  transition: color 0.15s ease;
}
.login-forgot-link:hover,
.login-forgot-link:focus-visible { color: #005b9a; text-decoration: underline; }

.register-panel h3 {
  margin-bottom: 0.35rem;
}

.btn-block {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.private-message {
  margin-top: 0.9rem;
  display: none;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #b4d4be;
  background: #edf8f0;
  color: #245434;
}
.private-message.is-visible { display: block; }

.hidden { display: none; }

.client-portal {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.portal-header p { margin: 0.3rem 0 0; color: var(--muted); }


.welcome-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.request-wizard-shell {
  position: relative;
  display: grid;
  gap: 1rem;
}

.request-wizard-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.request-wizard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 26, 41, 0.56);
  backdrop-filter: blur(8px);
}

.request-wizard-modal .request-wizard-shell {
  width: min(1080px, 92vw);
  max-height: calc(100vh - 7rem);
  overflow: auto;
  margin: 4rem auto 0;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid #d5e4ef;
  box-shadow: 0 28px 56px rgba(18, 49, 73, 0.22);
}

.request-wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.request-wizard-head h4,
.request-wizard-head p {
  margin: 0;
}

.notification-head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-item.is-read {
  opacity: 0.72;
}

.btn-xs {
  padding: 0.34rem 0.55rem;
  font-size: 0.74rem;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 49, 0.45);
}

.confirm-modal-dialog {
  position: relative;
  width: min(92vw, 440px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #d5e4ef;
  box-shadow: 0 18px 40px rgba(24, 58, 85, 0.2);
  padding: 1.1rem;
}

.confirm-modal-dialog h3 {
  margin: 0 0 0.45rem;
}

.confirm-modal-dialog p {
  margin: 0;
  color: #5a7389;
}

.confirm-modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.welcome-line {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.2;
}

.welcome-line strong {
  color: #0f5f9b;
}

.welcome-quote {
  font-size: 0.95rem;
  color: #4f6f88;
  font-weight: 700;
}

.welcome-quote-author {
  font-size: 0.78rem;
  color: #6d859b;
  font-weight: 600;
}
.notifications { background: linear-gradient(180deg, #f9fcff, #f1f7fc); }

.notifications-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.notifications-top h3 {
  margin: 0;
}

.notifications-toggle {
  white-space: nowrap;
}

.notifications-list {
  display: grid;
  gap: 0.65rem;
}

.simple-list { margin: 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: 0.45rem; }

#notificationsList {
  list-style: none;
  padding-left: 0;
}

.notification-item-extra.is-collapsed {
  display: none;
}

.notification-item {
  border: 1px solid #d5e4ef;
  border-radius: 12px;
  background: #f8fcff;
  padding: 0.65rem 0.75rem;
}

.notification-item.is-important {
  border-color: #f1c46f;
  background: #fff8e8;
}

.notification-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #5f7d94;
  font-weight: 700;
}

.notification-item p {
  margin: 0.38rem 0 0;
  color: #3f627f;
  font-weight: 700;
}

.notification-badge {
  border-radius: 999px;
  padding: 0.16rem 0.46rem;
  background: #f4a300;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.notification-attachment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid #d5e4ef;
  border-radius: 999px;
  color: #234ba5;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.notification-attachment:hover {
  background: #eef6ff;
  border-color: #b8d4ec;
  transform: translateY(-1px);
}

.notification-attachment svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabs { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tab-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  padding: 0.54rem 0.92rem;
  cursor: pointer;
}
.tab-btn.is-active { background: #dff0fd; border-color: #a2c9e7; color: var(--text); }

.tab-panel { display: none; }
.tab-panel.is-active { display: grid; }

.tab-panel p {
  margin: 0.25rem 0 0.8rem;
  color: #5a7389;
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.personal-item {
  background: #f6fbff;
  border: 1px solid #d6e4ef;
  border-radius: 12px;
  padding: 0.75rem;
}

.personal-item span {
  display: block;
  color: #5d7690;
  font-size: 0.8rem;
  font-weight: 700;
}

.personal-item strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
}

.personal-item input {
  margin-top: 0.25rem;
  border-radius: 9px;
  padding: 0.52rem 0.6rem;
}

.personal-item-full {
  grid-column: 1 / -1;
}

.notification-preferences {
  position: relative;
  margin-top: 0.25rem;
}

.notification-preferences-summary {
  list-style: none;
  border: 1px solid #d6e4ef;
  border-radius: 9px;
  padding: 0.52rem 0.6rem;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.notification-preferences-summary::-webkit-details-marker {
  display: none;
}

.notification-preferences-summary::after {
  content: "";
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #5d7690;
  border-bottom: 2px solid #5d7690;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.notification-preferences[open] .notification-preferences-summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.notification-preferences[open] .notification-preferences-summary {
  border-color: #9fc6e3;
  box-shadow: 0 0 0 3px rgba(159, 198, 227, 0.14);
}

.notification-preferences-menu {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid #d6e4ef;
  border-radius: 12px;
  background: #fbfdff;
}

.notification-preferences-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.92rem;
}

.notification-preferences-option input {
  margin: 0;
}

.notification-preferences.is-disabled .notification-preferences-summary {
  background: #f3f7fa;
  color: #7d92a5;
  cursor: default;
}

.notification-preferences.is-disabled .notification-preferences-menu {
  display: none;
}

.personal-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
}


.contract-form-wrap {
  display: grid;
  gap: 0.8rem;
}

.contract-form-wrap h4,
.contract-form-wrap p {
  margin: 0;
}

.contract-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.contract-form-grid label {
  display: grid;
  gap: 0.35rem;
}

.contract-form-grid span {
  color: #5d7690;
  font-size: 0.82rem;
  font-weight: 700;
}

.contract-form-grid input,
.contract-form-grid select,
.contract-form-grid textarea {
  border: 1px solid #c8dbea;
  border-radius: 12px;
  background: #f9fcff;
  padding: 0.72rem 0.8rem;
}

.contract-form-full {
  grid-column: 1 / -1;
}

/* Aceptación de condiciones legales — checkbox + texto en línea.
   Anula las reglas heredadas de .contract-form-grid label/input/span que
   convertirían el wrapper en un grid de 2 columnas con el input
   estilizado como input de texto. */
.contract-terms-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-soft, #f6f9fc);
  border: 1px solid var(--border, #d5e4ef);
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.contract-terms-check input[type="checkbox"] {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  margin: 3px 0 0;
  padding: 0;
  border: 1px solid #5d7690;
  background: #fff;
  border-radius: 3px;
  appearance: auto;
  -webkit-appearance: auto;
}

.contract-terms-check span {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  flex: 1 1 auto;
  text-transform: none;
  letter-spacing: 0;
}

.contract-terms-check a {
  text-decoration: underline;
  color: var(--primary, #005b9a);
}

.contract-documents-block {
  display: grid;
  gap: 0.55rem;
}

.contract-documents-list {
  display: grid;
  gap: 0.75rem;
}

.contract-document-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid #d3e2ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.contract-document-item.is-optional {
  background: linear-gradient(180deg, #f9fcff, #f3f8fc);
}

.contract-document-copy {
  display: grid;
  gap: 0.18rem;
}

.contract-document-copy strong {
  color: #254660;
  font-size: 0.94rem;
}

.contract-upload-control {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
}

.contract-form-grid .contract-upload-button {
  min-width: 174px;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.contract-upload-filename {
  color: #617b93;
  font-size: 0.83rem;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contract-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.contract-form-actions {
  display: flex;
  justify-content: flex-start;
}

.checklist-contract-form {
  display: flex;
  justify-content: flex-start;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.document-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid #d4e2ee;
  border-radius: 12px;
  padding: 0.7rem;
  background: #f9fcff;
}

.document-main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
}

.document-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e9f4fd;
  border: 1px solid #c7dff1;
  display: inline-grid;
  place-items: center;
}

.document-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #2d688f;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.document-meta {
  color: #5a7389;
  font-size: 0.83rem;
  margin-top: 0.2rem;
}

.doc-download {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #b9d1e4;
  display: inline-grid;
  place-items: center;
  background: #ffffff;
}

.doc-download svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #2d688f;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.documents-upload {
  margin-top: 0.8rem;
}

.documents-upload h5 {
  margin: 0 0 0.65rem;
}

.procedure-grid {
  display: grid;
  gap: 0.75rem;
}

.procedures-split {
  display: grid;
  gap: 0.8rem;
}

.procedures-split .panel {
  margin: 0;
}

.procedure-item {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0.8rem;
  background: #f9fcff;
}

.procedure-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.procedure-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 0.96rem;
}

.procedure-meta {
  margin: 0 0 0.55rem;
  color: #58728a;
  font-size: 0.83rem;
  font-weight: 700;
}

.service-badge {
  flex: 0 0 auto;
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-weight: 800;
  font-size: 0.76rem;
}

.badge-arraigo { background: var(--arraigo); }
.badge-renovacion { background: var(--renovacion); }
.badge-familiarUE { background: var(--familiar); }
.badge-nacionalidad { background: var(--nacionalidad); }

.stage-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.stage-dot {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid #d7e4ef;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8aa0b5;
  background: #f4f8fb;
}

.stage-dot.is-done,
.stage-dot.is-current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #0f65a8, #2f90d8);
}

.site-footer {
  background: #e9f0f6;
  border-top: 1px solid var(--border);
}

.footer-wrap {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.legal-links a {
  font-size: 0.82rem;
  color: #476b88;
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1240px, calc(100vw - 24px));
  z-index: 40;
  border: 1px solid #bdd0dd;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 30px rgba(22, 54, 84, 0.2);
  padding: 0.8rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: #385d7b;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-links {
  margin: 0;
  font-size: 0.82rem;
  color: #557894;
}

.cookie-links a {
  color: #3e6989;
  text-decoration: underline;
  font-weight: 700;
}

.status-popup {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 55;
  min-width: 280px;
  max-width: 420px;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 16px 26px rgba(17, 41, 63, 0.25);
  font-weight: 700;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.status-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.status-popup.success {
  background: #e9f8ec;
  border-color: #b9dfc1;
  color: #23633a;
}

.status-popup.error {
  background: #fdeeee;
  border-color: #efbcbc;
  color: #8a2f2f;
}

.status-popup-quote {
  margin: 0;
  line-height: 1.35;
}

.status-popup-author {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.85;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #bdd0de;
  background: #fff;
  display: inline-grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.social-links a:hover { transform: translateY(-1px); }

.social-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #35688d;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1000px) {
  html,
  body {
    scroll-padding-top: 104px;
  }

  .faq-layout,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .topbar { grid-template-columns: auto auto; position: relative; }
  .menu-toggle { display: inline-grid; place-items: center; }

  /* En móvil ocultamos el selector de idioma del header-actions y mostramos
     el que va dentro del menú hamburguesa. */
  .lang-control.lang-control-desktop { display: none; }
  .lang-control.lang-control-mobile { display: inline-flex; width: 100%; }
  .lang-control.lang-control-mobile .lang-select { width: 100%; }

  /* Menú hamburguesa móvil: panel flotante absolute bajo el header.
     No participa del flujo de layout → no empuja ni desplaza el contenido
     cuando se abre. */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    margin-top: 0.4rem;
    flex-direction: column;
    gap: 0.55rem;
    z-index: 100;
    box-shadow: 0 18px 48px rgba(15, 42, 74, 0.18);
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: #eef6fc;
  }

  .main-nav .lang-control-mobile {
    width: 100%;
    margin-top: 0.4rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
  }

  .hero-grid,
  .sheet-grid,
  .about-grid,
  .cards-grid,
  .product-grid,
  .assistant-services,
  .option-group,
  .steps-grid,
  .contact-grid,
  .documents-grid,
  .personal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  html,
  body {
    scroll-padding-top: 88px;
  }

  .section,
  .hero {
    scroll-margin-top: 84px;
  }

  .hero-banner,
  .hero-banner::before,
  .hero-banner::after {
    background-position: 62% center;
  }

  .hero-banner {
    transform: scale(1.08);
  }

  .contract-form-grid {
    grid-template-columns: 1fr;
  }

  .contract-document-item {
    grid-template-columns: 1fr;
  }

  .contract-upload-control {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .contract-upload-button,
  .contract-upload-filename {
    max-width: none;
    width: 100%;
  }

  .welcome-head,
  .request-wizard-head,
  .notification-head,
  .notification-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-head-actions form,
  .notification-head-actions .btn-xs,
  .welcome-head .btn,
  .request-wizard-head .btn {
    width: 100%;
  }
  .notifications-top {
    align-items: stretch;
    flex-direction: column;
  }

  .notifications-toggle {
    width: 100%;
  }
  .topbar { min-height: 80px; }
  .brand-logo { width: 250px; }
  .header-actions { gap: 0.4rem; }
  .header-actions .lang-control { display: none; }
  .private-link span { display: none; }
  .private-link { padding: 0.5rem; }
  .private-link svg { width: 20px; height: 20px; }
  .header-actions .btn { font-size: 0.8rem; padding: 0.5rem 0.7rem; }

  .hero-grid,
  .sheet-grid,
  .about-grid,
  .cards-grid,
  .product-grid,
  .assistant-services,
  .option-group,
  .steps-grid,
  .contact-grid,
  .stage-track,
  .documents-grid,
  .personal-grid {
    grid-template-columns: 1fr;
  }

  .wizard-actions { flex-direction: column-reverse; }
  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .sheet-kpis,
  .sheet-timeline,
  .about-metrics {
    grid-template-columns: 1fr;
  }

  .procedure-head {
    gap: 0.45rem;
  }

  .procedure-title {
    font-size: 0.88rem;
  }

  .service-badge {
    padding: 0.22rem 0.48rem;
    font-size: 0.68rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 0;
  }
}

/* ─── Reduced motion (WCAG 2.3.3) ───
 * Respeta la preferencia del sistema para usuarios con sensibilidad
 * vestibular / neurodiversidad. Desactiva animaciones continuas del hero,
 * transiciones largas y scroll suave. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.procedure-history {
  margin-top: 0.85rem;
  border-top: 1px solid #d6e1ea;
  padding-top: 0.75rem;
}

.procedure-history > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 700;
  color: #3f627f;
  font-size: 0.86rem;
  padding: 0.25rem 0;
}

.procedure-history > summary::-webkit-details-marker { display: none; }

.procedure-history > summary::after {
  content: "▾";
  color: #5f7d94;
  font-size: 0.9rem;
  transition: transform 0.18s ease;
  margin-left: auto;
}

.procedure-history[open] > summary::after { transform: rotate(180deg); }

.procedure-history > summary small {
  color: #8194a8;
  font-weight: 600;
  font-size: 0.76rem;
  margin-left: auto;
  margin-right: 0.35rem;
}

.client-timeline {
  --gutter: 68px;
  --dot: 12px;
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  position: relative;
}

.client-timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: calc(var(--gutter) + 10px);
  width: 2px;
  background: #d6e1ea;
}

.client-timeline-entry {
  display: grid;
  grid-template-columns: var(--gutter) calc(var(--dot) + 8px) 1fr;
  align-items: start;
  padding: 0.45rem 0;
}

.client-timeline-entry + .client-timeline-entry { padding-top: 0.75rem; }

.client-timeline-date {
  padding-right: 0.5rem;
  text-align: right;
}

.client-timeline-date strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1f3046;
}

.client-timeline-date small {
  display: block;
  font-size: 0.68rem;
  color: #8194a8;
  font-weight: 600;
}

.client-timeline-dot {
  width: var(--dot);
  height: var(--dot);
  margin-top: 0.3rem;
  margin-left: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px #2a6dc2;
  z-index: 1;
}

.client-timeline-entry-created .client-timeline-dot { box-shadow: 0 0 0 3px #1f9e70; }
.client-timeline-entry-document .client-timeline-dot { box-shadow: 0 0 0 3px #d09a1b; }

.client-timeline-body {
  padding-left: 0.7rem;
  min-width: 0;
}

.client-timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
}

.client-timeline-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.48rem;
  background: #eef4fb;
  color: #2a4566;
  border: 1px solid #d5e4ef;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.client-timeline-chip.is-target {
  background: #e5efff;
  color: #174a88;
  border-color: #bcd4ef;
}

.client-timeline-entry-created .client-timeline-chip { background: #e5f6ed; color: #146f4f; border-color: #bddfcc; }
.client-timeline-entry-document .client-timeline-chip { background: #fff4dd; color: #6c4a0a; border-color: #f2d69b; }

.client-timeline-arrow {
  width: 12px;
  height: 12px;
  stroke: #5f7d94;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.client-timeline-comment {
  margin: 0.3rem 0 0;
  padding: 0.45rem 0.6rem;
  background: #fff8e8;
  border-left: 3px solid #f1c46f;
  border-radius: 0 8px 8px 0;
  color: #3f2f12;
  font-size: 0.82rem;
  line-height: 1.42;
  white-space: pre-line;
}

.client-timeline-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding: 0.28rem 0.55rem;
  background: #fff;
  border: 1px solid #d5e4ef;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #234ba5;
  text-decoration: none;
}

.client-timeline-attachment:hover { background: #eef6ff; border-color: #b8d4ec; }

.client-timeline-attachment svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================================
 * v122+ — overrides UX cliente. Append al final para ganar a las reglas
 * previas por orden de cascada y evitar que el cache del navegador sirva
 * versiones antiguas de site.css. Si necesitas reescribir, edita aquí abajo.
 * ============================================================================
 */

/* --- Stage track 5 estados, cabe en una línea --- */
.stage-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}
.stage-dot {
  min-height: 30px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.25rem 0.35rem;
  border-radius: 8px;
  border: 1px solid #d7e4ef;
  font-size: 0.66rem;
  font-weight: 700;
  color: #8aa0b5;
  background: #f4f8fb;
  line-height: 1.15;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-dot.is-done {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #1f78c1, #4ea8e3);
}
.stage-dot.is-current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #0a4a85, #1f78c1);
  box-shadow: 0 4px 10px -4px rgba(15, 101, 168, 0.45);
}

/* --- Procedure head: título a la izquierda + columna a la derecha (badge + botón pequeño).
       En móvil, todo apilado: título / badge / botón. --- */
.procedure-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.procedure-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  font-size: 0.96rem;
  line-height: 1.3;
}
.procedure-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}
.procedure-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.74rem;
  border-radius: 8px;
  white-space: nowrap;
}
.procedure-upload-btn svg { flex-shrink: 0; }

/* En móvil/pantallas estrechas: apilar y que el botón ocupe el ancho del card. */
@media (max-width: 600px) {
  .procedure-head { flex-direction: column; align-items: stretch; }
  .procedure-head-right { flex-direction: row; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
  .procedure-head-right .service-badge { order: 1; }
  .procedure-head-right .procedure-upload-btn { order: 2; flex: 1 1 auto; justify-content: center; }
  .stage-track { grid-template-columns: repeat(2, 1fr); }
  .stage-dot { font-size: 0.7rem; padding: 0.32rem 0.45rem; }
}

/* --- Notificaciones leídas: fondo blanco puro (no opacity 0.72 que daba gris) --- */
.notification-item.is-read,
.notification-item.is-read.is-important {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  opacity: 1 !important;
}
.notification-item.is-read p,
.notification-item.is-read small { color: #5c7491; }
.notification-item.is-read .notification-badge { background: #c4d2dc; }

/* Pestaña Notificaciones (archivo): TODAS en blanco, sin amarillo ni
   importante. El amarillo solo en el panel superior (no leídas). */
.notifications-archive .notification-item,
.notifications-archive .notification-item.is-important,
.notifications-archive .notification-item.is-read,
.notifications-archive .notification-item.is-read.is-important {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  opacity: 1 !important;
}
.notifications-archive .notification-item.is-important {
  border-left: 3px solid #f4a300 !important;
}
.notifications-archive .notification-item.is-read.is-important {
  border-left-color: #c4d2dc !important;
}

/* Pill / badge cuenta no leídas */
.notifications-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.4rem;
  margin-left: 0.4rem;
  border-radius: 999px;
  background: #f4a300;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}
.tabs { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tab-btn { display: inline-flex; align-items: center; gap: 0.4rem; }
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.36rem;
  border-radius: 999px;
  background: #f4a300;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

/* --- Datos personales: estilos para selects (antes solo input) --- */
.personal-item input,
.personal-item select {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid #d6e4ef;
  border-radius: 9px;
  padding: 0.52rem 0.6rem;
  background: #fff;
  font-size: 0.95rem;
  color: var(--text, #1f2a37);
  font-family: inherit;
  box-sizing: border-box;
}
.personal-item input:disabled,
.personal-item select:disabled,
.personal-item input[readonly] {
  background: #f3f7fa;
  color: #4a6178;
  cursor: not-allowed;
  -webkit-text-fill-color: #4a6178;
  opacity: 1;
}

/* Override del .personal-item span para los <span> internos de la
   opción de notificación (que estaban saliendo display:block 0.8rem 700
   y rompían el layout, mandando el texto a la derecha). */
.notification-preferences-option {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  color: var(--text, #1f2a37);
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
}
.notification-preferences-option input[type="checkbox"] {
  margin: 0 !important;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--brand, #0d4f8b);
  position: static;
}
.notification-preferences-option span {
  display: inline !important;
  margin-top: 0 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: var(--text, #1f2a37) !important;
  line-height: 1.3;
  text-align: left;
}
.notification-preferences.is-disabled .notification-preferences-menu { display: grid !important; }
.notification-preferences.is-disabled .notification-preferences-summary {
  background: #f3f7fa;
  color: #4a6178;
}

/* --- Modal subir doc: reusa contract-upload-control + acciones separadas --- */
.doc-upload-section {
  border-top: 1px solid #e5edf3;
  padding: 1rem 0 0.4rem;
  margin-top: 0.6rem;
}
.doc-upload-section:first-of-type { border-top: 0; padding-top: 0.4rem; }
.doc-upload-section h5 {
  margin: 0 0 0.5rem;
  color: var(--brand, #0d4f8b);
  font-size: 0.95rem;
}
.doc-upload-uploaded-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.6rem;
  display: grid;
  gap: 0.45rem;
}
.doc-upload-uploaded-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #1f2a37;
}
.doc-upload-uploaded-list li svg { flex-shrink: 0; margin-top: 2px; color: #10b981; }
.doc-upload-uploaded-list li small { display: block; color: #5c7491; font-weight: 500; margin-top: 2px; }
.doc-upload-docs-block .contract-upload-button { color: #fff !important; }
.doc-upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e5edf3;
}

/* Procedure-meta arrow (concatenación stage_label → client_label) */
.procedure-meta-arrow { margin: 0 0.2rem; color: var(--muted, #5c7491); }

/* Historial trámite: chip con doble línea (estado + texto fino) */
.client-timeline-chip-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  background: #eaf3fb;
  border: 1px solid #c8dded;
  border-radius: 10px;
  padding: 0.32rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f4d7a;
}
.client-timeline-chip-stack small {
  font-size: 0.7rem;
  font-weight: 500;
  color: #5d7690;
}
.client-timeline-chip-stack.is-target {
  background: #1f4d7a;
  border-color: #1f4d7a;
  color: #fff;
}
.client-timeline-chip-stack.is-target small { color: #c0d3e3; }

/* Banner de feedback de subida de documentos dentro de la modal del trámite */
.doc-upload-feedback {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.doc-upload-feedback.hidden { display: none; }
.doc-upload-feedback.is-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.doc-upload-feedback.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
