/* ============================================ */
/* 0. RESET Y ESTILOS BASE GLOBALES             */
/* ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f7fa;
  font-size: 16px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #2c3e50;
}

/* ============================================ */
/* 1. TIPOGRAFÍA Y ENCABEZADOS                 */
/* ============================================ */
h1 {
  font-size: 2em;
  line-height: 1.5em;
  display: inline-block;
  position: relative;
  left: -22%;
  padding: 0.2em 1em 0.2em 22%;
  border: 3px solid #fff;
  border-left: 0;
  text-align: left;
  color: #356494;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.6);
  border-radius: 0 4px 4px 0;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.17);
  background: linear-gradient(to right, #d0dafd 0, #9fb5fe 100%);
}

/* NOTA: El selector h11 era basura y se ha eliminado.
   Si necesitas texto muy grande, usa la clase .texto-gigante */
.texto-gigante {
  font-size: 3.5em;
  line-height: 1em;
}

h2 {
  font-size: 1.5em;
  line-height: 1em;
  color: #094293;
}

h4 {
  font-size: 1em;
}

/* ============================================ */
/* 2. COMPONENTES REUTILIZABLES                */
/* ============================================ */
.jumbotron {
  background: #D7D7A8;
  color: #fff;
  padding: 5px;
}

/* Botón flotante "Volver arriba" */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0b3b5f;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s;
  font-size: 0.9rem;
  display: none;
  opacity: 0.5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.show {
  display: block;
}

.back-to-top:hover {
  opacity: 1;
  background: #3498db;
  transform: translateY(-3px);
}

/* 
  JavaScript necesario para el botón:
  window.addEventListener('scroll', function() {
    var btn = document.querySelector('.back-to-top');
    if (window.scrollY > 300) btn.classList.add('show');
    else btn.classList.remove('show');
  });
  document.querySelector('.back-to-top')?.addEventListener('click', () => window.scrollTo({top:0, behavior:'smooth'}));
*/

.badge-suplente {
  display: inline-block;
  background: #e8f4fd;
  color: #0b3b5f;
  padding: 12px 20px;
  margin: 8px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 3px solid #3498db;
}

.alert-custom {
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

/* ============================================ */
/* HEADER UNIFICADO (VERSIÓN COMPACTA MEJORADA) */
/* ============================================ */
.header-unificado {
  background: linear-gradient(135deg, #0b3b5f 0%, #1b4f72 100%);
  padding: 2px 0 0 0;           /* Antes: 5px 0 0 0 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-empresa {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 3px 10px;     /* Antes: 0 10px 5px 10px */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo-img {
  width: 75px;                  /* Antes: 65px */
  height: 75px;
  object-fit: contain;
  background: white;
  padding: 6px;                 /* Antes: 8px */
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);  /* más contrastada */
  transition: transform 0.3s ease;
}

.header-logo-img:hover {
  transform: scale(1.02);
}

.header-info {
  flex: 1;
}

.header-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1px 0;            /* Antes: 0 0 2px 0 */
  letter-spacing: -0.2px;
}

.header-descripcion {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.3;
}

/* ============================================ */
/* NAVEGACIÓN UNIFICADA (SIN ESPACIO EXTRA)    */
/* ============================================ */
.navbar-unificado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 12px 12px;
  margin-top: 0;                /* Aseguramos sin margen */
}

.navbar-header-unificado {
  display: none;
}

.navbar-brand-movil {
  display: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3px;                   /* Antes: 5px */
}

.nav-links li a {
  display: block;
  padding: 8px 16px;          /* Antes: 12px 18px */
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;            /* Antes: 1.2rem */
  transition: all 0.3s ease;
  border-radius: 30px;
}

.nav-links li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.form-busqueda-unificado {
  margin: 0;
  padding: 4px 0;             /* Antes: 8px 0 */
}

.input-busqueda {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  padding: 2px 6px;           /* Antes: 4px 8px */
  transition: all 0.3s ease;
}

