/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html,
body {
  height: auto;
  min-height: 100%;
  font-family: "Open Sans", sans-serif;
  background-color: #0f141e;
  color: white;
  overflow-x: hidden;
  overflow-y: auto; /* Permitir scroll vertical */
}


body {
  overflow-x: hidden;
}


/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  background-color: rgba(15, 20, 30, 0.9);
}


/* Logo en la barra de navegación */
.navbar .logo-container {
  display: flex;
  align-items: center;
}


.navbar .logo-container img {
  height: 36px;
  width: auto;
  margin-right: 30px;
  object-fit: contain;
}


.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}


.desktop-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}


.desktop-nav ul li a:hover {
  opacity: 0.8;
}


.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}


.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: white;
}


/* Carousel styles */
.carrusel {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  min-height: 600px;
}


.contenedor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}


.contenedor.active {
  opacity: 1;
  z-index: 2;
}


.img-franja {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain !important;
}


.contenedor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


/* Logo container for the main slide */
.logo-container-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}


.logo-container-main .imagen-superpuesta {
  position: static;
  transform: none;
  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}


/* Content overlay for slides 2-5 */
.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}


/* Text container for slides 2-5 */
.text-container {
  width: 50%;
  max-width: 600px;
  margin-right: 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.text-box {
  width: 100%;
  padding: 30px;
  background: linear-gradient(to right, rgba(15, 20, 30, 0.7) 0%, rgba(15, 20, 30, 0) 100%);
  margin-top: 20px;
}


/* Content container for slides 2, 3, 4 */
.content-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 80px 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 2;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


.section-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  max-width: 100%;
}


.section-divider {
  width: 100%;
  height: 2px;
  background-color: white;
  margin-bottom: 30px;
}


.section-divider.secondary {
  margin: 20px 0;
}


.section-content {
  max-width: 100% !important;
  line-height: 1.6;
  padding-right: 20px;
}


.section-content p {
  margin-bottom: 15px;
  text-align: justify;
  font-size: calc(1rem + 3px);
}


.section-content strong {
  font-weight: 600;
}


.document-list {
  list-style: none;
  margin-top: 10px;
}


.document-list li {
  margin-bottom: 10px;
  text-align: justify;
  font-size: calc(1rem + 3px);
}


/* First slide specific styles */
.texto-centrado-titulo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  font-weight: 600;
  text-align: center;
  width: 80%;
}


.texto-inferior {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(1.5rem + 6px);
  text-align: center;
  max-width: 80%;
}


.texto-centrado-arriba {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
  z-index: 2;
}


.rectangulo {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  background-color: rgba(70, 90, 120, 0.7);
  color: white;
  padding: 20px 40px;
  text-align: center;
  font-size: calc(1.2rem + 3px);
  line-height: 1.6;
  z-index: 2;
}


/* Estilos para el texto en los slides 2-5 */
.titulo-inicio {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: white;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.subtitulo-inicio {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  color: white;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.cuerpo-inicio {
  font-size: calc(1.1rem + 3px);
  line-height: 1.6;
  color: white;
  text-align: justify;
}


/* Navigation dots */
.dots {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}


.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}


.dot.active {
  background-color: white;
}


/* Bullet list styles */
.bullet-list {
  list-style: none;
  font-size: calc(1.2rem + 3px);
  line-height: 1.8;
  max-width: 100%;
  padding-right: 20px;
}


.bullet-list li {
  margin-bottom: 10px;
  white-space: normal;
  word-wrap: break-word;
  text-align: justify;
}


/* Contact page styles */
.contact-wrapper {
  padding: 80px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  overflow-y: auto;
}


.page-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
  text-transform: uppercase;
}


.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}


.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: rgba(25, 30, 40, 0.7);
  padding: 30px;
  border-radius: 8px;
}


.contact-info .section-title,
.contact-form .section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}


.contact-info .section-title::after,
.contact-form .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: white;
}


.contact-method {
  margin-bottom: 25px;
}


.contact-method h3,
.business-hours h3,
.office-location h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}


.contact-link {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: opacity 0.3s;
  display: block;
}


.contact-link:hover {
  opacity: 0.8;
}


