.formulariokg-wrapper {
  padding: 25px;
}

/* ===== GRID 2 COLUMNAS REAL ===== */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ===== COLUMNAS ===== */
.formulario {
  width: 100%;
  padding: 25px;
}

.resultado {
  width: 100%;
  background: #fff;
  color:#1a1a1a;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: sticky;
  top: 20px;
}

/* ===== NIVELES ===== */
.nivel {
  margin-bottom: 30px;
  transition: 0.3s;
}

.nivel h6 {
  margin-bottom: 15px;
  font-size:20px;
  font-weight:bold;
}

/* ===== OPCIONES ===== */
.opciones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* BOTONES BASE */
.opciones button {
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  background: #c4c4c4;
  color:#1a1a1a;
  cursor: pointer;
  transition: 0.3s;
}

/* HOVER */
.opciones button:hover {
  background: #ffffff;
  color: #000;
}

/* ACTIVO */
.opciones button.active {
  background: #1b5e20;
  color: #fff;
  opacity: 1 !important;
}

/* 👇 EFECTO CLAVE: OPCIONES NO SELECCIONADAS */
.opciones button.inactive {
  opacity: 0.9;
}

/* ===== BLOQUEADO (NIVEL COMPLETO) ===== */
.bloqueado {
  opacity: 0.3;
  pointer-events: none;
}

/* ===== TEXTO ===== */
#output {
  font-size: 22px;
  font-weight: bold;
  width: 100%;
  color:#1a1a1a;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: sticky;
  top: 20px;
	margin-left:40px;
}

/* ===== CONTENEDOR CENTRAL ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== ACCIONES ===== */
.acciones {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* BOTONES */
.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  transition: 0.3s;
}

.acciones {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-start; /* o center si quieres centrarlos */
}

/* RESET */
.btn.reset {
  background: #e53935;
}

.btn.reset:hover {
  background: #c62828;
}

/* SUBMIT */
.btn.submit {
  background: #2e7d32;
}

.btn.submit:hover {
  background: #1b5e20;
}

/* BLOQUEADO */
.acciones.bloqueado {
  opacity: 0.3;
  pointer-events: none;
}

/* ===== TOOLTIP ===== */
.tooltip-container {
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

/* mostrar tooltip SOLO si está bloqueado */
.tooltip-container:hover .tooltip {
  opacity: 1;
}

/* ocultar tooltip si ya está activo */
.btn.submit:not(.bloqueado) + .tooltip {
  display: none;
}

/* ===== BOTÓN BLOQUEADO INDIVIDUAL ===== */
.btn.bloqueado {
  opacity: 0.4;
  pointer-events: none;
}

#output img {
  border-radius: 12px;
  margin-bottom: 10px;
}

.resultado img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

#output img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* ===== BORDES NIVELES ===== */
.nivel {
  border: 2px solid #ffffff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  transition: 0.3s;
}

/* NIVEL ACTIVO (verde) */
.nivel.activo {
  border: 2px solid #1b5e20;
}

/* NIVEL BLOQUEADO (opaco ya lo tienes, pero reforzamos visual) */
.nivel.bloqueado {
  opacity: 0.3;
}

/* OPCIONAL: transición más suave */
.nivel {
  transition: border 0.3s ease, opacity 0.3s ease;
}

.entrega{
	font-size:14px;
	color:#ccc;
	text-align:right;
}

/* ===== SUBGRUPOS NIVEL 3 ===== */
.subgrupo {
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ===== SUBGRUPO EN LÍNEA ===== */
.subgrupo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* TÍTULO A LA IZQUIERDA */
.subgrupo p {
  margin: 0;
  min-width: 90px;
}

/* BOTONES A LA DERECHA */
.subgrupo .opciones {
  flex: 1;
}

#form-msg {
  margin-top: 15px;
  font-size: 14px;
  font-weight: bold;
}

#form-msg.success {
  color: #2e7d32;
}

#form-msg.error {
  color: #c62828;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* que el resultado se vaya abajo */
  #output {
    position: relative;
    top: auto;
	  margin-left:10px;
  }

  /* opcional: menos padding en mobile */
  .formulario,
  #output {
    padding: 0px;
  }

  /* botones más cómodos en mobile */
  .opciones {
    gap: 8px;
	  font-size:12px;
  }

  .opciones button {
    flex: 1 1 auto;
    text-align: center;
	padding:8px;
  }
	
	/* BOTONES */
.btn {
  padding: 8px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  transition: 0.3s;
	font-size:12px;
}

.acciones {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-start; /* o center si quieres centrarlos */
}

/* RESET */
.btn.reset {
  background: #e53935;
}

.btn.reset:hover {
  background: #c62828;
}

/* SUBMIT */
.btn.submit {
  background: #2e7d32;
}

.btn.submit:hover {
  background: #1b5e20;
}

}

@media (max-width: 768px) {
  .formulariokg-wrapper {
    padding: 0px;
  }
}

.KG-imagen-blur {
    position: relative;
    display: inline-block;
}

.KG-imagen-blur img.main {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
}

.KG-imagen-blur img.blur {
    position: absolute;
    inset: 0;
    z-index: 1;

    transform: scale(1.2);
    filter: blur(50px);
    opacity: 0.8;

    pointer-events: none;
}

.kg-input-email {
  width: 100%;
  padding: 10px 18px;
  border-radius: 25px;
  border: none;
  background: #c4c4c4;
  color: #1a1a1a;
  outline: none;
  transition: 0.3s;
}

.kg-input-email:focus {
  background: #ffffff;
}

.kg-input-email.valido {
  background: #1b5e20;
  color: #fff;
}

.kg-input-email.invalido {
  background: #e53935;
  color: #fff;
}