
/* ============================================================
   COMUNIDAD TRA(N)SCENDER — HOJA DE ESTILOS
   Paleta: fondo crema cálido · acento ciruela/magenta · dorado
   Tipografía: Frente Nacional (títulos) + Open Sauce One (cuerpo)
   ============================================================ */

:root {
  --bg:         #faf7f2;
  --surface:    #ffffff;
  --border:     #e0d8ce;
  --border-focus: #9b4f7e;
  --text-dark:  #1c1017;
  --text-mid:   #5a4a53;
  --text-light: #9c8d95;
  --accent:     #9b4f7e;
  --accent-dark:#7a3560;
  --accent-soft:#f5eaf1;
  --gold:       #c9963a;
  --error:      #c0392b;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow-md:  0 6px 24px rgba(28,16,23,.10);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sauce One', sans-serif;
  color: var(--text-dark);
}

/* ── PAGE WRAPPER ── */
@media (min-width: 1280px) {
.pageForm {
  position: relative;
  width: 550px;
  top:25vh;
  left:35vw;
  z-index: 20;
}
}
@media (max-width:1280px){
	.pageForm {
	  position: absolute;
	  width: 90vw;
	  top:45vh;
	  left:5vw;
	  z-index: 20;
	}
}

/* ── HEADER ── */
.site-header {
  text-align: center;
  padding: 48px 0 10px;
  position: relative;
}
.site-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  margin: 20px auto 0;
  border-radius: 2px;
}
.site-title {
  font-family: 'Frente Nacional', sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -.01em;
  line-height: 1.15;
}
.site-subtitle {
  font-size: .9rem;
  color: var(--text-light);
  font-weight: 300;
  margin-top: 6px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── PROGRESS BAR ── */
.progress-shell {
  padding-bottom: 20px;
}
.progress-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-light);
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.step-label {
  font-size: .72rem;
  color: var(--text-light);
  text-align: center;
  max-width: 80px;
  line-height: 1.3;
  transition: var(--transition);
}
.progress-step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.progress-step.active .step-label { color: var(--accent); font-weight: 500; }
.progress-step.done .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.progress-step.done .step-label { color: var(--gold); }

.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(155, 79, 126, 1);
  max-width: 80px;
  margin-bottom: 24px;
  transition: background var(--transition);
}
.progress-line.filled { background: var(--gold); }

/* ── FORM CONTAINER ── */
.form-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ── SECTIONS ── */
.form-section {
  display: none;
  padding: 20px 20px 36px;
  animation: fadeSlide .35s ease;
}
.form-section.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.section-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Frente Nacional', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ── FIELDS ── */
.field-group {
  margin-bottom: 22px;
}
.field-label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.required { color: var(--accent); margin-left: 2px; }
.optional  { color: var(--text-light); font-weight: 300; font-size: .78rem; }

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Open Sauce One', sans-serif;
  font-size: .9rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  appearance: none;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(155,79,126,.12);
}
.field-input.invalid,
.field-select.invalid,
.field-textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
.field-input:disabled,
.field-textarea:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.field-textarea { resize: vertical; min-height: 100px; }

.field-hint {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 5px;
  display: block;
}
.field-error {
  font-size: .75rem;
  color: var(--error);
  margin-top: 5px;
  display: block;
  min-height: 16px;
}

/* ── SELECT WRAPPER ── */
.select-wrapper {
  position: relative;
}
.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-light);
  font-size: 1rem;
}

/* ── CHECKBOXES ── */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: border-color var(--transition), background var(--transition);
}
.checkbox-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  margin-top: 1px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}
.checkbox-item input:checked ~ .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-item input:checked ~ .checkbox-custom::after {
  content: '✓';
  color: #fff;
  font-size: .75rem;
  font-weight: bold;
  position: absolute;
}
.checkbox-item input:checked ~ .checkbox-text {
  color: var(--accent-dark);
  font-weight: 500;
}
.checkbox-text { font-size: .87rem; line-height: 1.45; }

/* ── CHAR COUNTER ── */
.char-counter {
  text-align: right;
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 5px;
}
.char-counter span.warning { color: var(--gold); font-weight: 500; }
.char-counter span.danger  { color: var(--error); font-weight: 500; }

/* ── AUTHORIZATION CHECKBOX ── */
.authorization-check {
  align-items: flex-start;
  border: 1.5px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg);
}
.authorization-text {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--text-mid);
}


/* ── reCAPTCHA ── */
.recaptcha-wrapper {
  margin-top: 8px;
  margin-bottom: 4px;
}
.recaptcha-wrapper .g-recaptcha {
  transform-origin: left top;
}
@media (max-width: 360px) {
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.85);
  }
}

/* ── NAVIGATION BUTTONS ── */
.form-nav {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}
.form-nav.two-buttons { justify-content: space-between; }

.btn-next, .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: 'Open Sauce One', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(155,79,126,.3);
}
.btn-next:hover, .btn-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(155,79,126,.4);
}
.btn-next:active, .btn-submit:active { transform: translateY(0); }
.btn-submit { background: var(--gold); box-shadow: 0 4px 14px rgba(201,150,58,.3); }
.btn-submit:hover { background: #b5822d; box-shadow: 0 6px 20px rgba(201,150,58,.4); }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  padding: 13px 22px;
  border-radius: 50px;
  font-family: 'Open Sauce One', sans-serif;
  font-size: .9rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
}
.btn-back:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-arrow { font-size: 1rem; }

/* ── SUCCESS ── */
.success-message {
  text-align: center;
  padding: 60px 20px;
}
.success-icon {
  font-size: 3.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}
.success-title {
  font-family: 'Frente Nacional', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.success-body {
  color: var(--text-mid);
  font-size: .95rem;
  line-height: 1.8;
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 32px 0 16px;
  font-size: .76rem;
  color: var(--text-light);
}

/* ── RESPONSIVE ── 
@media (max-width: 520px) {
  .form-section { padding: 28px 20px 24px; }
  .progress-line { max-width: 36px; }
  .step-label { max-width: 60px; font-size: .65rem; }
  .site-title { font-size: 1.6rem; }
}*/