.business-hours,
.office-location {
  margin-bottom: 25px;
}


.business-hours p,
.office-location address {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: normal;
}


.map-container {
  margin-top: 15px;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
}


.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* Form styles */
.form-group {
  position: relative;
  margin-bottom: 25px;
}


.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}


.form-textarea {
  resize: vertical;
  min-height: 120px;
}


.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: white;
  background-color: rgba(255, 255, 255, 0.15);
}


.form-label {
  position: absolute;
  top: 12px;
  left: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: all 0.3s;
  pointer-events: none;
}


.form-input:focus ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  background-color: #0f141e;
  padding: 0 5px;
}


.form-submit {
  width: 100%;
  padding: 12px;
  background-color: white;
  color: #0f141e;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.form-submit:hover {
  background-color: rgba(255, 255, 255, 0.9);
}


.form-feedback {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}


.form-feedback.success {
  color: #4caf50;
}


.form-feedback.error {
  color: #f44336;
}


body.contact-page {
  overflow: auto;
}


/* Estilos adicionales para la versión compacta */
.contact-wrapper.compact {
  padding: 80px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


.contact-wrapper.compact .page-title {
  font-size: 2rem;
  margin-bottom: 20px;
}


/* Ajuste para el contenedor de contacto */
.contact-wrapper.compact .contact-container {
  display: flex;
  gap: 30px;
  flex: 1;
  overflow: hidden;
}


/* Ajustes para las columnas */
.contact-wrapper.compact .contact-info,
.contact-wrapper.compact .contact-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}


/* Ajustes para los títulos de sección */
.contact-wrapper.compact .section-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}


/* Organización de la información de contacto */
.contact-wrapper.compact .contact-method {
  margin-bottom: 15px;
}


.contact-wrapper.compact .contact-method h3,
.contact-wrapper.compact .business-hours h3,
.contact-wrapper.compact .office-location h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}


.contact-wrapper.compact .contact-link,
.contact-wrapper.compact .business-hours p,
.contact-wrapper.compact .office-location address {
  font-size: 0.9rem;
}


/* Organización de la información inferior */
.contact-wrapper.compact .contact-info-bottom {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}


.contact-wrapper.compact .business-hours,
.contact-wrapper.compact .office-location {
  flex: 1;
  margin-bottom: 0;
}


/* Ajuste del mapa */
.contact-wrapper.compact .map-container {
  height: 150px;
  margin-top: 10px;
}


/* Organización del formulario */
.contact-wrapper.compact .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}


.contact-wrapper.compact .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}


.contact-wrapper.compact .form-group {
  margin-bottom: 15px;
}


.contact-wrapper.compact .form-textarea {
  min-height: 80px;
}


.contact-wrapper.compact .form-submit {
  margin-top: 10px;
}


/* Avisos page styles */
.avisos-banner {
  background-color: #4a6583;
  padding: 15px 0;
  text-align: center;
  margin-top: 0;
  position: relative;
  z-index: 10;
}


.avisos-banner h1 {
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}


.avisos-content {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}


.avisos-container {
  background-color: #0f141e;
  border-radius: 8px;
  overflow: hidden;
}


.aviso-item {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.aviso-item:last-child {
  border-bottom: none;
}


.aviso-item p {
  font-size: calc(1rem + 3px);
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}


.aviso-item p:last-child {
  margin-bottom: 0;
}


.aviso-item strong {
  font-weight: 600;
  margin-right: 5px;
}


/* Buro page styles */
.buro-content {
  position: absolute;
  top: 0;
  right: 10%;
  width: 100%;
  height: 100%;
  padding: 80px 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}


.buro-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: white;
  text-align: left;
  align-self: flex-start;
  margin-left: 15%;
}


.buro-divider {
  width: 70%;
  height: 2px;
  background-color: white;
  margin-bottom: 30px;
  /* Sin cambios, se mantiene centrado */
}


.buro-text {
  max-width: 70%;
  color: white;
  /* Sin cambios, se mantiene centrado */
}


.buro-text p {
  font-size: calc(1rem + 5px);
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify; /* Asegurando que el texto siga justificado */
}


.buro-text p:last-child {
  margin-bottom: 0;
}


