* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Enlace de validación ── */
.siged-validation-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 6px;
    padding: 12px 16px;
    background: #f4f8ff;
    border-left: 4px solid #1a3a6b;
    border-radius: 4px;
    font-size: 13px;
}

.siged-link-label {
    font-weight: 600;
    color: #1a3a6b;
    white-space: nowrap;
}

.siged-link-url {
    color: #1a5276;
    word-break: break-all;
    flex: 1;
    font-family: monospace;
    font-size: 12.5px;
}

.siged-link-url:hover {
    text-decoration: underline;
}

.siged-btn-copy {
    padding: 5px 14px;
    background: #1a3a6b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.siged-btn-copy:hover {
    background: #2e6da4;
}

.siged-btn-copy:disabled {
    background: #5d9e5d;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    color: #333;
}

/* Top Header - Burgundy */
.top-header {
    background-color: #611232;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .secondary-nav {
      background-color: #4a1425;
      padding: 12px 0;
      position: sticky;
      top: 70px;
      z-index: 999;
  }

.top-header .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 0px;
}

.gob-logo-header img{
    height: 46px;
    width: auto;
}

.gob-logo-header{
    margin-left: 180px;
}


/* ===== Wrapper ===== */
.accessibility-wrapper{
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1000;
}

/* ===== PANEL ===== */
/* ===== PANEL (sin franja blanca) ===== */
.acc-menu{
  position: fixed;
  left: 0;
  top: 70px;
  width: 280px;

  background: #e9e9e9;
  border-radius: 0 8px 8px 0;
  box-shadow: 4px 4px 20px rgba(0,0,0,.25);

  padding: 14px 12px;
  white-space: normal;

  transform: translateX(-100%);     /* se esconde COMPLETO */
  transition: transform .35s ease;
  z-index: 1001;

  overflow: hidden;
}

.accessibility-wrapper:hover .acc-menu{
  transform: translateX(0);         /* aparece */
}

/* ===== ITEMS (icono + texto) ===== */
.acc-menu-item{
  appearance: none;
  -webkit-appearance: none;

  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;

  width: 100%;
  padding: 10px 10px;
  margin: 10px 0;

  background: transparent;
  border: 0 !important;

  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #b47a8a;
  line-height: 1.15;
  white-space: normal;
}

.acc-menu-item:hover{
  background: rgba(255,255,255,.25);
  border-radius: 10px;
}

/* Caja morada del icono */
.acc-menu-item::before{
  content: attr(data-icon);
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #b47a8a;

  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

/* ===== Botón Restablecer (arriba vino) ===== */
.acc-menu-item:first-child{
  grid-template-columns: 46px 1fr;
  gap: 12px;

  background: #8d1f3e;
  color: #fff;

  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 0;
}

.acc-menu-item:first-child::before{
  content: attr(data-icon);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  font-size: 20px;
}

/* ===== Botón flotante (tu ícono) ===== */
.accessibility-btn{
  margin-left: -160px;
  position: relative;
  bottom: 40px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: scale(.7);
  transform-origin: center;
}

.accessibility-btn img{
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.top-nav{
    margin-right: 48px;
}

.top-nav{
    gap: 15px;
}

.top-nav{
    position: relative;
    bottom: 24px;
    display: flex;
    gap: 14px;
}

.top-nav a{
    font-family: 'Noto Sans', sans-serif;
    font-size: 15px;
    font-weight: 280;   /* weight 300 */
    color: #fff;
    text-decoration: none;
}
.search-icon img{
  width: 18px;
  height: 18px;
}

.search-icon{
    filter: invert();
}
/* Secondary Nav - Dark Burgundy */
.secondary-nav {
    background-color: #a57f2c;
    padding: 12px 0;
}

.secondary-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.site-title{
    position: relative;
    left: 70px;

}

.site-title{
    font-family: 'Noto Sans', sans-serif;
    font-size: 21px;
    font-weight: 400;   /* weight 300 */
    color: #fff;
    text-decoration: none;
}


.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #d4a574;
}

.main-nav {
    position: relative;
    right: 95px;
}

/*slider*/

.hero-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000; /* opcional para que no se vea vacío */
}

