/* ===== RESET GENERAL ===== */
* {
    box-sizing: border-box; /* incluye padding y border en el ancho total */
  }
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    text-align: center;
    overflow-x: hidden; /* elimina scroll horizontal sobrante */
  }
  
  /* ===== FRAME SUPERIOR ===== */
  .frame-top-container {
    background: #00224C;
    padding: 10px 0;
  }
  
  .frame-top {
    max-width: 100%;
    height: auto;
  }
  
  /* ===== CONTENIDO PRINCIPAL ===== */
  .main-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 8px; /* margen lateral ligero */
  }
  
  h2 {
    font-size: 24px;
    margin-top: 0;
  }
  
  /* ===== FLEXBOX PARA 3 COLUMNAS SIN SCROLL ===== */
  .grid {
    display: flex;
    flex-wrap: wrap;          /* permite que bajen filas */
    justify-content: flex-start; /* alineamos sin forzar espacio extra */
    width: 100%;
  }
  
  /* ===== BOTONES EXACTOS 3 COLUMNAS ===== */
  .button-container {
    position: relative;
    width: 33.333%;      /* exactamente 1/3 del contenedor */
    padding: 5px;        /* espacio interno sin romper el ancho */
    aspect-ratio: 1;     /* mantiene forma cuadrada */
    cursor: pointer;
  }
  
  /* Marco del botón */
  .button-container img.frame {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  /* Logo centrado */
  .button-container img.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
  }
  
  /* Círculo indicador */
  .circle {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background: #00224C;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .circle.inactive::after { content: ""; }
  .circle.active::after { content: "X"; }
  
  /* ===== CHECKBOX Y BOTÓN SIGUIENTE ===== */
  .acceptance {
    margin-top: 20px;
    text-align: left;
  }
  
  .acceptance label {
    display: block;
    margin: 10px 0;
  }
  
  .next-button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 18px;
    background: #00224C;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
    opacity: 0.5;
  }
  
  .next-button.enabled {
    cursor: pointer;
    opacity: 1;
  }
  
  /* ===== FRAME INFERIOR ===== */
  .frame-bottom-container {
    border-bottom: 20px solid #00224C;
  }
  
  .frame-bottom {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* ===== RESPONSIVE ===== */
  /* SOLO en pantallas ultra pequeñas (<320px) pasamos a 2 columnas */
  @media (max-width: 320px) {
    .button-container {
      width: 50%;
    }
  }
  