.buro-text strong {
  font-weight: 600;
}


/* Estilos específicos para los textos izquierda */
.texto-izquierda-arriba-titulo {
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: white;
}


.linea-separadora {
  width: 100%;
  height: 2px;
  background-color: white;
  margin-bottom: 30px;
}


.texto-izquierda {
  max-width: 800px;
  font-size: calc(1rem + 3px);
  line-height: 1.6;
  color: white;
  text-align: justify;
}


.texto-izquierda-documentacion {
  max-width: 800px;
  font-size: calc(1rem + 3px);
  line-height: 1.6;
  color: white;
  text-align: justify;
}


.texto-izquierda-documentacion-mas-pequeño {
  max-width: 800px;
  font-size: calc(0.9rem + 3px);
  line-height: 1.6;
  color: white;
  text-align: justify;
}


/* Animaciones para el carrusel */
.contenedor {
  transition: transform 0.8s ease, opacity 0.8s ease;
}


.contenedor.salida {
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}


.contenedor:not(.active) {
  opacity: 0;
}


/* Responsive styles */
@media (max-width: 768px) {
  html,
  body {
    overflow: auto;
  }


  .desktop-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(15, 20, 30, 0.95);
    padding: 20px;
    z-index: 999;
  }


  .desktop-nav.active {
    display: block;
  }


  .desktop-nav ul {
    flex-direction: column;
    gap: 15px;
  }


  .mobile-menu-button {
    display: block;
  }


  .section-title {
    font-size: 2rem;
  }


  .section-content {
    font-size: calc(0.9rem + 3px);
    padding-right: 0;
    text-align: justify;
  }


  .content-container {
    padding: 80px 20px 120px;
    overflow-y: auto;
    background-color: rgba(15, 20, 30, 0.7);
  }


  .texto-centrado-titulo {
    font-size: 2.5rem;
    width: 90%;
  }


  .texto-inferior {
    font-size: calc(1rem + 3px);
    width: 90%;
    max-width: 90%;
    bottom: 15%;
    text-align: justify;
  }


  .titulo-inicio {
    font-size: 2rem;
  }


  .subtitulo-inicio {
    font-size: 1.2rem;
  }


  .cuerpo-inicio {
    font-size: calc(1rem + 3px);
    text-align: justify;
  }


  .logo-container-main .imagen-superpuesta {
    max-width: 80%;
    max-height: 80%;
  }


  .text-container {
    width: 90%;
    margin-right: 0;
  }


  .text-box {
    padding: 20px;
  }


  .bullet-list {
    font-size: calc(1rem + 3px);
    padding-right: 0;
    text-align: justify;
  }


  .bullet-list li {
    margin-bottom: 15px;
    text-align: justify;
  }


  .contact-wrapper.compact {
    height: auto;
    overflow: auto;
    padding-bottom: 40px;
  }


  .contact-wrapper.compact .contact-container {
    flex-direction: column;
  }


  .contact-wrapper.compact .form-row {
    flex-direction: column;
    gap: 15px;
  }


  .contact-wrapper.compact .contact-info-bottom {
    flex-direction: column;
  }


  .contact-wrapper.compact .business-hours {
    margin-bottom: 15px;
  }


  .avisos-banner h1 {
    font-size: 2rem;
  }


  .buro-content {
    padding: 80px 20px;
  }


  .buro-title {
    font-size: 2rem;
  }


  .buro-text p {
    font-size: calc(0.9rem + 3px);
    text-align: justify;
  }


  /* Ajustes para los dots de navegación */
  .dots {
    right: 10px;
  }


  .dot {
    width: 10px;
    height: 10px;
  }
}


