
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700;900&display=swap');

:root {
  --bs-primary: #04030F;
  --bs-primary-rgb: 151, 14, 72;
  --primary-light: #BC2259;
  --accent: #C2995C;
  --accent-rgb: 194, 153, 92;
  --dark: #2D2829;
  --bs-body-color: #494D55;
  --card-border: #C4C4C4;
  --subtitle: #CEB182;
    --Guilda-color: #970E48;

   /* Degradado Guilda Color.  accent */
  --Guildade-color: #BC2251;

  /* Color personalizado */
  --custom-color: #E3307C;

  /* Titulo Color. */
  --Titulo-color: #04030F;

  /* Texto Color. Contraste */
  --Texto-color: #E2DED7;

  /* Fondo por Default Color. */
  --background-color: #EFEDEA;

  /* Letra por Default Color. */
  --default-color: #04030F;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, a, span, div, table, th, td, label {
  font-family: 'Lato', sans-serif;
}

body {
  padding-top: 4rem;
}

/* NAVBAR */
.navbar-gobyuc {
  background: #fff;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,.38);
  min-height: 4rem;
  z-index: 1030;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  border: none;
  max-width: 100%;
  overflow: hidden;
}

.navbar-gobyuc .navbar-brand img {
  max-height: 5.5rem;
}

.navbar-gobyuc .navbar-toggler {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  border: none;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.offcanvas-nav .nav-link {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

/* SECCIONES - Lato Regular */
section, .section-title, p, .card-body, .table {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
}

.section-title {
  font-weight: 700;
  color: #C2995C;
}

.navbar-gobyuc .navbar-toggler:focus {
  box-shadow: none;
}

.toggler-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggler-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bs-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-gobyuc .navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.navbar-gobyuc .navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
  opacity: 0;
}
.navbar-gobyuc .navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.toggler-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bs-primary);

  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Offcanvas menu */
.offcanvas-gobyuc {
  border: none;
  width: 380px;
  max-width: 85vw;
}

.offcanvas-gobyuc .nav-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.offcanvas-gobyuc .nav-link:hover,
.offcanvas-gobyuc .nav-link.active {
  color: var(--bs-primary);
  background: #f5f5f5;
}

.offcanvas-nav .nav-item-dropdown .sub-menu {
  display: none;
}

.offcanvas-nav .nav-item-dropdown.is-open .sub-menu {
  display: block;
}

.offcanvas-nav .nav-item-dropdown .arrow {
  float: right;
  transition: transform 0.3s;
}

.offcanvas-nav .nav-item-dropdown.is-open .arrow {
  transform: rotate(180deg);
}

.offcanvas-nav .sub-link {
  display: block;
  font-size: 14px;
  padding: 0.6rem 2rem 0.6rem 2.5rem;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.offcanvas-nav .sub-link:hover {
  background: #f5f5f5;
  color: var(--bs-primary);
}

.pagina-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.pagina-title {
  padding: px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.pagina-title  h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--Guilda-color);
}


.pagina-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 20px 0;
}

.pagina-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.pagina-title nav ol li+li {
  padding-left: 10px;
}

