/* CRUC Balam — portada institucional v2 (aislada) */
.cruc-home-v2 {
  --cruc-petrol: #00564F;
  --cruc-magenta: #D20A55;
  --cruc-gold: #C6922F;
  --cruc-ivory: #FBF8F3;
  --cruc-text: #292D2F;
  --cruc-border: #E8E2D9;
  --cruc-white: #FFFFFF;
  --cruc-muted: #5A6266;
  overflow-x: hidden;
  max-width: 100%;
}

.cruc-home-v2 *,
.cruc-home-v2 *::before,
.cruc-home-v2 *::after {
  box-sizing: border-box;
}

/* —— Franja superior: pleca rosa institucional original —— */
.cruc-home-v2 .cruc-pleca-rosa.pleca,
.cruc-home-v2 .pleca.cruc-pleca-rosa {
  height: 40px;
  width: 100%;
  background-image: url("../img/svg/pleca_rosa.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-color: transparent;
  padding: 0;
}

/* Banner/carrusel original — proporción natural, sin deformar */
.cruc-home-v2 .cruc-banner-carousel {
  width: 100%;
  overflow: hidden;
  background: #FBF8F3;
}

.cruc-home-v2 .cruc-banner-carousel .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.cruc-home-v2 .cruc-header {
  background: var(--cruc-white);
  border-bottom: 1px solid var(--cruc-border);
  position: relative;
  z-index: 20;
}

.cruc-home-v2 .cruc-navbar {
  padding: 0.65rem 0;
}

/* Logos pegados al borde izquierdo de la página */
.cruc-home-v2 .cruc-nav-wrap {
  width: 100%;
  max-width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.75rem;
  margin: 0;
}

.cruc-home-v2 .cruc-brand {
  margin-right: 0.75rem;
  margin-left: 0;
  padding-left: 0;
}

.cruc-home-v2 .cruc-brand img {
  max-height: 52px;
  width: auto;
}

.cruc-home-v2 .cruc-brand .cruc-logo-sep {
  max-height: 40px;
  margin-top: 0.35rem;
}

.cruc-home-v2 .cruc-nav-link {
  color: var(--cruc-petrol) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cruc-home-v2 .cruc-nav-link i {
  color: var(--cruc-petrol);
  font-size: 0.95rem;
}

.cruc-home-v2 .cruc-nav-link:hover,
.cruc-home-v2 .cruc-nav-link:focus {
  background: rgba(0, 86, 79, 0.07);
  color: var(--cruc-petrol) !important;
}

.cruc-home-v2 .cruc-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--cruc-petrol);
  border-radius: 8px;
  color: var(--cruc-petrol) !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  background: transparent;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cruc-home-v2 .cruc-btn-login i {
  color: var(--cruc-petrol);
}

.cruc-home-v2 .cruc-btn-login:hover,
.cruc-home-v2 .cruc-btn-login:focus {
  background: var(--cruc-petrol);
  color: var(--cruc-white) !important;
}

.cruc-home-v2 .cruc-btn-login:hover i,
.cruc-home-v2 .cruc-btn-login:focus i {
  color: var(--cruc-white);
}

.cruc-home-v2 .cruc-toggler {
  border: 1.5px solid var(--cruc-petrol);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  color: var(--cruc-petrol);
}

.cruc-home-v2 .cruc-toggler:focus {
  outline: 2px solid var(--cruc-magenta);
  outline-offset: 2px;
}

/* —— Hero —— */
.cruc-home-v2 .cruc-hero {
  position: relative;
  background-color: var(--cruc-ivory);
  overflow: hidden;
  border-bottom: 1px solid var(--cruc-border);
}

.cruc-home-v2 .cruc-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(18%, 220px);
  background-image: url("../img/cruc-home-pattern-left.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.cruc-home-v2 .cruc-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 2.5rem 0 2.25rem;
}

.cruc-home-v2 .cruc-hero-copy {
  max-width: 34rem;
}

.cruc-home-v2 .cruc-hero-title {
  margin: 0 0 0.35rem;
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: 0.02em;
  color: var(--cruc-petrol);
  line-height: 1.1;
  text-transform: uppercase;
}

.cruc-home-v2 .cruc-hero-subtitle {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--cruc-petrol);
  line-height: 1.35;
}

.cruc-home-v2 .cruc-hero-rule {
  display: block;
  width: 72px;
  height: 3px;
  background: var(--cruc-gold);
  border: 0;
  margin: 0 0 0.9rem;
}

.cruc-home-v2 .cruc-hero-lead {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  color: var(--cruc-petrol);
  line-height: 1.45;
  max-width: 28rem;
}

.cruc-home-v2 .cruc-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.55rem;
  background: var(--cruc-magenta);
  color: var(--cruc-white) !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 4px 14px rgba(210, 10, 85, 0.22);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cruc-home-v2 .cruc-btn-cta:hover,
.cruc-home-v2 .cruc-btn-cta:focus {
  background: #b50848;
  color: var(--cruc-white) !important;
  transform: translateY(-1px);
}

.cruc-home-v2 .cruc-convocatoria {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.1rem;
  background: var(--cruc-petrol);
  color: var(--cruc-white);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: 100%;
}

.cruc-home-v2 .cruc-convocatoria i {
  color: var(--cruc-gold);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.cruc-home-v2 .cruc-hero-art {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.cruc-home-v2 .cruc-hero-art img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* —— Servicios —— */
.cruc-home-v2-services {
  --cruc-petrol: #00564F;
  --cruc-magenta: #D20A55;
  --cruc-gold: #C6922F;
  --cruc-ivory: #FBF8F3;
  --cruc-text: #292D2F;
  --cruc-border: #E8E2D9;
  --cruc-white: #FFFFFF;
  --cruc-muted: #5A6266;
  background: var(--cruc-ivory);
  padding: 2.75rem 0 1.5rem;
  overflow-x: hidden;
}

.cruc-home-v2-services .cruc-services-title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  color: var(--cruc-text);
}

.cruc-home-v2-services .cruc-tabs {
  display: flex;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  padding: 4px;
  background: var(--cruc-white);
  border: 1px solid var(--cruc-border);
  border-radius: 12px;
  gap: 4px;
}

.cruc-home-v2-services .cruc-tab-btn {
  flex: 1 1 0;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--cruc-petrol);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cruc-home-v2-services .cruc-tab-btn.is-active,
.cruc-home-v2-services .cruc-tab-btn[aria-selected="true"] {
  background: var(--cruc-petrol);
  color: var(--cruc-white);
}

.cruc-home-v2-services .cruc-tab-panel[hidden] {
  display: none !important;
}

.cruc-home-v2-services .cruc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cruc-home-v2-services .cruc-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  height: 100%;
  background: var(--cruc-white);
  border: 1px solid var(--cruc-border);
  border-radius: 14px;
  padding: 1.25rem 1.15rem;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 2px 10px rgba(41, 45, 47, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  min-height: 44px;
}

.cruc-home-v2-services .cruc-card:hover,
.cruc-home-v2-services .cruc-card:focus {
  border-color: rgba(0, 86, 79, 0.35);
  box-shadow: 0 6px 18px rgba(41, 45, 47, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.cruc-home-v2-services .cruc-card-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cruc-petrol);
  margin: 0;
}

.cruc-home-v2-services .cruc-card-icon > i {
  font-size: 2.75rem;
  line-height: 1;
  color: var(--cruc-petrol);
}

.cruc-home-v2-services .cruc-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cruc-home-v2-services .cruc-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cruc-text);
}

.cruc-home-v2-services .cruc-card-desc {
  margin: 0 0 0.65rem;
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--cruc-muted);
}

.cruc-home-v2-services .cruc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cruc-magenta);
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
}

