:root {
  /* Mantener alineados con frontend-react/src/styles.css y con
     public/assets/site.css para que el área pública (React), la privada
     (Blade) y los compilados de Vite usen exactamente los mismos colores. */
  --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;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  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;
}

.container { width: min(1140px, 92vw); margin: 0 auto; }

.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; }

/* Situation badges */
.situation-badge {
  display: inline-block;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.5em;
  white-space: nowrap;
}
.situation-irregular { background: rgba(254, 226, 226, 0.95); color: #991b1b; }
.situation-regular   { background: rgba(209, 250, 229, 0.95); color: #065f46; }
.situation-cualquier { background: rgba(219, 234, 254, 0.95); color: #1e40af; }
.situation-origen    { background: rgba(254, 243, 199, 0.95); color: #92400e; }

/* Badges on dark backgrounds (modal header, sheet hero) */
.service-modal-header .situation-badge,
.sheet-head .situation-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

/* Approval text highlight */
.approval-text {
  background: #f0f7fc;
  border-left: 4px solid #005b9a;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  color: #042c53;
}

.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);
}
.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: 38px;
  height: 38px;
  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-estancia { background: #8b5cf6; }
.dot-trabajo { background: #14b8a6; }
.dot-otros { background: #78716c; }

.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 para captacion B2B (despachos partners) en home publica.
   Tira fina tras "Sobre nosotros". Sin caja destacada — solo separadores
   sutiles para no competir con el flujo principal de captacion B2C. */
.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;
}

/* ──────────────────────────────────────────────────────────────
   Sección "Sobre nosotros" — rediseño biográfico (v37)
   Foto circular + título + párrafos + KPIs
   Se renderiza 2 veces con clases distintas para cambiar de
   posición según viewport:
   - .about-section--mobile  → visible solo ≤720px (tras tira móvil)
   - .about-section--desktop → visible solo >720px (tras #servicios)
   ──────────────────────────────────────────────────────────────*/
.about-section--mobile { display: none; }
.about-section--desktop { display: block; }

@media (max-width: 720px) {
  .about-section--mobile { display: block; }
  .about-section--desktop { display: none; }
}

.about-bio-wrap {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.about-bio {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  border: 1px solid #cddfed;
  border-radius: 20px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 16px 40px rgba(27, 72, 109, 0.08);
}

.about-bio-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e0eaf2;
}

.about-bio-photo {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(15, 95, 155, 0.22), 0 0 0 1px #cddfed;
  background: #eef6fc;
  position: relative;
}

.about-bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-bio-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f5f9b;
  background: linear-gradient(135deg, #eef6fc 0%, #dbeafe 100%);
  letter-spacing: 0.05em;
}

.about-bio-heading {
  flex: 1;
  min-width: 0;
}

.about-bio-heading .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f5f9b;
  font-weight: 700;
}

.about-bio-heading h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #1f2a37;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.about-bio-role {
  margin: 0;
  font-size: 0.92rem;
  color: #4d6f89;
  font-weight: 600;
}

.about-bio-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-bio-body p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.68;
  color: #1f2a37;
}

.about-bio-closing {
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #eef6fc 0%, #dbeafe 100%);
  border-left: 4px solid #0f5f9b;
  border-radius: 8px;
  font-weight: 600 !important;
  color: #0f3e66 !important;
  margin-top: 0.5rem !important;
}

.about-bio .about-metrics {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e0eaf2;
}

@media (max-width: 720px) {
  .about-bio {
    padding: 1.6rem 1.4rem;
    border-radius: 16px;
  }

  .about-bio-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .about-bio-photo {
    width: 120px;
    height: 120px;
  }

  .about-bio-heading h2 {
    font-size: 1.35rem;
  }

  .about-bio-body p {
    font-size: 0.92rem;
  }
}

.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-reagrupacion { background: linear-gradient(145deg, #f59e0b, #d97706); }
.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-familiar-espanol { background: linear-gradient(145deg, #ec4899, #be185d); }
.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-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  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;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
  backdrop-filter: blur(4px);
}

.marquee-card-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; }
}

/* ──────────────────────────────────────────────────────────────
   Service grid — lista vertical (pila de servicios)
   Cada tarjeta es una fila fina que ocupa el ancho completo.
   Desktop/tablet: layout horizontal [icono | texto | botón →]
   Móvil (≤520px):  apila verticalmente (icono+texto arriba, botón abajo)
   ──────────────────────────────────────────────────────────────*/
.service-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0 1.5rem;
}

.service-grid-card {
  border-radius: 14px;
  padding: 1rem 1.4rem;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  min-height: 72px;
}

.service-grid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0.15) 0%, transparent 55%);
  pointer-events: none;
}

