@charset "UTF-8";
:root {
  --color-corporativo: #470608;
  --header-altura: 180px;
  --espacio-hero: 100px;
  --color-footer: #3b0507;
}

body {
  line-height: 1.7;
  color: #ffffff !important;
  font-weight: 300;
  font-size: 1rem;
  background-color: var(--color-corporativo);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

::-moz-selection {
  background: #000;
  color: #fff;
}

::selection {
  background: #000;
  color: #fff;
}

a {
  -webkit-transition: 0.3s all ease;
  transition: 0.3s all ease;
  text-decoration: none;
  color: #ffffff;
}
a:hover {
  text-decoration: none;
  color: #f5dada;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
  font-weight: 300;
  color: #ffffff;
  background: none;
  font-family: "Playfair Display", serif;
}

p {
  color: #ffffff;
}

.border-2 {
  border-width: 2px;
}

.text-black {
  color: #000 !important;
}

.bg-black {
  background: #000 !important;
}

.color-black-opacity-5 {
  color: rgba(0, 0, 0, 0.5);
}

.color-white-opacity-5 {
  color: rgba(255, 255, 255, 0.5);
}

.btn.btn-outline-white {
  border-color: #fff;
  background: transparent;
  color: #fff;
}
.btn.btn-outline-white:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.line-height-1 {
  line-height: 1 !important;
}

.form-control {
  height: 55px;
  background-color: #fff !important;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.form-control:active, .form-control:focus {
  border-color: #fee2b3;
}
.form-control:hover, .form-control:active, .form-control:focus {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.site-section {
  padding: 2.5em 0;
}
@media (min-width: 768px) {
  .site-section {
    padding: 5em 0;
  }
}
.site-section.site-section-sm {
  padding: 4em 0;
}

.site-footer {
  padding: 1em 0;
  background-color: var(--color-footer) !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
@media (min-width: 768px) {
  .site-footer {
    padding: 4em 0;
  }
}
.site-footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.site-footer p, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5 {
  color: #fff;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.6);
}
.site-footer a:hover {
  color: white;
}
.site-footer ul li {
  margin-bottom: 8px;
}
.site-footer .footer-heading {
  font-size: 16px;
  color: #fff;
}

.bg-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.bg-image.overlay {
  position: relative;
}
.bg-image.overlay:after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
}
.bg-image > .container {
  position: relative;
  z-index: 1;
}

.hero {
  background-color: var(--color-corporativo) !important;
  background-image: none !important;
  opacity: 1 !important;
  -webkit-filter: none !important;
          filter: none !important;
  background-blend-mode: normal !important;
  color: #ffffff;
  padding-top: calc(var(--header-altura) + var(--espacio-hero));
  padding-bottom: 60px;
  min-height: 80vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.hero::before, .hero::after {
  background: none !important;
  opacity: 0 !important;
  content: none !important;
}

.site-navbar,
footer {
  background-color: var(--color-corporativo) !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  :root {
    --header-altura: 140px;
    --espacio-hero: 60px;
  }
  .hero {
    padding-top: calc(var(--header-altura) + var(--espacio-hero));
    padding-bottom: 50px;
  }
}
.hero-indices {
  padding-top: 60px !important; /* espacio superior moderado */
  padding-bottom: 320px !important; /* ⬆️ más espacio debajo de la tabla */
  min-height: 130vh !important; /* ⬆️ se alarga visualmente la sección */
  background-color: var(--color-corporativo) !important;
  display: block !important;
  overflow: visible !important;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
}
.hero-indices img {
  max-width: 200px !important;
  height: auto !important;
  border: 8px solid #ffffff !important;
  border-radius: 12px !important;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  margin-top: -20px !important; /* ✅ centrado óptico */
  margin-bottom: 0.5rem !important;
}
.hero-indices h2 {
  color: #fff !important;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
}
@media (max-width: 768px) {
  .hero-indices {
    padding-top: 40px !important;
    padding-bottom: 160px !important;
    min-height: auto !important; /* deja que fluya en móviles */
  }
}

/* ======================================================
   🏠 Hero principal (Inicio) — misma posición que índices
   ====================================================== */
.hero-inicio {
  padding-top: 60px !important;
  padding-bottom: 160px !important;
  background-color: var(--color-corporativo) !important;
  min-height: auto !important;
  height: auto !important;
  display: block !important;
  overflow: visible !important;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
}
.hero-inicio img {
  max-width: 200px !important;
  height: auto !important;
  border: 8px solid #ffffff !important;
  border-radius: 12px !important;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  margin-top: -20px !important; /* 🔹 ajustado desde -60px → -40px */
  margin-bottom: 1.5rem !important; /* 🔹 espacio más natural debajo */
}
.hero-inicio h1 {
  color: #fff !important;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
}
@media (max-width: 768px) {
  .hero-inicio {
    padding-top: 40px !important;
    padding-bottom: 120px !important;
  }
  .hero-inicio img {
    max-width: 320px !important;
    margin-top: -30px !important;
    margin-bottom: 0.8rem !important;
  }
}

/* ======================================================
   📘 Sección Trámites y Servicios
   ====================================================== */
.hero-tramites {
  background-color: var(--color-corporativo) !important;
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-top: 920px;
  padding-bottom: 120px; /* 🔹 deja espacio antes del footer */
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-tramites img.hero-img {
  max-width: 200px;
  height: auto;
  border: 8px solid #ffffff;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-top: -20px; /* 🔹 misma altura que en las otras páginas */
  margin-bottom: 2rem;
}
.hero-tramites .card-comentario {
  max-width: 900px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 20px 30px;
  color: #f9f9f9;
  text-align: justify;
  line-height: 1.7;
  font-size: 1.05rem;
}
.hero-tramites .card-comentario h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
}
.hero-tramites .divider {
  width: 60%;
  margin: 3rem auto;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
@media (max-width: 768px) {
  .hero-tramites {
    padding-top: 20px;
    padding-bottom: 80px;
  }
  .hero-tramites .card-comentario {
    max-width: 100%;
  }
}

/* ==========================================
   🌐 NAVBAR HQM - Notaría Humberto Quezada Moreno
   ========================================== */
.site-navbar {
  margin-bottom: 0;
  z-index: 9;
  position: absolute;
  top: 0;
  width: 100%;
  padding: 2rem 0;
  background: #ffffff;
}
@media (max-width: 991.98px) {
  .site-navbar {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 0;
    padding-right: 0;
  }
}
.site-navbar .toggle-button {
  position: absolute;
  right: 0px;
}
.site-navbar {
  /* === LOGO Y FRONTIS === */
}
.site-navbar .site-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
}
.site-navbar .site-logo .frontis-img {
  width: 800px;
  height: auto;
  border: 10px solid #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 1rem auto;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}
.site-navbar .site-logo a {
  display: inline-block;
  color: #222;
}
.site-navbar .site-logo a img {
  display: block;
  margin: 1rem auto 0 auto;
  height: 55px;
  width: auto;
  -webkit-transition: -webkit-transform 0.2s ease-in-out;
  transition: -webkit-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
}
.site-navbar .site-logo a img:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}
@media (max-width: 991.98px) {
  .site-navbar .site-logo {
    float: none;
    position: relative;
  }
}
.site-navbar {
  /* === MENÚ PRINCIPAL (desktop) === */
}
.site-navbar .site-navigation {
  text-align: center;
}
.site-navbar .site-navigation.border-bottom {
  border-bottom: 1px solid white !important;
}
.site-navbar .site-navigation .site-menu {
  margin: 1rem 0 0;
  padding: 0;
}
.site-navbar .site-navigation .site-menu > li {
  display: inline-block;
}
.site-navbar .site-navigation .site-menu > li > a {
  color: #222222;
  margin: 0 15px;
  padding: 12px 0;
  font-weight: 500;
  text-decoration: none;
  -webkit-transition: color 0.2s ease-in-out, border-bottom 0.2s ease-in-out;
  transition: color 0.2s ease-in-out, border-bottom 0.2s ease-in-out;
}
.site-navbar .site-navigation .site-menu > li > a:hover {
  color: #470608;
  border-bottom: 2px solid #470608;
}
.site-navbar .site-navigation .site-menu > li > a.active {
  color: #470608;
  font-weight: 600;
  border-bottom: 2px solid #470608;
}
.site-navbar .site-navigation .site-menu {
  /* === SUBMENÚS (desktop) === */
}
.site-navbar .site-navigation .site-menu .has-children {
  position: relative;
}
.site-navbar .site-navigation .site-menu .has-children > a {
  position: relative;
  padding-right: 20px;
}
.site-navbar .site-navigation .site-menu .has-children > a:before {
  position: absolute;
  content: "\e313";
  font-size: 16px;
  top: 50%;
  right: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-family: "icomoon";
}
.site-navbar .site-navigation .site-menu .has-children .dropdown {
  visibility: hidden;
  opacity: 0;
  top: 100%;
  position: absolute;
  text-align: left;
  border-top: 2px solid #fee2b3;
  -webkit-box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-top: 20px;
  background: #fff;
  -webkit-transition: 0.2s 0s;
  transition: 0.2s 0s;
}
.site-navbar .site-navigation .site-menu .has-children .dropdown a {
  color: #000 !important;
}
.site-navbar .site-navigation .site-menu .has-children .dropdown a.active {
  color: #fee2b3 !important;
  background: #f8f9fa;
}
.site-navbar .site-navigation .site-menu .has-children .dropdown > li {
  list-style: none;
  min-width: 200px;
}
.site-navbar .site-navigation .site-menu .has-children .dropdown > li > a {
  padding: 9px 20px;
  display: block;
}
.site-navbar .site-navigation .site-menu .has-children .dropdown > li > a:hover {
  background: #f8f9fa;
  color: #ced4da;
}
.site-navbar .site-navigation .site-menu .has-children .dropdown > li.has-children > a:before {
  content: "\e315";
  right: 20px;
}
.site-navbar .site-navigation .site-menu .has-children .dropdown > li.has-children > .dropdown,
.site-navbar .site-navigation .site-menu .has-children .dropdown > li.has-children > ul {
  left: 100%;
  top: 0;
}
.site-navbar .site-navigation .site-menu .has-children:hover, .site-navbar .site-navigation .site-menu .has-children:focus, .site-navbar .site-navigation .site-menu .has-children:active {
  cursor: pointer;
}
.site-navbar .site-navigation .site-menu .has-children:hover > .dropdown, .site-navbar .site-navigation .site-menu .has-children:focus > .dropdown, .site-navbar .site-navigation .site-menu .has-children:active > .dropdown {
  margin-top: 0px;
  visibility: visible;
  opacity: 1;
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
}

/* ==========================================
   📱 MENÚ MÓVIL HQM
   ========================================== */
.site-mobile-menu {
  width: 300px;
  position: fixed;
  right: 0;
  z-index: 2000;
  padding-top: 20px;
  background: #350606;
  color: #fff;
  height: 100vh;
  -webkit-transform: translateX(110%);
          transform: translateX(110%);
  -webkit-box-shadow: -10px 0 20px -10px rgba(0, 0, 0, 0.4);
          box-shadow: -10px 0 20px -10px rgba(0, 0, 0, 0.4);
  -webkit-transition: 0.3s all ease-in-out;
  transition: 0.3s all ease-in-out;
}
.offcanvas-menu .site-mobile-menu {
  -webkit-transform: translateX(0%);
          transform: translateX(0%);
}
.site-mobile-menu {
  /* === Encabezado del menú móvil === */
}
.site-mobile-menu .site-mobile-menu-header {
  width: 100%;
  padding: 0 20px;
}
.site-mobile-menu .site-mobile-menu-header .site-mobile-menu-close {
  float: right;
  margin-top: 8px;
}
.site-mobile-menu .site-mobile-menu-header .site-mobile-menu-close span {
  font-size: 30px;
  display: inline-block;
  padding-left: 10px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  -webkit-transition: 0.3s all ease;
  transition: 0.3s all ease;
}
.site-mobile-menu .site-mobile-menu-header .site-mobile-menu-close span:hover {
  color: #f5dada;
}
.site-mobile-menu .site-mobile-menu-header .site-mobile-menu-logo {
  float: left;
  margin-top: 10px;
}
.site-mobile-menu .site-mobile-menu-header .site-mobile-menu-logo a {
  display: inline-block;
  text-transform: uppercase;
}
.site-mobile-menu .site-mobile-menu-header .site-mobile-menu-logo a img {
  max-width: 70px;
}
.site-mobile-menu {
  /* === Cuerpo del menú móvil === */
}
.site-mobile-menu .site-mobile-menu-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding: 10px 20px 80px 20px;
  height: calc(100vh - 52px);
}
.site-mobile-menu .site-mobile-menu-body a {
  color: #fff !important;
  font-size: 1.1rem;
  padding: 12px 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}
.site-mobile-menu .site-mobile-menu-body a:hover {
  color: #f5dada !important;
}
.site-mobile-menu .site-mobile-menu-body ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.site-mobile-menu {
  /* === Flechas de submenús === */
}
.site-mobile-menu .arrow-collapse {
  cursor: pointer;
  display: inline-block;
  float: right;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 30px;
  font-size: 1.2rem;
  color: #fff;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.site-mobile-menu .arrow-collapse::before {
  content: "▾";
  display: inline-block;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.site-mobile-menu .arrow-collapse.active::before {
  -webkit-transform: rotate(-180deg);
          transform: rotate(-180deg);
}
.site-mobile-menu {
  /* === Submenús colapsables === */
}
.site-mobile-menu .collapse {
  display: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  -webkit-transition: max-height 0.35s ease, opacity 0.25s ease;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.site-mobile-menu .collapse.show {
  display: block !important;
  max-height: 600px;
  opacity: 1;
  margin-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 10px;
}
.site-mobile-menu {
  /* === Scrollbar sutil === */
}
.site-mobile-menu::-webkit-scrollbar {
  width: 6px;
}
.site-mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.site-mobile-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* === NAVBAR STICKY === */
.sticky-wrapper {
  position: relative;
  z-index: 100;
  width: 100%;
  position: absolute;
  top: 0;
}
.sticky-wrapper .site-navbar {
  -webkit-transition: 0.3s all ease;
  transition: 0.3s all ease;
  background: #ffffff;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.sticky-wrapper .site-navbar .site-logo a {
  color: #222222;
}
.sticky-wrapper .site-navbar ul li a {
  color: #222222 !important;
}
.sticky-wrapper .site-navbar ul li a:hover, .sticky-wrapper .site-navbar ul li a.active {
  color: #470608 !important;
}
.sticky-wrapper.is-sticky .site-navbar {
  background: #ffffff;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.sticky-wrapper.is-sticky .site-navbar .site-logo img {
  height: 50px;
}

.hero {
  position: relative;
  background-size: cover;
}
.hero, .hero > .container > .row {
  height: 100vh;
  min-height: 770px;
}
.hero .intro {
  position: relative;
  z-index: 4;
}
.hero .intro h1 {
  color: #000;
  font-size: 50px;
}
.hero .intro strong {
  font-weight: 900;
}
.hero .intro p {
  font-size: 16px;
}
.hero.inner-page, .hero.inner-page > .container > .row {
  height: 40vh !important;
  min-height: 200px;
}
.hero.overlay {
  position: relative;
}
.hero.overlay:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}

/* === Paginación y Breadcrumbs === */
.custom-breadcrumbs {
  padding-bottom: 40px;
}
.custom-breadcrumbs a {
  color: #000;
}
.custom-breadcrumbs strong {
  font-weight: 700;
}

.custom-pagination a, .custom-pagination span {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
}
.custom-pagination span {
  background: #efefef;
}
.custom-pagination a {
  background: #fee2b3;
  color: #fff;
}

/* === Formularios y elementos === */
.trip-form {
  border-radius: 7px;
  padding: 40px;
  background: #fff;
  position: relative;
  z-index: 3;
  -webkit-box-shadow: 0 15px 30px 0px rgba(0, 0, 0, 0.1);
          box-shadow: 0 15px 30px 0px rgba(0, 0, 0, 0.1);
}
.trip-form .form-control {
  border-color: rgba(0, 0, 0, 0.2);
  padding-left: 20px;
  padding-right: 20px;
}
.trip-form .form-control:active, .trip-form .form-control:focus {
  border-color: #000;
}
.trip-form .icon {
  position: absolute;
  right: 10px;
  color: #ccc;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 20px;
}

/* === Elementos comunes === */
.section-heading strong {
  font-weight: 700;
}

.opa-7 {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* === HERO PERSONALIZADOS === */
/* INDEX */
.hero-inicio {
  height: 70vh !important;
  min-height: 500px !important;
  padding-top: 8rem; /* ✅ Baja la imagen para no quedar pegada al header */
  padding-bottom: 4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
}
.hero-inicio img {
  max-width: 980px;
  width: 100%;
  height: auto;
  border: 8px solid #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 2rem;
}
.hero-inicio h1, .hero-inicio h2, .hero-inicio h3, .hero-inicio p {
  color: #fff;
}
@media (max-width: 1199.98px) {
  .hero-inicio {
    height: 65vh !important;
    padding-top: 6rem;
  }
}
@media (max-width: 991.98px) {
  .hero-inicio {
    height: 60vh !important;
    padding-top: 4rem;
  }
}
@media (max-width: 767.98px) {
  .hero-inicio {
    height: auto !important;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
  .hero-inicio img {
    max-width: 90%;
    border-width: 5px;
  }
  .hero-inicio h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  .hero-inicio h2 {
    font-size: 1.2rem;
  }
  .hero-inicio h3 {
    font-size: 1rem;
  }
  .hero-inicio p {
    font-size: 0.9rem;
  }
}

/* NOSOTROS */
.hero-nosotros {
  padding-top: 8rem !important; /* ✅ Igual altura que index */
}

/* === Estilos para tablas y contenedores scrollables === */
.tabla-container {
  height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 20px;
  margin-bottom: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 15px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}
.tabla-container::-webkit-scrollbar {
  width: 8px;
}
.tabla-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.tabla-container table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
  color: #fff;
  font-size: 14px;
}
.tabla-container table th, .tabla-container table td {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 8px;
  text-align: center;
  word-break: break-all;
}
.tabla-container table th {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}
.tabla-container table td a {
  color: #9cd4ff;
  text-decoration: none;
}
.tabla-container table td a:hover {
  text-decoration: underline;
}

.hero-indices {
  overflow: hidden;
}

/* ============================================
   Footer institucional compacto
   Notaría Humberto Quezada Moreno
   ============================================ */
.site-footer {
  padding: 2.5em 0; /* 🔹 antes 4em */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #3b0507; /* 🔹 color institucional */
}
@media (min-width: 768px) {
  .site-footer {
    padding: 4em 0; /* 🔹 antes 8em */
  }
}
.site-footer {
  /* Línea superior tenue */
}
.site-footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.site-footer {
  /* Texto y títulos */
}
.site-footer p {
  color: #fff;
  font-size: 0.95rem;
}
.site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5 {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-weight: 600;
}
.site-footer {
  /* Enlaces */
}
.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}
.site-footer a:hover {
  color: white;
  text-decoration: none;
}
.site-footer {
  /* Listas del footer */
}
.site-footer ul {
  padding-left: 0;
  list-style: none;
}
.site-footer ul li {
  margin-bottom: 8px;
}
.site-footer {
  /* Encabezado de secciones del footer */
}
.site-footer .footer-heading {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.site-footer {
  /* Derechos reservados / Pie inferior */
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* === Ajuste móvil === */
@media (max-width: 768px) {
  .site-footer {
    padding: 2em 0; /* 🔹 más compacto aún */
    text-align: center;
  }
  .site-footer .footer-heading {
    margin-top: 1.5rem;
  }
}
/* ======================================================
   🔧 Ajuste de separación automática respecto al contenido
   ====================================================== */
body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100vh; /* asegura que el cuerpo ocupe toda la altura */
}

.site-wrap {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto; /* permite que el contenido crezca y empuje el footer */
}

.site-footer {
  -ms-flex-negative: 0;
      flex-shrink: 0; /* mantiene el footer siempre visible al final */
}

/* === Sección Sitios de Interés === */
.sitios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 40px;
}

.sitio-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.sitio-item:hover {
  background: rgba(255, 255, 255, 0.25);
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
}
.sitio-item img {
  max-height: 80px;
  max-width: 160px;
  margin-bottom: 15px;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
          filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.sitio-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f9f9f9;
  line-height: 1.4;
}

/* === Grilla uniforme de sitios === */
.sitios-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  justify-items: center;
  margin-top: 40px;
}

.sitio-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  height: 200px; /* 🔹 altura uniforme */
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.sitio-link:hover {
  background: rgba(255, 255, 255, 0.25);
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
}

/* === Contenedor del logo === */
.sitio-logo {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.08);
  width: 100%;
}

.sitio-logo img {
  max-height: 70px;
  max-width: 140px;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
          filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* === Texto debajo === */
.sitio-texto {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #f9f9f9;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .sitio-link {
    height: 180px;
  }
  .sitio-logo img {
    max-height: 60px;
  }
}