.pagina-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/* HERO */
.hero-section {
  min-height: 75vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-carousel .carousel-item {
  height: 75vh;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel .carousel-item .overlay {
  position: absolute;
  inset: 0;
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  opacity: 1;
}

.hero-carousel .carousel-indicators button.active {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel .carousel-control-prev { left: 20px; }
.hero-carousel .carousel-control-next { right: 20px; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { z-index: 15; }
.hero-carousel .carousel-indicators { z-index: 15; }

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: var(--accent);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  filter: none;
  width: 20px;
  height: 20px;
}

.hero-carousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C2995C'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.hero-carousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C2995C'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.hero-body {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  width: 100%;
}

.hero-body h1 {
  font-size: 3rem;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-body p {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
}

/* SECTIONS */
.section-title {
  font-size: 1.50rem;
  font-weight: 700;
  color: var(--subtitle);
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.section-subtitle {
  color: var(--bs-body-color);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.bg-alt {
  background-color: #f5f5f5;
}

/* TABLA MÉTODOS DE REFERENCIA */
.metodos-titulo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2D2829;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #7b2445;
  display: inline-block;
}

.tabla-metodos {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  font-family: 'Lato', sans-serif;
  margin-bottom: 20px;
}

.tabla-metodos thead {
  background: #EEF2F5;
  color: #2D2829;
}

.tabla-metodos thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-top: 1px solid #ddd;
}

.tabla-metodos tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.tabla-metodos tbody tr:last-child {
  border-bottom: none;
}

.tabla-metodos tbody tr:hover {
  background: #faf8fc;
}

.tabla-metodos tbody td {
  padding: 12px 18px;
  font-size: 0.92rem;
  color: #444;
  border-top: 1px solid #ddd;
}

.tabla-metodos tbody td strong {
  color: #2D2829;
  font-weight: 700;
}

.tabla-metodos tbody tr:nth-child(even) {
  background: #fcfcfc;
}

.tabla-metodos tbody tr:nth-child(even):hover {
  background: #faf8fc;
}

@media (max-width: 768px) {
  .tabla-metodos thead th {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .tabla-metodos tbody td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* SEÑALETICA PERSONALIZADA */
.senaletica-custom {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  padding: 12px 18px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Lato', sans-serif;
}

.senaletica-titulo {
  font-size: 18px;
  font-weight: 700;
  color: #2D2829;
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.senaletica-estados {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  font-family: 'Lato', sans-serif;
}

.senaletica-estado {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #2D2829;
  font-family: 'Lato', sans-serif;
}

.senaletica-barra {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  margin-right: 6px;
}

@media (max-width: 768px) {
  .senaletica-custom {
    width: 92%;
    max-width: none;
    padding: 10px 12px;
    font-family: 'Lato', sans-serif;
  }
  .senaletica-titulo {
    font-size: 13px;
    margin-bottom: 6px;
    font-family: 'Lato', sans-serif;
  }
  .senaletica-estados {
    gap: 6px 10px;
    justify-content: space-between;
    flex-wrap: nowrap;
    font-family: 'Lato', sans-serif;
  }
  .senaletica-estado {
    font-size: 9px;
    font-family: 'Lato', sans-serif;
  }
  .senaletica-barra {
    width: 11px;
    height: 11px;
    margin-right: 4px;
  }
}



/* BUTTONS */
.btn-gold {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.4s ease;
}

.btn-gold:hover {
  background: #B16A00;
  border-color: #B16A00;
  color: #fff;
}

.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.4s ease;
}

.btn-outline-gold:hover {
  background: var(--accent);
  color: #fff;
}

.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}



/* GALLERY SECTION */
.gallery-section {
  background: #f5f0eb;
  padding: 5rem 0;
}

.gallery-carousel {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 1rem;
}

.gallery-carousel .carousel-item img {
  width: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-carousel .carousel-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.gallery-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  opacity: 1;
}

.gallery-carousel .carousel-indicators button.active {
  background: var(--accent);
}

.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next {
  width: 36px;
  height: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 1;
}

.gallery-carousel .carousel-control-prev { left: -23px; }
.gallery-carousel .carousel-control-next { right: -23px; }

.gallery-carousel .carousel-control-prev:hover,
.gallery-carousel .carousel-control-next:hover {
  background: var(--accent);
}

.gallery-carousel .carousel-control-prev-icon {
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C2995C'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.gallery-carousel .carousel-control-next-icon {
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C2995C'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.gallery-carousel .carousel-control-prev:hover .carousel-control-prev-icon {
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.gallery-carousel .carousel-control-next:hover .carousel-control-next-icon {
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
  .gallery-carousel .carousel-item img { height: 150px; }
  .gallery-carousel .carousel-control-prev { left: 5px; }
  .gallery-carousel .carousel-control-next { right: 5px; }
}


/* BANNER CAIHLY */
.banner-caihly {
  position: relative;
  height: 340px;
  overflow: hidden;
  margin-top: 4rem;
}

.banner-caihly img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-caihly .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(151,14,72,0.8) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

/* SECCION CARDS */
.seccion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 2px 2px 20px 0 rgba(0,0,0,.05);
}

.seccion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  color: var(--bs-primary);
}

.seccion-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.seccion-icon svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
}

.seccion-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

/* FOOTER */
.footer-gobyuc {
  background: #970E48;
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.footer-gobyuc .navbar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
}

.footer-gobyuc .navbar-brand a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-gobyuc .navbar-brand img {
  max-height: 3.5rem;
  padding: 6px;
  border-radius: 6px;
}

.footer-gobyuc a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-gobyuc .list-unstyled li {
  margin-bottom: 0.5rem;
}

.footer-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .footer-gobyuc {
    text-align: center;
  }
  .footer-gobyuc .navbar-brand {
    justify-content: center;
  }
  .footer-gobyuc .list-unstyled li {
    margin-bottom: 0.5rem;
  }
  .footer-gobyuc .col-lg-4,
  .footer-gobyuc .col-6 {
    text-align: center;
  }
  .footer-bottom {
    text-align: center;
  }
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-icon:hover {
  background: var(--accent) !important;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* NEWS PAGE */
.news-hero-page {
  position: relative;
  min-height: 340px;
  margin-top: 4rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-hero-page__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
}

.news-hero-page__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 980px;
}

.news-hero-page__title {
  color: #fff;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.15;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
  margin-bottom: 1rem;
}

.news-hero-page__chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.news-hero-page .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  line-height: 1;
}

.news-hero-page .chip--date {
  background: none;
  color: #fff;
}

.news-hero-page .chip--tag {
  background: hsla(0,0%,100%,0.92);
  color: var(--dark);
}

.news-body-page {
  background: #fff;
  padding: 3rem 0;
}

.news-body-page__inner {
  max-width: 860px;
  margin: 0 auto;
}

.news-body-page__paragraph {
  color: var(--bs-body-color);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.75rem;
}

.news-body-page__figure {
  margin: 2rem auto;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #eef2f5;
}

.news-body-page__figure img {
  width: 100%;
  display: block;
}

.news-body-page__caption {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #eef2f5;
  font-size: 0.8rem;
  color: #8b8f96;
  text-align: center;
}

.news-body-page__caption-sep {
  color: #b7bcc3;
}

.news-related-page {
  background: #fff;
  padding: 0 0 4rem;
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  .news-hero-page { min-height: 300px; }
  .news-hero-page__title { font-size: 1.5rem; }
  .news-body-page__paragraph { font-size: 0.95rem; }
  .news-body-page__inner { padding: 0 0.5rem; }
}

/* SCROLL TO TOP */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E2DED7;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .hero-body h1 { font-size: 2rem; }
  .hero-body p { font-size: 1rem; }
  .hero-section, .hero-carousel .carousel-item { min-height: 60vh; }
}

@media (max-width: 576px) {
  .hero-body h1 { font-size: 1.5rem; }
  .navbar-gobyuc .navbar-brand img { max-height: 2.2rem; }
  .navbar-gobyuc .navbar-brand { gap: 0.5rem; }
  .navbar-gobyuc .navbar-brand a img { max-height: 2.2rem; }
}


    .subtitle {
      color: #2D2829;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #d9d9d9;
      position: relative;
      padding-right: 40px;
      line-height: 1.2;
      font-weight: 700;
    }
    ul.ul-accordion {
      padding-left: 0;
      margin-bottom: 3rem !important;
    }
    ul.ul-accordion > li + li {
      padding-top: 1.5rem;
    }
    .collapse-body {
      padding-bottom: 1.5rem;
    }
    .item {
      padding-top: 1rem;
    }
    .item-inner {
      padding-left: 30px;
    }
    .n1 {
      font-weight: 700;
      color: #287F55;
    }
    .n2 {
      font-weight: 600;
      color: #73308a;
    }
    .n3 {
      font-weight: 600;
    }
    .lg-toggle {
      position: absolute;
      right: 0;
      bottom: 0.5rem;
      font-size: 18px;
      color: #C2995C;
      background-color: #E2DED7;
      padding: 6px;
      border-radius: 50%;
      cursor: pointer;
    }
    .n1 .sm-toggle, .n2 .sm-toggle {
      margin-left: 0.25rem;
      font-size: 14px;
      padding: 3px;
      border-radius: 50%;
      cursor: pointer;
      vertical-align: baseline !important;
      font-weight: 600 !important;
    }
    .n1 .sm-toggle {
      color: #fff;
      background-color: #6CAE8C;
    }
    .n2 .sm-toggle {
      color: #73308a;
      background-color: #e8cbf1;
    }
    /* BANNER CAIHLY */
.banner-caihly {
  position: relative;
  height: 340px;
  overflow: hidden;
  margin-top: 4rem;
}

.banner-caihly img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-caihly .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(151,14,72,0.8) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

/* SECCION CARDS */
.seccion-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 2px 2px 20px 0 rgba(0,0,0,.05);
}

