/* --- Consulta Vecinal: tarjeta de ayuda para SECCIÓN INE --- */
.cv-help-card{
  margin: 14px 0 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(2,14,36,.06);
}

.cv-help-card__body{
  display: grid;
  grid-template-columns: 1fr minmax(220px, 360px);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
}

.cv-help-title{
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--navy, #27323f);
  display: flex; gap: .5rem; align-items: center;
}

.cv-help-desc{
  margin: 0; color: var(--muted, #6b7785);
  line-height: 1.45;
}

.cv-help-figure{
  margin: 0; text-align: center;
}

.cv-help-figure img{
  width: 100%; height: auto;
  border-radius: 10px;
  border: 1px solid #e9eef3;
  /* Asegura que no desborde */
  display: block; object-fit: cover;
}

.cv-help-caption{
  margin-top: 6px; font-size: .85rem; color: #6b7785;
}

/* Responsive */
@media (max-width: 900px){
  .cv-help-card__body{
    grid-template-columns: 1fr;
  }
}
.mis-sol-btn{
  background:var(--blue,#0076aa);
  color:#fff;
  border:none;
  padding:8px 14px;
  border-radius:20px;
  font-size:.9rem;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  transition:background .25s ease,transform .25s ease,box-shadow .25s ease;
}
.mis-sol-btn:hover{
  background:#005f87;
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}
.mis-sol-btn i{
  font-size:1rem;
}

/* Quitar la línea azul marino entre el header y el contenido */
.principal-header,
.header-section,
#main-header-bar,
.header-title-container {
  border-bottom: none !important;
}
/* QUITAR la rayita pequeña debajo del título del header */
.section-title::after,
.header-title::after,
.titulo-principal::after,
h1::after {
  content: none !important;
  display: none !important;
}
/* Botón "Crear Documento" en verde */
#btnGenerarPdf {
  background: #00ae6f;        /* verde principal */
  border-color: #008a57;      /* borde un poquito más oscuro */
  color: #fff;
}

#btnGenerarPdf:hover {
  background: #008a57;
  border-color: #006e46;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

#btnGenerarPdf:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

#btnLimpiarPdf {
  background: #147366;        /* verde principal */
  border-color: #00638a;      /* borde un poquito más oscuro */
  color: #fff;
}

#btnLimpiarPdf:hover {
  background: #00638a;
  border-color: #004f6e;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

#btnLimpiarPdf:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
/* TOP BAR CON ELNACE */
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

.topbar__brand:hover {
  opacity: .9;
}

.topbar__brand-text {
  font-weight: 600;
}

/* ===== FOOTER ===== */

.gd-footer {
  background: #f8fafc;
  padding: 3rem 1.5rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid #e5e9f0;
  font-family: 'Poppins', sans-serif;
}

/* Contenedor interno */
.gd-footer__inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}

/* Branding columna */
.gd-footer__brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.gd-footer__logo {
  width: 130px;
  height: auto;
}

/* Títulos */
.gd-footer__col h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: #0b3b60;
}

/* Listas */
.gd-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gd-footer__col ul li {
  margin-bottom: .5rem;
}

.gd-footer__col a {
  color: #415064;
  text-decoration: none;
  opacity: .95;
  transition: .2s ease;
}

.gd-footer__col a:hover {
  color: #0076aa;
  text-decoration: underline;
}

/* AVISO FINAL */
.gd-footer__bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .85rem;
  color: #6b7280;
  border-top: 1px solid #e5e9f0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .gd-footer__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
/* Icono de paloma en el botón de accesibilidad */
.tb-link--a11y {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tb-link--a11y .a11y-bird {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Opción hover suave */
.tb-link--a11y:hover .a11y-bird {
  transform: scale(1.07);
  transition: transform .2s ease;
}
/* Aseguramos niveles de capa coherentes */
.topbar {
  z-index: 1000;
  position: sticky;
}

/* Scrim del panel de accesibilidad (fondo oscuro) */
.a11y-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1190;          /* debajo del panel, encima de todo lo demás */
}

/* Panel de accesibilidad flotante, siempre sobre la topbar */
.a11y-panel {
  position: fixed !important;
  top: 72px !important;   /* ajusta si tu topbar es más alta o más baja */
  right: 1.5rem;
  max-width: 420px;
  width: calc(100% - 3rem);
  z-index: 1300 !important;
}

/*IMAGEN DE LA TOPBAR*/
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;          /* espacio entre puntos y logo */
  text-decoration: none;
}

/* El logo en la topbar */
.topbar__brand-logo {
  height: 80px;         /* puedes subir/bajar el tamaño */
  width: auto;
  display: block;
}

