.main-color {
  color: #1a428a;
}

.main-bg-color {
  background-color: #1a428a !important;
  color: white;
}

.list-group-item.active {
  z-index: 2;
  background-color: #1a428a !important;
  color: white;
  border-color: #1a428a !important;
}

.secondary-bg-color {
  background-color: #db303c !important;
  color: white;
}

.terciary-bg-color {
  background-color: #fde405;
}

.btn-primary {
  background-color: #1a428a;
  border-color: #1a428a;
}
.btn-primary:hover {
  background-color: #163a72;
  border-color: #163a72;
}

h1,
h2,
nav {
  font-family: Sans-serif;
}

.features-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  background-image: url("../images/profesional-que-conduce-maquina.jpg");
}
@media (max-width: 768px) {
  .features-section {
    height: 100%; /* Adjust height for small devices */
    padding: 15px;
  }
}

.features-section .container {
  position: relative;
  z-index: 2;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Adjust opacity as needed */
  z-index: 1;
}

.hero-section {
  background: url("../images/worker.jpg") no-repeat center center/cover;
  position: relative;
  width: 100%;
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1,
.hero-section p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-family: Roboto;
  /* Subtle shadow for readability */
}

.hero-section h1 {
  font-weight: bold;
}

.footer {
  background-color: #1a428a;
  color: white;
  padding: 20px 0;
}

.about-section {
  background-color: #f8f9fa;
  padding: 60px 20px;
}
h2 {
  font-size: 2.5rem;

  margin-bottom: 40px;
  font-weight: 700;
}

.card {
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.card img {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.card-body p {
  font-size: 1rem;
  color: #555;
}

.card-body small {
  font-style: italic;
  color: #999;
}

@media (max-width: 768px) {
  .card img {
    border-radius: 10px 10px 0 0;
  }

  .row.g-0 {
    flex-direction: column;
  }
}

.roboto-thin {
  font-family: "Roboto", serif;
  font-weight: 100;
  font-style: normal;
}

.roboto-light {
  font-family: "Roboto", serif;
  font-weight: 300;
  font-style: normal;
}

.roboto-regular {
  font-family: "Roboto", serif;
  font-weight: 400;
  font-style: normal;
}

.roboto-medium {
  font-family: "Roboto", serif;
  font-weight: 500;
  font-style: normal;
}

.roboto-bold {
  font-family: "Roboto", serif;
  font-weight: 700;
  font-style: normal;
}

.roboto-black {
  font-family: "Roboto", serif;
  font-weight: 900;
  font-style: normal;
}

.roboto-thin-italic {
  font-family: "Roboto", serif;
  font-weight: 100;
  font-style: italic;
}

.roboto-light-italic {
  font-family: "Roboto", serif;
  font-weight: 300;
  font-style: italic;
}

.roboto-regular-italic {
  font-family: "Roboto", serif;
  font-weight: 400;
  font-style: italic;
}

.roboto-medium-italic {
  font-family: "Roboto", serif;
  font-weight: 500;
  font-style: italic;
}

.roboto-bold-italic {
  font-family: "Roboto", serif;
  font-weight: 700;
  font-style: italic;
}

.roboto-black-italic {
  font-family: "Roboto", serif;
  font-weight: 900;
  font-style: italic;
}

.ws-btn {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 100;
}

.ws-btn i {
  margin-top: 8px;
  display: inline-block;
}

.logo {
  max-width: 150px; /* Ensures the logo doesn't exceed a reasonable width */
  height: auto; /* Maintains aspect ratio */
}

@media (max-width: 768px) {
  .logo {
    max-width: 120px; /* Scales down for smaller devices */
  }
}
.safety-tape {
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    #d3bd05 0,
    #d3bd05 20px,
    #212529 20px,
    #212529 40px
  );
}

.card-right-safety-tape-border {
  position: relative;
  overflow: hidden; /* Ensures rounded corners are preserved */
  border-radius: 0.375rem; /* Matches the default card border-radius */
}

.card-right-safety-tape-border::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #d3bd05 0,
    #d3bd05 20px,
    #212529 20px,
    #212529 40px
  );
}

.divider {
  height: 2.3rem;
  background: linear-gradient(135deg, #1a428a 50%, #1a428a 50%);
  clip-path: polygon(0 0, 20% 100%, 100% 0);
}

.district-map-section {
  background: url("../images/comunas.jpeg") no-repeat center center / cover;
  position: relative;

  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.district-map-section::before {
  content: "";
  position: absolute;
  top: 10;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Adjust opacity as needed */
  z-index: 1;
}

.district-map-section .container {
  position: relative;
  z-index: 24;
}

/* Container holds all pages */
.pdf-page-holder {
  position: relative;
  margin-bottom: 16px;
  max-width: 100%;
}

/* Intrinsic ratio box prevents layout shift before canvas loads */
.pdf-page-sizer {
  width: 100%;
  pointer-events: none;
}

/* Absolutely place the canvas on top of the ratio box */
.pdf-page-content {
  position: absolute;
  top: 0; left: 0; right: 0;
}

/* Your existing canvas styling */
.pdf-sheet {
  display: block;
  width: 100%;
  height: auto;
}

/* Optional: lightweight skeleton before render */
.pdf-page-holder:not(.pdf-page-rendered) .pdf-page-content::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #f2f2f2 0,
    #f2f2f2 8px,
    #e9e9e9 8px,
    #e9e9e9 16px
  );
  border-radius: 4px;
}

/* Inline error */
.pdf-error {
  color: #b00020;
  font: 14px/1.4 system-ui, sans-serif;
  padding: 8px 0;
}
