@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

body {
  background-image: url("../images/bgFormulario.jpeg");
}

.page-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 32%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.22), rgba(8, 12, 20, 0.08));
  z-index: 0;
}

.float-gentle {
  animation: floatGentle 5s ease-in-out infinite;
}

.glass-card {
  background: linear-gradient(180deg, rgba(248,250,252,0.94) 0%, rgba(238,243,247,0.90) 100%);
  backdrop-filter: blur(10px);
}

.timeline {
  top: 152px;
  bottom: 48px;
  left: 84px;
  width: 22px;
  position: absolute;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #243248, #1c2636);
}

.timeline-dot {
  position: absolute;
  left: -11px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.05);
  animation: pulseDot 3.5s ease-in-out infinite;
}

.timeline-dot.gold {
  background: linear-gradient(180deg, #8c7547, #a68d57);
}

.timeline-dot.navy {
  background: linear-gradient(180deg, #243248, #132033);
}

.field-label {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  color: #1c2636;
}

.label-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 42px;
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(140, 117, 71, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  padding: 0 16px;
  outline: none;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 0.98rem;
  color: #1f2937;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 8px 18px rgba(28,38,54,0.05);
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.field-input::placeholder {
  color: #94a3b8;
}

.field-input:hover {
  transform: translateY(-1px);
  border-color: rgba(140, 117, 71, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 12px 22px rgba(28,38,54,0.08);
}

.field-input:focus {
  background: #ffffff;
  border-color: rgba(140, 117, 71, 0.60);
  box-shadow:
    0 0 0 4px rgba(140,117,71,0.14),
    0 12px 22px rgba(28,38,54,0.10);
}

.help-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc 0%, #e9eef4 100%);
  color: #1c2636;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(28,38,54,0.10);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.help-btn:hover {
  transform: translateY(-1px) scale(1.04);
  background: linear-gradient(90deg, #8c7547, #a68d57);
  color: white;
  box-shadow: 0 14px 24px rgba(140,117,71,0.18);
}

.help-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  border-radius: 18px;
  border: 1px solid rgba(28,38,54,0.08);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 34px rgba(0,0,0,0.14);
  padding: 14px 14px 13px;
  backdrop-filter: blur(12px);
  animation: popIn .18s ease;
}

.help-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  width: 14px;
  height: 14px;
  background: white;
  border-left: 1px solid rgba(28,38,54,0.08);
  border-top: 1px solid rgba(28,38,54,0.08);
  transform: rotate(45deg);
}

.help-popover .help-popover-title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1c2636;
}

.help-popover .help-popover-text {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #475569;
}

.upload-label-tailwind {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px dashed rgba(28,38,54,0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #fafafa 0%, #f1f2f4 100%);
  padding: 12px 14px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.upload-label-tailwind:hover {
  transform: translateY(-1px);
  border-color: rgba(140,117,71,0.52);
  background: linear-gradient(180deg, #faf8f3 0%, #f2ece2 100%);
  box-shadow: 0 12px 22px rgba(140,117,71,0.10);
}

.upload-button-tailwind {
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #8c7547, #a68d57);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  padding: 11px 18px;
  box-shadow: 0 10px 18px rgba(140,117,71,0.16);
}

.choice-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1c2636;
  cursor: pointer;
}

.choice-check {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #e4e7eb 0%, #dadddf 100%);
  position: relative;
  transition: all .25s ease;
}

.choice-check:checked {
  background: linear-gradient(180deg, #8c7547, #a68d57);
  box-shadow: 0 10px 16px rgba(140,117,71,0.18);
}

.choice-check:checked::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: white;
  border-radius: 50%;
}

.choice-check:not(.rounded-full):checked::after {
  border-radius: 3px;
}

.error-text {
  display: block;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #dc2626;
  margin-top: 2px;
}

.input-error {
  border-color: rgba(248,113,113,0.75) !important;
  box-shadow: 0 0 0 4px rgba(248,113,113,0.14) !important;
  background: linear-gradient(180deg, #fff8f8 0%, #fff2f2 100%) !important;
}

.upload-error {
  border-color: rgba(248,113,113,0.75) !important;
  box-shadow: 0 0 0 4px rgba(248,113,113,0.14) !important;
  background: linear-gradient(180deg, #fff8f8 0%, #fff2f2 100%) !important;
}

.lang-toggle {
  overflow: hidden;
}

.lang-thumb.is-en {
  transform: translateX(48px);
}

.lang-text-active {
  color: white;
  transition: color .25s ease;
}

.lang-text-inactive {
  color: #243248;
  transition: color .25s ease;
}

.lang-toggle[data-lang="en"] #langEsText {
  color: #243248;
}

.lang-toggle[data-lang="en"] #langEnText {
  color: white;
}

#formStatus.success {
  color: #15803d;
}

#formStatus.error {
  color: #dc2626;
}

.btn-loader {
  animation: spin .8s linear infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}