﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Fix overflow móvil ── */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

#carouselExampleIndicators {
    max-width: 750px;
    width: 100%;
    aspect-ratio: 1/1;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
}

    #carouselExampleIndicators .carousel-inner {
        height: 100%;
    }

    #carouselExampleIndicators .carousel-item {
        height: 100%;
    }

    #carouselExampleIndicators img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

body {
    background-color: #f4f6f9;
}

/* LOGIN CARD */
.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 28px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

    .login-card::before {
        content: "";
        display: block;
        width: 40px;
        height: 3px;
        background: #ffcd00;
        margin: 0 auto 15px auto;
        border-radius: 2px;
    }

.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 10px;
    font-size: 14px;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: none;
    }

.btn-primary {
    border-radius: 4px;
    font-weight: 500;
}

.form-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.form {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s ease;
}

.login-form {
    left: 0;
    opacity: 1;
}

.register-form {
    left: 100%;
    opacity: 0;
}

.form-wrapper.active .login-form {
    left: -100%;
    opacity: 0;
}

.form-wrapper.active .register-form {
    left: 0;
    opacity: 1;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 25px;
}

    h1 small,
    h1 span {
        display: block;
        font-size: 14px;
        font-weight: normal;
        color: #6c757d;
    }

.highlight-box {
    border-left: 4px solid #ffcd00;
    padding-left: 12px;
    margin: 10px auto 20px auto;
    max-width: 620px;
    font-size: 25px;
    font-weight: 500;
}

a:link, a:visited {
    color: #ffcd00;
}

a:hover {
    color: #000;
}

a:active {
    color: #ffcd00;
}

.stepper {
    width: 140px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    position: relative;
}

.stepper-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.step {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

    .step.active {
        background: #0d6efd;
        color: white;
        opacity: 1;
        transform: scale(1.1);
    }

.stepper::before,
.stepper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 25px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.stepper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.stepper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.step-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .step-content.active {
        display: block;
        opacity: 1;
    }

.step.visible {
    opacity: 0.5;
}

.info-box {
    background: #FFF4C9;
    border: 1px solid #cfe2ff;
    border-left: 4px solid #ffcd00;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

    .info-box strong {
        color: #ffcd00;
    }

.toast-container {
    z-index: 1080;
}

.toast-sicme {
    width: 390px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    background: transparent;
}

    .toast-sicme .toast-header-sicme {
        background: #1b1b1b;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: none;
    }

    .toast-sicme .toast-header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .toast-sicme .toast-logo-slot {
        width: 28px;
        height: 28px;
        min-width: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .toast-sicme .toast-logo-slot img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .toast-sicme .toast-title {
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        margin: 0;
        color: #f4b400;
    }

    .toast-sicme .btn-close-sicme {
        filter: invert(77%) sepia(85%) saturate(912%) hue-rotate(358deg) brightness(101%) contrast(104%);
        opacity: 1;
    }

    .toast-sicme .toast-body-sicme {
        background: #ffffff;
        color: #1f1f1f;
        padding: 14px 16px 16px 16px;
    }

    .toast-sicme .toast-message {
        margin: 0 0 8px 0;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .toast-sicme .toast-list {
        margin: 0;
        padding-left: 18px;
    }

        .toast-sicme .toast-list li {
            margin-bottom: 3px;
            font-size: 0.93rem;
        }

    .toast-sicme.toast-danger .toast-header-sicme {
        background: #2b0d0d;
        color: #f8d7da;
    }

    .toast-sicme.toast-danger .toast-title {
        color: #f8d7da;
    }

    .toast-sicme.toast-warning .toast-header-sicme {
        background: #1b1b1b;
        color: #f4b400;
    }

    .toast-sicme.toast-warning .toast-title {
        color: #f4b400;
    }

/* =========================
   AISLAMIENTO LOGIN VS SITE.CSS
========================= */
body.login-page,
body.login-page.dark-mode {
    background-color: #f4f6f9 !important;
    color: #212529 !important;
}

    body.login-page.dark-mode .login-card {
        background: #ffffff !important;
        color: #212529 !important;
    }

        body.login-page.dark-mode .login-card h4,
        body.login-page.dark-mode .login-card p,
        body.login-page.dark-mode .login-card label,
        body.login-page.dark-mode .highlight-box {
            color: #212529 !important;
        }

    body.login-page.dark-mode .form-control {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #ced4da !important;
    }

        body.login-page.dark-mode .form-control::placeholder {
            color: #6c757d !important;
        }

        body.login-page.dark-mode .form-control:focus {
            background-color: #ffffff !important;
            color: #212529 !important;
            border-color: #0d6efd !important;
            box-shadow: none !important;
        }

    body.login-page.dark-mode .info-box {
        background: #fff4c9 !important;
        color: #212529 !important;
        border-color: #cfe2ff !important;
        border-left-color: #ffcd00 !important;
    }

        body.login-page.dark-mode .info-box strong {
            color: #b58900 !important;
        }

    body.login-page.dark-mode .step {
        background: #dee2e6 !important;
        color: #212529 !important;
    }

        body.login-page.dark-mode .step.active {
            background: #0d6efd !important;
            color: #ffffff !important;
        }

    body.login-page.dark-mode .btn-outline-dark {
        color: #212529 !important;
        border-color: #212529 !important;
        background-color: transparent !important;
    }

        body.login-page.dark-mode .btn-outline-dark:hover {
            color: #ffffff !important;
            background-color: #212529 !important;
        }

    body.login-page.dark-mode a:link,
    body.login-page.dark-mode a:visited {
        color: #d99a00 !important;
    }

    body.login-page.dark-mode a:hover {
        color: #000000 !important;
    }

/* =========================
   RESPONSIVE — ocultar carousel en móvil
========================= */
@media (max-width: 767.98px) {
    .col-carousel-login {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .container-fluid {
        overflow-x: hidden;
    }

    .highlight-box {
        font-size: 18px;
    }
}
