/* ═══════════════════════════════════════════════════════════════
   Pacto Histórico – Registro Viajeros Bojayá 2026
   ═══════════════════════════════════════════════════════════════ */

:root {
  --phr-blue:       #1a237e;
  --phr-blue-mid:   #283593;
  --phr-blue-dark:  #0d1340;
  --phr-yellow:     #ffd600;
  --phr-yellow-lt:  #fff9c4;
  --phr-red:        #e53935;
  --phr-green:      #2e7d32;
  --phr-green-lt:   #e8f5e9;
  --phr-white:      #ffffff;
  --phr-gray-lt:    #f8f9ff;
  --phr-border:     #dde3ff;
  --phr-text:       #1c1c2e;
  --phr-text-muted: #6b7280;
  --phr-radius:     14px;
  --phr-radius-sm:  8px;
  --phr-shadow:     0 10px 40px rgba(26, 35, 126, .18);
  --phr-shadow-sm:  0 4px 16px rgba(26, 35, 126, .1);
}

/* ─── Wrapper ─────────────────────────────────────────────────── */
.phr-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--phr-text);
  border-radius: var(--phr-radius);
  overflow: hidden;
  box-shadow: var(--phr-shadow);
}

/* ─── Banner ──────────────────────────────────────────────────── */
.phr-banner {
  width: 100%;
  background: var(--phr-blue-dark);
  line-height: 0;
}

.phr-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 320px;
  object-fit: cover;
  object-position: center 20%;
}

/* ─── Hero: Gran Caravana ─────────────────────────────────────── */
.phr-hero {
  background: linear-gradient(180deg,
    #06091f 0%,
    #0d1340 25%,
    #1a237e 65%,
    #283593 100%);
  color: #fff;
  text-align: center;
  padding: 52px 40px 48px;
  position: relative;
  overflow: hidden;
}

.phr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,214,0,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(206,17,38,.08) 0%, transparent 50%);
  pointer-events: none;
}

.phr-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    #ffd600 0%, #ffd600 33%,
    #003399 33%, #003399 66%,
    #ce1126 66%, #ce1126 100%);
}

.phr-hero-flags {
  font-size: 1.8rem;
  letter-spacing: 20px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  animation: phrHeroFloat 3.5s ease-in-out infinite;
}

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

.phr-hero-tagline-top {
  font-size: .72rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.phr-hero-title {
  font-size: clamp(2rem, 7vw, 4.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffd600;
  text-shadow: 0 4px 30px rgba(0,0,0,.65), 0 0 80px rgba(255,214,0,.2);
  margin: 0 0 22px;
  line-height: 1.08;
  position: relative;
  z-index: 1;
}

.phr-hero-divider {
  width: 110px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffd600, #ce1126, #ffd600, transparent);
  margin: 0 auto 24px;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.phr-hero-sub {
  font-size: clamp(.95rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,.9);
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.55;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.phr-hero-sub strong {
  color: #ffd600;
  font-weight: 800;
}

.phr-hero-candidatos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.phr-hero-cand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.phr-hero-cand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .4px;
}

.phr-hero-cand-cargo {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}

.phr-hero-vsep {
  font-size: 2.4rem;
  color: rgba(255,214,0,.5);
  font-weight: 200;
  line-height: 1;
}

.phr-hero-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.phr-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,214,0,.28);
  color: rgba(255,255,255,.88);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* ─── Alerta cédula duplicada ──────────────────────────────────── */
.phr-cedula-alerta {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  border-left: 6px solid #f87171;
  color: #fff;
  padding: 20px 28px;
  animation: phrSlideDown .35s ease;
}

@keyframes phrSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.phr-ca-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.phr-ca-body {
  flex: 1;
  font-size: .93rem;
  line-height: 1.6;
}

.phr-ca-body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

/* ─── Cedula field extras ──────────────────────────────────────── */
.phr-cedula-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.phr-cedula-wrap input {
  flex: 1;
}

.phr-cedula-checking {
  position: absolute;
  right: 12px;
  font-size: 1rem;
  animation: phrSpin .9s linear infinite;
  pointer-events: none;
}

.phr-field-dup input {
  border-color: #ef4444 !important;
  background: #fff5f5 !important;
}

/* ─── Motivación ──────────────────────────────────────────────── */
.phr-motivacion {
  background: linear-gradient(160deg,
    var(--phr-blue-dark) 0%,
    var(--phr-blue)      45%,
    var(--phr-blue-mid)  100%);
  color: var(--phr-white);
  padding: 48px 52px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.phr-motivacion::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(255, 214, 0, .07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 60%, rgba(229,  57, 53, .07) 0%, transparent 55%),
    radial-gradient(ellipse at 50%  0%, rgba(255,255,255,.03) 0%, transparent 50%);
  pointer-events: none;
}

.phr-deco-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--phr-yellow) 0%,
    var(--phr-red)    50%,
    var(--phr-green)  100%);
}

