:root{
  --lavender:#4E568D;
  --lavender-light:#EEEAF0;
  --lavender-dark:#343B70;
  --cream:#F5F1F0;
  --navy:#0B2347;
  --stone:#6F7080;
  --white:#FFFFFF;
  --border:rgba(11,35,71,.10);
  --green:#2A7A52;

  --font-display:'Playfair Display',Georgia,serif;
  --font-body:'DM Sans',system-ui,sans-serif;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--cream);
  color:var(--navy);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input{
  font:inherit;
}

.hidden{
  display:none !important;
}


/* CABECERA */

.profile-header{
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--border);
}

.profile-header-inner{
  max-width:1180px;
  height:72px;
  margin:0 auto;
  padding:0 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  width:125px;
  height:48px;
  overflow:hidden;
  display:flex;
  align-items:center;
}

.brand img{
  display:block;
  width:125px;
  height:48px;
  object-fit:cover;
  object-position:center;
}

.back-home{
  font-size:13px;
  color:var(--stone);
  transition:color .2s ease;
}

.back-home:hover{
  color:var(--navy);
}


/* CONTENEDOR */

.profile-main{
  min-height:calc(100vh - 73px);
}

.eyebrow,
.panel-label{
  display:block;
  font-size:11px;
  font-weight:600;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--lavender);
}


/* LOGIN */

.login-view{
  min-height:calc(100vh - 73px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:70px 24px;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(78,86,141,.08),
      transparent 34%
    ),
    var(--cream);
}

.login-card{
  width:100%;
  max-width:510px;
  padding:48px;
  background:rgba(255,255,255,.90);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:0 24px 60px rgba(11,35,71,.07);
}

.login-card h1{
  margin:12px 0 16px;
  font-family:var(--font-display);
  font-size:52px;
  line-height:1.02;
  letter-spacing:-1.5px;
  font-weight:500;
  color:var(--navy);
}

.login-card h1 em{
  color:var(--lavender);
  font-weight:500;
}

.login-intro{
  max-width:390px;
  margin:0 0 32px;
  color:var(--stone);
  font-size:15px;
  line-height:1.65;
}

.field{
  margin-bottom:18px;
}

.field label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:500;
  color:var(--navy);
}

.field input{
  width:100%;
  height:52px;
  padding:0 15px;
  border:1px solid rgba(11,35,71,.14);
  border-radius:11px;
  outline:none;
  background:var(--white);
  color:var(--navy);
  transition:border-color .2s ease, box-shadow .2s ease;
}

.field input::placeholder{
  color:#AAA6B2;
}

.field input:focus{
  border-color:rgba(78,86,141,.55);
  box-shadow:0 0 0 3px rgba(78,86,141,.08);
}


/* BOTÓN PRINCIPAL */

.btn-primary{
  width:100%;
  min-height:52px;
  padding:0 19px;
  margin-top:5px;
  border:0;
  border-radius:11px;
  background:var(--lavender);
  color:var(--white);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  cursor:pointer;
  font-weight:500;
  font-size:14px;
  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.btn-primary span{
  font-size:20px;
  font-weight:300;
}

.btn-primary:hover{
  background:var(--lavender-dark);
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(78,86,141,.16);
}

.form-message{
  min-height:20px;
  margin:13px 0 0;
  font-size:13px;
}

.form-message.error{
  color:#A33D3D;
}

.form-message.loading{
  color:var(--stone);
}

.login-help{
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid var(--border);
  text-align:center;
  color:var(--stone);
  font-size:13px;
}

.login-help a{
  color:var(--lavender);
  font-weight:500;
}

.login-help a:hover{
  text-decoration:underline;
}


/* PERFIL */

.profile-view{
  max-width:1180px;
  margin:0 auto;
  padding:70px 30px 60px;
}

.profile-heading{
  margin-bottom:34px;
}

.profile-heading h1{
  margin:10px 0 7px;
  font-family:var(--font-display);
  font-size:48px;
  line-height:1.05;
  font-weight:500;
  letter-spacing:-1px;
}

.profile-heading p{
  margin:0;
  color:var(--stone);
  font-size:15px;
}

.profile-layout{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);
  gap:20px;
  align-items:start;
}