.hero-slide img{
  object-fit: cover;
  object-position: center top;   /* prueba top, bottom, left, right */
}
.hero-slider{
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-slide{
  display: none;
  position: relative;
  inset: unset;
}

.hero-slide.active{
  display: block;
}

.hero-slide img{
  width: 100%;
  height: auto;
  display: block;
}

.slider-dots{
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.dot{
  width: 14px;
  height: 14px;
  background: #d9d9d9;  /* gris claro */
  border-radius: 0;     /* 👈 cuadrado */
  border: none;
  transition: background .3s ease;
  cursor: pointer;
}

.dot{
  width: 10px;
  height: 10px;
}

.dot.active{
  background: #b89559;  /* dorado SIGED */
}

/* Main Title Section */
.main-title-section {
    padding: 40px 20px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-title-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 500;
    color: #9a7b4f;
    letter-spacing: -1px;
    padding-bottom: 15px;
    border-bottom: 2px solid #9a7b4f;
     display: block;
  width: 90%;
  margin: 0 auto;

}

/* Hero Títulos */
.titulos-hero {
    background-image: url('/validacion-folios/admin/img/fondo2.png');
    background-size: cover;
    background-position: center;
    padding: 50px 40px 50px 120px;
    text-align: left;
}

.titulos-hero h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #000;
    margin-bottom: 10px;
}

.titulos-hero p {
    font-size: 38px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb-nav {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    font-size: 13px;
}

.breadcrumb-nav a {
    color: #1a5a4a;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 6px;
    color: #999;
}

.breadcrumb-active {
    color: #666;
}

/* Grid de imágenes Títulos */
.titulos-img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.titulos-img-grid a:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(25% - 15px);
}

.titulos-img-grid a {
    display: block;
    transition: transform 0.3s;
}

.titulos-img-grid a:hover {
    transform: translateY(-4px);
}

.titulos-img-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.titulos-img-grid .img-hover {
    display: none;
}

.titulos-img-grid a:hover .img-normal {
    display: none;
}

.titulos-img-grid a:hover .img-hover {
    display: block;
}

/* Consultas Section */
.consultas-section {
    max-width: 1090px;
    margin: 0 auto;
    padding: 0px 20px 50px;
}

.consultas-header h3 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #333;
    margin-bottom: 10px;
}

.consultas-header p {
    color: #666;
    font-size: 17px;
    margin-bottom: 30px;
    width: 58%;
    text-align: justify;
    text-align-last: justify;
}

.consultas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.consulta-card {
    background: #fff;
    border: 2px solid #c9a227;
    border-radius: 18px;
    padding: 16px 14px;   /* 🔽 menos padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.consulta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.2);
    background: #1a5a4a;
    border-color: #1a5a4a;
}

.consulta-card:hover span {
    color: #c9a227;
}

/* ÍCONO */
.consulta-card .icon {
    width: 95px;      /* 🔽 más pequeño */
    height: 95px;
    margin: 0 auto 12px;  /* 🔽 menos espacio abajo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.consulta-card .icon img {
    width: 190%;   /* 🔥 aumenta aquí */
    height: 190%;
}

.consultas-grid .consulta-card:nth-child(2) .icon img{ transform: translateY(7px); }
.consultas-grid .consulta-card:nth-child(4) .icon img{ transform: translateY(20px); }

/* TEXTO */
.consulta-card span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #b88b3a;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* También Section */

.tambien-section {
    background: #f9f9f9;
    padding: 50px 20px;
}

.tambien-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.tambien-header {
    text-align: left;
    margin-bottom: 30px;
}

.tambien-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #222;
    position: relative;
    display: inline-block !important;
    padding-bottom: 18px;
    border-bottom: none !important;
}