.seccion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  color: var(--bs-primary);
}

.seccion-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.seccion-icon svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
}

.seccion-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.mj-section-title {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--bs-primary);
      margin: 2rem 0 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--accent);
    }
    .mj-item {
      padding: 0.75rem 1rem;
      transition: background 0.2s;
    }
    .mj-item:nth-child(odd) {
      background: #f9f9f9;
    }
    .mj-item a {
      font-weight: 600;
      color: var(--dark);
      text-decoration: none;
    }
    .mj-item a:hover {
      color: var(--bs-primary);
    }
    .mj-item a img {
      margin-right: 0.5rem;
      vertical-align: middle;
    }
    .mj-meta {
      font-size: 0.82rem;
      color: #6c757d;
      margin-top: 0.25rem;
    }
    .pagination-custom {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 2rem;
    }
    .pagination-custom a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #f0f0f0;
      color: var(--dark);
      text-decoration: none;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.2s;
    }
    .pagination-custom a:hover,
    .pagination-custom a.active {
      background: var(--bs-primary);
      color: #fff;
    }


.contaminante-icon { width: 80px; height: 80px; object-fit: contain; }

.card-meteo { background:white; border-radius:12px; padding:18px; box-shadow:0 2px 12px rgba(0,0,0,.06); height:100%; }
.card-meteo .val { font-size:1.8rem; font-weight:700; color:#17a2b8; }
.card-meteo .nom { font-size:.85rem; color:#666; font-weight:500; }
.card-clima { background:white; border-radius:14px; padding:20px; box-shadow:0 2px 12px rgba(0,0,0,.06); display:flex; align-items:center; height:100%; }
.card-clima i { font-size:2.2rem; margin-right:18px; }
.card-clima .val { font-size:1.6rem; font-weight:700; }
.card-clima .unidad { font-size:1rem; font-weight:600; color:#666; }
.card-clima .nom { font-size:.85rem; color:#666; }
.riesgo-item { background:white; border-radius:10px; margin-bottom:8px; box-shadow:0 1px 6px rgba(0,0,0,.06); overflow:hidden; }
.riesgo-header { padding:14px 18px; cursor:pointer; font-weight:700; display:flex; justify-content:space-between; align-items:center; font-size:.95rem; }
.riesgo-header:after { content:'+'; font-size:1.3rem; font-weight:300; color:#999; }
.riesgo-header.open:after { content:'-'; }
.riesgo-body { padding:0 18px 18px; display:none; font-size:.88rem; color:#555; line-height:1.6; }
.riesgo-body.open { display:block; }

.card-cte { background:white; border-radius:12px; padding:15px; text-align:center; box-shadow:0 2px 10px rgba(0,0,0,.06); height:100%; }
.card-cte .val { font-size:1.8rem; font-weight:800; }
.card-cte .nom { font-weight:600; font-size:.9rem; color:#333; border-bottom:2px solid #eee; padding-bottom:8px; margin-bottom:10px; }
.card-cte .cat { font-size:.85rem; font-weight:600; }
.container-main { padding: 30px 0; }
.card-box { background: white; border-radius: 14px; padding: 25px; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 20px; }
h4 { color: #970E48; font-weight: 700; margin-bottom: 20px; }
.card-pol { background: white; border-radius: 12px; padding: 18px 12px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.06); height: 100%; transition: transform .2s; }
.card-pol:hover { transform: translateY(-3px); }
.card-pol .val { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.card-pol .nom { font-weight: 700; font-size: .95rem; color: #333; border-bottom: 2px solid #eee; padding-bottom: 8px; margin-bottom: 10px; }
.card-pol .cat { font-weight: 600; font-size: .85rem; }
.card-clima { background: white; border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.06); display: flex; align-items: center; height: 100%; }
.card-clima i { font-size: 2rem; margin-right: 15px; }
.card-clima .val { font-size: 1.3rem; font-weight: 700; }
.card-clima .nom { font-size: .8rem; color: #666; }

/* PERSONAL RESPONSABLE */
.personal-responsable {
    background: #f5f4f3;
    padding: 25px 18px 45px;
    font-family: 'Lato', sans-serif;
}

.personal-responsable h2 {
    text-align: center;
    color: #7b2445;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
}

.contenedor-personal {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.tarjeta-personal {
    background: #e5e9ed;
    border-radius: 15px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    width: 350px;
    min-height: 80px;
    box-sizing: border-box;
}

.icono-contacto {
    color: #e73d7c;
    font-size: 28px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.icono-contacto i {
    font-size: 24px;
}

.informacion-personal {
    flex: 1;
}

.informacion-personal h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #50555b;
}

.informacion-personal p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #555b63;
}

.informacion-personal a {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #3973b8;
    text-decoration: underline;
}

.telefono {
    font-size: 12px;
}

/* CONTAMINANTES - VERSION MOVIL */
.contenedor-contaminantes {
    background: #f5f4f3;
    padding: 20px 16px;
    font-family: 'Lato', sans-serif;
}

.imagen-contaminantes {
    text-align: center;
    margin-bottom: 20px;
}

.imagen-contaminantes img {
    max-height: 150px;
    width: auto;
}

.contenido-contaminantes {
    margin-bottom: 20px;
}

.contenido-contaminantes h2 {
    color: #CEB182;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
}

.contenido-contaminantes p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.tarjeta-contaminante {
    background: #e5e9ed;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.tarjeta-contaminante h3 {
    color: #7b2445;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

#contaminantesCarouselMovil {
    position: relative;
    padding: 0 25px;
}

#contaminantesCarouselMovil .carousel-control-prev,
#contaminantesCarouselMovil .carousel-control-next {
    width: 28px;
    height: 28px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(123, 36, 69, 0.8);
    border-radius: 50%;
    opacity: 1;
}

#contaminantesCarouselMovil .carousel-control-prev {
    left: 0;
}

#contaminantesCarouselMovil .carousel-control-next {
    right: 0;
}

#contaminantesCarouselMovil .carousel-control-prev:hover,
#contaminantesCarouselMovil .carousel-control-next:hover {
    background: rgba(123, 36, 69, 1);
}

#contaminantesCarouselMovil .carousel-indicators {
    margin-bottom: 0;
}

#contaminantesCarouselMovil .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
}

#contaminantesCarouselMovil .carousel-indicators button.active {
    background-color: #7b2445;
}

.icono-contaminante img {
    max-height: 200px;
    width: auto;
}

.descripcion-contaminante {
    text-align: left;
}

.descripcion-contaminante p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* GALERÍA MÓVIL - BOTONES ENCIMA DE IMAGEN */
.gallery-carousel-movil {
    position: relative;
    padding: 0 35px;
}

.gallery-carousel-movil .carousel-control-prev,
.gallery-carousel-movil .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background:  var(--accent);
    border-radius: 50%;
    opacity: 1;
}

.gallery-carousel-movil .carousel-control-prev {
    left: 0;
}

.gallery-carousel-movil .carousel-control-next {
    right: 0;
}

.gallery-carousel-movil .carousel-control-prev:hover,
.gallery-carousel-movil .carousel-control-next:hover {
    background:  var(--accent);
}

.gallery-carousel-movil .carousel-indicators {
    margin-bottom: -25px;

}

.gallery-carousel-movil .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: var(--accent);
    opacity: 0.5;
    border: none;
    transition: opacity 0.3s, background-color 0.3s;
}