.cruc-home-v2-services .cruc-card-link i {
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.cruc-home-v2-services .cruc-card:hover .cruc-card-link i {
  transform: translateX(3px);
}

/* —— Accesos rápidos (franja unificada) —— */
.cruc-home-v2-quick {
  --cruc-petrol: #00564F;
  --cruc-magenta: #D20A55;
  --cruc-border: #E8E2D9;
  --cruc-ivory: #FBF8F3;
  --cruc-white: #FFFFFF;
  --cruc-text: #292D2F;
  background: var(--cruc-ivory);
  /* Sin línea delgada superior (la separación visual la da el adorno) */
  border-top: none;
  border-bottom: none;
  padding: 1.15rem 0 0;
  overflow: visible;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.cruc-home-v2-quick .custom-container {
  padding-bottom: 1.15rem; /* misma distancia botones → línea que la de arriba */
}

.cruc-home-v2-quick .cruc-quick-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  background: var(--cruc-white);
  border: 1px solid var(--cruc-border);
  border-radius: 14px;
  overflow: hidden;
}

.cruc-home-v2-quick .cruc-quick-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.85rem 1.15rem;
  color: var(--cruc-petrol) !important;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.cruc-home-v2-quick .cruc-quick-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--cruc-border);
}

.cruc-home-v2-quick .cruc-quick-ico {
  color: var(--cruc-petrol);
  font-size: 1.55rem;
  width: 1.6em;
  text-align: center;
  flex-shrink: 0;
}

.cruc-home-v2-quick .cruc-quick-label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--cruc-petrol);
  font-weight: 700;
  line-height: 1.3;
}

.cruc-home-v2-quick .cruc-quick-chevron {
  color: var(--cruc-petrol);
  font-size: 0.85rem;
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cruc-home-v2-quick .cruc-quick-item:hover,
.cruc-home-v2-quick .cruc-quick-item:focus {
  background: rgba(0, 86, 79, 0.06);
  outline: none;
}

.cruc-home-v2-quick .cruc-quick-item:focus-visible {
  outline: 2px solid var(--cruc-magenta);
  outline-offset: -2px;
  z-index: 1;
}

.cruc-home-v2-quick .cruc-quick-item:hover .cruc-quick-chevron,
.cruc-home-v2-quick .cruc-quick-item:focus .cruc-quick-chevron {
  transform: translateX(3px);
  opacity: 1;
}

/* Separación de módulos: solo adorno (sin línea delgada extra) */
.cruc-home-v2-seam {
  position: relative;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
}

.cruc-home-v2-seam__line {
  display: none !important;
}

.cruc-home-v2-seam__ornament {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  display: block;
  width: min(48%, 460px);
  max-width: 460px;
  height: auto;
  transform: translate(-50%, -50%);
  background: transparent;
  box-shadow: none;
}

/* Ritmo vertical uniforme entre módulos */
body.cruc-home-page .cruc-systems-v2,
body.cruc-home-page .cruc-resources-v2,
body.cruc-home-page .cruc-formatos-v2 {
  position: relative;
  overflow: visible;
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.cruc-systems-v2 .cruc-systems-v2__inner,
.cruc-resources-v2 .cruc-resources-v2__inner,
.cruc-formatos-v2 .cruc-formatos-v2__inner {
  padding-bottom: 2.5rem;
}

.cruc-home-v2-seam--end {
  margin-top: 0;
}

/* —— Sección Sistemas V2 —— */
.cruc-systems-v2 {
  --cruc-petrol: #00564F;
  --cruc-magenta: #D20A55;
  --cruc-gold: #C6922F;
  --cruc-ivory: #FBF8F3;
  --cruc-text: #292D2F;
  --cruc-border: #E6DED3;
  --cruc-muted: #5A6266;
  --cruc-white: #FFFFFF;
  position: relative;
  background-color: var(--cruc-ivory);
  padding: 3.25rem 0;
  overflow: visible;
  isolation: isolate;
}

.cruc-systems-v2__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
}

.cruc-systems-v2__decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.cruc-systems-v2__decor--pattern {
  top: 0;
  left: 0;
  width: min(260px, 30vw);
  height: auto;
  max-height: 110px;
  overflow: hidden;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

.cruc-systems-v2__decor--pattern img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 260px;
  object-fit: contain;
  object-position: left top;
  /* sin filtros: el recurso ya es el patrón institucional */
}

.cruc-systems-v2__decor--buildings {
  right: 0;
  bottom: 0;
  width: min(420px, 38vw);
  height: min(320px, 36vw);
  background-image: url("../img/build.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  opacity: 0.18;
  filter: sepia(0.45) saturate(0.4) brightness(1.2);
}

.cruc-systems-v2__header {
  text-align: center;
  max-width: 1020px;
  margin: 0 auto 2.5rem;
  padding-top: 0.5rem;
}

.cruc-systems-v2__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--cruc-magenta);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cruc-systems-v2__title {
  margin: 0 0 1rem;
  color: var(--cruc-petrol);
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.05;
}

.cruc-systems-v2__lead {
  margin: 0 auto;
  max-width: 1000px;
  color: var(--cruc-muted);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.55;
  font-style: italic;
}

.cruc-systems-v2__lead strong {
  font-style: italic;
  font-weight: 700;
  color: var(--cruc-text);
}

.cruc-systems-v2__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.cruc-system-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cruc-white);
  border: 1px solid var(--cruc-border);
  border-radius: 12px;
  border-top: 5px solid var(--cruc-border);
  box-shadow: 0 4px 18px rgba(41, 45, 47, 0.06);
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cruc-system-card--current {
  border-top-color: var(--cruc-magenta);
}

.cruc-system-card--rtec {
  border-top-color: var(--cruc-petrol);
}

.cruc-system-card--siscop {
  border-top-color: var(--cruc-gold);
}

a.cruc-system-card:hover,
a.cruc-system-card:focus {
  border-color: rgba(0, 86, 79, 0.28);
  box-shadow: 0 8px 22px rgba(41, 45, 47, 0.09);
  transform: translateY(-2px);
  outline: none;
}

a.cruc-system-card:focus-visible {
  outline: 2px solid var(--cruc-magenta);
  outline-offset: 3px;
}

.cruc-system-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  height: 168px;
  padding: 1.15rem 1.1rem 0.85rem;
}

.cruc-system-card__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.cruc-system-card--cruc .cruc-system-card__logo img {
  width: 220px;
  max-width: 92%;
  max-height: 125px;
}

.cruc-system-card--rtec .cruc-system-card__logo img {
  width: 255px;
  max-width: 94%;
  max-height: 100px;
}

.cruc-system-card--siscop .cruc-system-card__logo img {
  width: 245px;
  max-width: 94%;
  max-height: 92px;
}

.cruc-system-card__rule {
  border: 0;
  border-top: 1px solid var(--cruc-border);
  margin: 0 1.25rem;
}

.cruc-system-card__description {
  margin: 0;
  padding: 1rem 1.35rem;
  flex: 1 1 auto;
  text-align: center;
  color: var(--cruc-text);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
}

.cruc-system-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  font-size: 0.98rem;
  margin-top: auto;
}

.cruc-system-card__action--current {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.85rem;
}

.cruc-system-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.7rem;
  background: var(--cruc-magenta);
  color: #fff;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cruc-system-card__status {
  color: var(--cruc-magenta);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cruc-system-card__action--rtec {
  color: var(--cruc-petrol);
}

.cruc-system-card__action--siscop {
  color: var(--cruc-gold);
}

a.cruc-system-card:hover .cruc-system-card__action--rtec,
a.cruc-system-card:focus .cruc-system-card__action--rtec,
a.cruc-system-card:hover .cruc-system-card__action--siscop,
a.cruc-system-card:focus .cruc-system-card__action--siscop {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cruc-system-card {
    transition: none;
  }
  a.cruc-system-card:hover,
  a.cruc-system-card:focus {
    transform: none;
  }
}

