* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(
    circle at top,
    #6ecbff,   /* aqua claro */
    #1b8fbf,   /* azul agua */
    #0a3d62    /* azul profundo */
  );
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* HEADER */
.main-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 960px;
  width: 100%;
}

.institucion-logo {
  height: 100px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #0b1120;
  padding: 4px;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.institucion-nombre {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.institucion-sub {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* MAIN */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Contenedor principal */
.wrapper {
  width: 100%;
  max-width: 480px;
}

/* Tarjeta */
.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 24px;
  padding: 24px 20px 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

/* Barra de progreso */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  border-radius: inherit;
  transition: width 0.4s ease;
}

/* Título */
h2 {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Steps */
.form-step {
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  pointer-events: none;
  inset: 70px 20px 70px;
  display: flex;
  position: absolute;
  top: 0;
  flex-direction: column;
  gap: 12px;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* Estado visible */
.form-step.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

/* Movimiento para slide */
.form-step.exit-left {
  opacity: 0;
  transform: translateX(-40px) scale(0.98);

}
.form-step.exit-right {
  opacity: 0;
  transform: translateX(40px) scale(0.98);

}

/* Título de cada step */
.form-step h3 {
  margin: 0;
}

/* Texto descriptivo */
.description {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Inputs */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
  transform: translateY(-1px);
}

/* Radios */
.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

.options input[type="radio"] {
  accent-color: #22c55e;
}

.options label:hover {
  background: rgba(30, 64, 175, 0.3);
  border-color: rgba(129, 140, 248, 0.7);
  transform: translateY(-1px);
}

/* Controles */
.controls {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  width: 100%;
  position: absolute;
  bottom: 0;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.7);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.7);
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* FOOTER */
.main-footer {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
}

.footer-left {
  color: #9ca3af;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.footer-link:hover {
  background: rgba(30, 64, 175, 0.5);
  border-color: rgba(129, 140, 248, 0.8);
  transform: translateY(-1px);
}

.footer-logo {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-ig-icon {
  font-size: 1rem;
}

/* Responsivo */
@media (max-width: 480px) {
  .card {
    padding: 20px 16px 16px;
  }
  .form-step {
    inset: 70px 0 70px;
    padding-inline: 4px;
    top: 0;
  }

  .header-left {
    justify-content: center;
  }

  .main-footer {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .main-header .header-left  {
    display: flex;
    flex-direction: column;
  }
}


.charts-grid {
  margin-top: 16px;
  display: flex;
  flex-direction: column; /* uno debajo del otro */
  gap: 16px;
}

.chart-block {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.chart-block h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 0.95rem;
}



.footer-list {
  margin: 4px 0 10px 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 0.8rem;
}

.footer-list li {
  line-height: 1.3;
}

/* Botón debajo de la tarjeta */
.external-button-container {
  margin-top: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.external-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #0d1b2a;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.external-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
}

.external-button:active {
  transform: translateY(0);
}

#wizardForm {
    position: relative;
    height: 300px;
}