@import url("https://fonts.cdnfonts.com/css/proxima-nova.css");
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;700;800&display=swap");

body {
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hero-title {
  font-family: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.hero-background {
  background:
    url("../img/hero_banner.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 15px 0 80px 0;
}

.hero-banner-img {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  max-height: min(90vh, 40rem);
  object-fit: contain;
}

.banner-icons-section {
  background: url("../img/banner_icons.webp") bottom / cover no-repeat;
  background-color: #fff;
  padding: 3rem 1.25rem 0;
}

.banner-icons-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.banner-icons-panel {
  background: #EBF2FF;
  border-radius: 1.75rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
  padding: 2.5rem 1.75rem;
}

@media (min-width: 768px) {
  .banner-icons-panel {
    padding: 4rem 3rem;
  }
}

.banner-icons-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .banner-icons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.banner-icons-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.banner-icons-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: #e91e8c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.banner-icons-svg {
  width: 2.25rem;
  height: 2.25rem;
}

.banner-icons-text {
  margin: 0;
  max-width: 22rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #1e293b;
  font-weight: 400;
}

.banner-icons-text strong {
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.cintillo-bg {
  background-image:
    url("../img/cintillo.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/**
 * Fondo de la sección "Ruta de formación".
 * Sustituye o complementa con background-image cuando tengas el asset.
 */
.ruta-formacion-bg {
  background-color: transparent;
  background-image: url("../img/ruta_info_background.webp");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Fondo con ondas: el relleno (padding) queda visible; el contenido va en un hijo con fondo blanco. */
.ondas-bg {
  background-color: #ececec;
  background-image: url("../img/ondas_img.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media (max-width: 767px) {
  .ondas-bg {
    background-image: none;
    background-color: transparent;
  }
}

.cta-primer-paso-bg {
  background-image:
    linear-gradient(135deg, rgba(12, 14, 36, 0.78) 0%, rgba(22, 18, 52, 0.82) 50%, rgba(10, 16, 42, 0.85) 100%),
    url("../img/bg_goToFrom.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.registro-paso1-bg {
  background-color: #f2f2f2;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(197, 202, 211, 0.75) 1px, transparent 0),
    linear-gradient(
      155deg,
      #f2f2f2 0%,
      #eef0f4 38%,
      #f7f8fa 72%,
      #ffffff 100%
    );
  background-size:
    18px 18px,
    100% 100%;
}

input[type="radio"].radio-brand {
  appearance: none;
  margin: 0;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border: 2px solid #0356e6;
  border-radius: 9999px;
  background-color: #ffffff;
  cursor: pointer;
}

input[type="radio"].radio-brand:checked {
  background-color: #0356e6;
  border-color: #0356e6;
  /* Anillo azul con centro blanco (no un disco sólido) */
  box-shadow: inset 0 0 0 3px #ffffff;
}

input[type="radio"].radio-brand:focus-visible {
  outline: none;
}

input[type="radio"].radio-brand:focus-visible:not(:checked) {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0356e6;
}

input[type="radio"].radio-brand:focus-visible:checked {
  box-shadow:
    inset 0 0 0 3px #ffffff,
    0 0 0 2px #ffffff,
    0 0 0 4px #0356e6;
}

input[type="checkbox"].checkbox-brand {
  appearance: none;
  margin: 0;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border: 2px solid #0356e6;
  border-radius: 0.25rem;
  background-color: #ffffff;
  cursor: pointer;
}

input[type="checkbox"].checkbox-brand:checked {
  background-color: #0356e6;
  border-color: #0356e6;
  box-shadow: inset 0 0 0 2px #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.75rem auto;
}

input[type="checkbox"].checkbox-brand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0356e6;
}

.registro-field {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #f3f4f6;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  color: #111827;
}

.registro-field:focus {
  outline: none;
  border-color: #0356e6;
  box-shadow: 0 0 0 1px #0356e6;
}

.registro-field::placeholder {
  color: #9ca3af;
}

.registro-tip-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.registro-tip-wrap .registro-tip-bubble {
  pointer-events: none;
  position: absolute;
  z-index: 30;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  width: max-content;
  max-width: 14rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 0.75rem;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.registro-tip-wrap:hover .registro-tip-bubble,
.registro-tip-wrap:focus-within .registro-tip-bubble {
  opacity: 1;
  visibility: visible;
}

