:root {
  /* Paleta Oficial del Manual de Marca */
  --vzla-amarillo: #ffc907;
  --vzla-azul: #273376;
  --vzla-rojo: #273376;
  --bs-yellow: #ffc907;
  --vzla-neutral-bg: #f4f5f7;
}

@font-face {
  font-family: "Georama";
  src:
    url("../fonts/georama/Georama.woff2") format("woff2"),
    url("../fonts/georama/Georama.woff") format("woff"),
    url("../fonts/georama/Georama.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Georama", Arial, sans-serif;
  background-color: #ffffff;
  color: #212529;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* 4.2 Jerarquía de Texto Oficial */
.caption-text {
  font-size: 8pt;
  line-height: 10pt;
  font-weight: 500;
}

.contenido-text {
  font-size: 14pt;
  line-height: 18pt;
  font-weight: 400;
}

.subtitulos-text {
  font-size: 18pt;
  line-height: 21pt;
  font-weight: 500;
}

.titulos-text {
  font-size: 28pt;
  line-height: 28pt;
  font-weight: 700;
}

.grandes-titulares {
  font-size: 38pt;
  line-height: 38pt;
  font-weight: 700;
}

.titulos-marketing {
  font-size: 72pt;
  line-height: 62pt;
  font-weight: 700;
}

/* Componentes del Header Institucional (Sección 9.1) */
.cintillo-gobierno {
  background: linear-gradient(
    90deg,
    var(--vzla-amarillo) 0%,
    var(--vzla-amarillo) 33%,
    var(--vzla-azul) 33%,
    var(--vzla-azul) 66%,
    var(--vzla-rojo) 66%,
    var(--vzla-rojo) 100%
  );
  height: 6px;
  width: 100%;
}

.header-institucional {
  border-bottom: 1px solid #e0e0e0;
  background-color: #ffffff;
}

.header-institucional .row {
  align-items: center;
}

.header-institucional .col-md-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

.logo-principal {
  display: block;
  width: 100%;
  height: clamp(56px, 6vw, 88px);
  min-height: 56px;
  max-height: 88px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.navbar-custom {
  background-color: var(--vzla-azul);
}

.navbar-custom .nav-link {
  color: #ffffff !important;
  font-size: 14pt;
  font-weight: 500;
  padding: 0.55rem 0.95rem !important;
  transition: background-color 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  border: none;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

.dropdown-item {
  font-size: 14pt;
  color: #333;
  padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
  background-color: var(--vzla-neutral-bg);
  color: var(--vzla-rojo);
}

/* Carrusel / Imágenes de Transición */
.carousel-custom {
  background-color: var(--vzla-neutral-bg);
  width: 100%;
  max-width: 100%;
}

.modal-recaudacion .modal-content {
  background: transparent;
  box-shadow: none;
  max-width: 90%;
  margin: auto;
}

.modal-recaudacion .modal-dialog {
  max-width: 720px;
}

.modal-recaudacion .modal-body {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
}

.modal-recaudacion .btn-close {
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 1;
  padding: 0.7rem;
  margin: 0.5rem 0.5rem 0 0;
}

.modal-recaudacion img {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-custom .carousel-inner {
  width: 100%;
  aspect-ratio: 1422 / 458;
}

.carousel-item {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* contenedor de carrusel */
.carousel-caption-custom {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  max-width: 900px;
  width: min(78%, 900px);
  background: rgba(8, 28, 74, 0.82);
  padding: 1.6rem 2rem;
  border-radius: 0;
  border: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  font-family: "Georama", Arial, sans-serif;
}

.carousel-caption-custom h2,
.carousel-caption-custom p {
  color: #ffffff;
}

.carousel-caption-custom h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.15rem);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.carousel-caption-custom p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.carousel-caption-custom p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   AJUSTES RESPONSIVE DEL CARRUSEL
   ========================================================================== */

@media (max-width: 992px) {
  .carousel-custom .carousel-inner {
    aspect-ratio: 1422 / 458;
  }

  .carousel-caption-custom {
    left: 1.5rem;
    bottom: 1.5rem;
    max-width: 520px;
    width: min(85%, 520px);
    padding: 1.1rem 1.3rem;
  }

  .carousel-caption-custom h2 {
    font-size: 1.55rem;
  }

  .carousel-caption-custom p {
    font-size: 0.92rem;
  }
}

@media (max-width: 768px) {
  .carousel-custom .carousel-inner {
    aspect-ratio: 1422 / 458;
  }

  .carousel-item {
    padding: 0;
  }

  .carousel-caption-custom {
    position: relative;
    margin: 1rem auto;
    width: calc(100% - 2rem);
    max-width: none;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(13, 45, 112, 0.96);
  }

  .carousel-caption-custom h2 {
    font-size: 1.4rem;
  }

  .carousel-caption-custom p {
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .carousel-caption-custom {
    left: 1.5rem;
    bottom: 1.5rem;
    max-width: 360px;
    width: min(80%, 360px);
    padding: 1rem 1.1rem;
  }

  .carousel-caption-custom h2 {
    font-size: 1.55rem;
  }

  .carousel-caption-custom p {
    font-size: 0.92rem;
  }
}

@media (max-width: 768px) {
  .carousel-caption-custom {
    position: absolute;
    margin: 0;
    width: 100%;
    max-width: none;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.55rem 2.5rem 0.65rem 1rem;
    border-radius: 0;
    background: rgba(13, 45, 112, 0.96);
  }

  .carousel-caption-custom h2 {
    font-size: 1rem;
    line-height: 1.05;
    margin-bottom: 0.25rem;
  }

  .carousel-caption-custom p {
    font-size: 0.68rem;
    line-height: 1.15;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .seccion-accesos {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* --- SECCIÓN DE ACCESOS SIMÉTRICA Y UNIFORME --- */
.seccion-accesos {
  background-color: #f8f9fa !important;
}

/* Tarjeta Base Uniforme */
.tarjeta-acceso-uniforme {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  text-decoration: none !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Título de las tarjetas - Tamaño estandarizado */
.tarjeta-acceso-uniforme .card-titulo {
  font-size: 14pt !important;
  color: #212529;
  letter-spacing: 0.03em;
}

/* Estilos de los iconos en bloque */
.tarjeta-acceso-uniforme .icono-bloque {
  font-size: 1rem;
  line-height: 1;
}

.icono-local {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  margin: 0 0 1rem 0;
  vertical-align: middle;
  object-fit: contain;
  filter: none;
}

.card-mision-pilar .icono-local {
  width: 1.5rem;
  height: 1.5rem;
}

.icono-local.icono-azul,
.icono-local.text-azul,
.text-azul .icono-local {
  filter: invert(20%) sepia(76%) saturate(4500%) hue-rotate(192deg)
    brightness(80%) contrast(115%) !important;
  color: #1c2a5e !important;
}

.icono-nav {
  filter: brightness(0) invert(1);
}

.icono-local.text-amarillo,
.icono-local.text-amarillo-fuerte,
.text-amarillo .icono-local,
.text-amarillo-fuerte .icono-local {
  filter: invert(80%) sepia(90%) saturate(1800%) hue-rotate(5deg)
    brightness(92%) contrast(100%) !important;
  color: var(--vzla-amarillo) !important;
}

.tarjeta-acceso-uniforme .icono-bloque .icono-local {
  width: 1.5rem;
  height: 1.5rem;
}

/* Colores de acento basados en el manual institucional */
.text-azul {
  color: #1c2a5e !important;
}
.text-rojo {
  color: var(--vzla-rojo) !important;
}
/* Usamos el amarillo del manual o una variante ligeramente más oscura para garantizar contraste en texto */
.text-amarillo {
  color: var(--vzla-amarillo) !important;
}

/* Texto explicativo interno */
.tarjeta-acceso-uniforme .contenido-text {
  font-size: 11pt !important;
  line-height: 15pt !important;
}

/* Bloque inferior de acción (Texto + Flecha) */
.tarjeta-acceso-uniforme .enlace-accion {
  font-size: 10pt;
  border-top: 1px solid #f1f3f5;
  padding-top: 1rem;
}

/* --- MICROINTERACCIONES HOVER (Efecto limpio e igual para las tres) --- */
.tarjeta-acceso-uniforme:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Footer Institucional (Sección 9.2) */
.footer-institucional {
  background-color: var(--vzla-neutral-bg);
  color: #333333;
  border-top: 3px solid var(--vzla-azul);
}

.footer-top {
  padding: 4rem 0;
}

.footer-bottom {
  background-color: #e9ecef;
  padding: 1.5rem 0;
  border-top: 1px solid #dee2e6;
}

.footer-link {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: var(--vzla-rojo);
  text-decoration: underline;
}

.ticker {
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  gap: 3rem;
}

.ticker-track span {
  display: inline-block;
  font-family: "Georama", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  padding-right: 2rem;
}

@keyframes ticker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 991px) {
  .ticker-track {
    gap: 1.5rem;
  }

  .ticker-track span {
    font-size: 0.95rem;
  }

  .footer-top {
    padding: 3rem 0;
  }

  .grandes-titulares {
    font-size: 30pt;
    line-height: 32pt;
  }

  .titulos-text {
    font-size: 22pt;
    line-height: 24pt;
  }

  .subtitulos-text {
    font-size: 16pt;
    line-height: 20pt;
  }
}

@media (max-width: 767px) {
  .contenido-text {
    font-size: 13pt;
    line-height: 17pt;
  }

  .subtitulos-text {
    font-size: 16pt;
    line-height: 19pt;
  }

  .titulos-text {
    font-size: 22pt;
    line-height: 24pt;
  }

  .grandes-titulares {
    font-size: 28pt;
    line-height: 30pt;
  }

  .header-institucional .row {
    margin: 0;
  }

  .header-institucional .col-12 {
    width: 100%;
    max-width: 100%;
  }

  .header-institucional .pe-3 {
    padding-right: 0.5rem !important;
    width: 100%;
    max-width: 100%;
  }

  .header-institucional .d-flex {
    justify-content: center;
  }

  .logo-principal {
    display: block;
    width: 100%;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    margin: 0 auto;
    object-position: center center;
  }

  .seccion-accesos {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .tarjeta-acceso-uniforme {
    padding: 1.25rem !important;
  }

  .tarjeta-acceso-uniforme .contenido-text {
    font-size: 12pt !important;
    line-height: 16pt !important;
  }

  .tarjeta-acceso-uniforme .enlace-accion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
  }

  .footer .row.g-4,
  .footer-top .row.g-4 {
    margin-left: 0;
    margin-right: 0;
  }

  .footer .row > [class*="col-"],
  .footer-top .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .ticker {
    padding: 10px 0;
  }

  .ticker-track {
    font-size: 0.85rem;
    animation: none;
    width: 100%;
    white-space: normal;
    display: block;
  }

  .ticker-track span {
    display: block;
    padding-right: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin-bottom: 0.25rem;
  }

  .ticker-track span[aria-hidden="true"] {
    display: none;
  }

  .footer-top {
    padding: 2rem 0;
  }

  .footer-institucional p,
  .footer-institucional a {
    word-break: break-word;
  }
}

@media (max-width: 575px) {
  .header-institucional {
    overflow-x: hidden;
  }

  .header-institucional .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .header-institucional .row {
    text-align: center;
  }

  .header-institucional .border-end {
    border-right: 0 !important;
  }

  .header-institucional img {
    max-height: 60px;
  }

  .navbar-custom .nav-link {
    font-size: 0.95rem;
    padding: 0.65rem 0.8rem !important;
    white-space: normal;
  }

  .footer-institucional .row {
    gap: 1rem;
  }

  .footer-institucional p,
  .footer-institucional a,
  .footer-institucional .caption-text {
    font-size: 0.9rem;
  }
}
