/* ============================
   RESET BÁSICO
============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #3a337f url(../img/back-form.jpg) top no-repeat fixed;
    color: #111111;
    line-height: 1.5;
}

/* ============================
   CONTENEDOR
============================ */
.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(36, 32, 79, 0.25);
    overflow: hidden;
}

/* ============================
   TITULOS
============================ */
h1,
h2,
h3,
h4 {
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
}

h3 i {
    color: #3a337f;
}

/* ============================
   TEXTOS
============================ */
p {
    margin: 0 0 16px;
    color: #444;
    font-size: 0.95rem;
}

/* ============================
   FORMULARIO
============================ */
form {
    width: 100%;
}

/* Labels */
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #666;
}

/* Inputs generales */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #aaa;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
}

/* Focus */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #86e090;
    box-shadow: 0 0 0 2px rgba(134, 224, 144, 0.15);
}

/* Read Only */
input[readonly] {
    background: #f3f3f3;
    color: #666;
    border-color: #d5d5d5;
    cursor: not-allowed;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Espaciado entre campos */
.field {
    margin-bottom: 18px;
}

/* ============================
   FILE INPUT
============================ */
input[type="file"] {
    padding: 10px;
    font-size: 0.9rem;
}

/* ============================
   INPUT CON PREFIJO (@)
============================ */
.input-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #aaa;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
}

.input-prefix .prefix {
    font-size: 1rem;
    color: #999;
    margin-right: 2px;
    user-select: none;
}

.input-prefix input {
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    flex: 1;
    background: transparent;
}

.input-prefix input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Focus conjunto */
.input-prefix:focus-within {
    border-color: #86e090;
    box-shadow: 0 0 0 2px rgba(134, 224, 144, 0.15);
}

/* ============================
   BOTONES GENERALES
============================ */
button,
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    background: #86e090;
    color: #fff;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

button:hover,
.btn:hover {
    background: #78c680;
}

button:active,
.btn:active {
    transform: scale(0.98);
}

/* ============================
   SEPARADORES
============================ */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.field-divider {
    padding: 20px 30px;
    padding-top: 33px;
    border-bottom: 1px solid #ddd;
}

.button-divider {
    padding: 20px;
}

header {
    padding: 20px 30px;
    border-bottom: 1px solid #ddd;
    background: #86e090;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

header img {
    width: 120px;
    margin-right: 0;
    flex-shrink: 0;
}

.header-text {
    text-align: right;
    max-width: 400px;
}

.header-text a {
    font-weight: 600;
    color: #47844d;
    text-decoration: none;
}

.header-text a:hover {
    text-decoration: underline;
}

header p {
    margin-bottom: 0;
    margin-top: 10px;
    font-size: 0.8em;
    line-height: 1.2em;
    color: #47844d;
}

header h2 {
    font-size: 1em;
    font-weight: 400;
}

.header-strong {
    font-weight: 800;
}

.logo-mobile {
    display: none;
}

.logo-desktop {
    display: block;
}

/* ============================
   MENSAJES
============================ */
.message {
    padding: 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.message.success {
    background: #eaf7ef;
    color: #256b3b;
}

.message.error {
    background: #fdeaea;
    color: #8a1f1f;
}

.field-comment {
    font-size: 0.85em;
    font-style: italic;
    color: #888;
    margin-top: -4px;
}

/* ============================
   CONTADOR INLINE (+ / -)
============================ */
.field-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.field-inline label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #222;
}

/* Contenedor del contador */
.counter-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botones + / - */
.counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: #86e090;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.counter-btn:hover {
    background: #78c680;
}

.counter-btn:active {
    transform: scale(0.95);
}

/* Número */
.counter-inline input {
    width: 48px;
    height: 40px;
    text-align: center;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.equipamiento-comment {
    margin-top: 5px;
    font-style: italic;
    font-size: 0.9em !important;
}

/* =======================
   UPLOAD DEMO
========================== */

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-box:hover {
    border-color: #3a337f;
    background: #fff;
}

.upload-box.dragover {
    border-color: #3a337f;
    background: #e0dfee;
}

.upload-content i {
    font-size: 32px;
    color: #3a337f;
    margin-bottom: 10px;
}

.upload-progress {
    text-align: left;
}

.upload-progress.hidden {
    display: none;
}

.file-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: #3a337f;
    transition: width 0.2s ease;
}

.upload-loading {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-loading.hidden {
    display: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top: 2px solid #ff004a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================
   NAVEGACIÓN POR PASOS
============================ */
.steps-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 20px 30px;
    background: #f4f4f4;
    border-bottom: 1px solid #DDD;
}

.step-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.step-label {
    font-size: 0.8em;
    color: #9b9b9b;
    text-align: left;
    line-height: 1.1;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-end;
}

.step-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    border: 1px solid #DDD;
    display: block;

}

.step-item.active .step-label {
    color: #111;
    font-weight: 600;
}

.step-item.active .step-progress {
    background: #86e090;
    border: 1px solid #86e090;
}

.step-item.done .step-label {
    color: #CCC;
    font-weight: 300;
}

.step-item.done .step-progress {
    background: #DDD;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px;

}

.step-actions-end {
    justify-content: flex-end;
}

/* Botones específicos de steps */
.btn-step {
    width: auto;
    min-width: 100px;
    padding: 14px 20px;
    background: #86e090;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(134, 224, 144, 0.2);
}

.btn-step:hover {
    background: #78c680;
}

.btn-step-secondary {
    background: #f4f4f8;
    color: #3a337f;
    border: 1px solid #d7d6e6;
    box-shadow: none;
}

