@import url('base.css');
@import url('./modules/layout.css');
@import url('./modules/carrusel-banner.css');
@import url('./modules/fonts.css');
@import url('./modules/constantes.css');
@import url('./modules/formulario-registro.css');

.loader-container {
  transition: all 0.3s ease-in-out 0s;
  opacity: 0;
  visibility: hidden;
  height: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-container.show {
  opacity: 1;
  visibility: visible;
  height: 100%;
  width: 100%;
  overflow: unset;
}

.loader-container .loader {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 8rem;
  /* 12.5rem is equivalent to 200px assuming the base font size is 16px */
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: fit-content;
  padding: 1rem;
  /* Add slight padding */
  margin: 2rem 0;
  min-height: 400px;
  /* Ensure consistent height */
}

.button-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Align items to the start */
  gap: 0.5rem;
  width: 100%;
  /* Full width on smaller screens */
  max-height: 400px;
  /* Set a max height */
  overflow-y: auto;
  /* Enable vertical scroll */
  padding-right: 0.5rem;
  /* Add margin between buttons and scroll */
}

.button-container button {
  width: 100%;
  /* Make buttons occupy full width */
  margin-bottom: 0.5rem;
  /* Add gap between buttons */
  padding: 0.5rem 1rem;
  /* Adjust padding for smaller buttons */
  background-color: #d3d3d3;
  /* Light gray */
  color: #000097;
  /* Change text color to navy blue */
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  font-weight: 900;
  /* Increase font weight */
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Ensure space between text and SVG */
  white-space: normal;
  /* Allow text to wrap */
  word-wrap: break-word;
  /* Break long words */
  visibility: visible;
  /* Ensure button is visible */
  height: 1.5rem;
  /* Adjust height to fit content */
  min-height: 4rem;
  /* Set a minimum height */
}

.button-container button img {
  transform: rotate(180deg);
  /* Rotate the arrow to the right */
  width: 1rem;
  /* Ensure the SVG is visible */
  height: 1rem;
  display: inline-block;
  /* Ensure the SVG is displayed */
}

.button-container button:hover {
  background-color: #b0b0b0;
  /* Darker gray on hover */
}

@media screen and (max-width: 767px) {

  .button-container,
  .info-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 160px;
    /* Set a reasonable max height for phones (4 rows of buttons) */
    overflow-y: auto;
    /* Enable vertical scroll */
  }

  .button-container button,
  .info-container {
    width: 100%;
    /* Ensure buttons take full width */
    min-height: 2.5rem;
    /* Reduce minimum height for smaller devices */
    padding: 0.5rem;
    /* Adjust padding for smaller devices */
    box-sizing: border-box;
    /* Ensure padding and border are included in the element's total width and height */
  }
}

.header-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.header-container button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background-color: #d3d3d3;
  border: none;
}

.header-container .active,
button:hover {
  background-color: #003c88;
  color: #fbce07;
  transition: 0.3s ease-in-out;
}

@media screen and (max-width: 767px) {
  .header-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.map-container {
  flex-grow: 1;
  position: relative;
  height: 400px;
  /* Set height for phones */
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.info-container {
  display: none;
  /* Initially hidden */
  flex-direction: column;
  justify-content: flex-start;
  /* Align items to the start */
  gap: 0.5rem;
  width: 30%;
  /* Match the width of button-container */
  min-height: 400px;
  /* Ensure consistent height */
  overflow-y: auto;
  /* Enable vertical scroll */
  padding-right: 0.5rem;
  /* Add margin between buttons and scroll */
}

.info-container span {
  font-weight: bold;
  width: auto;
  padding: 0rem;
}

.info-container .content {
  font-weight: normal;
}

.info-container p {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.info-container .back-to-list {
  text-decoration: underline;
  color: #2c2c94;
  /* Navy blue */
  cursor: pointer;
  padding: 0rem;
}

.info-container .label {
  font-weight: bold;
}

.info-container .content {
  margin-left: 1rem;
}

@media screen and (max-width: 767px) {
  .info-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 160px;
    /* Set a reasonable max height for phones (4 rows of buttons) */
    overflow-y: auto;
    /* Enable vertical scroll */
  }

  .info-container {
    width: 100%;
    /* Ensure buttons take full width */
    min-height: 5rem;
    /* Reduce minimum height for smaller devices */
    padding: 0.5rem;
    /* Adjust padding for smaller devices */
    box-sizing: border-box;
    /* Ensure padding and border are included in the element's total width and height */
  }
}

.contact-form {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  /* Increase gap between grid items */
  box-shadow: 0 4px 8px var(--color-shadow);
  /* Add shadow effect */
  padding: 1.5rem;
  /* Reduce padding */
  border-radius: 6px;
  background-color: white;
}

.contact-form label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: bold;
  font-size: 0.875rem;
  /* Small text size */
  color: #1c1c1c;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.4rem 0.6rem;
  /* Increase padding to make inputs taller */
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: none;
  /* Remove transition effect */
  box-shadow: none;
  /* Remove box shadow */
}

.contact-form textarea {
  grid-column: span 2;
  /* Span across both columns */
  width: 100%;
  padding: 0.6rem;
  /* Adjust padding */
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: none;
  /* Remove transition effect */
  box-shadow: none;
  /* Remove box shadow */
  resize: none;
  /* Make textarea non-resizable */
  overflow-y: auto;
  /* Add automatic vertical scroll */
}

.contact-form button {
  grid-column: span 2;
  /* Span across both columns */
  padding: 0.2rem 0.4rem;
  /* Further reduce padding to make button less tall */
  background-color: #fbce07;
  /* Change background color to yellow */
  color: #000097;
  /* Change text color to navy blue */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.contact-form button:hover {
  background-color: #e0b806;
  /* Darker yellow on hover */
}

.contact-form h2 {
  grid-column: span 2;
  /* Span across both columns */
  font-size: 1.5rem;
  /* Increase font size */
  font-weight: bold;
}

.contact-form .checkbox-container {
  grid-column: span 2;
  /* Span across both columns */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form .checkbox-container label {
  display: flex;
  align-items: center;
  font-weight: normal;
}

contact-form .checkbox-container input[type='checkbox'] {
  margin-right: 0.5rem;
}

.contact-form select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  /* Match input padding */
  border: 1px solid #ccc;
  /* Match input border */
  border-radius: 6px;
  /* Match input border radius */
  font-size: 1rem;
  /* Match input font size */
  color: #1c1c1c;
  /* Match input text color */
  background-color: white;
  /* Ensure white background */
  transition: none;
  /* Remove transition effect */
  box-shadow: none;
  /* Remove box shadow */
  appearance: none;
  /* Remove default browser styling */
}

.contact-form select:focus {
  outline: none;
  /* Remove focus outline */
  border-color: #000097;
  /* Add focus border color */
}

@media screen and (min-width: 768px) {
  .section-container {
    flex-direction: row;
  }

  .button-container {
    width: 30%;
    /* Increase width for larger screens */
  }

  .map-container {
    width: 70%;
    /* Adjust width for larger screens */
    height: 400px;
    /* Set height to match button list */
  }

  .map-container iframe {
    height: 100%;
    /* Adjust iframe height */
    max-height: 400px;
    /* Set max height */
  }
}