@media (max-width: 1199.98px) {
  .cruc-systems-v2__grid {
    gap: 1.35rem;
  }

  .cruc-system-card__logo {
    min-height: 150px;
    height: 156px;
  }

  .cruc-system-card--cruc .cruc-system-card__logo img {
    width: 200px;
    max-height: 115px;
  }

  .cruc-system-card--rtec .cruc-system-card__logo img,
  .cruc-system-card--siscop .cruc-system-card__logo img {
    width: 230px;
    max-height: 90px;
  }
}

@media (max-width: 991.98px) {
  .cruc-systems-v2__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cruc-system-card--current {
    grid-column: 1 / -1;
    max-width: 420px;
    width: 100%;
    justify-self: center;
  }

  .cruc-systems-v2__decor--buildings {
    opacity: 0.12;
    width: min(280px, 40vw);
  }
}

@media (max-width: 767.98px) {
  .cruc-systems-v2 {
    padding: 2.75rem 0;
  }

  .cruc-systems-v2__grid {
    grid-template-columns: 1fr;
  }

  .cruc-system-card--current {
    max-width: none;
  }

  .cruc-systems-v2__decor--pattern {
    width: 140px;
    max-height: 56px;
    opacity: 0.12;
  }

  .cruc-systems-v2__decor--buildings {
    display: none;
  }

  .cruc-system-card__action {
    min-height: 48px;
  }

  .cruc-system-card__logo {
    min-height: 148px;
    height: 152px;
  }

  .cruc-system-card--cruc .cruc-system-card__logo img {
    width: 200px;
    max-height: 118px;
  }

  .cruc-system-card--rtec .cruc-system-card__logo img,
  .cruc-system-card--siscop .cruc-system-card__logo img {
    width: 225px;
    max-height: 88px;
  }
}

/* Home: reducir padding del main para continuidad visual */
body.cruc-home-page main.py-4 {
  padding-top: 0 !important;
  padding-bottom: 1.5rem !important;
}

body.cruc-home-page {
  overflow-x: hidden;
}

/* —— Responsive —— */
@media (max-width: 991.98px) {
  .cruc-home-v2 .navbar-collapse {
    background: var(--cruc-white);
    border: 1px solid var(--cruc-border);
    border-radius: 12px;
    margin-top: 0.75rem;
    padding: 0.75rem;
  }

  .cruc-home-v2 .cruc-nav-link {
    width: 100%;
  }

  .cruc-home-v2 .cruc-btn-login {
    width: 100%;
    margin-top: 0.5rem;
  }

  .cruc-home-v2-services .cruc-cards {
    grid-template-columns: 1fr;
  }

  .cruc-home-v2-services .cruc-card-icon {
    width: 64px;
    height: 64px;
  }

  .cruc-home-v2-services .cruc-card-icon > i {
    font-size: 2.35rem;
  }
}

@media (max-width: 767.98px) {
  .cruc-home-v2 .cruc-brand img {
    max-height: 42px;
  }

  .cruc-home-v2 .cruc-pleca-rosa.pleca {
    height: 28px;
  }

  .cruc-home-v2-services .cruc-tabs {
    max-width: 100%;
  }

  .cruc-home-v2-services .cruc-cards {
    grid-template-columns: 1fr;
  }

  .cruc-home-v2-services .cruc-card {
    align-items: flex-start;
  }

  .cruc-home-v2-quick .cruc-quick-bar {
    grid-template-columns: 1fr;
  }

  .cruc-home-v2-quick .cruc-quick-item:not(:last-child)::after {
    right: 12%;
    left: 12%;
    top: auto;
    bottom: 0;
    width: auto;
    height: 1px;
  }
}

/* —— Manuales y Lineamientos V2 —— */
.cruc-resources-v2 {
  --cruc-petrol: #00564F;
  --cruc-petrol-dark: #004B45;
  --cruc-magenta: #D20A55;
  --cruc-gold: #C6922F;
  --cruc-ivory: #FBF8F3;
  --cruc-text: #292D2F;
  --cruc-border: #E6DED3;
  --cruc-muted: #5A6266;
  --cruc-white: #FFFFFF;
  position: relative;
  background-color: var(--cruc-ivory);
  padding: 3.25rem 0;
  overflow: visible;
  isolation: isolate;
}

.cruc-resources-v2__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
}

.cruc-resources-v2__decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.cruc-resources-v2__decor--pattern {
  top: 0;
  left: 0;
  width: min(260px, 30vw);
  max-height: 110px;
  overflow: hidden;
  opacity: 0.14;
}

.cruc-resources-v2__decor--pattern img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 260px;
  object-fit: contain;
  object-position: left top;
}

.cruc-resources-v2__decor--buildings {
  right: 0;
  bottom: 0;
  width: min(420px, 38vw);
  height: min(300px, 34vw);
  background-image: url("../img/build.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  opacity: 0.16;
  filter: sepia(0.4) saturate(0.35) brightness(1.15);
}

.cruc-resources-v2__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.cruc-resources-v2__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cruc-magenta);
  font-weight: 700;
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cruc-resources-v2__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: min(240px, 70%);
  margin: 0 auto 1rem;
}

.cruc-resources-v2__ornament-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--cruc-gold);
  opacity: 0.75;
}

.cruc-resources-v2__ornament-diamond {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--cruc-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  background: transparent;
}

.cruc-resources-v2__title {
  margin: 0 0 0.85rem;
  color: var(--cruc-petrol);
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
}

.cruc-resources-v2__lead {
  margin: 0 auto;
  max-width: 860px;
  color: var(--cruc-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.cruc-resources-v2__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
  align-items: stretch;
}

.cruc-resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cruc-white);
  border: 1px solid var(--cruc-border);
  border-radius: 12px;
  padding: 1.85rem 1.5rem 1.4rem;
  box-shadow: 0 4px 18px rgba(41, 45, 47, 0.06);
  text-align: center;
  overflow: hidden;
}

.cruc-resource-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.cruc-resource-card__accent::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  margin-top: -5px;
}

.cruc-resource-card--technical .cruc-resource-card__accent,
.cruc-resource-card--technical .cruc-resource-card__accent::after {
  background: var(--cruc-magenta);
}

.cruc-resource-card--accountants .cruc-resource-card__accent,
.cruc-resource-card--accountants .cruc-resource-card__accent::after {
  background: var(--cruc-petrol);
}

.cruc-resource-card--guidelines .cruc-resource-card__accent,
.cruc-resource-card--guidelines .cruc-resource-card__accent::after {
  background: var(--cruc-gold);
}

.cruc-resource-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  margin: 0.85rem 0 0.85rem;
  color: var(--cruc-petrol);
}

.cruc-resource-card__icon-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}

.cruc-resource-card__icon-stack > i:first-child {
  font-size: 5.2rem;
  line-height: 1;
  color: var(--cruc-petrol);
}

.cruc-resource-card__icon-badge {
  position: absolute;
  right: -2px;
  bottom: 4px;
  font-size: 2rem !important;
  color: var(--cruc-petrol);
  background: var(--cruc-white);
  border-radius: 50%;
  padding: 0.15rem;
  box-shadow: 0 0 0 3px var(--cruc-white);
}

.cruc-resource-card__type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 28px;
  padding: 0.25rem 0.85rem;
  margin: 0 auto 0.85rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}

.cruc-resource-card__type--manual {
  background: var(--cruc-magenta);
}

.cruc-resource-card__type--guideline {
  background: var(--cruc-gold);
}

