/* =================================================================
   C&F Consultores - Estilos pagina de cuenta y wizard certificaciones
   ================================================================= */

.page-cuenta { background: var(--c-cream, #FAF8F4); min-height: 100vh; }
.page-cuenta .site-header { background: #fff; border-bottom: 1px solid #E8E5E0; }
.site-header__back { font-size: .9rem; }
.site-header__back a { color: var(--c-navy, #1E2A7F); text-decoration: none; font-weight: 500; }
.site-header__back a:hover { text-decoration: underline; }

.cuenta { max-width: 560px; margin: 0 auto; padding: 3rem 1.25rem; }
.cuenta__panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(13, 27, 75, 0.08);
  overflow: hidden;
}

.cuenta__tabs { display: flex; border-bottom: 1px solid #E8E5E0; }
.cuenta__tab {
  flex: 1; padding: 1rem; background: transparent; border: 0; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--c-graphite, #5F5F66);
  transition: background .2s, color .2s;
}
.cuenta__tab:hover { background: #FFF4EE; }
.cuenta__tab.is-active { color: var(--c-navy, #1E2A7F); border-bottom: 3px solid var(--c-orange, #E85A1E); }

.cuenta__form { padding: 2rem; display: none; }
.cuenta__form.is-active { display: block; }
.cuenta__title { font-family: var(--f-display); font-size: 1.6rem; color: var(--c-navy, #1E2A7F); margin-bottom: .35rem; }
.cuenta__sub { color: var(--c-graphite); margin-bottom: 1.4rem; font-size: .92rem; }

.cuenta__form label { display: block; margin-bottom: 1rem; font-size: .85rem; font-weight: 600; color: var(--c-charcoal, #1a2341); }
.cuenta__form input, .cuenta__form select {
  width: 100%; margin-top: .35rem; padding: .7rem .9rem;
  border: 1px solid #D9D9DE; border-radius: 8px; font-size: .95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.cuenta__form input:focus, .cuenta__form select:focus {
  border-color: var(--c-orange, #E85A1E);
  box-shadow: 0 0 0 3px rgba(232, 90, 30, 0.15);
  outline: 0;
}
.cuenta__form small { display: block; margin-top: .25rem; color: var(--c-graphite, #5F5F66); font-weight: 400; font-size: .8rem; }

.cuenta__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 460px) { .cuenta__grid2 { grid-template-columns: 1fr; } }

.cuenta__row { display: flex; justify-content: flex-end; margin: -.4rem 0 1rem; }
.cuenta__row a { font-size: .82rem; color: var(--c-orange, #E85A1E); }

.cuenta__checkbox { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; font-size: .85rem; }
.cuenta__checkbox input { width: auto; margin-top: .2rem; }

.cuenta__btn {
  width: 100%; padding: .9rem 1rem; border: 0; border-radius: 8px;
  background: var(--c-orange, #E85A1E); color: #fff; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: background .2s, transform .1s;
}
.cuenta__btn:hover { background: var(--c-orange-deep, #B8621B); }
.cuenta__btn:active { transform: translateY(1px); }
.cuenta__btn--ghost {
  background: transparent; color: var(--c-navy, #1E2A7F);
  border: 1px solid #D9D9DE; margin-top: .5rem;
}
.cuenta__btn--ghost:hover { background: var(--c-cream, #FAF8F4); }

.cuenta__alert { margin-top: 1rem; padding: .7rem .9rem; border-radius: 6px; font-size: .88rem; display: none; }
.cuenta__alert.is-error { display: block; background: #FFE5E5; color: #B30000; border-left: 3px solid #B30000; }
.cuenta__alert.is-ok    { display: block; background: #E5F7EC; color: #1A7A3C; border-left: 3px solid #1A7A3C; }

/* =================================================================
   WIZARD DE CERTIFICACIONES
   ================================================================= */

.wizard { max-width: 920px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.wizard__hero { text-align: center; margin-bottom: 2.5rem; }
.wizard__eyebrow { display: inline-block; padding: .25rem .7rem; background: var(--c-orange-soft, #FFE5D8); color: var(--c-orange-deep, #B8621B); border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wizard__title { font-family: var(--f-display); font-size: 2rem; color: var(--c-navy, #1E2A7F); margin: .8rem 0 .4rem; }
.wizard__price { font-size: 1.1rem; color: var(--c-graphite); }
.wizard__price strong { color: var(--c-navy); font-size: 1.4rem; }

.wizard__steps { display: flex; gap: 1rem; margin: 2rem 0 2.5rem; padding: 0; list-style: none; }
.wizard__step { flex: 1; text-align: center; position: relative; padding-top: 2.4rem; font-size: .82rem; color: var(--c-graphite); }
.wizard__step::before {
  content: attr(data-num);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; line-height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid #D9D9DE; color: var(--c-graphite); font-weight: 700; font-size: .85rem;
}
.wizard__step.is-active::before { border-color: var(--c-orange); color: var(--c-orange); background: #FFF4EE; }
.wizard__step.is-done::before { background: var(--c-orange); border-color: var(--c-orange); color: #fff; content: '✓'; }
.wizard__step.is-active { color: var(--c-navy); font-weight: 600; }

.wizard__panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(13, 27, 75, 0.06);
  padding: 2rem;
}
.wizard__panel h2 { font-family: var(--f-display); font-size: 1.4rem; color: var(--c-navy); margin-bottom: 1.2rem; }
/* Sub-grupos del wizard cuando hay muchas preguntas */
.wizard__group { margin-bottom: 1.6rem; }
.wizard__group-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid #EFEDE8; }
.wizard__group-head h3 { font-family: var(--f-display); font-size: 1rem; color: var(--c-navy, #1E2A7F); margin: 0; font-weight: 600; }
.wizard__group-num { width: 28px; height: 28px; border-radius: 50%; background: var(--c-orange, #E85A1E); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.wizard__group-body { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; }
@media (max-width: 600px) { .wizard__group-body { grid-template-columns: 1fr; } }
.wizard__group-body .wizard__field { margin-bottom: 0; }
.wizard__group-body .wizard__field:has(textarea) { grid-column: 1 / -1; }

/* Validación: campo en rojo cuando es requerido y está vacío */
.wizard__field.is-invalid input,
.wizard__field.is-invalid select,
.wizard__field.is-invalid textarea {
  border-color: #B30000 !important;
  background: #FFF5F5;
  animation: shake .3s ease;
}
.wizard__field.is-invalid label { color: #B30000; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.wizard__field { margin-bottom: 1rem; }
.wizard__field label { display: block; font-size: .85rem; font-weight: 600; color: var(--c-charcoal); margin-bottom: .35rem; }
.wizard__field label .req { color: var(--c-orange); margin-left: .2rem; }
.wizard__field input, .wizard__field select, .wizard__field textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid #D9D9DE; border-radius: 8px;
  font-size: .92rem; font-family: inherit;
}
.wizard__field input:focus, .wizard__field select:focus, .wizard__field textarea:focus {
  border-color: var(--c-orange); outline: 0; box-shadow: 0 0 0 3px rgba(232, 90, 30, 0.15);
}
.wizard__field textarea { resize: vertical; min-height: 80px; }

.wizard__upload { border: 2px dashed #D9D9DE; border-radius: 8px; padding: 1rem; margin-bottom: .8rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.wizard__upload.is-uploaded { border-color: #1A7A3C; background: #F2FBF5; }
.wizard__upload-label { flex: 1; font-size: .9rem; color: var(--c-charcoal); }
.wizard__upload-label small { display: block; font-weight: 400; color: var(--c-graphite); margin-top: .15rem; }
.wizard__upload .req { color: var(--c-orange); }
.wizard__upload-status { font-size: .82rem; color: var(--c-graphite); }
.wizard__upload-status.is-ok { color: #1A7A3C; font-weight: 600; }
.wizard__upload input[type=file] { font-size: .85rem; }

.wizard__resumen-grid { display: grid; gap: .55rem; }
.wizard__resumen-row { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #F0EEEA; font-size: .9rem; }
.wizard__resumen-row strong { min-width: 200px; color: var(--c-charcoal); }

.wizard__actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #E8E5E0; }
.wizard__btn-prev, .wizard__btn-next, .wizard__btn-send {
  padding: .8rem 1.5rem; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: .92rem;
  transition: background .2s, transform .1s;
}
.wizard__btn-prev { background: transparent; color: var(--c-navy); border: 1px solid #D9D9DE; }
.wizard__btn-prev:hover { background: var(--c-cream); }
.wizard__btn-next { background: var(--c-navy); color: #fff; }
.wizard__btn-next:hover { background: var(--c-navy-soft); }
.wizard__btn-send { background: var(--c-orange); color: #fff; }
.wizard__btn-send:hover { background: var(--c-orange-deep); }
.wizard__btn-send:disabled, .wizard__btn-next:disabled { opacity: .5; cursor: not-allowed; }

.wizard__alert { margin-top: 1rem; padding: .7rem 1rem; border-radius: 6px; font-size: .88rem; }
.wizard__alert.is-error { background: #FFE5E5; color: #B30000; border-left: 3px solid #B30000; }
.wizard__alert.is-ok    { background: #E5F7EC; color: #1A7A3C; border-left: 3px solid #1A7A3C; }

/* =================================================================
   MI CUENTA - listado de solicitudes
   ================================================================= */

.mc { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.mc__header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.mc__title { font-family: var(--f-display); font-size: 2rem; color: var(--c-navy); }
.mc__sub { color: var(--c-graphite); font-size: .95rem; }
.mc__btn-new { padding: .8rem 1.4rem; border-radius: 8px; background: var(--c-orange); color: #fff; font-weight: 700; text-decoration: none; }
.mc__btn-new:hover { background: var(--c-orange-deep); }
.mc__btn-logout { background: transparent; color: var(--c-graphite); border: 1px solid #D9D9DE; padding: .6rem 1rem; border-radius: 8px; cursor: pointer; font-size: .85rem; }

.mc__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(13, 27, 75, 0.05); }
.mc__table th, .mc__table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid #F0EEEA; font-size: .9rem; }
.mc__table th { background: var(--c-cream); font-weight: 700; color: var(--c-navy); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.mc__table tr:last-child td { border-bottom: 0; }

.mc__estado { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mc__estado--borrador      { background: #F1F1F3; color: #5F5F66; }
.mc__estado--enviada       { background: #E5F0FF; color: #1E2A7F; }
.mc__estado--en_revision   { background: #FFF4D6; color: #806600; }
.mc__estado--requiere_info { background: #FFE5D8; color: #B8621B; }
.mc__estado--aprobada,
.mc__estado--firmada,
.mc__estado--entregada     { background: #E5F7EC; color: #1A7A3C; }
.mc__estado--rechazada,
.mc__estado--cancelada     { background: #FFE5E5; color: #B30000; }

.mc__empty { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: 10px; color: var(--c-graphite); }
.mc__empty a { color: var(--c-orange); font-weight: 700; }

/* ============================================================
   wizard__validation - bloque de resultado del validador legal
   Aparece despues del cuestionario (paso 2) y en el resumen (paso 4).
   ============================================================ */
.wizard__validation {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid;
  background: #fff;
}
.wizard__validation.is-ok      { border-color: #1A7A3C; background: #F2FAF5; }
.wizard__validation.is-blocked { border-color: #B30000; background: #FFF4F4; }
.wizard__validation.is-warn    { border-color: #B8621B; background: #FFF8EE; }

.wizard__validation-head {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem; padding-bottom: .75rem;
  border-bottom: 1px solid #e5e9f2;
}
.wizard__validation-head h3 {
  margin: 0; font-size: 1.1rem; color: var(--c-navy, #001A77); font-weight: 700;
}
.wizard__validation-icon { font-size: 1.5rem; line-height: 1; }

.wizard__validation-section {
  margin-bottom: 1rem; padding: 1rem;
  border-radius: 8px;
}
.wizard__validation-section--blocked { background: #FFE5E5; border-left: 4px solid #B30000; }
.wizard__validation-section--warn    { background: #FFF4D6; border-left: 4px solid #B8621B; }

.wizard__validation-section h4 {
  margin: 0 0 .65rem; font-size: .92rem; color: #333; font-weight: 700;
}
.wizard__validation-section ul {
  margin: 0; padding-left: 1.4rem; list-style: disc;
}
.wizard__validation-section li {
  margin-bottom: .5rem; font-size: .9rem; line-height: 1.55; color: #2a2a3a;
}

.wizard__validation-tip {
  margin: 1rem 0 0; padding: .85rem 1rem;
  background: #fff; border-radius: 6px;
  font-size: .85rem; color: #555; line-height: 1.5;
}
.wizard__validation-tip strong { color: var(--c-navy, #001A77); }
.wizard__validation-tip a { color: var(--c-orange, #ff6b00); font-weight: 600; }

.wizard__validation-normas {
  margin: .75rem 0 0; font-size: .78rem; color: #666;
  font-style: italic; text-align: right;
}
