/* contained parallax perspective module */

:root {
  --parallax-scale: 0.05; /* pseudo-perspective depth, 0=deactivate */
  --parallax-min-height: 44rem; /* could be overwritten by JS measurement if too low */
  --container-offset-adjustment: 5rem;
}

/* disable if requested for accessibility reasons */
@media (prefers-reduced-motion) {
  :root {
    --parallax-scale: 0;
  }
}

/* container around parallax layers */
.parallax__group {
  position: relative;
  z-index: -1;
  transform-origin: center top;
  transform: scaleY(calc(1 - var(--parallax-scale)));
  margin-top: calc(
    var(--container-offset-adjustment)
    + 
    (-1
      *
      max(100vh, var(--parallax-min-height))
    )
  );
  margin-bottom: calc(-1 * var(--container-offset-adjustment));
}

.parallax__layer {
  transform-origin: center top;
  transform: scaleY(calc(1 / (1 - var(--parallax-scale))));
}

.parallax__layer--foreground {
	overflow: hidden;
  position: relative;
  top: 0;
}

.parallax__layer--background {
  position: sticky;
  z-index: -2;
  top: 0;
  height: 100%;
  min-height: 100vh;
  min-height: max(100vh, var(--parallax-min-height));
  background-attachment: fixed; /* legacy browser fallback */
  /* decorative styles unrelated to the parallax effect: */
  /*background-repeat: repeat;*/
  background-size: 100%;
  background-image: url("images_vul/congresoH.png")
  /*background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='18' stroke='none' fill='skyblue'/%3E%3C/svg%3E");*/
}

/* recommended other elements' opaque background etc. */
body {
  margin: 0;
  padding: 0;
}

h1 {
	text-align: center;
}
.header, .footer, .content {
  background-color: white;
  margin:0;
  padding: 1rem;
}

.fixedDivParalax {
    display: flex;
    flex-wrap: wrap; /* Permite que los botones se apilen en móvil */
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Espacio entre botones */
    position: fixed;
    z-index: 10;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%); /* Centrado horizontal perfecto */
    width: auto;
    max-width: 90%; /* Evita que toque los bordes en móvil */
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: rgba(161, 51, 61, 0.8) 0px 3px 18px;
}

/* Botones dentro del contenedor */
.btnSVG {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    color: #13585f;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .fixedDivParalax {
        width: 95%; /* Ocupa casi todo el ancho */
        bottom: 120px;
        padding: 0.5rem;
        border-radius: 20px;
    }
    
    .btnSVG {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .btnSVG {
        font-size: 0.8rem;
    }
}

/* decorative styles unrelated to the parallax effect: */
.cardOld {
  width: 50%;
  padding: 5%;
  border: solid 1px gray;
  background: rgba(240,230,220, .9);
  margin: 0 0 7rem 1rem;
}

/* Estilo base para todas las pantallas (mobile-first) */
.card {
  width: 90%;
  padding: 1.5rem;
  border: solid 1px gray;
  background: rgba(204, 208, 188, 0.9);
  border-radius: 1rem;
  margin: 0 auto 2rem; /* Centrado por defecto */
}
/* Pantallas medianas/grandes (= 768px) */
@media (min-width: 768px) {
  .card {
    width: 45%;
    max-width: 50rem;
  }
  
  .Left {
    margin: 0 0 5% 5%; /* Alineado a la izquierda */
    float: left;
    clear: both;
  }
  
  .Right {
    margin: 0 5% 5% 0; /* Alineado a la derecha */
    float: right;
    clear: both;
  }
  
}

@media (max-width: 960px) {
  .card {
    width: 80%;
    margin: 0 auto 2rem; /* Centrado en móviles */
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
}

/* hide imperfect endings behind a gradient */
.parallax__layer--background::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  height: max(100vh, var(--parallax-min-height));
  width: 100%;
  background: linear-gradient(
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
    );
}
.parallax__layer--background::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  height: 4rem;
  width: 100%;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
    );
}

@media (max-width:480px){
	h1{
		font-size: 1rem;
	}
}