.cruc-resource-card__title {
  margin: 0 0 0.55rem;
  color: var(--cruc-petrol);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.cruc-resource-card__description {
  margin: 0 0 1rem;
  color: var(--cruc-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.cruc-resource-card__rule {
  border: 0;
  border-top: 1px solid var(--cruc-border);
  margin: 0 0.35rem 1.1rem;
  width: auto;
}

.cruc-resource-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.cruc-resource-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cruc-resource-action--primary {
  background: var(--cruc-petrol-dark);
  color: #fff !important;
  border: 1.5px solid var(--cruc-petrol-dark);
  box-shadow: 0 2px 8px rgba(0, 75, 69, 0.18);
}

.cruc-resource-action--primary:hover,
.cruc-resource-action--primary:focus {
  background: #003832;
  border-color: #003832;
  color: #fff !important;
  outline: none;
}

.cruc-resource-action--secondary {
  background: var(--cruc-white);
  color: var(--cruc-petrol) !important;
  border: 1.5px solid var(--cruc-petrol);
}

.cruc-resource-action--secondary:hover,
.cruc-resource-action--secondary:focus {
  background: rgba(0, 86, 79, 0.06);
  color: var(--cruc-petrol) !important;
  outline: none;
}

.cruc-resource-action:focus-visible {
  outline: 2px solid var(--cruc-magenta);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cruc-resource-action {
    transition: none;
  }
}

@media (max-width: 1199.98px) {
  .cruc-resources-v2__grid {
    gap: 1.35rem;
  }

  .cruc-resource-card__icon-stack > i:first-child {
    font-size: 4.5rem;
  }
}

@media (max-width: 991.98px) {
  .cruc-resources-v2__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cruc-resource-card--guidelines {
    grid-column: 1 / -1;
    max-width: 420px;
    width: 100%;
    justify-self: center;
  }

  .cruc-resources-v2__decor--buildings {
    opacity: 0.1;
    width: min(260px, 36vw);
  }
}

@media (max-width: 767.98px) {
  .cruc-resources-v2 {
    padding: 2.75rem 0;
  }

  .cruc-resources-v2__grid {
    grid-template-columns: 1fr;
  }

  .cruc-resource-card--guidelines {
    max-width: none;
  }

  .cruc-resources-v2__decor--pattern {
    width: 140px;
    max-height: 56px;
    opacity: 0.12;
  }

  .cruc-resources-v2__decor--buildings {
    display: none;
  }

  .cruc-resource-card__icon {
    min-height: 140px;
  }

  .cruc-resource-card__icon-stack > i:first-child {
    font-size: 4rem;
  }

  .cruc-resource-action {
    width: 100%;
  }
}
/* =========================================================
   Formatos V2 — catálogo (.cruc-formatos-v2)
   ========================================================= */
.cruc-home-v2 .cruc-formatos-v2.fondodocumentos,
.cruc-home-v2 section.cruc-formatos-v2,
.cruc-formatos-v2.fondodocumentos,
.cruc-formatos-v2.fade-top,
.cruc-formatos-v2 {
  --fmt-petrol: #00564F;
  --fmt-petrol-dark: #004B45;
  --fmt-teal: #008f8c;
  --fmt-magenta: #D20A55;
  --fmt-gold: #C6922F;
  --fmt-ivory: #FBF8F3;
  --fmt-white: #ffffff;
  --fmt-panel: #F4F1EC;
  --fmt-text: #292D2F;
  --fmt-muted: #5A6266;
  --fmt-border: #E6DED3;
  --fmt-word: #2b579a;
  --fmt-excel: #217346;
  position: relative;
  background-color: var(--fmt-ivory) !important;
  background-image: none !important;
  padding: 3.25rem 0;
  overflow: visible;
  isolation: isolate;
}

.cruc-formatos-v2.fade-top::before,
.cruc-formatos-v2::before {
  content: none !important;
  display: none !important;
}

.cruc-formatos-v2__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
}

.cruc-formatos-v2__decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.cruc-formatos-v2__decor--pattern {
  top: 0;
  left: 0;
  width: min(260px, 30vw);
  max-height: 110px;
  overflow: hidden;
  opacity: 0.14;
}

.cruc-formatos-v2__decor--pattern img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 260px;
  object-fit: contain;
  object-position: left top;
}

.cruc-formatos-v2__decor--buildings {
  right: 0;
  bottom: 0;
  width: min(420px, 38vw);
  height: min(300px, 34vw);
  background-image: url("../img/build.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  opacity: 0.14;
  filter: sepia(0.4) saturate(0.35) brightness(1.15);
}

.cruc-formatos-v2__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.cruc-formatos-v2__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--fmt-magenta);
  font-weight: 700;
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cruc-formatos-v2__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: min(240px, 70%);
  margin: 0 auto 1rem;
}

.cruc-formatos-v2__ornament-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--fmt-gold);
  opacity: 0.75;
}

.cruc-formatos-v2__ornament-diamond {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--fmt-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  background: transparent;
}

.cruc-formatos-v2__title {
  margin: 0 0 0.85rem;
  color: var(--fmt-petrol);
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
}

.cruc-formatos-v2__lead {
  margin: 0 auto;
  max-width: 860px;
  color: var(--fmt-muted);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.55;
}

.cruc-formatos-v2__notice {
  display: inline;
  color: var(--fmt-magenta);
  font-weight: 700;
}

.cruc-formatos-v2 .cruc-format-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 920px;
  margin: 0 auto 1.35rem;
  min-height: 52px;
  padding: 0 1.2rem;
  border: 1.5px solid rgba(0, 86, 79, 0.28);
  border-radius: 999px;
  background: var(--fmt-white);
  color: var(--fmt-petrol);
  box-shadow: 0 2px 10px rgba(41, 45, 47, 0.04);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.cruc-formatos-v2 .cruc-format-search:focus-within {
  border-color: var(--fmt-petrol);
  box-shadow: 0 0 0 3px rgba(0, 86, 79, 0.12);
}

.cruc-formatos-v2 .cruc-format-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--fmt-text);
  height: 46px;
}

.cruc-formatos-v2 .cruc-format-search__input::placeholder {
  color: #8a96a1;
}

.cruc-formatos-v2 .cruc-format-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.15rem;
  background: var(--fmt-white);
  border: 1px solid var(--fmt-border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(41, 45, 47, 0.05);
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
}

.cruc-formatos-v2 .cruc-format-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.cruc-formatos-v2 .cruc-format-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fmt-ivory);
  border: 1px solid var(--fmt-border);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  min-height: 44px;
}

.cruc-formatos-v2 .cruc-format-stat__icon {
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cruc-formatos-v2 .cruc-format-stat__icon--docs { color: var(--fmt-petrol); }
.cruc-formatos-v2 .cruc-format-stat__icon--word { color: var(--fmt-word); }
.cruc-formatos-v2 .cruc-format-stat__icon--excel { color: var(--fmt-excel); }

.cruc-formatos-v2 .cruc-format-stat__text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--fmt-text);
  white-space: nowrap;
}

.cruc-formatos-v2 .cruc-format-stat__text strong {
  font-weight: 800;
}

.cruc-formatos-v2 .cruc-format-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.cruc-formatos-v2 .cruc-format-toolbar__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--fmt-muted);
}

.cruc-formatos-v2 .cruc-format-chip.btn-filter,
.cruc-formatos-v2 #format-filters .btn-filter,
.cruc-formatos-v2 .btn.btn-filter.cruc-format-chip {
  appearance: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 1.5px solid var(--fmt-border) !important;
  background: var(--fmt-white) !important;
  color: var(--fmt-text) !important;
  border-radius: 999px !important;
  min-height: 40px;
  padding: 0.4rem 0.9rem !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.cruc-formatos-v2 .cruc-format-chip.btn-docx,
.cruc-formatos-v2 #format-filters .btn-docx {
  color: var(--fmt-word) !important;
  border-color: rgba(43, 87, 154, 0.35) !important;
}

