/* ═══════════════════════════════════════════════════
   registro_ciudadano.css — Bolsa Digital de Empleo
   ═══════════════════════════════════════════════════ */

:root {
  --guinda:       #7B1D3E;
  --guinda-dark:  #5a1530;
  --guinda-light: #9e2550;
  --dorado:       #C9A84C;
  --dorado-light: #e8c97a;
  --crema:        #F8F3EA;
  --crema-dark:   #ede3d0;
  --texto:        #2c2c2c;
  --gris:         #6b7280;
  --blanco:       #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--crema); min-height: 100vh; color: var(--texto); }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar-principal { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 3rem 0 4rem; height: 140px; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-nav { height: 115px; width: auto; object-fit: contain; }
.navbar-nav { display: flex; align-items: center; gap: .2rem; }
.nav-link { font-size: .95rem; font-weight: 700; padding: .6rem 1.2rem; border-radius: 6px; background: transparent; color: var(--guinda); letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s; text-decoration: none; }
.nav-link:hover, .nav-link.active { background: rgba(133,37,67,.08); color: var(--guinda); }
.navbar-toggler { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.navbar-toggler span { display: block; width: 24px; height: 2px; background: var(--guinda); border-radius: 2px; transition: .2s; }

@media (max-width: 768px) {
  .navbar-toggler { display: flex; }
  .navbar-inner { height: 80px; padding: 0 1rem; }
  .logo-nav { height: 62px; }
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.1); gap: .4rem; z-index: 99; }
  .navbar-nav.open { display: flex; }
  .nav-link { margin-left: 0; text-align: center; }
}

/* ══════════════════════════════════════
   STEPPER
══════════════════════════════════════ */
.stepper-wrapper { background: var(--blanco); border-bottom: 1px solid var(--crema-dark); padding: 1.2rem 2rem; display: flex; justify-content: center; }
.stepper { display: flex; align-items: center; max-width: 420px; width: 100%; }
.step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex: 1; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 18px; left: 55%; width: 90%; height: 2px; background: var(--crema-dark); z-index: 0; transition: background 0.4s; }
.step.done:not(:last-child)::after { background: var(--dorado); }
.step-circle { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--crema-dark); background: var(--blanco); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--gris); position: relative; z-index: 1; transition: all 0.3s; }
.step.active .step-circle { background: var(--guinda); border-color: var(--guinda); color: var(--blanco); box-shadow: 0 0 0 4px rgba(123,29,62,0.15); }
.step.done .step-circle { background: var(--dorado); border-color: var(--dorado); color: var(--blanco); }
.step-label { font-size: 0.7rem; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: 0.04em; }
.step.active .step-label { color: var(--guinda); }
.step.done .step-label { color: var(--dorado); }

/* ══════════════════════════════════════
   FORM CONTAINER
══════════════════════════════════════ */
.form-container { width: 100%; margin: 0; padding: 2rem 2rem 3rem; }
.form-card { background: var(--blanco); border-radius: 0; box-shadow: none; overflow: hidden; }

/* ══════════════════════════════════════
   CARD HEADER
══════════════════════════════════════ */
.form-card-header { background: linear-gradient(90deg, var(--crema) 0%, var(--crema-dark) 100%); padding: 1.4rem 2rem; border-bottom: 2px solid var(--dorado); display: flex; align-items: center; gap: 0.8rem; }
.form-card-header .icon { width: 44px; height: 44px; background: var(--guinda); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.form-card-header h2 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--guinda); font-weight: 700; }
.form-card-header p { font-size: 0.8rem; color: var(--gris); margin-top: 0.1rem; }

