/* =====================================================================
   Municipalidad de Constitución · Registro Social de Hogares
   Paleta y tipografía según Manual de uso de marca del RSH 2026
   (Roboto / Roboto Slab como tipografía web autorizada)
   ===================================================================== */

:root {
  /* Paleta oficial RSH */
  --rsh-dark:      #07272d;  /* Pantone 2217 C */
  --rsh-red:       #eb3c46;  /* Pantone 185 C  */
  --rsh-red-soft:  #e94860;  /* Pantone 2347 C */
  --rsh-blue:      #007096;  /* Pantone 7705 C */
  --rsh-blue-dark: #004677;  /* Pantone 2187 C */
  --rsh-blue-mid:  #0f69b4;  /* Pantone 239 C  */
  --rsh-sky:       #6bccd6;  /* Pantone 2198 C */
  --rsh-ice:       #d3def2;  /* Pantone 2707 C */
  --rsh-yellow:    #f3d03e;  /* Pantone 7404 C */
  --rsh-khaki:     #e4db89;  /* Pantone 616 C  */
  --rsh-pink:      #fad8e1;  /* Pantone 705 C  */
  --rsh-beige:     #f2e6d9;  /* Pantone 7604 C */
  --rsh-plum:      #51293c;  /* Pantone 7644 C */
  --rsh-purple:    #613b75;  /* Pantone 268 C  */

  /* Utilidades */
  --font-body: "Roboto", Calibri, "Segoe UI", Arial, sans-serif;
  --font-title: "Roboto Slab", "Roboto", Calibri, Georgia, serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 39, 45, 0.08);
  --shadow-hover: 0 14px 36px rgba(7, 39, 45, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rsh-dark);
  background: #f5f5f3; /* mismo fondo del portal DIDECO: la silueta del footer respira su transparencia */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--rsh-blue); }
a:hover { color: var(--rsh-red); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 900;
}