.cruc-formatos-v2 .cruc-format-chip.btn-xls,
.cruc-formatos-v2 #format-filters .btn-xls {
  color: var(--fmt-excel) !important;
  border-color: rgba(33, 115, 70, 0.35) !important;
}

.cruc-formatos-v2 .cruc-format-chip.btn-filter:hover,
.cruc-formatos-v2 #format-filters .btn-filter:hover {
  border-color: var(--fmt-petrol) !important;
  color: var(--fmt-petrol) !important;
  background: rgba(0, 86, 79, 0.06) !important;
}

.cruc-formatos-v2 .cruc-format-chip.btn-filter.active,
.cruc-formatos-v2 #format-filters .btn-filter.active {
  background: var(--fmt-petrol) !important;
  border-color: var(--fmt-petrol) !important;
  color: #fff !important;
}

.cruc-formatos-v2 .cruc-format-chip.btn-filter:focus-visible,
.cruc-formatos-v2 .cruc-format-view-toggle:focus-visible,
.cruc-formatos-v2 .cruc-format-action:focus-visible,
.cruc-formatos-v2 .cruc-format-search__input:focus-visible {
  outline: 2px solid var(--fmt-magenta);
  outline-offset: 2px;
}

.cruc-formatos-v2 .cruc-format-view-toggle {
  appearance: none;
  border: 1.5px solid var(--fmt-border);
  background: var(--fmt-white);
  color: var(--fmt-petrol);
  border-radius: 999px;
  min-height: 40px;
  padding: 0.4rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  margin-left: auto;
  transition: background 200ms ease, border-color 200ms ease;
}

.cruc-formatos-v2 .cruc-format-view-toggle:hover,
.cruc-formatos-v2 .cruc-format-view-toggle.is-active {
  border-color: var(--fmt-petrol);
  background: rgba(0, 86, 79, 0.06);
}

.cruc-formatos-v2 .cruc-formatos-v2__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.cruc-formatos-v2 .cruc-formatos-v2__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.25rem 1rem;
  color: var(--fmt-muted);
  background: var(--fmt-white);
  border: 1px dashed var(--fmt-border);
  border-radius: 12px;
}

.cruc-formatos-v2 .cruc-formatos-v2__empty--error {
  color: #b42318;
  border-color: #f3c0bc;
  background: #fff7f6;
}

.cruc-formatos-v2 .cruc-format-card {
  display: flex;
  flex-direction: column;
  background: var(--fmt-white);
  border: 1px solid var(--fmt-border);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(41, 45, 47, 0.06);
  padding: 1.25rem 1.2rem 1.15rem;
  min-height: 100%;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.cruc-formatos-v2 .cruc-format-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(41, 45, 47, 0.09);
}

.cruc-formatos-v2 .cruc-format-card__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.cruc-formatos-v2 .cruc-format-card__file {
  flex: 0 0 auto;
  min-width: 54px;
  height: 34px;
  padding: 0 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.cruc-formatos-v2 .cruc-format-card--word .cruc-format-card__file {
  background: var(--fmt-word);
}

.cruc-formatos-v2 .cruc-format-card--excel .cruc-format-card__file {
  background: var(--fmt-excel);
}

.cruc-formatos-v2 .cruc-format-card--other .cruc-format-card__file {
  background: #5f6b76;
}

.cruc-formatos-v2 .cruc-format-card__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8694;
}

.cruc-formatos-v2 .cruc-format-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fmt-petrol);
}

.cruc-formatos-v2 .cruc-format-card__desc {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--fmt-muted);
  flex: 1 1 auto;
}

.cruc-formatos-v2 .cruc-format-card__ext {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #8a96a1;
}

.cruc-formatos-v2 .cruc-format-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

/* Anula el estilo global 36x36 de .btn-download / .btn-preview SOLO en cards */
.cruc-formatos-v2 .cruc-format-card .btn-download,
.cruc-formatos-v2 .cruc-format-card .btn-preview,
.cruc-formatos-v2 .cruc-format-card a.cruc-format-action,
.cruc-formatos-v2 .cruc-format-card button.cruc-format-action,
.cruc-formatos-v2 .cruc-format-action {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--fmt-petrol) !important;
  background: transparent !important;
  color: var(--fmt-petrol) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.cruc-formatos-v2 .cruc-format-card .cruc-format-action i {
  font-size: 0.9rem !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

.cruc-formatos-v2 .cruc-format-card .cruc-format-action span {
  display: inline-block;
  line-height: 1.2;
}

.cruc-formatos-v2 .cruc-format-card .cruc-format-action:hover,
.cruc-formatos-v2 .cruc-format-card .cruc-format-action:focus {
  background: rgba(0, 86, 79, 0.07) !important;
  color: var(--fmt-petrol-dark) !important;
  border-color: var(--fmt-petrol-dark) !important;
  outline: none;
}

.cruc-formatos-v2 .cruc-formatos-v2__table-wrap {
  background: var(--fmt-white);
  border: 1px solid var(--fmt-border);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 4px 18px rgba(41, 45, 47, 0.06);
  overflow: hidden;
}

.cruc-formatos-v2 .cruc-formatos-v2__table-wrap[hidden],
.cruc-formatos-v2 .cruc-formatos-v2__cards[hidden] {
  display: none !important;
}

.cruc-formatos-v2 .cruc-formatos-v2__table-wrap .table-responsive {
  margin: 0;
  border: 0;
}

.cruc-formatos-v2 #formatosTable.cruc-formatos-table,
.cruc-formatos-v2 #formatosTable {
  width: 100%;
  margin: 0 !important;
  background: transparent;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  color: var(--fmt-text);
}

.cruc-formatos-v2 #formatosTable thead th,
.cruc-formatos-v2 #formatosTable.cruc-formatos-table thead th {
  background: #F4F1EC !important;
  color: var(--fmt-petrol) !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0 !important;
  border-bottom: 1px solid var(--fmt-border) !important;
  padding: 0.95rem 1.1rem !important;
  vertical-align: middle;
  white-space: nowrap;
}

.cruc-formatos-v2 #formatosTable tbody td,
.cruc-formatos-v2 #formatosTable.cruc-formatos-table tbody td {
  border: 0 !important;
  border-bottom: 1px solid #EEE8E0 !important;
  padding: 0.95rem 1.1rem !important;
  vertical-align: middle !important;
  background: #fff !important;
}

.cruc-formatos-v2 #formatosTable tbody tr:last-child td {
  border-bottom: 0 !important;
}

.cruc-formatos-v2 #formatosTable tbody tr:hover td {
  background: rgba(0, 86, 79, 0.035) !important;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__col-num,
.cruc-formatos-v2 #formatosTable .cruc-formatos-table__num {
  width: 4.5rem;
  text-align: center;
  color: var(--fmt-muted);
  font-weight: 700;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__col-name,
.cruc-formatos-v2 #formatosTable .cruc-formatos-table__name {
  width: auto;
  text-align: left;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__col-type,
.cruc-formatos-v2 #formatosTable .cruc-formatos-table__type {
  width: 7.5rem;
  text-align: center;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__col-actions,