.phr-deco-top    { top: 0; }
.phr-deco-bottom { bottom: 0; }

.phr-stars {
  font-size: 1.3rem;
  color: var(--phr-yellow);
  letter-spacing: 16px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.phr-titulo-motivacion {
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--phr-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 20px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .45);
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

.phr-divider-gold {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--phr-yellow), transparent);
  margin: 0 auto 28px;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.phr-texto-motivacion {
  max-width: 740px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 1;
}

.phr-texto-motivacion p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .90);
  margin: 0 0 18px;
}

.phr-texto-motivacion strong {
  color: var(--phr-yellow);
  font-weight: 700;
}

.phr-texto-motivacion em {
  font-style: italic;
  color: #a5d6a7;
}

/* Slogan */
.phr-slogan-wrap {
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.phr-slogan {
  display: inline-block;
  background: var(--phr-yellow);
  color: var(--phr-blue-dark);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 50px;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: 0 6px 28px rgba(255, 214, 0, .4);
  animation: phrPulse 2.4s ease-in-out infinite;
}

.phr-sub-slogan {
  margin-top: 12px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  font-style: italic;
}

@keyframes phrPulse {
  0%,100% { box-shadow: 0 6px 28px rgba(255,214,0,.4); }
  50%      { box-shadow: 0 6px 44px rgba(255,214,0,.75); transform: scale(1.02); }
}

/* ─── Form Card ───────────────────────────────────────────────── */
.phr-form-card {
  background: var(--phr-white);
  padding: 44px 52px 48px;
}

.phr-form-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--phr-border);
}

.phr-form-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.phr-form-header h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--phr-blue);
  margin: 0 0 8px;
}

.phr-form-header p {
  color: var(--phr-text-muted);
  margin: 0;
  font-size: .95rem;
}

/* ─── Grid ────────────────────────────────────────────────────── */
.phr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-bottom: 32px;
}

.phr-field-full {
  grid-column: 1 / -1;
}

/* ─── Fields ──────────────────────────────────────────────────── */
.phr-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.phr-field > label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--phr-text);
  text-transform: uppercase;
  letter-spacing: .6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.phr-label-icon { font-size: 1rem; }

.phr-field .req {
  color: var(--phr-red);
  font-size: .9rem;
}

.phr-field input[type="text"],
.phr-select-wrapper select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--phr-border);
  border-radius: var(--phr-radius-sm);
  font-size: .97rem;
  color: var(--phr-text);
  background: var(--phr-gray-lt);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}

.phr-field input[type="text"]:hover,
.phr-select-wrapper select:hover {
  border-color: #9fa8da;
}

.phr-field input[type="text"]:focus,
.phr-select-wrapper select:focus {
  outline: none;
  border-color: var(--phr-blue);
  background: var(--phr-white);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, .12);
}

.phr-field input::placeholder {
  color: #b0b8d0;
}

/* Select wrapper */
.phr-select-wrapper {
  position: relative;
}

.phr-select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .85rem;
  color: var(--phr-blue);
  pointer-events: none;
}

.phr-select-wrapper select {
  padding-right: 36px;
  cursor: pointer;
}

/* ─── Radio Cards ─────────────────────────────────────────────── */
.phr-radio-group {
  display: flex;
  gap: 14px;
}

.phr-radio-card {
  flex: 1;
  cursor: pointer;
  position: relative;
}

.phr-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.phr-radio-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 12px;
  border: 2px solid var(--phr-border);
  border-radius: var(--phr-radius-sm);
  background: var(--phr-gray-lt);
  transition: all .22s ease;
  font-weight: 600;
  color: var(--phr-text-muted);
  text-align: center;
  min-height: 76px;
  user-select: none;
}

.phr-radio-card:hover .phr-radio-inner {
  border-color: #9fa8da;
  background: var(--phr-yellow-lt);
  color: var(--phr-blue);
}

.phr-radio-card input:checked + .phr-radio-inner {
  border-color: var(--phr-blue);
  background: #e8eaf6;
  color: var(--phr-blue);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, .15);
}

.phr-radio-icon   { font-size: 1.7rem; }
.phr-radio-label  { font-size: .95rem; font-weight: 700; }