/* Opcional: en pantallas muy pequeñas, ocultar los puntitos para que no se vea saturado */
@media (max-width: 480px) {
  .topbar__dot,
  .topbar__brand .brand__dot {
    display: none;
  }

  .topbar__brand-logo {
    height: 28px;
  }
}


/* ===============================
   Header actions — San Juan Participa
   =============================== */

.sjp-header-actions{
  display:flex;
  align-items:center;
  gap:16px;
}

/* Botón principal: Mis solicitudes */
.sjp-btn-primary{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding: 8px 14px;
  border-radius: 999px;

  background:#0b3a63; /* azul SJP real */
  color:#ffffff;

  font-size:.9rem;
  font-weight:600;
  text-decoration:none;

  transition: background-color .15s ease, transform .1s ease;
}

.sjp-btn-primary i{
  font-size:14px;
}

.sjp-btn-primary:hover{
  background:#092f50;
  transform: translateY(-1px);
}

/* Cerrar sesión: link discreto */
.sjp-link-logout{
  display:inline-flex;
  align-items:center;
  gap:6px;

  background:none;
  border:none;
  padding:0;

  font-size:.88rem;
  font-weight:500;
  color:#6b7280;

  cursor:pointer;
  text-decoration:none;

  transition: color .15s ease;
}

.sjp-link-logout i{
  font-size:13px;
}

.sjp-link-logout:hover{
  color:#0b3a63;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile */
@media (max-width:640px){
  .sjp-header-actions{
    gap:12px;
  }
}
/* Asegura que Font Awesome no sea sobreescrito por estilos globales */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
}

.fa-solid, .fas {
  font-weight: 900 !important;
}

.fa-regular, .far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}
/* --- Estilos para el desplegable --- */

/* Contenedor que se oculta */
.info-collapsible-content {
    max-height: 0;         /* Altura cero inicial */
    opacity: 0;            /* Invisible */
    overflow: hidden;      /* Corta el contenido */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Animación suave */
    transform: translateY(10px); /* Pequeño desplazamiento hacia abajo */
}

/* Cuando pasas el mouse por la sección principal */
.expandable-section:hover .info-collapsible-content {
    max-height: 500px;     /* Suficiente para mostrar todo el contenido */
    opacity: 1;            /* Se vuelve visible */
    transform: translateY(0); /* Sube a su posición original */
    margin-top: 25px;      /* Espacio con el título */
}

/* Indicador visual (el texto pequeñito de "Pasa el cursor") */
.expand-indicator {
    display: block;
    font-size: 0.8rem;
    color: #ce1d81; /* Color rosa institucional */
    margin-top: 10px;
    font-weight: 600;
    transition: opacity 0.3s;
}

/* Ocultar el indicador cuando ya está desplegado */
.expandable-section:hover .expand-indicator {
    opacity: 0;
}

/* Opcional: Un pequeño cambio de fondo al hacer hover para notar el área interactiva */
.expandable-section {
    cursor: pointer;
    transition: background 0.3s;
}

.expandable-section:hover {
    background: rgba(255, 255, 255, 0.5); /* Sutil aclarado */
}
/* ============================================================
   HOMOLOGACIÓN DE TIPOGRAFÍA - PORTAL SAN JUAN PARTICIPA
   ============================================================ */

:root {
  /* Escala de Tamaños */
  --fs-h1: 2.25rem;      /* Títulos principales (Hero/Header bar) */
  --fs-h2: 1.75rem;      /* Títulos de secciones */
  --fs-h3: 1.25rem;      /* Títulos de cards, accordions y modales */
  --fs-body: 1rem;       /* Texto base (16px) */
  --fs-small: 0.875rem;  /* Notas, subtítulos y textos secundarios */
  --fs-tiny: 0.75rem;    /* Etiquetas muy pequeñas */

  /* Pesos */
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}

/* 1. Ajuste General de Cuerpo */
body {
  font-family: 'Poppins', 'Atkinson Hyperlegible', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #333;
}

/* 2. Títulos de Pantallas (H1) */
#page-title, .header-bar h1 {
  font-size: var(--fs-h1) !important;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