.cruc-formatos-v2 #formatosTable .cruc-formatos-table__actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__name {
  display: table-cell;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__doc-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a96a1;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__doc-label:empty {
  display: none;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__doc-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fmt-petrol);
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__badge--word {
  background: var(--fmt-word);
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__badge--excel {
  background: var(--fmt-excel);
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__badge--other {
  background: #5f6b76;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__actions {
  display: table-cell;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__actions > * {
  vertical-align: middle;
}

.cruc-formatos-v2 #formatosTable .btn-download.cruc-formatos-table__btn,
.cruc-formatos-v2 #formatosTable .btn-preview.cruc-formatos-table__btn,
.cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 0 0 0.4rem !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--fmt-petrol) !important;
  background: transparent !important;
  color: var(--fmt-petrol) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn:first-child {
  margin-left: 0 !important;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn--download {
  background: var(--fmt-petrol) !important;
  border-color: var(--fmt-petrol) !important;
  color: #fff !important;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn--download:hover,
.cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn--download:focus {
  background: var(--fmt-petrol-dark) !important;
  border-color: var(--fmt-petrol-dark) !important;
  color: #fff !important;
  outline: none;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn--preview:hover,
.cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn--preview:focus {
  background: rgba(0, 86, 79, 0.07) !important;
  color: var(--fmt-petrol-dark) !important;
  outline: none;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn:focus-visible {
  outline: 2px solid var(--fmt-magenta);
  outline-offset: 2px;
}

.cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn i {
  font-size: 0.85rem !important;
  line-height: 1 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .cruc-formatos-v2 #formatosTable thead {
    display: none;
  }

  .cruc-formatos-v2 #formatosTable,
  .cruc-formatos-v2 #formatosTable tbody,
  .cruc-formatos-v2 #formatosTable tr,
  .cruc-formatos-v2 #formatosTable td {
    display: block;
    width: 100%;
  }

  .cruc-formatos-v2 #formatosTable tbody tr {
    padding: 1rem 1.05rem;
    border-bottom: 1px solid var(--fmt-border);
  }

  .cruc-formatos-v2 #formatosTable tbody td {
    border-bottom: 0 !important;
    padding: 0.25rem 0 !important;
    text-align: left !important;
  }

  .cruc-formatos-v2 #formatosTable .cruc-formatos-table__num {
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
  }

  .cruc-formatos-v2 #formatosTable .cruc-formatos-table__actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
    width: 100%;
  }

  .cruc-formatos-v2 #formatosTable .cruc-formatos-table__btn {
    margin: 0 !important;
    flex: 1 1 auto;
    min-height: 44px !important;
  }
}

.cruc-formatos-v2 .cruc-formatos-v2__footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1.75rem auto 0;
  max-width: 900px;
  padding-top: 1.15rem;
  border-top: 2px solid rgba(0, 86, 79, 0.25);
  color: var(--fmt-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cruc-formatos-v2 .cruc-formatos-v2__footnote i {
  color: var(--fmt-petrol);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cruc-formatos-v2 .cruc-format-card,
  .cruc-formatos-v2 .cruc-format-action {
    transition: none !important;
  }
  .cruc-formatos-v2 .cruc-format-card:hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .cruc-formatos-v2 .cruc-formatos-v2__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .cruc-formatos-v2 .cruc-format-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .cruc-formatos-v2 .cruc-format-view-toggle {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .cruc-formatos-v2__decor--buildings {
    opacity: 0.1;
    width: min(260px, 36vw);
  }
}

@media (max-width: 768px) {
  .cruc-formatos-v2 {
    padding: 2.75rem 0;
  }
  .cruc-formatos-v2 .cruc-formatos-v2__cards {
    grid-template-columns: 1fr;
  }
  .cruc-formatos-v2__decor--pattern {
    width: 140px;
    max-height: 56px;
    opacity: 0.12;
  }
  .cruc-formatos-v2__decor--buildings {
    display: none;
  }
  .cruc-formatos-v2 .cruc-format-stat__text {
    white-space: normal;
  }
  .cruc-formatos-v2 .cruc-format-card__actions {
    flex-direction: column;
  }
  .cruc-formatos-v2 .cruc-format-card .cruc-format-action {
    width: 100% !important;
    min-height: 44px !important;
  }
}

/* =========================================================
   Modal vista previa Formatos (.cruc-preview-modal)
   ========================================================= */
.cruc-preview-modal .cruc-preview-modal__dialog {
  max-width: min(1180px, 96vw);
  margin: 1.25rem auto;
}

.cruc-preview-modal .cruc-preview-modal__content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(41, 45, 47, 0.28);
  background: #fff;
}

.cruc-preview-modal .cruc-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1rem 1.35rem;
  background-color: #ffffff;
  background-image: none;
  border-bottom: 1px solid #E6DED3;
  min-height: 92px;
}

.cruc-preview-modal .cruc-preview-modal__brand {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.cruc-preview-modal .cruc-preview-modal__logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  max-width: min(320px, 38vw);
}

.cruc-preview-modal .cruc-preview-modal__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.cruc-preview-modal .cruc-preview-modal__divider {
  flex: 0 0 auto;
  width: 1px;
  height: 42px;
  background: #D7CFC4;
}

.cruc-preview-modal .cruc-preview-modal__titles {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding-right: 0.5rem;
}

.cruc-preview-modal .cruc-preview-modal__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D20A55;
}

.cruc-preview-modal .cruc-preview-modal__title {
  margin: 0;
  font-size: clamp(0.98rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #00564F;
  max-width: 36rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cruc-preview-modal .cruc-preview-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.cruc-preview-modal .cruc-preview-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cruc-preview-modal .cruc-preview-modal__btn--download {
  background: #00564F;
  border-color: #00564F;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 86, 79, 0.2);
}

.cruc-preview-modal .cruc-preview-modal__btn--download:hover,
.cruc-preview-modal .cruc-preview-modal__btn--download:focus {
  background: #004B45;
  border-color: #004B45;
  color: #fff !important;
  outline: none;
}

.cruc-preview-modal .cruc-preview-modal__btn--download.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.cruc-preview-modal .cruc-preview-modal__btn--close {
  background: #fff;
  border-color: #00564F;
  color: #00564F;
}

.cruc-preview-modal .cruc-preview-modal__btn--close:hover,
.cruc-preview-modal .cruc-preview-modal__btn--close:focus {
  background: rgba(0, 86, 79, 0.07);
  color: #004B45;
  outline: none;
}

.cruc-preview-modal .cruc-preview-modal__btn:focus-visible {
  outline: 2px solid #D20A55;
  outline-offset: 2px;
}

.cruc-preview-modal .cruc-preview-modal__body {
  position: relative;
  background: #eef2f4;
  min-height: min(78vh, 820px);
}

.cruc-preview-modal .cruc-preview-modal__iframe,
.cruc-preview-modal #previewIframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  border: 0;
  background: #fff;
  transition: opacity 0.25s ease;
}

.cruc-preview-modal .cruc-preview-modal__iframe.is-loading {
  opacity: 0.35;
}

.cruc-preview-modal .cruc-preview-modal__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(251, 248, 243, 0.88);
  color: #00564F;
  font-weight: 600;
  font-size: 0.98rem;
}

.cruc-preview-modal .cruc-preview-modal__loading[hidden] {
  display: none !important;
}

.cruc-preview-modal .cruc-preview-modal__spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(0, 86, 79, 0.18);
  border-top-color: #00564F;
  animation: cruc-preview-spin 0.8s linear infinite;
}

@keyframes cruc-preview-spin {
  to { transform: rotate(360deg); }
}