.tambien-header h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #c9a227;
}
.tambien-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tambien-card {
    background: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.tambien-card:hover {
    transform: translateY(-5px);
}

.tambien-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tambien-card-img img {
    width: 100%;
    height: auto;
}

.tambien-card-content {
    padding: 0;
    text-align: center;
}

.tambien-card-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2d5a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Footer col last wrapper */
.footer-col-last {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Footer */

.footer-logo {
    width: 65px;   /* 🔥 reduce tamaño */
    height: auto;
}

.footer{
    margin-top: 150px;
}

.footer {
    background: #691c32;
    color: #fff;
    padding: 40px 0 20px;
}

.footer .container {
    max-width: 1200px;
    margin: 0;              /* 🔥 quita el centrado */
    padding-left: 180px;     /* espacio izquierdo controlado */
    padding-right: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #d4a574;
}

.footer-section p,
.footer-section a {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    text-decoration: none;
}

/* Redes sociales horizontales */
.footer-section.redes {
    display: flex;
    flex-direction: column;
}

.footer-section.redes a {
    display: inline-block;
    margin-right: 12px;
}

.footer-section.redes img {
    width: 22px;   /* tamaño ícono */
    height: auto;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* =========================
   SIGED-like Consulta Page
   ========================= */

.consulta-wrapper{
  background:#fff;
}

/* HERO */
.consulta-hero{
  position: relative;
  border-top: 0px solid #c9a227;
  padding: 60px 0 40px;
  overflow: hidden;

  /* Imagen de fondo */
  background-image: url('../../admin/img/validacion.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  /* Fondo base gris claro */
  background-color: #f5f5f5;
}

/* fondo tipo "marcas de agua" */
.consulta-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 12% 35%, rgba(201,162,39,.10) 0 2px, transparent 3px) 0 0/90px 90px,
    radial-gradient(circle at 80% 25%, rgba(201,162,39,.10) 0 2px, transparent 3px) 0 0/110px 110px,
    radial-gradient(circle at 55% 70%, rgba(201,162,39,.10) 0 2px, transparent 3px) 0 0/120px 120px;
  opacity:.9;
  pointer-events:none;
}

.consulta-container{
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* breadcrumb */
.breadcrumbs{
  margin-top: 18px;
  font-size: 18px;
  color: #333;
}
.breadcrumbs a{
  color:#333;
  text-decoration:none;
}
.breadcrumbs span.sep{
  margin: 0 10px;
  color:#999;
}

/* títulos */
.consulta-kicker{
  font-family: 'Open Sans', sans-serif;
  font-size: 34px;
  font-weight: 600;
  color:#333;
  margin: 8px 0 8px;
}

.consulta-title{
  font-family: 'Open Sans', sans-serif;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  color:#111;
  margin: 0 0 10px;
}

/* CONTENIDO */
.consulta-content{
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 50px;
}

/* Caja buscador */
.siged-search{
  background: #f8f8f800;
  border: 2px solid #c9a227;
  border-radius: 14px;
  padding: 30px 35px 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.siged-search-row{
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 980px){
  .siged-search-row{
    grid-template-columns: 1fr;
  }
}

/* Input estilo SIGED */
.siged-input{
  width: 100%;
  height: 56px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 0 18px;
  font-size: 22px;
  color: #333;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.siged-input::placeholder{
  color: #9a9a9a;
  font-size: 22px;
}

.siged-input:focus{
  outline: none;
  border-color: #c9a227;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.06),
    0 0 0 3px rgba(201,162,39,0.18);
}

.siged-btn{
  height: 52px;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.siged-btn-search{
  background: #1f5a4f;
  color: #fff;
}
.siged-btn-search:hover{ filter: brightness(.95); }

.siged-btn-reset{
  background: #6b6f73;
  color:#fff;
}
.siged-btn-reset:hover{ filter: brightness(.95); }

.siged-help-link{
  display:block;
  text-align:center;
  margin-top: 14px;
  font-size: 22px;
  color: #b5831a;
  text-decoration: underline;
  font-weight: 500;
}

/* Aviso azul inferior */
.siged-info{
  margin-top: 28px;
  background: #d9eef9;
  border: 1px solid #b8dcf0;
  color:#1d4e6d;
  border-radius: 4px;
  padding: 18px 18px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.siged-info .icon{
  font-size: 22px;
}


/* ===== DETALLE DEL DOCUMENTO (SIGED) ===== */

.siged-docwrap {
  margin-top: 30px;
}

/* pestaña verde oscuro */
.siged-doc-tab {
  display: inline-block;
  background: #1f5a4f;
  color: #fff;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 3px 3px 0 0;
}

/* panel blanco */
.siged-docpanel {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 40px 50px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  align-items: start;
}

/* icono documento */
.siged-doc-icon {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
}

/* contenedor 2 columnas */
.siged-doc-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}

/* cada columna */
.siged-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* cada item (label + value) */
.siged-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* label en negritas */
.siged-label {
  font-weight: 700;
  font-size: 18px;
  color: #333;
}

/* value en gris */
.siged-value {
  font-size: 17px;
  color: #6b6b6b;
  line-height: 1.5;
}

/* mayúsculas */
.siged-upper {
  text-transform: uppercase;
}

/* highlight azul para el nombre */
.siged-highlight {
  background: #4a8fd900;
  color: #000000;
  padding: 2px 6px;
  text-transform: uppercase;
}

/* responsive */
@media (max-width: 900px) {
  .siged-docpanel {
    grid-template-columns: 1fr;
    padding: 30px 25px;
  }
  
  .siged-doc-icon {
    display: none;
  }
  
  .siged-doc-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ===== ENLACE DE VALIDACIÓN ===== */
.siged-validation-link {
  background: #f9f9f9;
  border: 1px solid #ffffff;
  border-top: none;
  padding: 20px 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.siged-link-label {
  font-weight: 600;
  color: #000000;
}

.siged-link-url {
  color: #2564eb00;
  word-break: break-all;
}

.siged-btn-copy {
  background: #1f5a4f;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.siged-btn-copy:hover {
  background: #174a41;
}

/* ===== RESULTADO NO ENCONTRADO ===== */
.siged-result.invalid {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 30px;
  margin-top: 30px;
  border-radius: 6px;
}

.siged-result.invalid h2 {
  color: #dc2626;
  margin: 0 0 10px 0;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .siged-result-card {
    padding: 30px 25px 40px;
  }

  .siged-data-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .siged-data-label {
    font-size: 16px;
  }

  .siged-data-value {
    font-size: 16px;
  }

  .siged-status-boxes {
    flex-direction: column;
    gap: 20px;
  }

  .siged-box {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .consulta-kicker {
    font-size: 20px;
  }

  .consulta-title {
    font-size: 24px;
  }

  .breadcrumbs {
    font-size: 14px;
  }

  .siged-search {
    padding: 20px 15px 18px;
  }

  .siged-input {
    height: 48px;
    font-size: 18px;
  }

  .siged-input::placeholder {
    font-size: 18px;
  }

  .siged-btn {
    height: 48px;
    font-size: 18px;
  }

  .siged-help-link {
    font-size: 18px;
  }

  .siged-info {
    font-size: 16px;
    padding: 14px;
  }

  .siged-result-card {
    padding: 20px 15px 30px;
  }

  .siged-data-label {
    font-size: 15px;
  }

  .siged-data-value {
    font-size: 15px;
  }

  .siged-box {
    padding: 16px 20px;
  }

  .siged-box-label {
    font-size: 16px;
  }

  .siged-box-value {
    font-size: 20px;
  }
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #691c32;
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: #4a1425;
}

.btn-secondary {
    background: #fff;
    color: #555;
    border: 2px solid #999;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.result {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.result-valid {
    background: #e8f5e9;
    border: 2px solid #2e7d32;
}

.result-valid h2 {
    color: #2e7d32;
    font-family: 'Montserrat', sans-serif;
}

.result-invalid {
    background: #ffebee;
    border: 2px solid #c62828;
}

.result-invalid h2 {
    color: #c62828;
    font-family: 'Montserrat', sans-serif;
}

.result-details {
    text-align: left;
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    min-width: 140px;
    color: #666;
}

.detail-value {
    flex: 1;
}

.detail-value code {
    background: #f5f0e6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #691c32;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.modal-header {
    background: #691c32;
    color: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 25px;
}

.modal-option {
    display: block;
    width: 70%;
    padding: 15px;
    margin-bottom: 0 auto 12px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}


.modal-option:hover {
    background: #fff5e6;
    border-color: #c9a227;
}

.modal-option strong {
    display: block;
    font-size: 14px;
    color: #691c32;
    margin-bottom: 5px;
}

.modal-option small {
    font-size: 12px;
    color: #888;
}

.modal-footer {
    padding: 15px 25px 25px;
    text-align: right;
}

.modal-footer button {
    padding: 12px 16px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.modal-footer button:hover {
    background: #5a6268;
}

/* Modal Documentos - Estilo tarjeta institucional */
#modal-documentos .modal {
    max-width: 800px;
}

#modal-documentos .modal-header {
    background: #3f4547;
}

#modal-documentos .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px;
    align-items: center;   /* 🔥 centra verticalmente */
    justify-items: center; /* 🔥 centra horizontalmente */
}

#modal-documentos .modal-option {
    display: flex;
    align-items: center;     /* 🔥 centra vertical */
    justify-content: center; /* 🔥 centra horizontal */
    text-align: center;
}

#modal-documentos .modal-option {
    background: #fff;
    border: 2px solid #a08221;
    border-radius: 12px;
    padding: 65px 175px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

#modal-documentos .modal-option::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 290px;
    height: 290px;
    background: url('../../admin/img/documentossbg.svg') no-repeat center center;
    background-size: contain;
    opacity: 0.25;
    filter: sepia(1) saturate(5) hue-rotate(10deg) brightness(0.85);
    pointer-events: none;
}

#modal-documentos .modal-option strong {
    color: #3f4547;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

#modal-documentos .modal-option:hover {
    background: #1a5a4a;
    border-color: #1a5a4a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 90, 74, 0.3);
}

#modal-documentos .modal-option:hover strong {
    color: #c9a227;
}

#modal-documentos .modal-option:hover::after {
    opacity: 0.15;
    filter: brightness(5);
}

#modal-documentos .modal-footer {
    text-align: right;
    padding: 15px 30px 25px;
}

