/* Base y colores corporativos (ajusta si necesitas) */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafc;
  color: #2c2c2c;
  margin: 0;
  padding: 0;
}

header.encabezado {
  display: flex;
  align-items: center;
  background-color: rgb(85, 15, 15);
  color: #ffffff;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

header .logo {
  max-height: 120px;
  width: auto;
  margin-right: 20px;
}

.titulos {
  text-align: center;
  width: 100%;
}

h1 {
  font-size: 28px;
  margin: 0;
  font-weight: bold;
  color: #ffffff;
}

h2 {
  font-size: 18px;
  margin: 8px 0 0 0;
  font-weight: normal;
  opacity: 0.9;
  color: #ffffff;
}

.container {
  width: 85%;
  margin: auto;
  padding: 25px;
}

.intro-llamativo {
  background-color: #fdf2f2;
  border-left: 6px solid rgb(85, 15, 15);
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: #333;
}
.intro-llamativo strong { color: rgb(85, 15, 15); font-size: 18px; }
.intro-llamativo .resaltado { color: #004080; font-weight: bold; }

.aviso {
  background-color: #fff8e1;
  border-left: 5px solid #ffa000;
  padding: 15px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 5px;
  text-align: justify;
}
.aviso a { color: #004080; font-weight: bold; text-decoration: none; }
.aviso a:hover { text-decoration: underline; }

.botones-documento {
  margin: 20px 0;
  text-align: center;
display: flex;
  flex-direction: column;   /* coloca los botones en columna */
  align-items: center;      /* centra los botones horizontalmente */
  gap: 20px;                /* espacio entre cada botón */
}

.btn-opcion {
  background-color: #5c2020; /* dark burgundy */
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  margin: 10px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  transition: 0.3s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.btn-opcion:hover {
  background-color: #6a2a2a;
  transform: translateY(-1px);
}

/* Iconos a la izquierda y badge Premium */
.btn-opcion .icon {
  font-size: 18px;
  color: #f6c0cb; /* tono rosado suave para el documento */
}
.premium-label {
  display: inline-block;
  background: linear-gradient(135deg, #f5e0b4, #e0c07b);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
  border: 1px solid #b08a0a;
  animation: destello 1.5s infinite;
}
.premium-label::before { content: "🔒"; margin-right: 4px; }

@keyframes destello {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-image: url("logo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 180px auto;
  color: #2c2c2c;
}
textarea::placeholder { color: #666; }

.nota { font-size: 14px; color: #555; margin-top: 10px; }

.acciones { margin-top: 15px; text-align: center; }

.btn-verificar {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 12px 25px;
  margin-right: 10px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.btn-verificar:hover { background-color: #004a99; transform: scale(1.05); }

.btn-cancelar {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.btn-cancelar:hover { background-color: #b52a37; transform: scale(1.05); }

/* Status (quitar flecha de progreso persistente) */
#estado {
  margin-top: 20px;
  font-weight: bold;
  color: #1e66f2;
  font-size: 18px;
  text-align: center;
  min-height: 24px;
}
.cumple { color: #1a7e1a; font-weight: bold; }
.no-cumple { color: #d00; font-weight: bold; }

/* Radar y dinamismo */
#resultado-container {
  display: flex;
  flex-direction: column;   /* 🔑 apila todo en vertical */
  gap: 25px;
  margin-top: 20px;
  align-items: stretch;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#graficoCumplimiento {
  width: 100%;
  max-width: 520px;
  height: 320px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Responsividad móvil */
@media (max-width: 768px) {
  #graficoCumplimiento {
    height: 260px !important;
    margin-top: 16px;
  }
}

/* Radar con suavidad */
#graficoCumplimiento {
  width: 100%;
  max-width: 520px;
  height: 320px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
#graficoCumplimiento:hover { transform: scale(1.03); }
#graficoCumplimiento.animate { animation: radarDynamic 4s ease-in-out infinite; }
@keyframes radarDynamic {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* CTA premium (centrado) */
.btn-premium {
  display: inline-block;
  background: rgb(85, 15, 15);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn-premium:hover { background: #5c0f0f; }

/* CTA final gris/desactivado (pero listo para activar) si se desea mostrar desactivado */
.btn-premium-ghost {
  display: inline-block;
  background: #6f6f6f;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #555;
  opacity: 0.95;
  cursor: not-allowed;
  pointer-events: none;
  transition: 0.3s;
}
.btn-premium-ghost:hover { transform: none; }

/* Modal Premium */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; }
.modal-contenido { background: #fff; padding: 25px; border-radius: 10px; max-width: 420px; text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4); border: 3px solid rgb(85, 15, 15); }
.modal-contenido h3 { color: rgb(85, 15, 15); margin-bottom: 15px; font-size: 20px; }
.modal-contenido p { font-size: 15px; margin-bottom: 20px; color: #333; }
.btn-cerrar { margin-top: 10px; padding: 8px 12px; border-radius: 6px; border: none; background: #ddd; cursor: pointer; }
.btn-cerrar:hover { background: #bbb; }

/* Footer */
footer {
  background-color: rgb(85, 15, 15);
  color: #fff;
  text-align: center;
  padding: 18px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* Radar general */
#graficoCumplimiento {
  width: 100%;
  max-width: 520px;
  height: 320px;
  margin: 20px auto;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Responsividad móvil */
@media (max-width: 600px) {
  #graficoCumplimiento {
    width: 100% !important;
    max-width: 100% !important;
    height: 260px !important;   /* altura fija para que se vea en móvil */
    margin-top: 16px;
  }
}

/* Responsividad móvil */
@media (max-width: 600px) {
  header.encabezado { flex-direction: column; text-align: center; }
  header .logo { max-height: 80px; margin: 0 auto 10px; }
  h1 { font-size: 22px; }
  h2 { font-size: 16px; }
  .container { width: 95%; padding: 15px; }
  .aviso { font-size: 14px; text-align: center; }
  #resultado-container { grid-template-columns: 1fr; }
  #graficoCumplimiento { height: auto; max-width: 100%; }
  .cta-wrapper { text-align: center; margin-top: 12px; }
}
/* Radar con suavidad (escritorio) */
#graficoCumplimiento {
  width: 100%;
  max-width: 520px;
  height: 320px;
  margin: 20px auto;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Responsividad móvil (ajuste específico del radar) */
@media (max-width: 600px) {
  #resultado-container { grid-template-columns: 1fr; }

  #graficoCumplimiento {
    width: 100% !important;
    max-width: 100% !important;
    height: 260px !important;   /* altura fija para que se vea */
    margin-top: 16px;
  }
}
/* Escritorio: dos columnas */
#resultado-container {
  display: grid;
  grid-template-columns: 2fr 1fr;   /* resultado a la izquierda, radar a la derecha */
  gap: 25px;
  margin-top: 20px;
  align-items: start;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Móvil: apilar en una sola columna */
@media (max-width: 768px) {
  #resultado-container {
    grid-template-columns: 1fr;     /* 🔑 fuerza una sola columna */
    grid-template-rows: auto auto;  /* cada bloque ocupa su fila */
  }
  #graficoCumplimiento {
    width: 100% !important;
    max-width: 100% !important;
    height: 260px !important;
    margin-top: 16px;
  }
}
@media (max-width: 768px) {
  .btn-verificar {
    margin-bottom: 14px; /* 🔑 espacio debajo del botón azul solo en móvil */
  }
}
