.loader-registro {
    width: 70px;
    height: 70px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #144894;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.registro-main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    padding: 100px 0 0 0;
    box-sizing: border-box;
    position: relative;
}

.registro-inner {
    width: 100%;
    max-width: 820px;
    padding: 0 14px;
    margin: 0 auto;
    background: transparent;
    box-sizing: border-box;
}

.form-cegicap-fields {
    padding-top: 30px;
    display: flex;
    gap: 2em;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 0 0;
    box-sizing: border-box;
}

.form-cegicap-field {
    min-width: 220px;
    max-width: 340px;
    flex: 1 1 0;
}

.form-cegicap-field-ancho {
    min-width: 400px;
    max-width: 650px;
    flex: 2 1 500px;
}

.form-cegicap label {
    font-weight: 700;
    font-size: 1.06rem;
    margin-bottom: 0.25em;
    color: #143d6f;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.form-cegicap input,
.form-cegicap select {
    border: 2px solid #143d6f;
    border-radius: 999px;
    padding: 0.8em 1.2em;
    font-size: 1.13rem;
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    transition: border 0.2s;
    color: #143d6f;
    height: 58px;
    min-height: 58px;
    max-height: 58px;
}
.form-cegicap input:focus,
.form-cegicap select:focus {
    border-color: #10b3da;
    outline: none;
}
.btn-cegicap {
    background: #10b3da;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 0.6em 2.5em;
    margin-top: 2rem;
    cursor: pointer;
    transition: background 0.2s;
    width: auto;
    max-width: 100%;
}
.btn-cegicap:hover,
.btn-cegicap:focus {
    background: #143d6f;
    color: #fff;
}
.registro-title {
    font-size: 3.4rem;
    font-weight: 900;
    margin-bottom: 0.18em;
    line-height: 1.08em;
    text-align: left;
}
.registro-desc {
    font-size: 1.23rem;
    font-weight: 600;
    margin-bottom: 0;
    text-align: left;
}
.registro-title .azul {
    color: #10b3da;
}
.registro-title .rojo {
    color: #be272a;
}

/* Wizard steps: SOLO uno visible */
#wizard-container {
    position: relative;
    min-height: 380px;
    width: 100%;
}
.wizard-step-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.7, 0.19, 0.39, 1.05), opacity 0.3s;
    will-change: transform, opacity;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    background: transparent;
}
.wizard-step-active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.wizard-step-hidden-left {
    transform: translateX(-80px);
    opacity: 0;
    pointer-events: none;
}
.wizard-step-hidden-right {
    transform: translateX(80px);
    opacity: 0;
    pointer-events: none;
}

.mensaje-error {
    background: #ffe6e9;
    color: #be272a;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.7em 1em;
    font-size: 1.09rem;
    text-align: center;
    border: 1.5px solid #be272a;
    margin-bottom: 1em;
    margin-top: 1em;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 12px 0 rgba(190, 39, 42, 0.05);
    animation: shake 0.25s 1;
}
@keyframes shake {
    0% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(-7px);
    }
    30% {
        transform: translateX(7px);
    }
    50% {
        transform: translateX(-4px);
    }
    65% {
        transform: translateX(4px);
    }
    100% {
        transform: translateX(0);
    }
}
.campo-error {
    border-color: #be272a !important;
    background: #fff0f0 !important;
}
.mascota-saludando {
    position: fixed;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    z-index: 50;
    width: 250px;
    max-width: 25vw;
    min-width: 160px;
    margin-right: 0;
    transition: width 0.3s;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 900px) {
    .form-cegicap-fields {
        gap: 1em;
    }
    .registro-title,
    .registro-desc,
    .registro-info {
        text-align: center;
    }
    .form-cegicap-fields {
        margin-left: auto;
        margin-right: auto;
    }
}
/* Desktop/Laptop grande */
@media (min-width: 1200px) {
    .mascota-saludando {
        width: 280px;
        max-width: 22vw;
    }
}

/* Laptop */
@media (min-width: 768px) and (max-width: 1199px) {
    .mascota-saludando {
        width: 180px;
        max-width: 20vw;
    }
}

/* En móviles: abajo centrado, no a la derecha */
@media (max-width: 767px) {
    .mascota-saludando {
        position: fixed;
        left: 50%;
        bottom: 0;
        top: auto;
        right: auto;
        transform: translateX(-50%);
        width: 220px;
        max-width: 65vw;
        min-width: 100px;
        display: block;
        z-index: 1;
    }
}

/* Celulares: corrige alineación y espacio derecho */
@media (max-width: 650px) {
    .registro-inner {
        min-height: 80vh;
        width: 100%;
        max-width: 820px;
        padding: 0 14px;
        margin: 0 auto;
        background: transparent;
        box-sizing: border-box;
    }
    .form-cegicap-fields {
        flex-direction: column !important;
        align-items: stretch;
        gap: 0.8em;
        max-width: 100vw;
        width: 100%;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
    .btn-cegicap {
        margin-left: 0;
        margin-top: 1.2em;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .form-cegicap-field,
    .form-cegicap-field-ancho {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        flex: 1 1 100% !important;
    }
    .registro-title {
        font-size: 2rem;
    }
    .registro-info {
        margin-bottom: 1.4rem;
    }
    .form-cegicap input,
    .form-cegicap select {
        font-size: 1rem;
        height: 48px;
        min-height: 48px;
        max-height: 52px;
        padding: 0.7em 1em;
    }

    .form-cegicap-fields {
        max-width: 100vw;
    }
    .btn-cegicap {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .registro-title {
        font-size: 1.3rem;
    }
    .registro-desc {
        font-size: 1rem;
    }
}

/* Imagen de fondo solo para laptops y desktop */
@media (min-width: 768px) {
    body {
        background-image: url("/img/home/fondoRegistro.webp");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
    }
}
@media (max-width: 767px) {
    body {
        background-image: none !important;
        background-color: #fff;
    }
}
.wizard-step-anim:not(.wizard-step-active) {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    width: 100%;
}