#modal-documentos .modal-footer button {
    background: #fff;
    color: #555;
    border: 2px solid #999;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 500;
}

#modal-documentos .modal-footer button:hover {
    background: #f0f0f0;
    border-color: #666;
}

/* Modal Certificados - Estilo tarjeta institucional */
#modal-certificados .modal {
    max-width: 1020px;                   /*tamano de documento del modal despues de certificado*/
}

#modal-certificados .modal-header {
    background: #3f4547;
}

#modal-certificados .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 30px;
}

#modal-certificados .modal-option {
    background: #fff;
    border: 2px solid #c9a227;
    border-radius: 12px;
    padding: 35px 145px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-certificados .modal-option::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    background: url('../../admin/img/documentossbg.svg') no-repeat center center;
    background-size: contain;
    opacity: 0.25;
    filter: sepia(1) saturate(5) hue-rotate(10deg) brightness(0.85);
    pointer-events: none;
}

#modal-certificados .modal-option strong {
    color: #3f4547;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

/* SOLO en #modal-certificados: controla el texto */
#modal-certificados .modal-option strong{
  display: block;          /* importante */
  white-space: normal;     /* permite saltos */
  line-height: 1.25;       /* ajusta altura de líneas */
  text-align: center;
  word-break: normal;
}


#modal-certificados .modal-option:hover {
    background: #1a5a4a;
    border-color: #1a5a4a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 90, 74, 0.3);
}

