.container .relative { 
    position: relative;   /* asegura que las absolutas se posicionen respecto a este contenedor */
    min-height: 60vh;     /* ajusta según necesites para que haya espacio */
    overflow: visible;
}

/* Fondo de pantalla */
.bg {
    background-image: url('/assets/img/back.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100vw;
    height: 100vh;
}

/* Logos e imágenes - base (desktop) */
.logo {
        position: absolute;
    width: 359px;
    left: -28px;
    top: 42px;
}

/* Imágenes posicionadas */
.arbol {
   position: absolute;
    bottom: -190px;
    left: 50%;
    transform: translateX(-50%);
    width: 770px;
    
    z-index: 2;
}

.nin {
   position: absolute;
    bottom: -330px;
    width: 590px;
    max-width: 75vw;
    z-index: 3;
    transform: translateX(-10%);
}

.hoja-1 {
    position: absolute;
    bottom: 234px;
    right: 5%;
    width: 408px;
    
    z-index: 3;
}

.hoja-2 {
       position: absolute;
    bottom: 110px;
    left: 56%;
    width: 518px;
    z-index: 3;
}

.header {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    align-items: center;
    padding: var(--bs-modal-header-padding);
}

.ornamento-2{
    position: relative;
    width: 280px;
}

.ornamento-3{
    position: absolute;
    width: 22%;
    top: -59px;
    left: 39%;
}
.modal-dialog {
    max-width: none;
    width: auto;
    margin: 20px;
}

.form-control{
    background-color: #183861;
    color: #fff;
    border-color: transparent;
    border-radius: 5px;
}


.form-control:focus {
    background-color: #1f4473;
    color: #fff;
    border-color: transparent;
    border-radius: 5px;
}

.form-control::placeholder {
    color: white !important;
    opacity: 1;
}

.modal-header{
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding: var(--bs-modal-header-padding);
    border-bottom: transparent;
    border-top-left-radius: var(--bs-modal-inner-border-radius);
    border-top-right-radius: var(--bs-modal-inner-border-radius);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: 100%;
    min-height: 440px;
    color: var(--bs-modal-color);
    pointer-events: auto;
    background-color: #E72066;
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
    border-radius: 0px;
    outline: 0;
}

.fsize1{
    font-size: x-large;
}

.ornamento-1{
    width: 400px;
    position: relative;
    margin-top: 20px;
}
.ornamento-4{
    width: 50%;
    left: 24%;
    bottom: -21%;
    position: absolute;
}
.mt-7r{
    margin-top: 7rem;
}

.mensaje{
    height: 100px;
}

.btn-descarga{
   background-color: #fff;
    color: #183861;
    padding: 10px;
    width: 300px;
    border-radius: 20px;
}
/* Hover: invierte los colores */
.btn-descarga:hover {
  background-color: #183861;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* Press (cuando se hace clic) */
.btn-descarga:active {
  background-color: #132a4d; /* tono más oscuro del azul */
  color: #fff;
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-te{
   background-color: #E72066;
    color: #fff;
    padding: 10px;
    width: 300px;
    border-radius: 20px;
    border-color: 2px solid #E72066;
}

.hoja-4{
    width: 320px;
}

/* ===== Adornos fijos en las esquinas del modal ===== */
.modal-content { position: relative; }

/* Niño: esquina inferior izquierda */
.nin-modal{
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(120px, 18vw, 220px);
  transform: none !important;
  pointer-events: none;
  z-index: 3;
}

/* Gato: esquina inferior derecha */
.gato-modal{
  position: absolute;
  bottom: 0;
  right: 0;
  width: clamp(120px, 18vw, 160px);
  transform: none !important;
  pointer-events: none;
  z-index: 3;
}

/* Responsive: un poco más chicos en pantallas pequeñas */
@media (max-width: 768px){
  .nin-modal,
  .gato-modal{
    width: clamp(100px, 28vw, 100px);
  }
}
