:root {
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --body-font: "Satoshi", sans-serif;

    --hue: 207;
    --sat: 90%;
    --lig: 61%;

    --shadow: 0px 1px 11px 0px #ff0032;

    --first-color: #ff0032;
    --first-color-alt: hsl(var(--hue), var(--sat), 57%);
    --title-color: hsl(var(--hue), 12%, 15%);
    --text-color: hsl(var(--hue), 12%, 45%);
    --text-color-light: hsl(var(--hue), 8%, 75%);
    --text-color-lighten: hsl(var(--hue), 8%, 92%);
    --body-color: hsl(var(--hue), 100%, 99%);
    --container-color: #fff;
    --color-text-type1: var(--first-color);

    --border-color: hsl(var(--hue), 8%, 90%);
    --success-color: #1fb15a;
}

@media screen and (min-width: 968px) {
    :root {
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: .3s;
    margin: 0;
}

html {
    height: 100%;
    font-family: var(--body-font);
    font-weight: 200;
}

span {
    font-weight: 500;
}

h4 {
    color: white;
}

img {
    width: 140px;
    height: 100%;
    object-fit: contain;
    border-radius: 25rem;
}

/*=============== TOP BANNER (identidad, reutiliza .m1 del login) ===============*/
.registro-hero {
    background-color: var(--first-color);
    width: 100%;
    padding: 48px 20px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.registro-hero .content-img {
    width: 96px;
    height: 96px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 5px 6px 15px 11px #c14a009e;
    border-radius: 50%;
    margin-bottom: 12px;
}

.registro-hero .content-img img {
    width: 60px;
}

.registro-hero span:nth-child(2) {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.registro-hero span:nth-child(3) {
    color: #ffe3e8;
    font-size: 13px;
    font-weight: normal;
    max-width: 420px;
}

/*=============== CONTENEDOR PRINCIPAL ===============*/
.registro-container {
    width: 100%;
    max-width: 760px;
    margin: -34px auto 60px;
    padding: 0 16px;
}

.registro-card {
    background-color: var(--container-color);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/*=============== STEPPER ===============*/
.stepper {
    display: flex;
    justify-content: space-between;
    padding: 22px 24px 0;
    gap: 6px;
}

.step {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--text-color-light);
    position: relative;
    padding-bottom: 14px;
    font-weight: 600;
    letter-spacing: .02em;
}

.step::before {
    content: "";
    display: block;
    height: 4px;
    border-radius: 4px;
    background-color: var(--text-color-lighten);
    margin-bottom: 8px;
    transition: .3s;
}

.step.is-active,
.step.is-done {
    color: var(--first-color);
}

.step.is-active::before,
.step.is-done::before {
    background-color: var(--first-color);
}

/*=============== SECCIONES DEL FORM ===============*/
.form-section {
    display: none;
    padding: 24px 24px 8px;
    animation: fadeIn .25s ease;
}

.form-section.is-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section h3 {
    color: var(--title-color);
    font-size: var(--h3-font-size, 1.1rem);
    margin-bottom: 4px;
}

.form-section p.form-hint {
    color: var(--text-color-light);
    font-size: var(--small-font-size, .875rem);
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

@media screen and (max-width: 560px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/*=============== INPUTS (reutiliza .content-input del login) ===============*/
.content-input {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 2px;
}

.content-input span.label-text {
    color: rgb(94, 94, 94);
    font-size: 13px;
    font-weight: 500;
}

.content-input input,
.content-input select {
    width: 100%;
    height: 46px;
    color: var(--title-color);
    outline: none;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--border-color);
    font-size: 14px;
    font-family: var(--body-font);
    padding: 0 2px;
    transition: border-color .2s;
}

.content-input input:focus,
.content-input select:focus {
    border-bottom-color: var(--first-color);
}

.content-input input:invalid:not(:placeholder-shown) {
    border-bottom-color: var(--first-color);
}

.field-error {
    font-size: 11px;
    color: var(--first-color);
    min-height: 14px;
}

/*=============== FOTO DE LA TIENDA ===============*/
.img-uploader {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.img-uploader .content-img {
    width: 88px;
    height: 88px;
    background: var(--text-color-lighten);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}

.img-uploader .content-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.img-uploader label.file-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1.5px solid var(--first-color);
    color: var(--first-color);
    border-radius: 0.8rem;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.img-uploader input[type="file"] {
    display: none;
}

/*=============== UBICACION ===============*/
.btn-ubicacion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--text-color-lighten);
    color: var(--title-color);
    border: none;
    padding: 10px 14px;
    border-radius: 0.8rem;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
}

.btn-ubicacion i {
    color: var(--first-color);
}

/*=============== HORARIOS ===============*/
.horario-row {
    display: grid;
    grid-template-columns: 92px 1fr 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--text-color-lighten);
}

.horario-row:last-child {
    border-bottom: none;
}

.horario-row .dia-label {
    font-weight: 600;
    color: var(--title-color);
    font-size: 13px;
}

.horario-row input[type="time"] {
    width: 100%;
    height: 38px;
    border: 1.5px solid var(--border-color);
    border-radius: 0.6rem;
    padding: 0 8px;
    font-size: 13px;
    color: var(--title-color);
    font-family: var(--body-font);
}

.horario-row input[type="time"]:disabled {
    opacity: .35;
}

.cerrado-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-color);
    white-space: nowrap;
}

@media screen and (max-width: 560px) {
    .horario-row {
        grid-template-columns: 70px 1fr 1fr auto;
        gap: 6px;
    }
    .horario-row input[type="time"] {
        font-size: 12px;
        padding: 0 4px;
    }
}

/*=============== NAV BOTONES ===============*/
.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 26px;
}

.btn {
    height: 50px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    border: none;
    border-radius: 0.9rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    color: white;
    background-color: var(--first-color);
    box-shadow: var(--shadow);
    margin-left: auto;
}

.btn-outline {
    color: var(--text-color);
    background: transparent;
    border: 1.5px solid var(--text-color-lighten);
}

.btn-outline:disabled {
    opacity: 0;
    pointer-events: none;
}

/*=============== MODAL DE ESPERA (del CSS original) ===============*/
.modal-espera {
    width: 100%;
    height: 100%;
    z-index: 2000;
    top: 0;
    left: 0;
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #000000cf;
}

.card-espera {
    width: 90%;
    max-width: 320px;
    height: auto;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.mainCss {
    width: 100%;
    height: 140px;
}

.dotsCss {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.dot {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    transform: translate(0px, -40px);
    animation: bounce 1s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0% { transform: translate(0px, -10px); }
    40% { width: 0px; height: 2px; transform: translate(0px, 40px) scale(1.7); }
    100% { height: 20px; transform: translate(0px, -20px); }
}

.card-espera span {
    color: white;
    font-size: 13px;
    text-align: center;
}

/*=============== MENSAJE RESULTADO ===============*/
.form-alert {
    margin: 0 24px 18px;
    padding: 12px 14px;
    border-radius: 0.8rem;
    font-size: 13px;
    display: none;
    gap: 8px;
    align-items: center;
}

.form-alert.is-error {
    display: flex;
    background: #ffe4e8;
    color: var(--first-color);
}

.form-alert.is-success {
    display: flex;
    background: #e2f8ea;
    color: var(--success-color);
}

@media screen and (min-width: 992px) {
    .registro-card {
        width: 100%;
    }
}