.cruc-preview-modal.fade .modal-dialog {
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cruc-preview-modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .cruc-preview-modal.fade .modal-dialog,
  .cruc-preview-modal .cruc-preview-modal__iframe,
  .cruc-preview-modal .cruc-preview-modal__btn,
  .cruc-preview-modal .cruc-preview-modal__spinner {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .cruc-preview-modal .cruc-preview-modal__dialog {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  .cruc-preview-modal .cruc-preview-modal__header {
    padding: 0.9rem 1rem;
    align-items: flex-start;
  }

  .cruc-preview-modal .cruc-preview-modal__brand {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    width: 100%;
  }

  .cruc-preview-modal .cruc-preview-modal__logo-wrap {
    max-width: 100%;
  }

  .cruc-preview-modal .cruc-preview-modal__logo {
    height: 42px;
    max-width: min(280px, 100%);
  }

  .cruc-preview-modal .cruc-preview-modal__divider {
    display: none;
  }

  .cruc-preview-modal .cruc-preview-modal__titles {
    width: 100%;
    padding-right: 0;
    padding-top: 0.15rem;
    border-top: 1px solid #E6DED3;
  }

  .cruc-preview-modal .cruc-preview-modal__title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .cruc-preview-modal .cruc-preview-modal__actions {
    width: 100%;
  }

  .cruc-preview-modal .cruc-preview-modal__btn {
    flex: 1 1 0;
    min-height: 44px;
  }

  .cruc-preview-modal .cruc-preview-modal__body,
  .cruc-preview-modal .cruc-preview-modal__iframe,
  .cruc-preview-modal #previewIframe {
    min-height: 70vh;
    height: 70vh;
  }
}
/* =========================================================
   Botón flotante de ayuda (.cruc-help-fab)
   ========================================================= */
.contact-chat-btn.cruc-help-fab,
.cruc-help-fab.contact-chat-btn {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: 58px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #00564F 0%, #007a72 55%, #008f8c 100%);
  color: #fff;
  font-size: inherit;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 10px 28px rgba(0, 86, 79, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition:
    max-width 0.28s ease,
    width 0.28s ease,
    padding 0.28s ease,
    gap 0.28s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.cruc-help-fab:hover,
.cruc-help-fab:focus,
.cruc-help-fab:focus-within,
.cruc-help-fab.is-expanded {
  width: auto;
  max-width: 280px;
  padding: 0 1.05rem 0 0.55rem;
  gap: 0.65rem;
  justify-content: flex-start;
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(0, 86, 79, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  outline: none;
  color: #fff;
}

/* Hover/focus bloqueado tras cerrar modal: permanece círculo */
.cruc-help-fab.is-locked:hover,
.cruc-help-fab.is-locked:focus,
.cruc-help-fab.is-locked:focus-within {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  padding: 0 !important;
  gap: 0 !important;
  justify-content: center !important;
  transform: none !important;
}

.cruc-help-fab.is-locked:hover .cruc-help-fab__copy,
.cruc-help-fab.is-locked:focus .cruc-help-fab__copy,
.cruc-help-fab.is-locked:focus-within .cruc-help-fab__copy {
  max-width: 0 !important;
  opacity: 0 !important;
}

.cruc-help-fab.is-locked:hover .cruc-help-fab__ring,
.cruc-help-fab.is-locked:focus .cruc-help-fab__ring {
  left: 50% !important;
  top: 50% !important;
  margin-left: -29px !important;
  margin-top: -29px !important;
  width: 58px !important;
  height: 58px !important;
}

/* Modal abierto: ocultar botón por completo */
.cruc-help-fab.is-modal-open,
.cruc-help-fab.is-modal-open:hover,
.cruc-help-fab.is-modal-open:focus,
.cruc-help-fab.is-modal-open:focus-within {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 58px !important;
  max-width: 58px !important;
  padding: 0 !important;
  transform: none !important;
}

.cruc-help-fab:focus-visible {
  outline: 2px solid #D20A55;
  outline-offset: 3px;
}

.cruc-help-fab__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin-left: -29px;
  margin-top: -29px;
  border-radius: 50%;
  border: 2px solid rgba(198, 146, 47, 0.55);
  pointer-events: none;
  animation: cruc-help-pulse 2.4s ease-out infinite;
}

.cruc-help-fab:hover .cruc-help-fab__ring,
.cruc-help-fab.is-expanded .cruc-help-fab__ring {
  left: 4px;
  top: 4px;
  margin: 0;
  width: 50px;
  height: 50px;
}

.cruc-help-fab__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 0 2px rgba(210, 10, 85, 0.35);
}

.cruc-help-fab__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  transition: max-width 0.28s ease, opacity 0.2s ease;
}

.cruc-help-fab:hover .cruc-help-fab__copy,
.cruc-help-fab:focus .cruc-help-fab__copy,
.cruc-help-fab:focus-within .cruc-help-fab__copy,
.cruc-help-fab.is-expanded .cruc-help-fab__copy {
  max-width: 12rem;
  opacity: 1;
}

.cruc-help-fab__eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F2D28A;
  line-height: 1;
}

.cruc-help-fab__text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

@keyframes cruc-help-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Modal ayuda institucional */
.modal.chat-modal.cruc-help-modal {
  background: transparent;
  z-index: 1060;
}

.cruc-help-modal .cruc-help-modal__dialog,
.chat-modal.cruc-help-modal .modal-dialog {
  position: fixed;
  right: 22px;
  bottom: 24px;
  margin: 0;
  width: min(380px, calc(100vw - 28px));
  max-width: 95%;
}

.cruc-help-modal .cruc-help-modal__content,
.chat-modal.cruc-help-modal .modal-content {
  border: 1px solid #E6DED3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(41, 45, 47, 0.22);
  background: #FBF8F3;
}

.cruc-help-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #00564F 0%, #007a72 100%);
  color: #fff;
}

.cruc-help-modal__eyebrow {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F2D28A;
}

