*{
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    margin:0;
    min-height: 200vh;
background: linear-gradient(89deg, #01458c, #5bddf1);

}

.container{
background:#fff;
    max-width:850px;
    width:90%;
    padding:40px;
    border-radius:16px;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
    margin:40px auto;
}

.logo{
    text-align:center;
    margin-bottom:15px;
}

.logo img{
    max-height:200px;
}

h1{
    text-align:center;
}

.subtitle{
    text-align:center;
    color:#666;
}

.progress{
    display:flex;
    gap:10px;
    margin:30px 0;
}

.bar{
    flex:1;
    height:6px;
    background:#ddd;
    border-radius:4px;
}

.bar.active{
    background:#2c5364;
}

.step{
    display:none;
}

.step.active{
    display:block;
}

input, select, textarea{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border-radius:8px;
    border:1px solid #ccc;
}

input.error, select.error, textarea.error{
    border-color:#e63946;
}

textarea{
    resize:none;
}

.char-count{
    text-align:right;
    font-size:12px;
    color:#777;
}

.buttons{
    display:flex;
    justify-content:space-between;
}

button{
    padding:12px 30px;
    border:none;
    border-radius:8px;
    background:#2c5364;
    color:#fff;
    cursor:pointer;
}

button.secondary{
    background:#999;
}

.upload-box{
    display:block;
    padding:40px;
    border:2px dashed #2c5364;
    text-align:center;
    border-radius:12px;
    cursor:pointer;
    margin-bottom: 20px;
}

.upload-box input{
    display:none;
}

.success{
    text-align:center;
}

/* ===== MODAL BIENVENIDA ===== */

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.modal-box{
    background:#fff;
    max-width:500px;
    width:90%;
    padding:40px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 25px 60px rgba(0,0,0,.4);
    animation:modalIn .5s ease;
}

@keyframes modalIn{
    from{opacity:0; transform:scale(.9);}
    to{opacity:1; transform:scale(1);}
}

.modal-logo{
    max-height:150px;
}

.modal-box h2{
    margin-bottom:15px;
}

.modal-text{
    font-size:14px;
    color:#555;
    margin-bottom:15px;
}

.modal-btn{
    margin-top:20px;
    padding:14px 40px;
    background:#2c5364;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:15px;
    cursor:pointer;
}

.upload-box.loaded{
    border-color:#2ecc71;
    background:#f0fff5;
}

.upload-box.loaded span{
    color:#2ecc71;
    font-weight:500;
}
.upload-box.loaded{
    border-color:#2ecc71;
    background:#f0fff5;
}

.upload-box.loaded span{
    color:#2ecc71;
    font-weight:500;
}

.profile-options{
    display:grid;
    gap:20px;
    margin-top:30px;
}

.profile-card{
    border:2px solid #ddd;
    border-radius:16px;
    padding:30px;
    cursor:pointer;
    transition:.3s;
}

.profile-card:hover{
    border-color:#2c5364;
    background:#f5f9fb;
    transform:translateY(-4px);
}

.profile-card h3{
    margin-bottom:10px;
    color:#2c5364;
}

.profile-card p{
    font-size:14px;
    color:#555;
}

/* =========================
   ÁREAS EMPRESARIALES
========================= */
.areas-box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    max-height: 260px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    margin-bottom: 20px;
}

.area-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e2e2;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 14px;
}

.area-item:hover{
    border-color: #111;
    transform: translateY(-1px);
}

.area-item input{
    accent-color: #111;
    width: 16px;
    height: 16px;
    margin: 0;
}

.area-item input:checked + span{
    font-weight: 600;
}

.hint{
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.otros-box{
    display: none;
    margin-top: 15px;
}

.otros-box.active{
    display: block;
}

.inline-field{
    display: flex;
    gap: 8px;
}

.doc-type{
    width: 70px;
    text-align: center;
    font-weight: 600;
}
.phone-code{
    width: 90px;
    font-size: 14px;
}

.modal-large {
  max-width: 720px;
}

.confirm-content {
  text-align: left;
  margin-top: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.confirm-section {
  margin-bottom: 20px;
}

.confirm-section h3 {
  font-size: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.confirm-item {
  font-size: 14px;
  margin-bottom: 6px;
}

.confirm-item strong {
  color: #333;
}

#confirmModal {
  display: none;
}

.modal-btn {
  position: relative;
}

.modal-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.modal-btn.loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@media (max-width: 768px){
    .container{
        padding:20px;
        margin:20px auto;
    }

    .modal-box{
        padding:25px;
    }

    .modal-logo{
        max-height:100px;
    }
}