#modal-certificados .modal-option:hover strong {
    color: #bc955c;
}

#modal-certificados .modal-option:hover::after {
    opacity: 0.15;
    filter: brightness(5);
}

#modal-certificados .modal-footer {
    text-align: right;
    padding: 15px 30px 25px;
}

#modal-certificados .modal-footer button {
    background: #fff;
    color: #555;
    border: 2px solid #999;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 500;
}

#modal-certificados .modal-footer button:hover {
    background: #f0f0f0;
    border-color: #666;
}

/* Modal Títulos - Estilo tarjeta institucional */
#modal-titulos .modal {
    max-width: 800px;
}

#modal-titulos .modal-header {
    background: #3f4547;
}

#modal-titulos .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 30px;
}

#modal-titulos .modal-option {
    background: #fff;
    border: 2px solid #c9a227;
    border-radius: 12px;
    padding: 60px 25px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-titulos .modal-option::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background: url('../../admin/img/documentossbg.svg') no-repeat center center;
    background-size: contain;
    opacity: 0.15;
    filter: sepia(1) saturate(5) hue-rotate(10deg) brightness(0.85);
    pointer-events: none;
}

#modal-titulos .modal-option strong {
    color: #3f4547;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

#modal-titulos .modal-option:hover {
    background: #1a5a4a;
    border-color: #1a5a4a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 90, 74, 0.3);
}