.btn-step-secondary:hover {
    background: #eceaf8;
}

.btn-step-small {
    width: auto;
    color: #302c74;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-step-small:hover {
    color: #3e3789;
    text-decoration: underline;
}

/* ============================
   FIRMA DOCUMENTO
============================ */

.header-signature {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-firma-contrato {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: #555;
    color: #fff;
    text-decoration:  none;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-firma-contrato:hover {
    background: #222;
}

/* ============================
   CONTRATO / PAGO
============================ */
.contract-box,
.payment-box {
    background: #f9f9fc;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 18px;
}

.contract-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 10px;
}

.contract-scroll p:last-child {
    margin-bottom: 0;
}

.check-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    cursor: pointer;
}

.check-inline input[type="checkbox"] {
    width: auto;
    margin: 3px 0 0;
    flex-shrink: 0;
}

.check-inline span {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.4;
}

.billing-card {
    background: #f7f7fb;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 22px;
}

.billing-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #ddd;
}

.billing-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #777;
    margin-bottom: 6px;
}

.billing-card__header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #111;
}

.billing-id-box {
    min-width: 180px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: right;
}

.billing-id-box span {
    display: block;
    font-size: 0.78rem;
    color: #777;
    margin-bottom: 4px;
}

.billing-id-box strong {
    font-size: 1rem;
    color: #111;
}

.billing-section {
    margin-bottom: 22px;
}

.billing-section:last-child {
    margin-bottom: 0;
}

.billing-section h5 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #3a337f;
}

.billing-list {
    display: flex;
    flex-direction: column;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 8px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #e4e4e4;
}

.billing-row:last-child {
    border-bottom: none;
}

.billing-row span {
    color: #444;
}

.billing-row strong {
    color: #111;
    text-align: right;
}

.billing-row--total {
    padding-top: 0;
}

.billing-row--total strong {
    color: #3a337f;
    font-size: 1.6rem;
}

.billing-empty {
    margin: 0;
    color: #777;
    font-style: italic;
}

.billing-note {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 14px;
}

.billing-note span {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 6px;
}

.billing-note p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
}

.billing-section--footer {
    padding-top: 8px;
}

.billing-pay-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.billing-legend {
    margin: 8px 0 0;
    font-size: 0.7em;
    color: #777;
    text-align: center;
}

.billing-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.billing-description-title {
    font-size: 1.6em;
}

.billing-row-left {
    width: 65%;
}

.billing-row-left p {
    font-size: 0.8em;
}

.billing-options {
    display: flex;
    justify-content: center;
    space-between: justify-content;
    gap: 10px;
    margin-top: 16px;
    
}

.billing-payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.billing-alt-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.transfer-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.transfer-modal.active {
    display: block;
}

.transfer-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.transfer-modal__dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 620px;
    margin: 60px auto;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    z-index: 2;
}

.transfer-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #333;
    border: none;
    cursor: pointer;
    padding: 0;
}

.transfer-box {
    background: #f7f7fb;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    margin: 18px 0;
}

.transfer-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #e4e4e4;
}

.transfer-row:last-child {
    border-bottom: none;
}

.transfer-row span {
    color: #666;
}

.transfer-row strong {
    color: #111;
    text-align: right;
}

.transfer-form {
    margin-top: 10px;
}

.transfer-bill-btn {
    width: 100%;
}

.dashboard-highlight-bleed{
    
}

.dashboard-highlight{
    background: #333;
    color: #fff;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: center;
}

.dashboard-highlight__eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 10px;
}

.dashboard-highlight__title{
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
}

.dashboard-highlight__text{
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,.82);
}

.dashboard-highlight__meta{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.dashboard-highlight__pill{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
    color: #fff;
}




/* ============================
   RESPONSIVE
============================ */

@media (max-width: 768px){
    .dashboard-highlight-bleed{
        margin: 0 -16px 16px;
    }

    .dashboard-highlight{
        padding: 18px 16px;
    }

    .dashboard-highlight__title{
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    body {
        padding: 12px;
        background-position: center top;
        background-size: cover;
    }

    .container {
        border-radius: 10px;
    }

    .field-divider {
        padding: 20px;
        padding-top: 20px;
    }

    .field-divider .field {
        margin-bottom: 10px;
    }

    .field-divider .field:last-child {
        margin-bottom: 0;
    }

    label {
        margin-bottom: 3px;
        font-size: 0.95em;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="file"],
    input[type="number"],
    input[type="password"]
    select,
    textarea {
        padding: 10px;
    }

    header {
        display: block;
        padding: 20px;
    }

    header h2 {
        font-size: 1em;
    }

    header img {
        width: 100%;
        max-width: 220px;
        margin-bottom: 10px;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        margin-bottom: 20px;
    }

    header p {
        font-size: 0.85em;
    }

    header p:last-child {
        margin-top: 8px;
    }

    .field-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-step {
        width: 100%;
        min-width: 0;
    }

    .contract-scroll {
        max-height: 260px;
    }

    .billing-card {
        padding: 16px;
    }

    .billing-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .billing-id-box {
        min-width: 0;
        width: 100%;
    }

    .billing-row {
        flex-direction: column;
        gap: 4px;
    }

    .billing-row strong {
        text-align: left;
    }

     .billing-payment-options {
        grid-template-columns: 1fr;
    }

    .transfer-modal__dialog {
        margin: 20px auto;
        padding: 18px;
    }

    .transfer-row {
        flex-direction: column;
        gap: 4px;
    }

    .transfer-row strong {
        text-align: left;
    }
}