/* 3. Subtítulos de Header */
.header-subtitle {
  font-size: var(--fs-small) !important;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 4. Títulos de Secciones (H2) */
.info-header h2, .faq-header h2, .header-bar h2 {
  font-size: var(--fs-h2) !important;
  font-weight: var(--fw-bold);
  color: var(--blue, #003876);
}

/* 5. Acordeón Izquierdo e Instrumentos (H3) */
.left-accordion-title, 
.left-accordion-question, 
.card__title, 
#carousel-item-title,
.skin-modal__header h3 {
  font-size: var(--fs-h3) !important;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

/* 6. Textos de los pasos (Step Pills) */
.step-label {
  font-size: var(--fs-small) !important;
  font-weight: var(--fw-semibold);
}

.steps-description {
  font-size: var(--fs-body) !important;
  color: #555;
}

/* 7. Inputs y Etiquetas de Formulario */
label {
  font-size: var(--fs-small) !important;
  font-weight: var(--fw-semibold);
  margin-bottom: 6px;
  display: inline-block;
}

input, select, textarea {
  font-family: 'Poppins', sans-serif !important;
  font-size: var(--fs-body) !important;
}

.form-note, .form-group small {
  font-size: var(--fs-tiny) !important;
  color: #666;
  line-height: 1.4;
}

/* 8. Topbar Links */
.tb-link {
  font-size: 0.95rem !important; /* Ligeramente menor que el body para elegancia */
  font-weight: var(--fw-medium);
}

/* 9. FAQ y Acordeones (Respuestas) */
.faq-answer p, .left-accordion-answer p {
  font-size: var(--fs-small) !important;
  line-height: 1.6;
  color: #444;
}

/* 10. Footer */
.gd-footer h4 {
  font-size: var(--fs-body) !important;
  font-weight: var(--fw-bold);
}

.gd-footer ul li a, .gd-footer__col {
  font-size: var(--fs-small) !important;
}

/* === AJUSTES RESPONSIVOS === */
@media (max-width: 768px) {
  :root {
    --fs-h1: 1.75rem;
    --fs-h2: 1.4rem;
    --fs-h3: 1.15rem;
    --fs-body: 0.938rem; /* 15px aprox */
  }
}
.left-accordion-question {
    padding: 10px 15px !important; /* Estaba muy alto, redúcelo */
    font-size: 0.9rem !important;  /* Un poco más pequeña la letra aquí */
}
.innovative-info-container {
    background: transparent !important; /* Quita el fondo blanco sólido */
    box-shadow: none !important;        /* Quita la sombra pesada */
    border: none !important;            /* Quita el borde */
}

/* --- Cabecera del Acordeón Limpia --- */
.left-accordion-question {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #003876 !important; /* Azul San Juan */
    background: #fff !important;
    border: none !important;
    width: 100%;
    cursor: pointer;
}

/* La flechita de la derecha */
.accordion-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

/* Cuando el acordeón está abierto (ajusta según tu clase activa) */
.left-accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

/* --- El Link dentro del texto (Elegante) --- */
.link-instrumento-portal {
    display: inline-block;
    margin-top: 12px;
    color: #ce1d81 !important; /* Rosa San Juan para que resalte */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.link-instrumento-portal i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s;
}

.link-instrumento-portal:hover {
    color: #003876 !important;
}

.link-instrumento-portal:hover i {
    transform: translateX(4px);
}
/* 1. CONTENEDOR Y WRAPPER (Para que ocupe todo el ancho) */
.faq-container {
  background-color: #ffffff;
  padding: 80px 0;
  width: 100%;
  overflow: hidden;
}

/* Forzamos al wrapper a ignorar límites de otras secciones */
.faq-container .info-content-wrapper {
  max-width: 100% !important;
  width: 92% !important; 
  margin: 0 auto;
}

.ayuda-layout {
  display: grid;
  /* Redes fijas a 380px, Preguntas ocupan el resto (1fr) */
  grid-template-columns: 380px 1fr; 
  gap: 100px;
  align-items: start;
}

/* 2. TEXTOS DE CABECERA (Tamaño reducido y elegante) */
.ayuda-header-side {
  margin-bottom: 35px;
}

.ayuda-header-side h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #003876;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.ayuda-header-side p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 480px; /* Para que el párrafo no sea infinitamente largo */
}

/* 3. COLUMNA IZQUIERDA: REDES SOCIALES */
.kiosco-social__grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.kiosco-card {
  display: flex;
  align-items: center;
  padding: 18px 25px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.kiosco-card:hover {
  border-color: var(--social-color);
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.kiosco-card__icon {
  width: 35px;
  height: 35px;
  margin-right: 15px;
  flex-shrink: 0;
  color: var(--social-color);
}

.kiosco-card__info {
  display: flex;
  flex-direction: column;
}

.kiosco-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.kiosco-card__user {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

/* 4. COLUMNA DERECHA: PREGUNTAS (FAQ) */
.ayuda-columna--faq {
  width: 100%;
}

.faq-item {
  width: 100%;
  border-bottom: 1px solid #eef2f6;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem; /* Tamaño optimizado */
  font-weight: 600;
  color: #1e293b;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #003876;
}

.faq-question i {
  font-size: 0.85rem;
  color: #94a3b8;
}

.faq-answer p {
  padding-bottom: 25px;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 90%;
}

/* 5. RESPONSIVE */
@media (max-width: 1100px) {
  .ayuda-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .ayuda-header-side p {
    max-width: 100%;
  }
}