/* =========================================================
   CONFIGURADOR DE PRESUPUESTOS
   ESTILOS GENERALES
   ========================================================= */


/* ---------- VARIABLES ---------- */

:root {
    --color-principal: #202125;
    --color-secundario: #33cccc;
    --color-fondo: #f4f5f6;
    --color-blanco: #ffffff;
    --color-texto: #202125;
    --color-texto-secundario: #6f7277;
    --color-borde: #e1e3e5;

    --radio: 10px;
    --sombra: 0 4px 20px rgba(0, 0, 0, 0.06);
}


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.5;
}


/* ---------- CONTENEDOR PRINCIPAL ---------- */

.configurador {
    width: min(1100px, calc(100% - 40px));
    margin: 40px auto 80px;
}


/* ---------- CABECERA ---------- */

.configurador-header {
    margin-bottom: 30px;
}

.configurador-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.configurador-header p {
    color: var(--color-texto-secundario);
    font-size: 16px;
}


/* ---------- SECCIONES ---------- */

.paso {
    background-color: var(--color-blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    padding: 30px;
    margin-bottom: 25px;
}


/* ---------- TÍTULO DE CADA PASO ---------- */

.paso-titulo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.paso-numero {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--color-principal);
    color: var(--color-blanco);

    border-radius: 50%;

    font-size: 17px;
    font-weight: 700;

    flex-shrink: 0;
}

.paso-titulo h2 {
    font-size: 22px;
    margin-bottom: 2px;
}

.paso-titulo p {
    color: var(--color-texto-secundario);
    font-size: 14px;
}


/* ---------- FORMULARIO ---------- */

.formulario {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}


.campo {
    display: flex;
    flex-direction: column;
}


.campo-completo {
    grid-column: 1 / -1;
}


.campo label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}


.campo input,
.campo select {
    width: 100%;
    height: 48px;

    border: 1px solid var(--color-borde);
    border-radius: 7px;

    background-color: var(--color-blanco);

    padding: 0 14px;

    font-size: 15px;
    color: var(--color-texto);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.campo input:focus,
.campo select:focus {
    border-color: var(--color-secundario);

    box-shadow:
        0 0 0 3px rgba(51, 204, 204, 0.12);
}


.campo input::placeholder {
    color: #a1a4a8;
}


/* ---------- INPUT DE ARCHIVO ---------- */

.campo input[type="file"] {
    height: auto;
    padding: 12px;
    cursor: pointer;
}


/* ---------- ACCIONES ---------- */

.acciones {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}


.btn-principal {
    border: 0;

    background-color: var(--color-principal);
    color: var(--color-blanco);

    padding: 14px 28px;

    border-radius: 7px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.btn-principal:hover {
    background-color: #303136;
    transform: translateY(-1px);
}


.btn-principal:active {
    transform: translateY(0);
}


/* ---------- TABLET ---------- */

@media (max-width: 768px) {

    .configurador {
        width: min(100% - 30px, 600px);
        margin-top: 25px;
    }


    .formulario {
        grid-template-columns: 1fr;
    }


    .campo-completo {
        grid-column: auto;
    }


    .paso {
        padding: 22px;
    }


    .configurador-header h1 {
        font-size: 27px;
    }

}


/* ---------- MÓVIL ---------- */

@media (max-width: 480px) {

    .configurador {
        width: calc(100% - 20px);
        margin-top: 15px;
    }


    .paso {
        padding: 18px;
        margin-bottom: 15px;
    }


    .paso-titulo {
        gap: 10px;
        margin-bottom: 22px;
    }


    .paso-numero {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }


    .paso-titulo h2 {
        font-size: 19px;
    }


    .configurador-header h1 {
        font-size: 24px;
    }


    .btn-principal {
        width: 100%;
    }


    .acciones {
        justify-content: stretch;
    }

}

/* =========================================================
   NAVEGACIÓN ENTRE PASOS
   ========================================================= */

.paso {
    display: none;
}

.paso.activo {
    display: block;
}


/* ---------- NAVEGACIÓN ---------- */

.navegacion-pasos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.navegacion-paso {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #a1a4a8;

    font-size: 14px;
    font-weight: 600;
}

.navegacion-paso.activo {
    color: var(--color-principal);
}

.navegacion-numero {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #e7e8ea;

    font-size: 13px;
}

.navegacion-paso.activo .navegacion-numero {
    background-color: var(--color-principal);
    color: white;
}


.navegacion-separador {
    width: 30px;
    height: 1px;
    background-color: #dcdfe1;
}


/* ---------- BOTONES DE NAVEGACIÓN ---------- */

.acciones {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}


.btn-secundario {
    border: 1px solid var(--color-borde);

    background-color: white;
    color: var(--color-principal);

    padding: 14px 28px;

    border-radius: 7px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.btn-secundario:hover {
    background-color: #f5f5f5;
    border-color: #c9cbce;
}


/* ---------- MÓVIL ---------- */

@media (max-width: 600px) {

    .navegacion-pasos {
        gap: 5px;
    }

    .navegacion-separador {
        width: 15px;
    }

    .navegacion-paso span:last-child {
        display: none;
    }

    .acciones {
        flex-direction: column-reverse;
    }

    .btn-secundario,
    .btn-principal {
        width: 100%;
    }

}

/* ---------- PASO ACTIVO / COMPLETADO ---------- */

.navegacion-paso {
    cursor: default;
}

.navegacion-paso.activo .navegacion-numero {
    background-color: var(--color-secundario);
    color: var(--color-principal);
}