/* ══════════════════════════════════════
   FORM BODY
══════════════════════════════════════ */
.form-body { padding: 2rem; }
.form-section { display: none; animation: fadeIn 0.3s ease; }
.form-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.form-row { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-1 { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

label.field-label { font-size: 0.82rem; font-weight: 700; color: var(--guinda); letter-spacing: 0.03em; text-transform: uppercase; }
label.field-label .req { color: var(--dorado); margin-left: 2px; }
label.field-label .opt { color: var(--gris); font-weight: 400; font-size: 0.7rem; text-transform: none; letter-spacing: 0; margin-left: 4px; }

input[type="text"], input[type="email"], input[type="number"],
input[type="tel"], input[type="password"], select, textarea {
  border: 1.5px solid var(--crema-dark); border-radius: 8px;
  padding: 0.65rem 0.9rem; font-size: 0.92rem; font-family: 'Montserrat', sans-serif;
  color: var(--texto); background: #fdfaf6; transition: border-color 0.2s, box-shadow 0.2s; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--guinda); box-shadow: 0 0 0 3px rgba(123,29,62,0.1); background: var(--blanco); }
textarea { resize: vertical; line-height: 1.6; caret-color: var(--guinda); cursor: text; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B1D3E' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }

.hint { font-size: 0.72rem; color: var(--gris); }
.nota-tlal { background: rgba(123,29,62,0.05); border-left: 3px solid var(--guinda); padding: 0.7rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.78rem; color: var(--guinda); font-weight: 600; margin-bottom: 0.5rem; }

/* ══════════════════════════════════════
   GÉNERO
══════════════════════════════════════ */
.radio-group { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.2rem; }
.radio-btn { display: flex; align-items: center; gap: 0.4rem; background: #fdfaf6; border: 1.5px solid var(--crema-dark); border-radius: 8px; padding: 0.5rem 0.9rem; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--gris); transition: all 0.2s; user-select: none; }
.radio-btn input { display: none; }
.radio-btn:has(input:checked) { border-color: var(--guinda); background: rgba(123,29,62,0.06); color: var(--guinda); }

/* ══════════════════════════════════════
   SEPARADOR
══════════════════════════════════════ */
.section-divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.4rem 0 1rem; }
.section-divider .line { flex: 1; height: 1px; background: var(--crema-dark); }
.section-divider span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dorado); white-space: nowrap; }

/* ══════════════════════════════════════
   OPCIONALES TOGGLE
══════════════════════════════════════ */
.opcionales-toggle { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; user-select: none; margin: 1.2rem 0 0.8rem; }
.opcionales-toggle .line { flex: 1; height: 1px; background: var(--crema-dark); }
.opcionales-toggle .tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dorado); white-space: nowrap; transition: color 0.2s; }
.opcionales-toggle:hover .tag { color: var(--guinda); }
.opcionales-body { display: none; }
.opcionales-body.visible { display: block; animation: fadeIn 0.3s ease; }

/* ══════════════════════════════════════
   UPLOAD
══════════════════════════════════════ */
.upload-area { border: 2px dashed var(--dorado); border-radius: 10px; padding: 2rem 1.5rem; text-align: center; background: #fffdf7; cursor: pointer; transition: all 0.2s; display: block; }
.upload-area:hover { background: #fff8e8; border-color: var(--guinda); }
.upload-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.upload-area p { font-size: 0.85rem; color: var(--gris); margin-top: 0.3rem; }
.upload-area strong { color: var(--guinda); }
.upload-area input[type="file"] { display: none; }

.educaet-tip { background: rgba(123,29,62,0.05); border: 1px solid rgba(123,29,62,0.15); border-radius: 8px; padding: 0.7rem 1rem; margin-top: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.educaet-tip span { font-size: 0.78rem; color: var(--guinda); font-weight: 600; }
.educaet-tip a { color: var(--guinda); text-decoration: underline; }

/* ══════════════════════════════════════
   AVISO / TÉRMINOS
══════════════════════════════════════ */
.aviso-box { background: #fffdf7; border: 1px solid var(--dorado-light); border-radius: 10px; padding: 1.1rem 1.3rem; margin-top: 1.5rem; }
.aviso-box p { font-size: 0.78rem; color: var(--gris); line-height: 1.6; }
.check-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.7rem; }
.check-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--guinda); flex-shrink: 0; margin-top: 2px; }
.check-row span { font-size: 0.8rem; color: var(--texto); line-height: 1.5; }
.check-row a { color: var(--guinda); font-weight: 700; }

/* ══════════════════════════════════════
   SUCCESS STATE
══════════════════════════════════════ */
.success-state { text-align: center; padding: 3rem 2rem; }
.success-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--guinda), var(--guinda-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1.5rem; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-state h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--guinda); margin-bottom: 0.5rem; }
.success-state p { color: var(--gris); font-size: 0.9rem; max-width: 380px; margin: 0 auto 0.4rem; line-height: 1.6; }
.folio-badge { display: inline-block; background: var(--guinda); color: var(--blanco); font-weight: 700; font-size: 1rem; padding: 0.5rem 1.8rem; border-radius: 30px; margin: 1rem 0; letter-spacing: 0.1em; }
.btn-vacantes { display: inline-block; background: var(--dorado); color: var(--blanco); font-weight: 700; font-size: 0.92rem; padding: 0.75rem 2rem; border-radius: 10px; text-decoration: none; margin-top: 0.5rem; }