.cruc-help-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.cruc-help-modal__close {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cruc-help-modal__close:hover,
.cruc-help-modal__close:focus {
  background: rgba(255,255,255,0.22);
  outline: none;
}

.cruc-help-modal__close:focus-visible {
  outline: 2px solid #D20A55;
  outline-offset: 2px;
}

.cruc-help-modal__body {
  padding: 1rem;
  background: #FBF8F3;
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

.cruc-help-card {
  background: #fff;
  border: 1px solid #E6DED3;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 14px rgba(41, 45, 47, 0.05);
}

.cruc-help-card:last-child {
  margin-bottom: 0;
}

.cruc-help-card--intro {
  border-left: 4px solid #D20A55;
}

.cruc-help-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 0.7rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: #D20A55;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cruc-help-card__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cruc-help-card__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 86, 79, 0.1);
  color: #00564F;
  font-size: 1.05rem;
}

.cruc-help-card__title {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #292D2F;
}

.cruc-help-card__subtitle,
.cruc-help-card__label,
.cruc-help-card__note {
  margin: 0;
  color: #5A6266;
  font-size: 0.86rem;
  line-height: 1.35;
}

.cruc-help-card__note {
  margin-top: 0.7rem;
  font-weight: 600;
  color: #00564F;
}

.cruc-help-card__phone,
.cruc-help-card__email {
  display: inline-block;
  margin-top: 0.15rem;
  color: #00564F !important;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none !important;
  word-break: break-word;
}

.cruc-help-card__email {
  font-size: 0.9rem;
}

.cruc-help-card__phone:hover,
.cruc-help-card__email:hover {
  color: #004B45 !important;
  text-decoration: underline !important;
}

.cruc-help-ext {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.cruc-help-ext li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 38px;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: #F4F1EC;
  color: #292D2F;
  font-size: 0.88rem;
}

.cruc-help-ext strong {
  color: #D20A55;
  font-weight: 800;
  white-space: nowrap;
}

/* Anula rojo del modal antiguo solo dentro del nuevo */
.cruc-help-modal .chat-header,
.cruc-help-modal .contact-icon,
.cruc-help-modal .chat-avatar,
.cruc-help-modal .badge-principal {
  background: #00564F !important;
}

@media (prefers-reduced-motion: reduce) {
  .cruc-help-fab,
  .cruc-help-fab__copy,
  .cruc-help-fab__ring {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 575.98px) {
  .contact-chat-btn.cruc-help-fab,
  .cruc-help-fab.contact-chat-btn {
    right: 14px;
    bottom: 88px;
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    height: 54px;
  }

  .cruc-help-fab:hover,
  .cruc-help-fab:focus,
  .cruc-help-fab:focus-within,
  .cruc-help-fab.is-expanded {
    max-width: calc(100vw - 28px);
  }

  .cruc-help-fab.is-locked:hover,
  .cruc-help-fab.is-locked:focus,
  .cruc-help-fab.is-locked:focus-within,
  .cruc-help-fab.is-modal-open,
  .cruc-help-fab.is-modal-open:hover,
  .cruc-help-fab.is-modal-open:focus,
  .cruc-help-fab.is-modal-open:focus-within {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
  }

  .cruc-help-fab__icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .cruc-help-modal .cruc-help-modal__dialog,
  .chat-modal.cruc-help-modal .modal-dialog {
    right: 14px;
    left: 14px;
    width: auto;
    bottom: 18px;
  }
}

/* =========================================================
   Detalle de trámite (.cruc-tramite-v2)
   ========================================================= */
.cruc-tramite-v2 {
  --tr-petrol: #00564F;
  --tr-petrol-dark: #004B45;
  --tr-magenta: #D20A55;
  --tr-gold: #C6922F;
  --tr-ivory: #FBF8F3;
  --tr-white: #ffffff;
  --tr-text: #292D2F;
  --tr-muted: #5A6266;
  --tr-border: #E6DED3;
  position: relative;
  background: var(--tr-ivory);
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}

.cruc-tramite-v2__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.cruc-tramite-v2__decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.cruc-tramite-v2__decor--pattern {
  top: 0;
  left: 0;
  width: min(240px, 28vw);
  max-height: 100px;
  overflow: hidden;
  opacity: 0.14;
}

.cruc-tramite-v2__decor--pattern img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 240px;
  object-fit: contain;
  object-position: left top;
}

.cruc-tramite-v2__decor--buildings {
  right: 0;
  bottom: 0;
  width: min(380px, 36vw);
  height: min(280px, 32vw);
  background-image: url("../img/build.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  opacity: 0.12;
  filter: sepia(0.4) saturate(0.35) brightness(1.15);
}

.cruc-tramite-v2__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.cruc-tramite-v2__back,
.cruc-tramite-v2__login {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cruc-tramite-v2__back {
  border: 1.5px solid var(--tr-border);
  background: var(--tr-white);
  color: var(--tr-petrol) !important;
}

.cruc-tramite-v2__back:hover,
.cruc-tramite-v2__back:focus {
  border-color: var(--tr-petrol);
  background: rgba(0, 86, 79, 0.06);
  outline: none;
}

.cruc-tramite-v2__login {
  border: 1.5px solid var(--tr-petrol);
  background: var(--tr-petrol);
  color: #fff !important;
}

.cruc-tramite-v2__login:hover,
.cruc-tramite-v2__login:focus {
  background: var(--tr-petrol-dark);
  border-color: var(--tr-petrol-dark);
  color: #fff !important;
  outline: none;
}

.cruc-tramite-v2__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.cruc-tramite-v2__eyebrow {
  margin: 0 0 0.7rem;
  color: var(--tr-magenta);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cruc-tramite-v2__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: min(240px, 70%);
  margin: 0 auto 1rem;
}

.cruc-tramite-v2__ornament-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--tr-gold);
  opacity: 0.75;
}

.cruc-tramite-v2__ornament-diamond {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--tr-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.cruc-tramite-v2__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.cruc-tramite-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.cruc-tramite-v2__badge--tipo {
  background: rgba(210, 10, 85, 0.1);
  color: var(--tr-magenta);
}

.cruc-tramite-v2__badge--sujeto {
  background: rgba(0, 86, 79, 0.1);
  color: var(--tr-petrol);
}

.cruc-tramite-v2__title {
  margin: 0;
  color: var(--tr-petrol);
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.2;
}

.cruc-tramite-v2__grid {
  display: grid;
  gap: 1.15rem;
}

.cruc-tramite-panel {
  background: var(--tr-white);
  border: 1px solid var(--tr-border);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(41, 45, 47, 0.05);
  overflow: hidden;
}

.cruc-tramite-panel__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--tr-border);
  background: #F8F5F0;
}

.cruc-tramite-panel__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 86, 79, 0.1);
  color: var(--tr-petrol);
  flex-shrink: 0;
}

.cruc-tramite-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tr-petrol);
}

.cruc-tramite-panel__body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.cruc-tramite-panel__text {
  margin: 0 0 0.75rem;
  color: var(--tr-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.cruc-tramite-panel__text:last-child {
  margin-bottom: 0;
}

.cruc-tramite-panel__text strong {
  color: var(--tr-text);
}

.cruc-tramite-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.cruc-tramite-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.cruc-tramite-steps__num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tr-petrol);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 0.1rem;
}

.cruc-tramite-steps__content {
  flex: 1 1 auto;
  color: var(--tr-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cruc-tramite-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.cruc-tramite-list li {
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 2.2rem;
  border-radius: 10px;
  background: #F8F5F0;
  color: var(--tr-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.cruc-tramite-list li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--tr-gold);
  transform: rotate(45deg);
}

.cruc-tramite-v2__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.cruc-tramite-cost {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cruc-tramite-cost li {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 86, 79, 0.07);
  border: 1px solid rgba(0, 86, 79, 0.14);
  color: var(--tr-petrol);
  font-size: 1.15rem;
  font-weight: 800;
}

.cruc-tramite-panel--privacy .cruc-tramite-panel__head {
  background: rgba(210, 10, 85, 0.06);
}

.cruc-tramite-panel--privacy .cruc-tramite-panel__icon {
  background: rgba(210, 10, 85, 0.12);
  color: var(--tr-magenta);
}

.cruc-tramite-v2__link,
.cruc-tramite-v2__privacy-link {
  color: var(--tr-petrol) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.cruc-tramite-v2__privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--tr-petrol);
  background: var(--tr-white);
}

.cruc-tramite-v2__privacy-link:hover,
.cruc-tramite-v2__link:hover {
  color: var(--tr-petrol-dark) !important;
  background: rgba(0, 86, 79, 0.06);
}

.cruc-tramite-v2__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 0.5rem;
}

.cruc-tramite-v2__cta-btn,
.cruc-tramite-v2__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cruc-tramite-v2__cta-btn {
  background: var(--tr-magenta);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(210, 10, 85, 0.22);
}

.cruc-tramite-v2__cta-btn:hover,
.cruc-tramite-v2__cta-btn:focus {
  background: #b50848;
  color: #fff !important;
  transform: translateY(-1px);
  outline: none;
}

.cruc-tramite-v2__cta-secondary {
  background: var(--tr-white);
  border: 1.5px solid var(--tr-petrol);
  color: var(--tr-petrol) !important;
}

.cruc-tramite-v2__cta-secondary:hover,
.cruc-tramite-v2__cta-secondary:focus {
  background: rgba(0, 86, 79, 0.06);
  outline: none;
}

.cruc-tramite-v2__back:focus-visible,
.cruc-tramite-v2__login:focus-visible,
.cruc-tramite-v2__cta-btn:focus-visible,
.cruc-tramite-v2__cta-secondary:focus-visible,
.cruc-tramite-v2__privacy-link:focus-visible {
  outline: 2px solid var(--tr-magenta);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .cruc-tramite-v2__split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .cruc-tramite-v2 {
    padding: 1.75rem 0 2.75rem;
  }

  .cruc-tramite-v2__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .cruc-tramite-v2__back,
  .cruc-tramite-v2__login,
  .cruc-tramite-v2__cta-btn,
  .cruc-tramite-v2__cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .cruc-tramite-v2__decor--buildings {
    display: none;
  }

  .cruc-tramite-steps__item {
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cruc-tramite-v2__cta-btn,
  .cruc-tramite-v2__back,
  .cruc-tramite-v2__login {
    transition: none !important;
  }
}