.input-busqueda input {
  background: transparent;
  border: none;
  padding: 6px 10px;          /* Antes: 8px 12px */
  color: white;
  font-size: 0.8rem;
  outline: none;
  width: 160px;               /* Antes: 180px */
}

.input-busqueda button {
  background: transparent;
  border: none;
  color: white;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 50%;
}

/* 
  JavaScript para menú responsive (toggle clase .show en .navbar-collapse-unificado)
  document.querySelector('.navbar-toggle-unificado')?.addEventListener('click', () => {
    document.querySelector('.navbar-collapse-unificado')?.classList.toggle('show');
  });
*/

/* ============================================ */
/* 5. SECCIONES PRINCIPALES (sin cambios)      */
/* ============================================ */
.seccion-transparencia {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 0.6s ease-out;
}

.seccion-transparencia:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.seccion-transparencia h2 {
  color: #0b3b5f;
  border-left: 5px solid #3498db;
  padding-left: 18px;
  margin-bottom: 25px;
  font-size: 32px;
  font-weight: 600;
}

.seccion-transparencia h2 i {
  color: #3498db;
  margin-right: 12px;
}

.seccion-transparencia-escrituras {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.seccion-transparencia-escrituras:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.seccion-transparencia-escrituras h2 {
  color: #0b5f4c;
  border-left: 5px solid #2ecc71;
  padding-left: 18px;
  margin-bottom: 25px;
  font-size: 32px;
  font-weight: 600;
}

.seccion-transparencia-escrituras h2 i {
  color: #2ecc71;
  margin-right: 12px;
}

/* ============================================ */
/* 6. TARIFAS (COMPACTO)                       */
/* ============================================ */
.tarifas-grid-compacto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.tarjeta-tarifa-compacta {
  background: #f8fafc;
  border-left: 4px solid #3498db;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tarjeta-tarifa-compacta:hover {
  background: #eef2ff;
  transform: translateX(5px);
  border-left-color: #1b4f72;
}

.tarifa-nombre {
  font-size: 1rem;
  font-weight: 600;
  color: #1e2a3a;
  line-height: 1.4;
  flex: 1;
  padding-right: 12px;
}

.tarifa-precio {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b3b5f;
  background: white;
  padding: 6px 12px;
  border-radius: 30px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================ */
/* 7. TABLAS MODERNAS                          */
/* ============================================ */
.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
}

.tabla-moderna {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tabla-moderna thead tr {
  background: linear-gradient(135deg, #0b3b5f, #1b4f72);
  color: white;
}

.tabla-moderna th,
.tabla-moderna td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.tabla-moderna th {
  font-weight: 600;
  font-size: 1.2rem;
}

.tabla-moderna td {
  font-size: 1rem;
  color: #2c3e50;
}

.tabla-moderna tbody tr:hover {
  background-color: #f0f8ff;
}

.tabla-moderna a {
  color: #0b3b5f;
  text-decoration: none;
  font-weight: 500;
}

.tabla-moderna a:hover {
  color: #3498db;
  text-decoration: underline;
}

.tabla-indices,
.tabla-escrituras {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

.tabla-indices thead tr,
.tabla-escrituras thead tr {
  color: white;
}

.tabla-indices thead tr {
  background: linear-gradient(135deg, #0b3b5f, #1b4f72);
}

.tabla-escrituras thead tr {
  background: linear-gradient(135deg, #0b5f4c, #15803d);
}

.tabla-indices th,
.tabla-indices td,
.tabla-escrituras th,
.tabla-escrituras td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1rem;
}

.tabla-indices th,
.tabla-escrituras th {
  font-weight: 600;
}

.tabla-indices tbody tr:hover {
  background-color: #f0f8ff;
}

.tabla-escrituras tbody tr:hover {
  background-color: #f0fdf4;
}

.repertorio-cell {
  font-weight: 600;
  color: #0b5f4c;
}

/* ============================================ */
/* 8. UBICACIÓN                                */
/* ============================================ */
.ubicacion-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.ubicacion-info {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ubicacion-mapa {
  flex: 2;
  min-width: 300px;
}

.direccion-destacada,
.horario-destacado,
.contacto-destacado {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #f8fafc;
  padding: 18px 20px;
  border-radius: 14px;
  transition: all 0.3s ease;
  border-left: 4px solid #3498db;
}

.direccion-destacada:hover,
.horario-destacado:hover,
.contacto-destacado:hover {
  background: #eef2ff;
  transform: translateX(5px);
}

.direccion-destacada i,
.horario-destacado i,
.contacto-destacado i {
  font-size: 32px;
  color: #0b3b5f;
  margin-top: 4px;
}

.direccion-destacada h3,
.horario-destacado h3,
.contacto-destacado h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b3b5f;
  margin: 0 0 6px 0;
}

.direccion-destacada p,
.horario-destacado p,
.contacto-destacado p {
  margin: 0;
  color: #2c3e50;
  line-height: 1.5;
  font-size: 1rem;
}

/* ============================================ */
/* 9. INFORMES DE SUPERVISIÓN                  */
/* ============================================ */
.informes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.informe-card {
  display: flex;
  gap: 18px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.informe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #3498db;
}

.informe-icono {
  flex-shrink: 0;
}

.informe-icono i {
  font-size: 40px;
  color: #0b3b5f;
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.informe-contenido h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b3b5f;
  margin: 0 0 8px 0;
}

.informe-fecha {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 10px 0;
}

.informe-descripcion {
  font-size: 0.85rem;
  color: #2c3e50;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.btn-informe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0b3b5f, #1b4f72);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-informe:hover {
  background: linear-gradient(135deg, #1b4f72, #0b3b5f);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
  text-decoration: none;
}

.informe-nota {
  background: #fff8e7;
  padding: 15px 20px;
  border-radius: 12px;
  border-left: 4px solid #f39c12;
  margin-top: 10px;
}

.informe-nota p {
  margin: 0;
  font-size: 0.85rem;
  color: #2c3e50;
}

/* ============================================ */
/* 10. SECCIÓN ÍNDICES (CONSULTA)              */
/* ============================================ */
.indices-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
  background: #f8fafc;
  padding: 25px;
  border-radius: 16px;
}

.indices-imagen {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.indices-imagen:hover {
  transform: scale(1.05);
}

.formulario-indices h3 {
  font-size: 1.4rem;
  color: #0b3b5f;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
  display: inline-block;
}

.select-moderno {
  width: 100%;
  max-width: 300px;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
  font-size: 1rem;
  transition: all 0.3s;
}

.select-moderno:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.input-grupo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.input-moderno {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
}

.input-moderno:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn-buscar {
  background: linear-gradient(135deg, #0b3b5f, #1b4f72);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-buscar:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1b4f72, #0b3b5f);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resultados-wrapper h3 {
  font-size: 1.3rem;
  color: #0b3b5f;
  margin-bottom: 15px;
}

.sin-resultados {
  text-align: center !important;
  padding: 35px !important;
  color: #64748b;
  font-size: 1rem;
}

/* ============================================ */
/* 11. SECCIÓN ESCRITURAS (COLORES VERDES)     */
/* ============================================ */
.escrituras-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
  background: #f0fdf4;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #d1fae5;
}

.escrituras-imagen {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.formulario-escrituras h3 {
  font-size: 1.4rem;
  color: #0b5f4c;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #2ecc71;
  display: inline-block;
}

.select-escrituras {
  width: 100%;
  max-width: 300px;
  padding: 12px 15px;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  background: white;
  font-size: 1rem;
}

.input-grupo-escrituras {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.input-escrituras {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 1rem;
}

.btn-buscar-escrituras {
  background: linear-gradient(135deg, #0b5f4c, #15803d);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-buscar-escrituras:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #15803d, #0b5f4c);
}

/* ============================================ */
/* 12. SERVICIOS NOTARIALES Y CONSERVADOR      */
/* ============================================ */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.servicio-card {
  display: flex;
  gap: 15px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 18px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.servicio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #3498db;
}

.servicio-imagen {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.servicio-contenido h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b3b5f;
  margin: 0 0 8px 0;
}

.notaria-articulo,
.conservador-articulo {
  padding: 20px 25px;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
}

.notaria-articulo {
  background: #e8f5e9;
  border-left: 5px solid #2ecc71;
  color: #1b5e20;
}

.conservador-articulo {
  background: #e3f2fd;
  border-left: 5px solid #2196f3;
  color: #0b3b5f;
}

/* ============================================ */
/* 13. FORMULARIO CRS Y FOOTER                 */
/* ============================================ */
.formulario-crs {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 25px;
}

.formulario-crs input,
.formulario-crs select,
.formulario-crs textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 12px 15px;
  font-size: 0.95rem;
}

.btn-enviar {
  background: linear-gradient(135deg, #0b3b5f, #1b4f72);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-enviar:hover {
  transform: scale(1.05);
}

footer .jumbotron {
  background: linear-gradient(135deg, #0b3b5f, #1b4f72);
  color: white;
  margin-bottom: 0;
  padding: 30px;
}

/* ============================================ */
/* 14. UTILIDADES Y ANIMACIONES                */
/* ============================================ */
.text-muted {
  color: #6c757d;
  font-size: 0.85rem;
}

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

/* ============================================ */
/* 15. MEDIA QUERIES (RESPONSIVE)              */
/* ============================================ */
@media (min-width: 769px) {
  .navbar-collapse-unificado {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 1;
  }
}

@media (max-width: 992px) {
  .nav-links li a {
    padding: 6px 14px;
    font-size: 0.9rem;
  }
  .input-busqueda input {
    width: 130px;
  }
}

@media (max-width: 768px) {
  .header-empresa {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding-bottom: 8px;
  }
  .header-titulo {
    font-size: 1.2rem;
  }
  .header-descripcion {
    font-size: 0.75rem;
  }
  .header-logo-img {
    width: 55px;
    height: 55px;
  }
  .navbar-header-unificado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 6px 0;
  }
  .navbar-brand-movil {
    display: block;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
  }
  .navbar-toggle-unificado {
    display: block;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
  }
  .navbar-toggle-unificado .icon-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 3px 0;
  }
  .navbar-collapse-unificado {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  .navbar-collapse-unificado.show {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }
  .nav-links li a {
    padding: 10px;
    font-size: 0.9rem;
  }
  .form-busqueda-unificado {
    width: 100%;
    padding-bottom: 10px;
  }
  .input-busqueda {
    width: 100%;
  }
  .input-busqueda input {
    width: 100%;
  }
  .ubicacion-wrapper {
    flex-direction: column;
  }
  .indices-wrapper,
  .escrituras-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .input-grupo,
  .input-grupo-escrituras {
    flex-direction: column;
  }
  .btn-buscar,
  .btn-buscar-escrituras {
    width: 100%;
    justify-content: center;
  }
  .tarifas-grid-compacto {
    grid-template-columns: 1fr;
  }
  .tabla-indices th,
  .tabla-indices td,
  .tabla-escrituras th,
  .tabla-escrituras td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .seccion-transparencia h2,
  .seccion-transparencia-escrituras h2 {
    font-size: 24px;
  }
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  .servicio-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .informes-grid {
    grid-template-columns: 1fr;
  }
  .informe-card {
    flex-direction: column;
    text-align: center;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .tabla-indices th,
  .tabla-indices td,
  .tabla-escrituras th,
  .tabla-escrituras td {
    padding: 6px 8px;
    font-size: 0.7rem;
  }
  .seccion-transparencia h2,
  .seccion-transparencia-escrituras h2 {
    font-size: 20px;
  }
}