#modal-titulos .modal-option:hover strong {
    color: #c9a227;
}

#modal-titulos .modal-option:hover::after {
    opacity: 0.15;
    filter: brightness(5);
}

#modal-titulos .modal-footer {
    text-align: right;
    padding: 15px 30px 25px;
}

#modal-titulos .modal-footer button {
    background: #fff;
    color: #555;
    border: 2px solid #999;
    border-radius: 8px;
    padding: 10px 28px;
    font-weight: 500;
}

#modal-titulos .modal-footer button:hover {
    background: #f0f0f0;
    border-color: #666;
}

/* =====================
   HAMBURGER & MOBILE PANEL
   ===================== */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-menu span {
    display: block;
    height: 1.5px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-panel {
    display: none;
    flex-direction: column;
    background: #4a1425;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-panel.open {
    display: flex;
    max-height: 400px;
    padding: 8px 0;
}

.mobile-panel a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Open Sans', sans-serif;
}

.mobile-panel a:last-child {
    border-bottom: none;
}

.mobile-panel a:hover {
    background: rgba(255,255,255,0.1);
}

/* =====================
   RESPONSIVE MÓVIL
   ===================== */

@media (max-width: 992px) {
    .consultas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tambien-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer .container {
        padding-left: 20px;
    }
    .gob-logo-header {
        margin-left: 20px;
    }
    .site-title {
        left: 0;
    }
    .main-nav {
        right: 0;
    }
}