/* ══════════════════════════════════════
   FOOTER DEL FORM
══════════════════════════════════════ */
.form-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--crema-dark); display: flex; justify-content: space-between; align-items: center; background: #fcf9f5; }
.step-info { font-size: 0.78rem; color: var(--gris); }
.btn { padding: 0.7rem 1.8rem; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; letter-spacing: 0.04em; transition: all 0.2s; }
.btn-primary { background: var(--guinda); color: var(--blanco); box-shadow: 0 3px 10px rgba(123,29,62,0.3); }
.btn-primary:hover { background: var(--guinda-dark); box-shadow: 0 5px 16px rgba(123,29,62,0.4); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--gris); font-weight: 600; }
.btn-ghost:hover { color: var(--guinda); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .form-container { padding: 0; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .form-body { padding: 1rem; }
  .form-footer { padding: 0.8rem 1rem; }
}
/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.seccion-footer { background: #fff; border-top: 1px solid rgba(0,0,0,.07); }
.footer-content { max-width: 100%; margin: 0; padding: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding: 2rem 2rem 1.5rem; align-items: center; }
.footer-col:first-child { align-items: flex-start; text-align: left; padding-left: 2.5rem; }
.footer-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.25rem; }
.footer-col:last-child { align-items: center; text-align: center; padding-right: 0.8rem; }
.footer-col p { font-size: 0.8rem; color: var(--texto); line-height: 1.55; }
.footer-col p a { color: var(--guinda); font-weight: 600; }
.footer-titulo { font-size: 1.3rem; font-weight: 800; color: var(--guinda); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.logo-page-footer { height: 115px; width: auto; object-fit: contain; }
.redes-grid { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin-top: 0.4rem; }
.redes-sociales { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; transition: transform .2s, box-shadow .2s; }
.redes-sociales:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.copyright { background: var(--crema); border-top: 1px solid rgba(0,0,0,.07); padding: 0.7rem 1rem; text-align: center; font-size: 0.78rem; width: 100%; }
.copyright p { color: var(--texto); }
.copyright a { color: var(--guinda); text-decoration: none; font-weight: 700; }
.copyright strong { font-weight: 700; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } .footer-col:first-child { align-items: center; text-align: center; padding-left: 0; } .footer-col:last-child { align-items: center; text-align: center; padding-right: 0; } .redes-grid { justify-content: center; } }
/* ══ FLECHA REGRESO ══ */
.back-arrow { display: flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--gris); font-size: .82rem; font-weight: 700; padding: .35rem .7rem; border-radius: 20px; border: 1.5px solid var(--crema-dark); transition: all .2s; white-space: nowrap; }
.back-arrow:hover { border-color: var(--guinda); color: var(--guinda); background: rgba(123,29,62,.04); }
.back-arrow .arrow-ico { font-size: 1rem; line-height: 1; }