.service-grid-card:hover {
  transform: translateX(3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.12) inset;
}

.service-grid-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.service-grid-card-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.service-grid-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.service-grid-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.service-grid-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.92;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.service-grid-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

.service-grid-card-link:hover {
  background: rgba(255,255,255,0.32);
  transform: translateX(2px);
}

.service-grid-card-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .service-grid-card {
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    gap: 0.9rem;
  }
  .service-grid-card-body {
    flex: 1 1 calc(100% - 60px);
  }
  .service-grid-card-link {
    margin-left: 0;
    margin-top: 0.3rem;
    width: 100%;
    justify-content: center;
  }
  .service-grid-card p {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

/* ──────────────────────────────────────────────────────────────
   Modal "Empezar ahora" del hero — lista de servicios
   Reutiliza .service-grid dentro de un overlay propio.
   ──────────────────────────────────────────────────────────────*/
.services-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 74, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9000;
  animation: servicesModalFadeIn 0.25s ease;
}

@keyframes servicesModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.services-modal-shell {
  background: #fff;
  border-radius: 20px;
  max-width: 760px;
  width: 100%;
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: servicesModalSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

@keyframes servicesModalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.services-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid #e0eaf2;
  flex-shrink: 0;
}

.services-modal-header .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f5f9b;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.services-modal-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #1f2a37;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.services-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #eef6fc;
  color: #0f5f9b;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.services-modal-close:hover {
  background: #dbeafe;
  transform: scale(1.05);
}

.services-modal-close:focus-visible {
  outline: 2px solid #0f5f9b;
  outline-offset: 2px;
}

.services-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem 2rem;
}

/* El .service-grid interno no necesita padding extra dentro del modal */
.services-modal-body .service-grid {
  padding: 0;
}

@media (max-width: 600px) {
  .services-modal {
    padding: 0.5rem;
  }
  .services-modal-shell {
    max-height: calc(100vh - 1rem);
    border-radius: 14px;
  }
  .services-modal-header {
    padding: 1.25rem 1.25rem 1rem;
  }
  .services-modal-body {
    padding: 0.75rem 1.25rem 1.5rem;
  }
}

/* Hero sin tarjeta lateral: el bloque ocupa 100% y se centra */
.hero-grid-single {
  grid-template-columns: 1fr !important;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-grid-single .hero-actions {
  justify-content: center;
}

/* ──────────────────────────────────────────────────────────────
   Página de Arraigo — modalidades
   ──────────────────────────────────────────────────────────────*/
.arraigo-hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #1cbf83 0%, #109c68 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.arraigo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1), transparent 40%);
  pointer-events: none;
}

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

.arraigo-hero .eyebrow {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
}

.arraigo-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 1rem;
  color: #fff;
}

.arraigo-hero-copy {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.arraigo-hero-kpis {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.arraigo-hero-kpis > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arraigo-hero-kpis strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.arraigo-hero-kpis span {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.arraigo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 960px) {
  .arraigo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .arraigo-grid { grid-template-columns: 1fr; }
}

.arraigo-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #e0eaf2;
  box-shadow: 0 4px 16px rgba(0, 91, 154, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.arraigo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1cbf83, #0a8a5a);
}

.arraigo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 91, 154, 0.12);
  border-color: #b7d8ec;
}

.arraigo-card-badge {
  display: inline-block;
  background: #eef6fc;
  color: #005b9a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.arraigo-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2a37;
  letter-spacing: -0.01em;
}

.arraigo-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4f697f;
  flex: 1;
}

.arraigo-card-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.arraigo-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #f3f9ff;
  border-left: 3px solid #005b9a;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1f2a37;
}

/* Modal de modalidad — reutilizamos service-modal y añadimos específicos */
.situation-arraigo {
  background: #1cbf83 !important;
  color: #fff !important;
}

.arraigo-highlight {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 4px solid #d97706;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 1.25rem;
}

