
html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/pattern-lego.png");
  background-repeat: repeat;
  background-size: 512px 512px; /* tamaño REAL del patrón */
  opacity: 0.20; /* controla la transparencia */
  pointer-events: none;
  z-index: 0;
}

.mt-6 { margin-top: 5rem; }
.mb-6 { margin-bottom: 5rem; }


.legal {
  padding: 60px 20px;
  font-family: "Poppins", sans-serif;
  background-color: #b4b4b4;
}

/* Encabezado */
.titulo-box {
    position: relative;
    display: grid;
    border: 2px solid #000;
    padding: 20px 50px;
    border-radius: 5px;
    width: 60%;
}

.titulo-texto {
    font-weight: 800;
    font-size: 2.3rem;
    margin: 0;
    color: #fff;
}

.titulo-icon {
    width: 59px;
    position: absolute;
    left: -35px;
    top: 11px;
}

.azul-marino {
  background-color: #406ab2;
}

.naranja {
  background-color: #fe7424;
}

h2 {
  font-weight: 700;
  text-align: center;
  color: #FFF;
}


.legal-contenido {
  margin: 0 auto;
  position: relative;
}

.legal-texto {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  line-height: 1.6;
  color: #000;
  border: 2px solid #000;
  text-align: left;
  font-size: 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;

}

.legal-lista {
  background: #4faee1;
  color: #fff;
  border-radius: 5px;
  padding: 30px;
  position: absolute;
  border: 2px solid #000;
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  padding-top: 90px;

}

.legal-lista ul {
  list-style: disc;
  padding-left: 20px;
}

.legal-lista li {
  margin-bottom: 17px;
  font-weight: 300;
}

/* TEAM LEGAL */

.team-contenido {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
  position: relative;
}

.team-texto {
  background: #fff;
  padding: 42px;
  border-radius: 5px;
  line-height: 1.6;
  color: #000;
  border: 2px solid #000;
  text-align: center;
  font-weight: 400;
  font-size: 18px;
}

.team-perfil {
  background: #406ab2;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  border: 2px solid #000;
  
}

.team-perfil img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
  border: 2px solid #000;
}

.team-perfil h3 {
  color: #fff;
  font-weight: 800;
  margin: 0;
  font-size: 17px;
}

.team-perfil p {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .legal-contenido,
  .team-contenido {
    grid-template-columns: 1fr;
  }

  .team-perfil img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
}
/* ================================
   📱 MOBILE FIXES – ORIENTACIÓN LEGAL
   ================================ */

@media (max-width: 900px) {

  .legal {
    padding: 60px 20px;
    
}
  /* Reducir márgenes demasiado altos en móvil */
  .mt-6 { margin-top: 2rem !important; }
  .mb-6 { margin-bottom: 2rem !important; }

  /* ====== TITULO ====== */
  .titulo-box {
    padding: 18px 25px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .titulo-icon {
    left: -18px;
    width: 45px;
  }

  .titulo-texto {
    font-size: 1.7rem;
  }

  /* ====== CONTENIDO LEGAL ====== */
  .legal-texto {
    padding: 25px;
    font-size: 16px;
  }

  /* ====== LISTA LATERAL (elimina posición absoluta) ====== */
  .legal-lista {
    position: relative !important;
    margin-top: 20px;
    padding-top: 40px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
  }

  .legal-lista ul {
    padding-left: 25px;
  }

  /* ====== TEAM LEGAL ====== */
  .team-contenido {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .team-texto {
    padding: 25px;
    font-size: 16px;
  }

  .team-perfil {
    margin-top: 20px;
    padding: 20px;
  }

  .team-perfil img {
    width: 70%;
    max-width: 220px;
    margin: 0 auto;
  }

  /* Ajustar textos del perfil */
  .team-perfil h3 {
    font-size: 1rem;
    margin-top: 10px;
  }

  .team-perfil p {
    font-size: 0.8rem;
  }
}

