/* =========================================================
   BASE – sin cambios importantes
========================================================= */
html, body {
  font-family: 'Poppins', sans-serif !important;
  height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

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

/* Patrón LEGO */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/pattern-lego.png");
  background-repeat: repeat;
  background-size: 512px 512px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   LOGO FRAME – ahora 100% responsivo
========================================================= */
.logo-frame {
  position: relative;
  width: 100%;
  max-width: 630px;
  aspect-ratio: 630 / 315;
  margin: 0 auto;
  background: url("../img/cuadro-blanco.png") no-repeat center;
  background-size: contain;
}

/* Contenedor que mantiene el centrado sin animarse */
.logo-frame .logo-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76%;
  transform: translate(-50%, -50%);
}

/* El logo ahora sí es libre de animarse */
.logo-frame .logo-serpenteo {
  width: 100%;
  display: block;
  animation: serpenteo 3s ease-in-out infinite;
}

/* Animación estable */
@keyframes serpenteo {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  15% {
    transform: translateY(-12px) rotate(-4deg) scale(1.02);
  }
  30% {
    transform: translateY(6px) rotate(3deg) scale(1.01);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg) scale(1.03);
  }
  70% {
    transform: translateY(8px) rotate(4deg) scale(1.01);
  }
  85% {
    transform: translateY(-6px) rotate(-2deg) scale(1.02);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}



/* =========================================================
   HERO
========================================================= */
.hero {
  padding-top: 45px;
  background-color: #f27324 !important;
  text-align: center;
}

/* =========================================================
   GRID DE BOTONES
========================================================= */

/* ANTES: columnas de 279px fijas → ahora fluidas */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 600px;
  margin: 0 auto;
  gap: 32px;
}

/* El botón ya NO usa width/height fijos */
.btn-img {
  width: 100%;
  aspect-ratio: 285 / 99; /* conserva la proporción original */

  display: flex;
  align-items: center;      /* vertical centrado */
  justify-content: flex-start; /* 🔥 texto alineado a la izquierda */
  text-align: left;            /* por si acaso */
  
  padding-left: 100px; /* 🔥 este es el truco para que el texto quede exactamente después del icono */
  padding-right: 20px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  text-decoration: none;
  position: relative;

  transition: transform .15s ease-in-out;
}

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

.btn-label {
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.5);
  line-height: 1.25; /* 🔥 más uniforme para multilínea */
}

/* =========================================================
   CAJA IZQUIERDA
========================================================= */
.info-box-left {
  background: #FFD8C2;
  border-radius: 5px;
  padding: 55px 30px;
  border: 2px solid #000;
  position: relative;
  margin-right: 0; /* antes: 50px fijo que rompía en móvil */
  z-index: 10;
  text-align: center;
}

/* Header de la sección – ANTES: width fijo de 627px */
.info-header {
  width: 100%;
  max-width: 627px;
  aspect-ratio: 627 / 107;
  margin: 0 auto 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

/* =========================================================
   TÍTULOS & TEXTOS
========================================================= */
.info-title-left {
  font-size: clamp(1.8rem, 4vw, 42px);
  font-weight: 800;
}

/* Párrafos fluidos */
.info-content p,
.info-content-right p {
  font-size: clamp(1rem, 2.1vw, 24px);
  line-height: 1.4;
  margin-bottom: 18px;
}

/* =========================================================
   CAJA DERECHA
========================================================= */
.info-box-right {
  background: #FFD8C2;
  border-radius: 5px;
  padding: 30px;
  border: 2px solid #000;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.info-remember-title {
  background: #FF3A3A;
  color: #F1FF4C;
  font-size: clamp(1.4rem, 4vw, 40px);
  font-weight: 800;
  padding: clamp(12px, 2vw, 20px);
  border-radius: 60px;
  margin-bottom: 25px;
}

.info-logo {
  width: clamp(70px, 15vw, 110px);
  margin-top: -20px;
  float: right;
}

.patterned-blue {
  background-color: #6FB2DA;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

/* Tablets */
@media (max-width: 992px) {
  .menu-grid {
    max-width: 500px;
  }
}

/* Móviles */
@media (max-width: 768px) {

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .btn-img {
    aspect-ratio: 285 / 99;
    padding-left: 150px;
    padding-right: 20px;
  }

   .btn-label {
    font-size: 1.9rem;
  }

  .info-box-left,
  .info-box-right {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .info-logo {
    float: none;
    margin: 15px auto 0 auto;
    display: block;
  }

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

  .hero {
  padding-top: 85px;
}



}



/* Teléfonos pequeños */
@media (max-width: 480px) {

  .menu-grid {
    gap: 15px;
  }

  .btn-label {
    font-size: 1.7rem;
  }

  .btn-img {
    padding-left: 140px;
    padding-right: 20px;
  }
  

  .info-title-left {
    font-size: 1.6rem;
  }
  .mt-6 { margin-top: 2rem; }
  .mb-6 { margin-bottom: 2rem; }

}