/* ─── Day Cards ───────────────────────────────────────────────── */
.phr-day-card .phr-radio-inner {
  min-height: 110px;
  gap: 4px;
}

.phr-day-badge {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 2px;
}

.phr-badge-viernes {
  background: #fff3e0;
  color: #e65100;
}

.phr-badge-sabado {
  background: #e8f5e9;
  color: #2e7d32;
}

.phr-day-card input:checked + .phr-radio-inner .phr-badge-viernes {
  background: #e65100;
  color: #fff;
}

.phr-day-card input:checked + .phr-radio-inner .phr-badge-sabado {
  background: #2e7d32;
  color: #fff;
}

.phr-day-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--phr-blue);
  line-height: 1;
}

.phr-day-month {
  font-size: .72rem;
  color: var(--phr-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

.phr-day-flag { font-size: 1.3rem; margin-top: 2px; }

/* ─── Submit Button ───────────────────────────────────────────── */
.phr-submit-btn {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--phr-blue) 0%, var(--phr-blue-mid) 50%, var(--phr-blue-dark) 100%);
  color: var(--phr-yellow);
  border: none;
  border-radius: var(--phr-radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .6px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(26, 35, 126, .38);
  text-transform: uppercase;
  font-family: inherit;
}

.phr-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .5s ease;
}

.phr-submit-btn:hover::before  { left: 100%; }

.phr-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(26, 35, 126, .5);
}

.phr-submit-btn:active {
  transform: translateY(-1px);
}

.phr-submit-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Spinner ─────────────────────────────────────────────────── */
.phr-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,214,0,.4);
  border-top-color: var(--phr-yellow);
  border-radius: 50%;
  animation: phrSpin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

/* ─── Messages ────────────────────────────────────────────────── */
.phr-success {
  background: var(--phr-green-lt);
  border: 2px solid var(--phr-green);
  border-radius: var(--phr-radius-sm);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 28px;
  animation: phrFadeIn .5s ease;
}

.phr-success-icon { font-size: 3.2rem; margin-bottom: 10px; }

.phr-success h4 {
  color: var(--phr-green);
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.phr-success p {
  color: #388e3c;
  margin: 0;
  font-size: .97rem;
  line-height: 1.6;
}

.phr-error {
  background: #fff5f5;
  border: 2px solid var(--phr-red);
  border-radius: var(--phr-radius-sm);
  padding: 14px 18px;
  color: #c62828;
  font-weight: 600;
  font-size: .93rem;
  margin-bottom: 20px;
  animation: phrShake .35s ease;
}

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

@keyframes phrShake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}

/* ─── Form note ───────────────────────────────────────────────── */
.phr-form-note {
  margin: 18px 0 0;
  font-size: .8rem;
  color: var(--phr-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ─── Capitalize words ────────────────────────────────────────── */
.phr-capitalize {
  text-transform: capitalize;
}

/* ─── Field error state ───────────────────────────────────────── */
.phr-field-error > label {
  color: var(--phr-red);
}

.phr-field-error input[type="text"],
.phr-field-error .phr-select-wrapper select {
  border-color: var(--phr-red);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .1);
}

/* ─── Hidden ──────────────────────────────────────────────────── */
.phr-hidden { display: none !important; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 680px) {
  .phr-hero {
    padding: 36px 20px 36px;
  }

  .phr-hero-flags {
    font-size: 1.4rem;
    letter-spacing: 12px;
  }

  .phr-hero-candidatos {
    flex-direction: column;
    gap: 12px;
  }

  .phr-hero-vsep {
    display: none;
  }

  .phr-hero-chips {
    gap: 8px;
  }

  .phr-hero-chip {
    font-size: .75rem;
    padding: 6px 14px;
  }

  .phr-cedula-alerta {
    padding: 16px 18px;
    gap: 10px;
  }

  .phr-motivacion {
    padding: 32px 22px 28px;
  }

  .phr-form-card {
    padding: 28px 20px 32px;
  }

  .phr-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .phr-field-full {
    grid-column: 1;
  }

  .phr-radio-group {
    gap: 10px;
  }

  .phr-day-number {
    font-size: 2rem;
  }

  .phr-banner img {
    max-height: 200px;
  }

  .phr-titulo-motivacion {
    font-size: 1.6rem;
  }

  .phr-slogan {
    font-size: .88rem;
    padding: 12px 20px;
  }
}

@media (max-width: 420px) {
  .phr-radio-group { flex-direction: column; }
  .phr-radio-group-days { flex-direction: row; }
}