p { margin: 0 0 1em; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.container-narrow {
  width: min(880px, 92%);
}

/* ============ HEADER — estilo portal DIDECO (Coblog) ============ */

:root {
  /* identidad Coblog del portal municipal */
  --nav: #2B8888;
  --acento: #FF6845;
}

.oculto-visualmente {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.salto-contenido {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nav);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.salto-contenido:focus { left: 0; }

.coblog-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Barra de servicios de transparencia (topbar institucional) */
.coblog-topbar {
  background: #000;
  color: #fff;
  padding: 0;
}
.topbar-inner {
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow-x: auto;
}
.topbar-links {
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.25rem;
}
.topbar-link {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.55rem 0.45rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.topbar-link:hover { background: rgba(255, 255, 255, 0.08); }
.topbar-link > i {
  font-size: 1.65rem;
  width: 1.75rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.95;
}
.topbar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.topbar-line1 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.topbar-line2 {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  opacity: 0.92;
  white-space: nowrap;
}
.topbar-dip {
  position: relative;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
}
.topbar-dip-dot {
  position: absolute;
  top: 0.05rem;
  right: -0.28rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #e31c23;
}

/* Cabecera municipal (foto del frontis + escudo) */
.site-header.coblog-header {
  position: relative;
  z-index: 50;
  padding: 0;
  width: 100%;
  color: #fff;
}
.coblog-header-wrap {
  position: relative;
  min-height: 160px;
  height: clamp(150px, 18vw, 220px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1c2433;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.12) 100%), url('assets/img/header-banner.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 3px solid #99b516;
}
.coblog-brand-block {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  text-decoration: none;
  color: #fff;
  max-width: 100%;
}
.coblog-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}
.coblog-brand-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.brand-line1 {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.brand-line2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

/* Menú principal y buscador */
.main-navigation-wrap { background: var(--nav); }

.coblog-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  background: var(--nav);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: var(--acento);
  color: #fff;
  border: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  gap: 0.4rem;
  align-items: center;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.85rem;
  color: #fff;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--acento); }
.main-nav a.is-active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.45rem;
  height: 2px;
  background: var(--acento);
}

.header-search {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.header-search input {
  border: 0;
  padding: 0.45rem 0.75rem;
  min-width: 120px;
  outline: none;
  font: inherit;
  background: transparent;
  color: #fff;
}
.header-search input::placeholder { color: rgba(255, 255, 255, 0.65); }
.header-search button {
  border: 0;
  background: var(--acento);
  color: #fff;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}
.header-search button:hover { background: #e85a3a; }

/* Submenú de secciones RSH (sticky) */
.rsh-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgba(7, 39, 45, 0.1);
  box-shadow: 0 2px 8px rgba(7, 39, 45, 0.06);
}

.rsh-subnav-inner {
  display: flex;
  gap: 0.15rem 1.35rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 0;
}

.rsh-subnav a {
  color: var(--rsh-dark);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.rsh-subnav a:hover,
.rsh-subnav a:focus-visible {
  color: var(--rsh-red);
  border-bottom-color: var(--rsh-red);
}

/* Responsive del header (mismos cortes del portal DIDECO) */
@media (max-width: 1100px) {
  .topbar-line1 { font-size: 0.62rem; }
  .topbar-line2 { font-size: 0.58rem; }
  .topbar-link > i, .topbar-dip { font-size: 1.4rem; }
}

@media (max-width: 960px) {
  .coblog-header-wrap { min-height: 130px; height: 150px; }
  .coblog-logo { height: 76px; }
  .topbar-links { min-width: 720px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .main-nav a.is-active::after,
  .main-nav a:hover::after { display: none; }
  .header-search { width: 100%; order: 4; margin-bottom: 8px; }
  .header-search input { flex: 1; min-width: 0; }
}

@media (max-width: 620px) {
  .brand-line2 { font-size: 1.25rem; }
  .brand-line1 { font-size: 0.85rem; }
  .coblog-logo { height: 62px; }
  .rsh-subnav-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .rsh-subnav a { white-space: nowrap; }
}

/* ============ BANNER RSH (imagen oficial) ============ */

.banner-rsh {
  padding: 1.35rem 0 0;
}

.banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.banner-slogan-bar {
  margin-top: 1.1rem;
  background: linear-gradient(115deg, var(--rsh-dark) 0%, var(--rsh-blue-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 0.7rem 0;
}

.banner-slogan-bar p {
  margin: 0;
  font-weight: 300;
  font-size: 0.98rem;
}

.banner-slogan-bar strong {
  font-weight: 700;
  color: var(--rsh-yellow);
}

.banner-slogan-bar a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.banner-slogan-bar a:hover { color: var(--rsh-yellow); }

/* ===================== HERO ===================== */

.hero {
  background:
    radial-gradient(900px 320px at 88% -10%, rgba(107, 204, 214, 0.25), transparent 65%),
    radial-gradient(700px 300px at -5% 110%, rgba(233, 72, 96, 0.12), transparent 60%),
    #ffffff;
  padding: 3.5rem 0 3.25rem;
  border-bottom: 1px solid rgba(7, 39, 45, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rsh-red);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 0.35rem;
}

.lead {
  font-size: 1.1rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--rsh-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(235, 60, 70, 0.35);
}

.btn-primary:hover {
  background: var(--rsh-red-soft);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--rsh-dark);
  color: var(--rsh-dark);
}

.btn-outline:hover {
  background: var(--rsh-dark);
  color: #fff;
  transform: translateY(-2px);
}

.hero-card {
  background: #fff;
  border: 1px solid rgba(7, 39, 45, 0.1);
  border-top: 5px solid var(--rsh-red);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card-title {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.mini-data { margin: 0; }

.mini-data > div {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(7, 39, 45, 0.14);
}

.mini-data > div:last-child { border-bottom: none; }

.mini-data dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rsh-blue);
}

.mini-data dd { margin: 0.1rem 0 0; font-weight: 500; }

.hero-card-note {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
  background: var(--rsh-beige);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

/* ===================== SECCIONES ===================== */

.section { padding: 4rem 0; }

.section-alt {
  background: linear-gradient(180deg, #f7fafc 0%, #eef4f7 100%);
}

.section-head { max-width: 760px; margin-bottom: 2.4rem; }

.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }

.section-intro { font-weight: 300; font-size: 1.03rem; margin-bottom: 0; }

/* ===================== TARJETAS ===================== */

.cards-grid {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  background: #fff;
  border: 1px solid rgba(7, 39, 45, 0.09);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card h3 {
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rsh-red);
  margin-bottom: 0.7rem;
}

.card-strong { font-weight: 700; margin-bottom: 0.25rem; }

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.card-highlight { border-top: 4px solid var(--rsh-blue); }

.card-big {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  word-break: break-word;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rsh-red);
}

/* ===================== BLOQUES DE INFORMACIÓN ===================== */

.info-grid { display: grid; gap: 1.5rem; }

.info-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  background: #fff;
  border: 1px solid rgba(7, 39, 45, 0.09);
  border-left: 5px solid var(--rsh-blue);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}

.info-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rsh-dark);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.2rem;
}

.info-block h3 { font-size: 1.25rem; }

.info-block h4 {
  font-size: 0.95rem;
  color: var(--rsh-blue);
  margin: 1.1rem 0 0.2rem;
  font-weight: 700;
}

.info-block p:last-child { margin-bottom: 0; }

/* ===================== TRAMOS CSE ===================== */

.tramos {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 1.3rem 0 0.5rem;
}

.tramo {
  border-radius: 10px;
  padding: 0.85rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tramo-name {
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tramo-range { font-size: 0.82rem; font-weight: 500; }

.tramo-1 { background: var(--rsh-ice);   color: var(--rsh-dark); }
.tramo-2 { background: var(--rsh-sky);   color: var(--rsh-dark); }
.tramo-3 { background: var(--rsh-blue);  color: #fff; }
.tramo-4 { background: var(--rsh-blue-mid); color: #fff; }
.tramo-5 { background: var(--rsh-blue-dark); color: #fff; }
.tramo-6 { background: var(--rsh-purple); color: #fff; }
.tramo-7 { background: var(--rsh-plum);  color: #fff; }

.tramos-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rsh-dark);
  opacity: 0.75;
}

/* ===================== FAQ ===================== */

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

.faq-item {
  background: #fff;
  border: 1px solid rgba(7, 39, 45, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.35rem;
  font-weight: 700;
  font-size: 1.02rem;
  position: relative;
  transition: background 0.15s;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rsh-ice);
  color: var(--rsh-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  transition: transform 0.2s, background 0.2s;
}

.faq-item[open] summary::after {
  content: "–";
  background: var(--rsh-red);
  color: #fff;
}

.faq-item summary:hover { background: rgba(211, 222, 242, 0.25); }

.faq-body { padding: 0 1.35rem 1.2rem; }

.faq-body p:last-child { margin-bottom: 0; }

.steps { margin: 0 0 1em; padding-left: 1.2rem; }
.steps li { margin-bottom: 0.35rem; }

/* ===================== LINKS DE INTERÉS ===================== */

.links-layout {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 2.5rem;
  align-items: start;
}

.links-intro h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.links-intro p { font-weight: 300; font-size: 1.03rem; }

.links-note {
  font-size: 0.85rem !important;
  opacity: 0.7;
}

.links-help {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.4rem;
  background: var(--rsh-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}

.links-help strong { font-family: var(--font-title); }
.links-help a { color: var(--rsh-yellow); font-weight: 700; }
.links-help a:hover { color: #fff; }

.links-groups { display: grid; gap: 1.25rem; }

.links-group {
  --group: var(--rsh-blue);
  --group-soft: #eaf3f8;
  background: #fff;
  border: 1px solid rgba(7, 39, 45, 0.09);
  border-left: 5px solid var(--group);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow);
}

.group-tramites { --group: var(--rsh-blue); --group-soft: #eaf3f8; }
.group-beneficios { --group: var(--rsh-red); --group-soft: #fdeef0; }
.group-institucional { --group: var(--rsh-dark); --group-soft: #e9eef0; }

.links-group h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--group);
  margin-bottom: 0.85rem;
}

.links-group h3 svg { width: 20px; height: 20px; flex-shrink: 0; }

.link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--rsh-dark);
  transition: background 0.15s, transform 0.15s;
}

.link-row:hover { background: var(--group-soft); transform: translateX(4px); color: var(--rsh-dark); }

.link-body { display: flex; flex-direction: column; line-height: 1.4; }

.link-body strong { font-weight: 700; font-size: 1rem; }
.link-body span { font-size: 0.84rem; font-weight: 300; opacity: 0.85; }

.link-arrow {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--group);
  transition: transform 0.15s;
}

.link-row:hover .link-arrow { transform: translateX(4px); }

/* ============ FOOTER — estilo portal DIDECO ============ */

.muni-footer-sil {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0 0;
}

.muni-footer {
  --muni-footer-bg: #008989;
  --muni-footer-text: #ffffff;
  --muni-footer-text-secondary: #d1d5db;
  --muni-footer-link: #ffffff;
  --muni-footer-link-hover: #ff6845;
  position: relative;
  background: var(--muni-footer-bg);
  color: var(--muni-footer-text);
  font-size: 0.875rem;
  margin-top: -4.95%;
  z-index: 1;
}
.muni-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.75rem 20px 1.35rem;
  text-align: center;
}
.muni-footer-logo img {
  height: 72px;
  width: auto;
  margin: 0 auto 0.75rem;
}
.muni-footer-title {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muni-footer-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.muni-footer-text {
  margin: 0 auto 0.55rem;
  font-weight: 500;
  color: var(--muni-footer-text-secondary);
  max-width: 42rem;
}
.muni-footer-contact {
  margin: 0 0 0.75rem;
  color: var(--muni-footer-text-secondary);
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.75rem;
}
.muni-footer-contact a { color: var(--muni-footer-link); text-decoration: none; }
.muni-footer-contact a:hover { color: var(--muni-footer-link-hover); }
.muni-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muni-footer-text-secondary);
}

/* ============ VIDEOS ============ */

.info-media {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--rsh-dark);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ TRÁMITES / DERECHOS / RECLAMOS ============ */

.cards-2 { grid-template-columns: repeat(2, 1fr); }

.online-block {
  display: grid;
  grid-template-columns: 1.7fr auto;
  gap: 1.75rem;
  align-items: center;
  margin-top: 1.5rem;
  background: linear-gradient(115deg, var(--rsh-dark) 0%, var(--rsh-blue-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow);
}

.online-block h3 { color: #fff; margin-bottom: 0.4rem; }
.online-block p { margin-bottom: 0.75rem; }
.online-block a { color: var(--rsh-yellow); }
.online-block a:hover { color: #fff; }

.online-block .steps { margin-bottom: 0; }
.online-block .steps li { margin-bottom: 0.4rem; }

.online-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 215px;
}

.online-links .btn { text-align: center; }
.online-links .btn-outline { border-color: #fff; color: #fff; }
.online-links .btn-outline:hover { background: #fff; color: var(--rsh-dark); }

.notice {
  margin-top: 1.5rem;
  background: var(--rsh-beige);
  border-left: 5px solid var(--rsh-blue);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  font-size: 0.95rem;
}

.notice strong { display: block; margin-bottom: 0.3rem; }
.notice p:last-child { margin-bottom: 0; }

.notice-alert { border-left-color: var(--rsh-red); }

.equipo-callout {
  background: var(--rsh-ice);
  border-left: 5px solid var(--rsh-red);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  font-size: 1.03rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

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

.dd-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
}

.dd-card h3::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.dd-derechos { border-top: 4px solid var(--rsh-blue); }
.dd-derechos h3 { color: var(--rsh-blue); }
.dd-derechos h3::before { background: var(--rsh-blue); }

.dd-deberes { border-top: 4px solid var(--rsh-red); }
.dd-deberes h3 { color: var(--rsh-red); }
.dd-deberes h3::before { background: var(--rsh-red); }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tramos { grid-template-columns: repeat(4, 1fr); }
  .cards-2, .dd-grid, .info-media, .links-layout { grid-template-columns: 1fr; }
  .online-block { grid-template-columns: 1fr; }
  .online-links { min-width: 0; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .banner-slogan-bar p { font-size: 0.85rem; }
  .info-block { grid-template-columns: 1fr; }
  .tramos { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 2.5rem 0; }
  .section { padding: 3rem 0; }
  .muni-footer-logo img { height: 58px; }
}

/* ===================== ACCESIBILIDAD / IMPRESIÓN ===================== */

:focus-visible {
  outline: 3px solid var(--rsh-yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .main-nav, .hero-actions { position: static; }
  .banner-rsh, .muni-footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .faq-item, .info-block { box-shadow: none; }
}