/* Colores específicos por modalidad (header del modal) */
.service-modal-header.arraigo-social { background: linear-gradient(135deg, #1cbf83 0%, #0a8a5a 100%); }
.service-modal-header.arraigo-sociolaboral { background: linear-gradient(135deg, #2b8ef3 0%, #1868bd 100%); }
.service-modal-header.arraigo-socioformativo { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.service-modal-header.arraigo-familiar { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.service-modal-header.arraigo-segunda-oportunidad { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }

/* ──────────────────────────────────────────────────────────────
   Página de Renovaciones — tipos
   Paleta: azul (color del servicio renovación)
   ──────────────────────────────────────────────────────────────*/
.renov-hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #2b8ef3 0%, #1868bd 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.renov-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1), transparent 40%);
  pointer-events: none;
}

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

.renov-hero .eyebrow {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
}

.renov-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 1rem;
  color: #fff;
}

.renov-hero-copy {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.renov-hero-kpis {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.renov-hero-kpis > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.renov-hero-kpis strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.renov-hero-kpis span {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.renov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 960px) {
  .renov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .renov-grid { grid-template-columns: 1fr; }
}

.renov-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #e0eaf2;
  box-shadow: 0 4px 16px rgba(0, 91, 154, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.renov-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2b8ef3, #1868bd);
}

.renov-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 91, 154, 0.12);
  border-color: #b7d8ec;
}

.renov-card-badge {
  display: inline-block;
  background: #eef6fc;
  color: #005b9a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.renov-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2a37;
  letter-spacing: -0.01em;
}

.renov-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4f697f;
  flex: 1;
}

.renov-card-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.renov-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #f3f9ff;
  border-left: 3px solid #005b9a;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1f2a37;
}

/* Modal de renovación */
.situation-renovacion {
  background: #2b8ef3 !important;
  color: #fff !important;
}

.renov-highlight {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-left: 4px solid #1d4ed8;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 1.25rem;
}

.renov-timeline {
  background: #f3f9ff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border-left: 3px solid #2b8ef3;
  font-size: 0.9rem !important;
  color: #1f2a37 !important;
  margin-top: 0.5rem !important;
}

/* Colores específicos por tipo de renovación (header del modal) */
.service-modal-header.renov-residencia-trabajo { background: linear-gradient(135deg, #2b8ef3 0%, #1868bd 100%); }
.service-modal-header.renov-larga-duracion { background: linear-gradient(135deg, #0d9488 0%, #115e59 100%); }
.service-modal-header.renov-modificacion { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.service-modal-header.renov-prorroga-estudios { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.service-modal-header.renov-prorroga-arraigo { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.service-modal-header.renov-otros { background: linear-gradient(135deg, #64748b 0%, #334155 100%); }

/* ──────────────────────────────────────────────────────────────
   Tira móvil de servicios — acceso rápido bajo el news-banner
   Solo visible en móvil (≤720px). En desktop/tablet: display:none
   ──────────────────────────────────────────────────────────────*/
.mobile-service-strip {
  display: none;
}

@media (max-width: 720px) {
  /* Ocultar la sección de servicios completa en móvil: la tira superior
     ya da acceso rápido a todos los servicios, no duplicamos contenido. */
  #servicios {
    display: none;
  }

  .mobile-service-strip {
    display: block;
    background: #f4f9fd;
    border-bottom: 1px solid #e0eaf2;
    padding: 0.75rem 0;
  }

  .mobile-service-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .mobile-service-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: none;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 91, 154, 0.12);
    min-height: 34px;
  }

  .mobile-service-pill:active {
    transform: scale(0.96);
  }

  .mobile-service-pill:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 10px rgba(0, 91, 154, 0.18);
  }

  .mobile-service-pill:focus-visible {
    outline: 2px solid #005b9a;
    outline-offset: 2px;
  }

  /* Paleta por servicio — misma que la galería */
  .mobile-service-pill.service-arraigo { background: linear-gradient(135deg, #1cbf83, #109c68); }
  .mobile-service-pill.service-renovacion { background: linear-gradient(135deg, #2b8ef3, #1868bd); }
  .mobile-service-pill.service-familiarUE { background: linear-gradient(135deg, #ffb223, #de8d00); }
  .mobile-service-pill.service-reagrupacion { background: linear-gradient(135deg, #f59e0b, #d97706); }
  .mobile-service-pill.service-estancia { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
  .mobile-service-pill.service-trabajo { background: linear-gradient(135deg, #14b8a6, #0d9488); }
  .mobile-service-pill.service-familiar-espanol { background: linear-gradient(135deg, #ec4899, #be185d); }
}

/* Pantallas muy pequeñas: reducir padding para que quepan 2 filas cómodas */
@media (max-width: 420px) {
  .mobile-service-pill {
    font-size: 0.74rem;
    padding: 0.45rem 0.75rem;
  }
}

.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-hero.sheet-estancia::before {
  background:
    linear-gradient(125deg, rgba(109, 40, 217, 0.78), rgba(76, 29, 149, 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-trabajo::before {
  background:
    linear-gradient(125deg, rgba(13, 148, 136, 0.78), rgba(15, 118, 110, 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-otros::before {
  background:
    linear-gradient(125deg, rgba(87, 83, 78, 0.78), rgba(68, 64, 60, 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-reagrupacion::before {
  background:
    linear-gradient(125deg, rgba(217, 119, 6, 0.78), rgba(146, 64, 14, 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-familiar-espanol::before {
  background:
    linear-gradient(125deg, rgba(190, 24, 93, 0.78), rgba(131, 24, 67, 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;
}

.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-panel label,
.register-panel label { display: grid; gap: 4px; }
.login-panel input,
.login-panel select { width: 100%; box-sizing: border-box; }

.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;
}

/* Wizard collapsed summary (details/summary) */
.wizard-summary-details {
  border: 1px solid var(--border, #dce3ea);
  border-radius: 12px;
  background: var(--panel, #fff);
  overflow: hidden;
}

.wizard-summary-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading, #1a2a3a);
  list-style: none;
  user-select: none;
}

.wizard-summary-toggle::-webkit-details-marker { display: none; }

.wizard-summary-toggle::before {
  content: '▶';
  font-size: 0.7rem;
  color: var(--primary, #0d4f8b);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.wizard-summary-details[open] .wizard-summary-toggle::before {
  transform: rotate(90deg);
}

.wizard-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.wizard-summary-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--brand-soft, #e8f0f8);
  color: var(--primary, #0d4f8b);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.wizard-summary-content {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border, #dce3ea);
}

.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;
}

/* Notificación leída: fondo blanco puro, sin amarillo del importante. Sin
   opacity para que se lea bien (antes 0.85 daba apariencia grisácea). */
.notification-item.is-read,
.notification-item.is-read.is-important {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  opacity: 1;
}
.notification-item.is-read p,
.notification-item.is-read small {
  color: #5c7491;
}
.notification-item.is-read .notification-badge {
  background: #c4d2dc;
}

/* Pestaña «Notificaciones» (archivo): aquí NO usamos amarillo en ningún
   caso — el amarillo es solo del panel superior para llamar la atención
   sobre las no leídas. En el archivo todas las notificaciones se ven
   con fondo blanco neutro y un borde lateral si son importantes. */
.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;
}
.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;
}

.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;
}

.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 {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  padding: 0.54rem 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tab-btn.is-active { background: #dff0fd; border-color: #a2c9e7; color: var(--text); }

.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;
}

.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; }
.procedure-meta-arrow {
  margin: 0 0.2rem;
  color: var(--muted, #5c7491);
}

.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-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.6rem;
  display: grid;
  gap: 0.45rem;
}
.doc-upload-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: #f4f8fc;
  border: 1px solid #d6e1ea;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #1f2a37;
}
.doc-upload-item svg { flex-shrink: 0; margin-top: 2px; color: #5c7491; }
.doc-upload-item.is-done { background: #ecfdf5; border-color: #a7f3d0; }
.doc-upload-item.is-done svg { color: #10b981; }
.doc-upload-item small { display: block; color: #5c7491; font-weight: 500; margin-top: 2px; }
.doc-upload-list-required .doc-upload-item { background: #fff; }

.doc-upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.4rem;
}
.doc-upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.85rem;
  color: #3f627f;
  font-weight: 600;
}
.doc-upload-field > span { font-size: 0.85rem; }
.doc-upload-field select {
  padding: 0.55rem 0.7rem;
  border: 1px solid #d6e1ea;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: var(--text, #1f2a37);
  font-family: inherit;
}
.doc-upload-file-control {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  border: 1px solid #d6e1ea;
  border-radius: 10px;
  background: #f9fcff;
  position: relative;
  margin-top: 0.1rem;
}
.doc-upload-file-control .contract-upload-button {
  min-width: 150px;
  justify-content: center;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}
.doc-upload-file-control .contract-upload-filename {
  flex: 1;
  font-weight: 500;
  color: #5d7690;
  font-size: 0.86rem;
}
.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;
}
@media (max-width: 520px) {
  .doc-upload-file-control { flex-wrap: wrap; }
  .doc-upload-file-control .contract-upload-button { width: 100%; }
}

.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,
.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;
}

.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.6rem;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
}

.notification-preferences-option input[type="checkbox"] {
  margin: 0;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--brand, #0d4f8b);
}

/* Override del .personal-item span (block, 0.8rem, 700) que pisa el
   layout porque los <span> de las opciones son descendientes de la
   personal-item-full. Aquí los queremos inline, normal weight, color
   texto, y a continuación del checkbox. */
.notification-preferences-option span {
  display: inline;
  margin-top: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text, #1f2a37);
  line-height: 1.3;
}

.notification-preferences.is-disabled .notification-preferences-summary {
  background: #f3f7fa;
  color: #4a6178;
}

.notification-preferences.is-disabled .notification-preferences-option {
  color: #4a6178;
}

.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 — ver site.css para detalle. */
.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: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.procedure-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.96rem;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  /* Antes tenía nowrap → cuando el badge era largo ("Documentación revisada")
     pisaba el título. Ahora envuelve a varias líneas. */
}

.service-badge {
  white-space: nowrap;
  /* El badge SÍ debe quedar en una línea para que sea legible */
}

.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(5, 1fr);
  gap: 0.35rem;
}

.stage-dot {
  min-height: 32px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.3rem 0.5rem;
  border-radius: 9px;
  border: 1px solid #d7e4ef;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8aa0b5;
  background: #f4f8fb;
  line-height: 1.2;
  word-break: break-word;
}

.stage-dot.is-done {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #1f78c1, #4ea8e3);
}

/* El estado actual: se distingue del resto de completados con un
   degradado más intenso. */
.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);
}

.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;
}

/* Social fixed icons (mobile only) */
.social-fixed {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 16px;
  z-index: 50;
  flex-direction: column;
  gap: 10px;
}

.social-fixed a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  text-decoration: none;
}

.social-fixed a:hover { transform: scale(1.1); }
.social-fixed a.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-fixed a.social-fb { background: #1877F2; }
.social-fixed a.social-tk { background: #000000; }
.social-fixed svg { width: 22px; height: 22px; fill: #fff; }

/* Service Sheet Modal */
.service-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-start; justify-content: center; padding: 3rem 1rem; overflow: auto; }
.service-modal-backdrop { position: fixed; inset: 0; background: rgba(9, 26, 41, 0.56); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.service-modal-shell { position: relative; width: min(720px, 94vw); background: #fff; border-radius: 16px; box-shadow: 0 28px 56px rgba(18, 49, 73, 0.22); overflow: hidden; animation: modalIn 0.25s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.service-modal-header { background: linear-gradient(135deg, #005b9a 0%, #004274 100%); color: #fff; padding: 2rem 2.5rem; position: relative; border-radius: 14px 14px 0 0; }
.service-modal-header.sheet-arraigo { background: linear-gradient(135deg, #109c68, #07684a); }
.service-modal-header.sheet-renovacion { background: linear-gradient(135deg, #1868bd, #0d4f8b); }
.service-modal-header.sheet-familiar { background: linear-gradient(135deg, #de8d00, #a06800); }
.service-modal-header.sheet-reagrupacion { background: linear-gradient(135deg, #d97706, #92400e); }
.service-modal-header.sheet-estancia { background: linear-gradient(135deg, #6d28d9, #4c1d95); }
.service-modal-header.sheet-trabajo { background: linear-gradient(135deg, #0d9488, #0f766e); }
.service-modal-header.sheet-familiar-espanol { background: linear-gradient(135deg, #be185d, #831843); }
.service-modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.5rem; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.service-modal-close:hover { background: rgba(255,255,255,0.3); }
.service-modal-header h2 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 800; }
.service-modal-header > p { margin: 0; opacity: 0.85; font-size: 0.95rem; line-height: 1.5; }
.service-modal-kpis { display: flex; gap: 1.5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.service-modal-kpi { display: flex; flex-direction: column; }
.service-modal-kpi strong { font-size: 1rem; }
.service-modal-kpi span { font-size: 0.78rem; opacity: 0.75; }
.service-modal-body { padding: 2rem 2.5rem; }
.service-modal-body h3 { font-size: 1.15rem; color: #005b9a; margin: 0 0 0.8rem; }
.service-modal-body h4 { font-size: 0.95rem; color: #1f2a37; margin: 1.5rem 0 0.5rem; font-weight: 700; }
.service-modal-body ul { padding-left: 1.2rem; margin: 0; }
.service-modal-body li { font-size: 0.9rem; line-height: 1.7; color: #536377; }
.service-modal-body p { font-size: 0.93rem; line-height: 1.65; color: #536377; }
.service-modal-note {
  margin-top: 1.25rem !important;
  padding: 0.85rem 1rem;
  background: #eef6fc;
  border-left: 3px solid #005b9a;
  border-radius: 6px;
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
  color: #1f2a37 !important;
}
/* ── Pricing badge ── */
.service-modal-pricing {
  margin: 0 2.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f1fb 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pricing-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0d4f8b;
  letter-spacing: -0.5px;
}
.pricing-vat {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a7a9b;
  padding: 0.15rem 0.5rem;
  background: rgba(13,79,139,0.08);
  border-radius: 4px;
}
.pricing-note {
  margin-left: auto;
  font-size: 0.82rem;
  color: #5a7a9b;
  text-align: right;
}
.service-modal-cta { padding: 1.5rem 2.5rem; border-top: 1px solid #d6e1ea; display: flex; gap: 0.8rem; justify-content: flex-end; }

/* Novedades banner */
.news-banner { background: linear-gradient(135deg, #1a3a5c 0%, #0d2b45 100%); padding: 0.75rem 0; text-align: center; }
.news-banner-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.news-banner-badge { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-weight: 800; font-size: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; }
.news-banner-text { color: #fff; font-size: 0.92rem; font-weight: 600; }
.news-banner-btn { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 0.82rem; font-weight: 700; padding: 0.4rem 1rem; border-radius: 999px; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.news-banner-btn:hover { background: rgba(255,255,255,0.25); }
/* ── Regularización 2026 modal ── */
.reg-modal { overflow: hidden; }

.reg-header {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #fff;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  text-align: center;
  border-radius: 14px 14px 0 0;
}
.reg-header h2 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 800;
  margin: 0.6rem 0 0.5rem;
  line-height: 1.25;
}
.reg-header > p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.85;
}
.reg-header-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reg-body { padding: 1.5rem; }

.reg-card {
  background: #f8fafb;
  border: 1px solid #e8eef3;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.reg-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #047857;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

/* Requisitos grid */
.reg-req-grid { display: grid; gap: 0.7rem; }
.reg-req-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 12px;
}
.reg-req-icon {
  width: 36px;
  height: 36px;
  background: #ecfdf5;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.reg-req-icon svg { width: 18px; height: 18px; color: #059669; }
.reg-req-item > span { font-size: 0.88rem; color: #1f2a37; line-height: 1.45; }
.reg-req-item strong { color: #065f46; }

/* Doc list */
.reg-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.reg-doc-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #1f2a37;
  font-weight: 500;
}
.reg-doc-list svg { width: 18px; height: 18px; flex-shrink: 0; color: #059669; }

/* Callout */
.reg-callout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding: 0.7rem 1rem;
  background: #ecfdf5;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 600;
}
.reg-callout svg { width: 20px; height: 20px; flex-shrink: 0; color: #059669; }

/* Timeline card */
.reg-deadline {
  text-align: center;
  background: linear-gradient(90deg, #047857, #059669);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
}

.reg-steps { display: grid; gap: 0; }
.reg-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e8eef3;
}
.reg-step:last-child { border-bottom: none; }
.reg-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #047857;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.reg-step-content h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2a37;
}
.reg-step-content p {
  margin: 0;
  font-size: 0.85rem;
  color: #536377;
  line-height: 1.55;
}

.reg-highlight-box {
  margin-top: 1rem;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-left: 4px solid #059669;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: #065f46;
  line-height: 1.5;
}

/* CTA */
.reg-cta {
  padding: 1.5rem;
  border-top: 1px solid #d6e1ea;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}
.reg-cta .btn-lg {
  width: 100%;
  text-align: center;
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

@media (min-width: 520px) {
  .reg-req-grid { grid-template-columns: 1fr; }
  .reg-body { padding: 2rem; }
  .reg-cta { flex-direction: row; justify-content: flex-end; }
  .reg-cta .btn-lg { width: auto; }
}
/* Document upload block */
.doc-upload-block { background: #f0f7fc; border: 2px dashed #b8d4e8; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.doc-upload-block h4 { margin: 0 0 1rem; color: #005b9a; font-size: 0.95rem; }
.doc-upload-fields { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: flex-end; }
.doc-upload-fields label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: #536377; flex: 1; min-width: 160px; }
.doc-upload-fields select,
.doc-upload-fields .contract-upload-control { font-size: 0.88rem; padding: 0.5rem; border: 1px solid #d6e1ea; border-radius: 8px; background: #fff; }

/* Guide page — como trabajamos */
.guide-hero { background: linear-gradient(135deg, #005b9a 0%, #004274 100%); color: #fff; padding: 5rem 0 4rem; text-align: center; }
.guide-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: 0.5rem 0 1rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.guide-hero p { font-size: 1.05rem; opacity: 0.85; max-width: 560px; margin: 0 auto; line-height: 1.6; }

.guide-steps { padding: 4rem 0; }

.guide-step { max-width: 800px; margin: 0 auto 1rem; }
.guide-step-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.guide-step-number { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.guide-step-header h2 { margin: 0; font-size: 1.4rem; font-weight: 800; color: #1f2a37; }
.guide-step-subtitle { margin: 0.2rem 0 0; color: #536377; font-size: 0.92rem; }

.guide-step-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.guide-step-text p { font-size: 0.93rem; line-height: 1.7; color: #536377; margin: 0 0 1rem; }

.guide-step-highlights { background: #f8fbfe; border: 1px solid #e2ecf4; border-radius: 14px; padding: 1.5rem; }
.guide-step-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; }
.guide-step-icon-svg { width: 28px; height: 28px; }
.guide-step-highlights ul { list-style: none; padding: 0; margin: 0; }
.guide-step-highlights li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; line-height: 1.5; color: #1f2a37; margin-bottom: 0.6rem; font-weight: 600; }

.guide-step-connector { display: flex; justify-content: center; padding: 1rem 0; }

.guide-cta { background: #f0f7fc; padding: 4rem 0; }
.guide-cta h2 { font-size: 1.6rem; font-weight: 800; color: #1f2a37; margin: 0 0 0.8rem; }
.guide-cta p { font-size: 1rem; color: #536377; line-height: 1.6; margin: 0; }

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

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

  .private-link span { display: none; }
  .private-link { padding: 0.55rem; gap: 0; }
  .private-link svg { width: 20px; height: 20px; }

  .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 hero
     ni el resto de secciones 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);
    animation: mobileNavSlide 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .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);
  }

  @keyframes mobileNavSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* El .topbar en móvil pasa a position: relative para ser el contenedor
     referencia del .main-nav absolute. */
  .topbar { position: relative; }

  .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; }

  .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;
  }

  /* Stages en móvil: 2 columnas para que sigan siendo visuales sin
     ocupar tanto vertical como una columna pura. */
  .stage-track {
    grid-template-columns: repeat(2, 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;
  }

  /* Cabecera de la tarjeta de trámite: en móvil el título y el badge
     se apilan en lugar de competir por el ancho horizontal. */
  .procedure-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

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

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

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

  .hero-depth,
  .hero-grid-layer-back,
  .hero-grid-layer-front,
  .hero-orb { display: none !important; }

  .hero { padding: 3rem 0 2.5rem; }

  .social-fixed { display: flex; }

  .service-modal-header { padding: 1.5rem; }
  .service-modal-body { padding: 1.5rem; }
  .service-modal-pricing { margin: 0 1.5rem; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .pricing-note { margin-left: 0; text-align: left; }
  .service-modal-cta { padding: 1rem 1.5rem; flex-direction: column; }
  .service-modal-cta .btn { width: 100%; text-align: center; }

  .doc-upload-fields { flex-direction: column; }
  .doc-upload-fields label { min-width: auto; }

  .guide-hero { padding: 3rem 0 2.5rem; }
  .guide-hero h1 { font-size: 1.5rem; }
  .guide-step-content { grid-template-columns: 1fr; }
  .guide-cta { padding: 2.5rem 0; }
}

/* ──────────────────────────────────────────────────────────────
   Formulario de contacto — estados de éxito y error (v41)
   ──────────────────────────────────────────────────────────────*/
.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-error {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  color: #991b1b;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Modal de éxito tras envío del formulario de contacto */
.contact-success-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 74, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9000;
  animation: contactSuccessFadeIn 0.3s ease;
}

@keyframes contactSuccessFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contact-success-shell {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: contactSuccessSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes contactSuccessSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #047857;
}

.contact-success-icon svg {
  width: 36px;
  height: 36px;
}

.contact-success-shell h2 {
  font-size: 1.5rem;
  color: #1f2a37;
  margin: 0 0 0.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.contact-success-shell p {
  font-size: 1rem;
  color: #1f2a37;
  line-height: 1.6;
  margin: 0 0 0.8rem;
}

.contact-success-hint {
  font-size: 0.88rem !important;
  color: #536377 !important;
  line-height: 1.55 !important;
  margin: 0 0 1.75rem !important;
}

.contact-success-actions {
  display: flex;
  justify-content: center;
}

.contact-success-actions .btn {
  min-width: 180px;
}

body:has(.contact-success-modal) {
  overflow: hidden;
}

/* Panel temporal mostrado en lugar del formulario durante los 3 minutos
   de cooldown tras enviar una consulta. Discreto, sin emular un éxito
   exagerado (la modal ya se encarga de eso). */
.contact-form-cooldown {
  background: #f4fbf6;
  border: 1px solid #bbe5c9;
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.contact-form-cooldown-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}
.contact-form-cooldown-icon svg { width: 24px; height: 24px; }
.contact-form-cooldown h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #166534;
}
.contact-form-cooldown p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1f2a37;
  max-width: 360px;
}
.contact-form-cooldown-hint {
  font-size: 0.78rem;
  color: #4d6f89;
  margin-top: 0.2rem;
}

/* Breadcrumbs SEO + UX — añadido 2026-04-21 */
.breadcrumbs {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem 0;
  font-size: 0.78rem;
  color: #5c7491;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.45rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem 0.45rem;
}

.breadcrumbs a {
  color: #2a4566;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: #005b9a;
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: #1f2a37;
  font-weight: 700;
}

.breadcrumbs-sep {
  color: #a7b4c1;
}

@media (min-width: 960px) {
  .breadcrumbs {
    padding: 0.9rem 2rem 0;
    font-size: 0.82rem;
  }
}

/* ─── Legal page (aviso legal / privacidad / cookies) ─────────────── */
.legal-updated {
  color: var(--muted);
  margin-top: 0.4rem;
}
.legal-panel {
  padding: 1.25rem 1.4rem;
  gap: 0.6rem;
}
.legal-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.legal-body h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.02rem;
  color: var(--accent, #0b4b8a);
}
.legal-body p { margin: 0.45rem 0; line-height: 1.55; }
.legal-body ul { margin: 0.3rem 0 0.6rem; padding-left: 1.3rem; }
.legal-body ul ul { margin-top: 0.3rem; }
.legal-body li { margin: 0.25rem 0; line-height: 1.5; }
.legal-body a { color: var(--accent, #0b4b8a); text-decoration: underline; }
.legal-body a:hover { text-decoration: none; }
.legal-body code {
  background: #eef3f8;
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.legal-body strong { font-weight: 700; }

/* ── Cluster editorial /guias ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
  margin: 1.5rem 0 2rem;
}
.guide-card {
  border: 1px solid rgba(0, 91, 154, 0.12);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.2rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 37, 68, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.guide-card:hover { box-shadow: 0 8px 24px rgba(15, 37, 68, 0.10); transform: translateY(-2px); }
.guide-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #65758c; }
.guide-card-meta time { font-variant-numeric: tabular-nums; }
.guide-topic-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eaf2ff;
  color: #1f4b86;
}
.guide-topic-badge.guide-topic-arraigo    { background: #e6f4ea; color: #166534; }
.guide-topic-badge.guide-topic-renovacion { background: #fff4d6; color: #92400e; }
.guide-topic-badge.guide-topic-familiar   { background: #f3e8ff; color: #6d28d9; }
.guide-topic-badge.guide-topic-trabajo    { background: #fee2e2; color: #991b1b; }
.guide-topic-badge.guide-topic-estudios   { background: #dbeafe; color: #1d4ed8; }
.guide-topic-badge.guide-topic-otros      { background: #f1f5f9; color: #334155; }
.guide-card h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; color: #16345f; }
.guide-card-title-link { color: inherit; text-decoration: none; }
.guide-card-title-link:hover { color: #2d64b3; }
.guide-card-description { color: #3d4c63; font-size: 0.95rem; line-height: 1.5; flex: 1; margin: 0; }
.guide-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.6rem; border-top: 1px solid rgba(0, 91, 154, 0.08); font-size: 0.85rem; }
.guide-reading-time { color: #65758c; }
.guide-card-cta { color: #1f4b86; text-decoration: none; font-weight: 600; }
.guide-card-cta:hover { color: #2d64b3; text-decoration: underline; }
.guide-meta { font-size: 0.85rem; opacity: 0.85; margin-top: 0.6rem; }
.guide-body { max-width: 760px; margin: 0 auto; }
.guide-body .guide-section { margin-bottom: 2rem; }
.guide-body .guide-section:last-child { margin-bottom: 0; }
.guide-body h2 { font-size: 1.3rem; color: #16345f; margin: 1.6rem 0 0.8rem; line-height: 1.3; }
.guide-body p { line-height: 1.65; color: #1f2a37; margin: 0 0 0.8rem; }
.guide-body ul.simple-list { padding-left: 1.4rem; margin: 0.4rem 0 1rem; }
.guide-body ul.simple-list li { margin: 0.3rem 0; line-height: 1.5; }
.guide-faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.guide-faq-item { border: 1px solid rgba(0, 91, 154, 0.14); border-radius: 10px; padding: 0.7rem 1rem; background: #fbfdff; }
.guide-faq-item summary { cursor: pointer; font-weight: 600; color: #16345f; }
.guide-faq-item[open] { background: #f5f9ff; }
.guide-faq-item p { margin: 0.6rem 0 0; color: #3d4c63; }
.guide-related-list { padding-left: 1.4rem; }
.guide-related-list li { margin: 0.3rem 0; }
.guide-related-list a { color: #1f4b86; font-weight: 500; }
.guide-disclaimer { background: #fff8e5; border-left: 4px solid #d97706; padding: 0.8rem 1rem; border-radius: 6px; font-size: 0.88rem; color: #5e3a00; margin-top: 1.5rem; }

.guide-author { background: #f7faff; border: 1px solid rgba(0, 91, 154, 0.12); border-radius: 12px; padding: 1.4rem 1.6rem; margin-top: 2rem; }
.guide-author h2 { margin-top: 0; font-size: 1.05rem; color: #16345f; }
.guide-author-name { margin: 0.4rem 0 0.2rem; color: #1f4b86; }
.guide-author-role { margin: 0 0 0.6rem; font-size: 0.88rem; }
.guide-author p:last-child { margin-bottom: 0; line-height: 1.6; }
.guide-author .muted { color: #65758c; }