.gallery-carousel-movil .carousel-indicators button.active {
    opacity: 1;
}

/* GALERÍA DESKTOP - BOTONES AL BORDE */
.gallery-carousel {
    padding: 0 50px;
}

.gallery-carousel .carousel-control-prev {
    left: 0;
}

.gallery-carousel .carousel-control-next {
    right: 0;
}

/* GLOSARIO */
.glosario-subtitulo {
    color: #7b2445;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e9ed;
}

.glosario-item {
    margin-bottom: 15px;
}

.glosario-item strong {
    color: #333;
    font-size: 14px;
}

.glosario-item .text-muted {
    font-size: 12px;
}

.glosario-item p {
    font-size: 13px;
    color: #555;
    margin: 5px 0 0;
    line-height: 1.5;
}

.glosario-item .badge-calidad {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* RIESGOS - VERSION MOVIL */
.normas-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.normas-header {
    padding: 14px 18px;
    font-weight: 700;
    background: white;
}

.normas-icon {
    color: #999;
    transition: transform 0.3s;
    font-size: 14px;
}

.normas-body.open + .normas-header .normas-icon,
.normas-header .normas-icon.rotate {
    transform: rotate(180deg);
}

.normas-body {
    padding: 0 18px 18px;
    display: none;
    font-size: .88rem;
    color: #555;
    line-height: 1.6;
}

.normas-body.open {
    display: block;
}

.contenedor-riesgos-movil {
    background: #f5f4f3;
    padding: 20px 16px;
    border-radius: 15px;
}

.contenedor-riesgos-movil h2 {
    text-align: center;
    color: #7b2445;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contenedor-riesgos-movil h2 i {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

#riesgosCarouselMovil {
    position: relative;
    padding: 0 25px;
}

#riesgosCarouselMovil .carousel-control-prev,
#riesgosCarouselMovil .carousel-control-next {
    width: 28px;
    height: 28px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(123, 36, 69, 0.8);
    border-radius: 50%;
    opacity: 1;
}

