/* Modern neutral theme for Terceros public registration */
:root{
  --card: #ffffff;
  --card-border: #e2e8f0;
  --muted: #64748b;
  --text: #334155;
  --accent: #3b82f6;
  --accent-light: #dbeafe;
  --success: #10b981;
  --warning: #f59e0b;
  --ring: rgba(59,130,246,.2);
  --input-bg: #f8fafc;
  --input-border: #cbd5e1;
}

.terceros-register{
  padding: 0 !important;
}

/* ============================================================
   WIZARD – progress bar & step panels
   ============================================================ */

/* Progress bar */
.wizard-progress{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 12px 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.wizard-progress .wz-step{
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 60px;
}
.wizard-progress .wz-step .wz-circle{
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  color: var(--muted);
  transition: all .3s ease;
  position: relative;
  z-index: 2;
}
.wizard-progress .wz-step.active .wz-circle{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--ring);
}
.wizard-progress .wz-step.done .wz-circle{
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.wizard-progress .wz-step .wz-label{
  font-size: .65rem;
  color: var(--muted);
  margin-top: 3px;
  text-align: center;
  line-height: 1.1;
}
.wizard-progress .wz-step.active .wz-label{
  color: var(--accent);
  font-weight: 600;
}
.wizard-progress .wz-step.done .wz-label{
  color: var(--success);
}
/* connector lines */
.wizard-progress .wz-step:not(:last-child)::after{
  content: '';
  position: absolute;
  top: 15px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--input-border);
  z-index: 1;
}
.wizard-progress .wz-step.done:not(:last-child)::after{
  background: var(--success);
}

/* Step panels */
.wizard-panel{
  display: none;
  animation: wzFadeIn .35s ease;
}
.wizard-panel.active{
  display: block;
}
@keyframes wzFadeIn{
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Navigation buttons */
.wizard-nav{
  display: flex;
  justify-content: space-between;
  padding: 10px 0 4px;
  gap: 10px;
}
.wizard-nav .btn-wz{
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.wizard-nav .btn-wz-back{
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
}
.wizard-nav .btn-wz-back:hover{
  background: #eef2f7;
}
.wizard-nav .btn-wz-next{
  background: var(--accent);
  color: #fff;
}
.wizard-nav .btn-wz-next:hover{
  background: #2563eb;
  transform: translateY(-1px);
}
.wizard-nav .btn-wz-submit{
  background: var(--success);
  color: #fff;
}
.wizard-nav .btn-wz-submit:hover{
  background: #059669;
  transform: translateY(-1px);
}
.wizard-nav .btn-wz:disabled{
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   GENDER BUTTONS
   ============================================================ */
.gender-selector{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}
.gender-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  cursor: pointer;
  transition: all .25s ease;
  padding: 6px 4px;
}
.gender-btn:hover{
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}
.gender-btn.selected{
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--ring);
}
.gender-btn .gender-icon{
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 2px;
}
.gender-btn .gender-label{
  font-size: .7rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.15;
}

/* ============================================================
   STEP TITLE
   ============================================================ */
.step-title{
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--card-border);
}
.step-title i{
  color: var(--accent);
  margin-right: 6px;
}

/* ============================================================
   VOTING LOCATION SECTION
   ============================================================ */
.votacion-section{
  margin-bottom: 14px;
}
.votacion-header{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 8px;
}
.votacion-header i{
  color: var(--accent);
  font-size: 1.1rem;
}
.votacion-selector{
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.votacion-selector input{
  flex: 1;
  cursor: pointer !important;
  font-size: .85rem !important;
}
.votacion-selector .btn{
  white-space: nowrap;
  padding: 8px 14px !important;
  font-size: .85rem !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.votacion-hint{
  font-size: .78rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.votacion-hint i{
  color: var(--accent);
  margin-right: 2px;
}
.votacion-hint a{
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
/* Voting info result card */
.votacion-info-card{
  background: linear-gradient(135deg, var(--accent-light) 0%, #f0f7ff 100%);
  border: 1px solid rgba(59,130,246,.25);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  animation: wzFadeIn .35s ease;
}
.votacion-info-card .vi-title{
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.votacion-info-card .vi-title i{
  font-size: 1rem;
}
.votacion-info-card .vi-row{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}
.votacion-info-card .vi-row + .vi-row{
  border-top: 1px solid rgba(59,130,246,.12);
}
.votacion-info-card .vi-icon{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.votacion-info-card .vi-data{
  flex: 1;
  min-width: 0;
}
.votacion-info-card .vi-label{
  font-size: .68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1;
}
.votacion-info-card .vi-value{
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}
/* Resumen variant in Confirmación step */
.votacion-resumen{
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: rgba(16,185,129,.3);
  border-left-color: var(--success);
  margin: 12px 0;
}
.votacion-resumen .vi-title{
  color: var(--success);
}
.votacion-resumen .vi-icon{
  background: var(--success);
}

/* Card wrapper */
.terceros-card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  padding: 16px 16px;
  margin-top: 8px;
}

/* Typography */
legend{
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.notification{
  border: 1px solid var(--card-border);
  background: var(--card);
}

/* Inputs */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea{
  background: var(--input-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 8px !important;
  outline: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
  padding: 8px 10px !important;
}

input:focus, select:focus, textarea:focus{
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--ring) !important;
  background: #ffffff !important;
}

/* Buttons */
button, .btn{
  border-radius: 8px !important;
  font-weight: 500 !important;
}
.btn-info{
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #ffffff !important;
  transition: all .2s ease !important;
}
.btn-info:hover{
  background: #2563eb !important;
  border-color: #2563eb !important;
  transform: translateY(-1px);
}

/* Lists */
.list-group-item{
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--card-border) !important;
  transition: all .2s ease !important;
}
.list-group-item:hover{
  background: var(--input-bg) !important;
}
.list-group-item-success{
  background: rgba(16,185,129,.1) !important;
  border-color: var(--success) !important;
  color: #065f46 !important;
}
.list-group-item-warning{
  background: rgba(245,158,11,.1) !important;
  border-color: var(--warning) !important;
  color: #92400e !important;
}

/* Alerts */
.alert-info{
  background: var(--accent-light);
  color: #1e40af;
  border-color: var(--accent);
  border-radius: 8px;
}

/* Modal body */
.modal-lugarvotacion{
  background: var(--card);
}

/* Map container */
#map-google{
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Policy section */
#politicas{
  max-height: 200px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--input-bg);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Form labels */
label{
  color: var(--text) !important;
  font-weight: 500 !important;
  margin-bottom: 4px !important;
  font-size: .9rem !important;
}

/* Tighter form groups */
.terceros-card .form-group{
  margin-bottom: 10px;
}