.panel{
  background:rgba(255,255,255,.88);
  border:1px solid var(--border);
  border-radius:18px;
  padding:30px;
}

.panel h2{
  margin:7px 0 0;
  font-family:var(--font-display);
  font-size:28px;
  line-height:1.15;
  font-weight:500;
}


/* PROCESO */

.panel-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding-bottom:25px;
  border-bottom:1px solid var(--border);
}

.status-badge{
  flex-shrink:0;
  padding:7px 11px;
  border-radius:999px;
  background:var(--lavender-light);
  color:var(--lavender-dark);
  font-size:11px;
  font-weight:600;
}

.process-list{
  padding:8px 0;
}

.process-item{
  display:grid;
  grid-template-columns:38px 1fr auto;
  align-items:center;
  gap:14px;
  padding:18px 0;
  border-bottom:1px solid var(--border);
}

.process-icon{
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--green);
  color:white;
  font-size:13px;
  font-weight:600;
}

.process-icon.pending{
  background:var(--lavender-light);
  color:var(--lavender);
}

.process-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.process-copy strong{
  font-size:14px;
  font-weight:600;
}

.process-copy span{
  color:var(--stone);
  font-size:12px;
}

.process-state{
  font-size:12px;
  font-weight:500;
  color:var(--stone);
}


/* PROGRESO */

.progress-area{
  padding:24px 0 20px;
}

.progress-meta{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:9px;
  font-size:12px;
  color:var(--stone);
}

.progress-meta strong{
  color:var(--navy);
  font-weight:600;
}

.progress-track{
  width:100%;
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:var(--lavender-light);
}

.progress-bar{
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--lavender);
  transition:width .45s ease;
}

.process-button{
  width:auto;
  display:inline-flex;
  min-width:230px;
  margin-top:7px;
}


/* CUENTA */

.account-panel h2{
  margin-bottom:25px;
}

.account-data{
  border-top:1px solid var(--border);
}

.data-row{
  padding:17px 0;
  border-bottom:1px solid var(--border);
}

.data-row span{
  display:block;
  margin-bottom:5px;
  color:var(--stone);
  font-size:11px;
}

.data-row strong{
  display:block;
  overflow-wrap:anywhere;
  font-size:13px;
  font-weight:500;
}


/* PIE */

.profile-footer-actions{
  padding-top:25px;
}

.text-link{
  color:var(--stone);
  font-size:13px;
  transition:color .2s ease;
}

.text-link:hover{
  color:var(--navy);
}


/* RESPONSIVE */

@media(max-width:800px){

  .profile-header-inner{
    padding:0 20px;
  }

  .profile-view{
    padding:48px 20px;
  }

  .profile-layout{
    grid-template-columns:1fr;
  }

  .login-card{
    padding:36px 28px;
  }

  .login-card h1{
    font-size:43px;
  }

  .profile-heading h1{
    font-size:40px;
  }

}

@media(max-width:520px){

  .back-home{
    font-size:12px;
  }

  .login-view{
    padding:35px 16px;
    align-items:flex-start;
  }

  .login-card{
    padding:30px 22px;
  }

  .login-card h1{
    font-size:39px;
  }

  .panel{
    padding:23px 20px;
  }

  .panel-heading{
    flex-direction:column;
  }

  .process-item{
    grid-template-columns:34px 1fr;
  }

  .process-state{
    grid-column:2;
  }

  .process-button{
    width:100%;
  }

}

/* ACCIONES DE CABECERA */

.header-actions{
  display:flex;
  align-items:center;
  gap:22px;
}

.logout-button{
  padding:0;
  border:0;
  background:transparent;
  color:var(--lavender);
  font-family:var(--font-body);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:color .2s ease;
}

.logout-button:hover{
  color:var(--navy);
}

.logout-button:disabled{
  opacity:.55;
  cursor:default;
}

@media(max-width:520px){
  .header-actions{
    gap:13px;
  }

  .back-home{
    display:none;
  }

  .logout-button{
    font-size:12px;
  }
}