#riesgosCarouselMovil .carousel-control-prev {
    left: 0;
}

#riesgosCarouselMovil .carousel-control-next {
    right: 0;
}

#riesgosCarouselMovil .carousel-control-prev:hover,
#riesgosCarouselMovil .carousel-control-next:hover {
    background: rgba(123, 36, 69, 1);
}

#contaminantesCarouselMovil .carousel-indicators {
    margin-bottom: 0;
}

#contaminantesCarouselMovil .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 4px;
    opacity: 0.5;
    transition: opacity 0.3s, background-color 0.3s;
}

#contaminantesCarouselMovil .carousel-indicators button.active {
    background-color: #7b2445;
    opacity: 1;
}

.tarjeta-riesgo {
    background: #e5e9ed;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.riesgo-header-movil {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: white;
}

.riesgo-header-movil span {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.riesgo-contenido {
    text-align: left;
}

.riesgo-contenido p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* BANNER SUPERIOR INICIO */
.banner-container {
    background: #f5f4f3;
    border-radius: 12px;

}

.banner-title .page-title {
    font-size: 36px;
    color: #2D2829;
    margin-top: 0;
    padding-top: 0;
}

.banner-title .color-primary {
    color: #BC2251;
    font-weight: 700;
}

.banner-info p {
    font-size: 18px;
    color: #2D2829;
    text-align: center;
}

.banner-time p:first-child {
    font-size: 28px;
    color: #BC2251;
}

.banner-time p:last-child {
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .banner-container {
        text-align: center;
        padding: 20px 15px;
    }
    .banner-container .col-md-12 {
        justify-content: center !important;
        text-align: center;
    }
    .banner-title .page-title {
        font-size: 30px;
        margin-bottom: 10px;
    }
    .banner-info p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .banner-time p:first-child {
        font-size: 24px;
    }
    .banner-time p:last-child {
        font-size: 13px;
    }
}