@media (max-width: 768px) {
    /* Header */
    .top-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 8px 16px;
    }
    .gob-logo-header {
        margin-left: 0;
    }
    .gob-logo-header img {
        height: 36px;
    }
    .accessibility-btn {
        margin-left: 0;
        bottom: 0;
        position: static;
        transform: scale(1);
        width: 28px;
        height: 28px;
    }
    .accessibility-btn img {
        width: 28px;
        height: 28px;
        filter: brightness(0) invert(1);
    }
    .top-nav {
        position: static;
        bottom: auto;
        margin-right: 0;
        gap: 10px;
    }
    .top-nav a {
        font-size: 13px;
    }

    /* Nav secundario */
    .secondary-nav .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 6px 16px;
    }
    .site-title {
        left: 0;
        font-size: 18px;
    }
    .main-nav {
        display: none;
    }
    .main-nav a {
        font-size: 12px;
    }

    /* Slider */
    .slider-dots {
        position: relative;
        bottom: unset;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    /* Sección consultas */
    .consultas-header p {
        width: 100%;
    }
    .consultas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* Sección también */
    .tambien-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer {
        margin-top: 40px;
    }
    .footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }
    .footer-col-last {
        display: contents;
    }

    /* Modales */
    #modal-documentos .modal,
    #modal-certificados .modal,
    #modal-titulos .modal {
        max-width: 95vw;
        width: 95vw;
    }
    #modal-documentos .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }
    #modal-documentos .modal-option {
        padding: 30px 20px;
    }
    #modal-certificados .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }
    #modal-certificados .modal-option {
        padding: 25px 20px;
    }
    #modal-titulos .modal-body {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
        gap: 12px;
    }
    #modal-titulos .modal-option {
        padding: 25px 10px;
    }

    /* Página de consulta */
    .consulta-hero {
        padding: 30px 0 24px;
    }
    .consulta-title {
        font-size: 26px;
    }
    .siged-search {
        padding: 18px 16px 14px;
    }
    .siged-search-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .siged-info {
        font-size: 15px;
    }
    .siged-label {
        font-size: 16px;
    }
    .siged-value {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    /* ===== TOP HEADER ===== */
    .top-header {
        background-color: #611232; /* Color guinda */
        padding: 6px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .top-header .container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        flex: 1;
    }

    .accessibility-wrapper {
        margin: 0 auto;
    }

    #ham-top {
        margin-left: auto;
    }

    .gob-logo-header {
        flex-shrink: 0;
    }

    .gob-logo-header img {
        height: 40px;
    }

    .top-nav {
        display: none; /* Ocultar enlaces de navegación */
    }

    /* Botón de accesibilidad igual que escritorio */
    .accessibility-wrapper {
        display: inline-flex;
    }

    .accessibility-btn {
        width: 36px;
        height: 36px;
        background: transparent;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0;
        position: static;
        bottom: auto;
        transform: scale(.7);
    }

    .accessibility-btn img {
        width: 54px;
        height: 54px;
        filter: brightness(0) invert(1);
    }

    /* Hamburger menu para header principal */
    .top-header .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 22px;
        cursor: pointer;
    }

    .top-header .hamburger-menu span {
        display: block;
        height: 3px;
        background-color: white;
        border-radius: 2px;
    }

    /* ===== SECONDARY NAV (SIGED Bar) ===== */
    .secondary-nav {
        background-color: #a57f2c; /* Color dorado/mostaza */
        padding: 12px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        top: 0;
    }

    .secondary-nav .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .site-title {
        color: white;
        font-size: 20px;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .main-nav {
        display: none; /* Ocultar enlaces en móvil */
    }

    .hamburger-menu {
        display: flex;
    }

    .site-title {
        left: 0 !important;
        position: static !important;
        margin-right: auto;
    }

    /* Footer móvil */
    .footer-col-last {
        display: contents;
    }

    .footer-section h4 {
        color: #ffffff;
        font-size: 13px;
        margin-bottom: 0;
    }

    .footer-section a:not(.footer-highlight),
    .footer-section p {
        display: none;
    }

    /* Síguenos en - fila horizontal */
    .footer-section:has(.footer-social) {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .footer-section .footer-social {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .footer-section .footer-social a {
        display: inline-flex !important;
    }

    .footer-section .footer-social img {
        width: 22px;
        height: 22px;
    }

    /* Igualar tamaño de textos visibles */
    .footer-section,
    .footer-section h4,
    .footer-highlight {
        font-size: 13px;
    }
}