/* Estilos específicos para pantallas más pequeñas */
@media (max-width: 480px) {
  .titulo-inicio {
    font-size: 1.8rem;
  }


  .subtitulo-inicio {
    font-size: 1rem;
  }


  .cuerpo-inicio {
    font-size: calc(0.9rem + 3px);
    text-align: justify;
  }


  .section-title {
    font-size: 1.8rem;
  }


  .bullet-list {
    font-size: calc(0.9rem + 3px);
    text-align: justify;
  }


  .bullet-list li {
    line-height: 1.5;
    text-align: justify;
  }


  .text-container {
    width: 95%;
  }


  .text-box {
    padding: 15px;
  }


  .avisos-banner h1 {
    font-size: 1.8rem;
  }


  .aviso-item {
    padding: 15px;
  }


  .aviso-item p {
    font-size: calc(0.9rem + 3px);
    text-align: justify;
  }


  .buro-title {
    font-size: 1.8rem;
  }


  .buro-text p {
    font-size: calc(0.8rem + 3px);
    text-align: justify;
  }


  .texto-centrado-titulo {
    font-size: 1.8rem;
  }


  .texto-inferior {
    font-size: calc(0.9rem + 3px);
    bottom: 20%;
    text-align: justify;
  }


  /* Ajustes adicionales para contenido con scroll */
  .content-container {
    padding: 70px 15px 100px;
  }


  .section-content {
    font-size: calc(0.85rem + 3px);
    text-align: justify;
  }


  /* Mejorar visibilidad de los dots */
  .dots {
    right: 5px;
  }


  .dot {
    width: 8px;
    height: 8px;
    margin: 8px 0;
  }
}


/* Eliminar cualquier estilo conflictivo para la imagen superpuesta */
.imagen-superpuesta {
  position: static;
  transform: none;
  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  z-index: 5;
}


/* Asegurar que las imágenes de fondo estén detrás */
.contenedor img:not(.imagen-superpuesta) {
  z-index: 0;
}


/* Estilos para contenedores con transición */
.contenedor {
  transition: transform 0.8s ease, opacity 0.8s ease;
}


.contenedor.salida {
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}


/* Ajuste para el contenido scrollable */
.content-container.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 100px;
}


/* Fondo semitransparente para mejorar legibilidad en móviles */
@media (max-width: 768px) {
  .content-container {
    background-color: rgba(15, 20, 30, 0.7);
  }
}


/* Estilos para los botones de avisos */
.avisos-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 40rem;
  margin: 0 auto;
  gap: 20px;
}


.img-avisos-btn {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}


.img-avisos-btn:hover {
  transform: scale(1.05);
}


/* Estilos para el texto de copyright */
.copyright-text {
  text-align: center;
  margin: 20px auto 40px;
  font-size: 0.9rem;
  color: white;
}


/* Responsive styles for avisos buttons */
@media (max-width: 992px) {
  .avisos-buttons-container {
    max-width: 35rem;
  }
}


@media (max-width: 768px) {
  .avisos-buttons-container {
    max-width: 90%;
    flex-direction: column;
    margin-top: 40px;
    gap: 15px;
  }


  .img-avisos-btn {
    margin-bottom: 15px;
  }
}
/* Estilos específicos para el slide 4 de revolvente (comisiones) */
.contenedor[data-id="4"] .content-container {
  padding-left: 120px;
  padding-right: 200px;
  padding-top: 150px;
}


.contenedor[data-id="4"] .section-content {
  max-width: 80%;
  margin: 0 auto;
}


.contenedor[data-id="4"] .section-title {
  text-align: left;
  width: 100%;
}


.contenedor[data-id="4"] .section-divider.secondary {
  width: 80%;
  margin: 20px 0;
}


/* Centrado vertical para los slides 2 y 3 de la página de crédito */
.contenedor[data-id="2"] .content-container,
.contenedor[data-id="3"] .content-container {
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 120px;
  padding-right: 120px;
}




.contenedor[data-id="2"] .section-content,
.contenedor[data-id="3"] .section-content {
  max-width: 80%;
}






/* Ajuste para que el banner de avisos aparezca debajo del navbar */
.avisos-banner {
  background-color: #4a6583;
  padding: 15px 0;
  text-align: center;
  margin-top: 60px;
  position: relative;
  z-index: 10;
  width: 100%;
  left: 0;
  right: 0;
}


/* Estilo para el segundo banner (aviso de privacidad) */
.second-banner {
  background-color: #4a6583;
  padding: 15px 0;
  text-align: center;
  margin-top: 60px;
  position: relative;
  z-index: 10;
  width: 100%;
  left: 0;
  right: 0;
}


/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
  .avisos-banner {
    margin-top: 60px;
  }
}
