
@font-face {
    font-family: 'objectsans-heavy';
    src: url('../assets/fuente/objectsans-heavy.otf') format('opentype');
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: 'objectsans-heavyslanted';
    src: url('../assets/fuente/objectsans-heavyslanted.otf') format('opentype');
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: 'objectsans-regular';
    src: url('../assets/fuente/objectsans-regular.otf') format('opentype');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: 'objectsans-slanted';
    src: url('../assets/fuente/objectsans-slanted.otf') format('opentype');
    font-style: normal;
    font-weight: 300;
}


:root {
    --csp-primary: #5b4b8a; /* morado principal */
    --csp-primary-600: #4a3d78; /* más oscuro */
    --csp-accent: #f2eaff; /* fondo lila claro del chat */
    --csp-contrast: #ffffff;
    --csp-secondary: #c05c7e; /* Rosa */
    --csp-secondary-600: #955A76; /* Rosa más oscuro */
    --csp-muted: #6c757d; /* Gris para textos */
    --csp-success: #3c8d60;
    --csp-warning: #b58900;
    --csp-danger: #a94442;
    --csp-img-default: url("/assets/imagenes/generales/img-default.png");
    --csp-flor-morada: url("/assets/imagenes/generales/csp-flor-morada.png");
    --csp-flor-naranja: url("/assets/imagenes/generales/csp-flor-naranja.png");
    --csp-flor-amarilla: url("/assets/imagenes/generales/csp-flor-amarilla.png");
    --csp-flor-verde: url("/assets/imagenes/generales/csp-flor-verde.png");
    --csp-flor-rosa: url("/assets/imagenes/generales/csp-flor-rosa.png");
    --csp-flor-gris: url("/assets/imagenes/generales/csp-flor-gris.png");
    --csp-flores-banner: url("/assets/imagenes/generales/csp-flores-banner.png");
    --csp-fondo-textura-blanco: url("/assets/imagenes/generales/csp-fondo-textura-blanco.jpg");
}

    [data-bs-theme="dark"] :root, :root[data-bs-theme="dark"] {
        --csp-accent: #2b243b; /* lila oscuro para dark mode */
    }


/* Layout base a pantalla completa */
html, body {
    height: 100%;
    margin: 0;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* asegura al menos el alto de la ventana */
    font-family: 'objectsans-regular', 'DM Sans', sans-serif !important;
    line-height: 1.5 !important;
    font-size: 14px;
}

/** QUITA ESTILO DEL AUTOCOMPLETE DE FORMULARIO */
input:autofill,
textarea:autofill,
select:autofill,
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    -webkit-text-fill-color: #212529 !important; /* color del texto */
    caret-color: #212529;
    /* pinta el fondo que tú quieras (igual al del input normal) */
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    /* evita el “flash” del color de autofill */
    transition: background-color 9999s ease-out 0s !important;
}


/* QUITA FLECHAS, INPUTS NUMERICOS (Chrome, Safari, Edge, Opera) */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* QUITA FLECHAS, INPUTS NUMERICOS (Firefox) */
input[type=number] {
    -moz-appearance: textfield;
}

a {
    text-decoration: none;
    color: initial;
}

    a:hover {
        font-family: 'objectsans-heavy';
        color: initial;
    }


.main-wrapper {
    flex: 1 0 auto; /* crece y empuja al footer hacia abajo */
    display: flex; /* para que el <main> pueda crecer dentro */
    flex-direction: column;
}

    /* El <main> puede crecer dentro del contenedor */
    .main-wrapper > main {
        flex: 1 0 auto;
    }


.form-check-input:checked {
    background-color: var(--csp-primary);
    border-color: var(--csp-primary);
}

.form-check-input:focus {
    border-color: var(--csp-primary);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(91, 75, 138,.25);
}


/** ---------------------------------
    GENERALES
-------------------------------------*/
.bg-rosa {
    /** ROSA */
    background-color: #955A76;
}

.bg-morado {
    background-color: #555078;
}

.bg-amarillo {
    /** AMARILLO */
    background-color: #E7D270;
}

.bg-negro {
    /** NEGRO */
    background-color: #454545;
}

.fc-rosa {
    color:#955A76 !important;
}

.fc-naranja {
    /** NARANJA */
    color: #DF9273 !important;
}
.fc-morado {
    color: #555078 !important;
}
.fc-amarillo {
    color: #E7D270 !important;
}

.ff-objectsans-heavy {
    font-family: 'objectsans-heavy';
}

.page-title h1 span.page-title-2 {
    font-family: 'objectsans-heavy';
}
.page-title h4 {
    margin-top: 20px;
}

.bg-blanco {
    background-color: transparent;
}

.btn-black {
    color: #fff;
    background-color: #454545;
    border-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

    .btn-black:hover {
        color: #fff;
        font-family: 'objectsans-heavy';
    }

.btn-csp-secondary {
    /*color: #fff;*/
    /*background-color: #c05c7e;*/
    /*border-color: transparent;*/
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-rosa {
    color: #fff;
    background-color: #c05c7e;
    border-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

    .btn-rosa:hover {
        color: #fff;
        font-family: 'objectsans-heavy';
    }

.btn-outline-rosa {
    color: #c05c7e;
    border-color: #c05c7e;
}

    .btn-outline-rosa:hover {
        color: #fff;
        background-color: #c05c7e;
        border-color: #c05c7e;
    }

.btn-outline-morado {
    color: var(--csp-primary);
    border-color: var(--csp-primary);
}

    .btn-outline-morado:hover {
        color: #fff;
        background-color: var(--csp-primary-600);
        border-color: var(--csp-primary);
    }

.btn-carousel {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    font-size: 1.4rem;
    border-width: 1px;
}

.link-rosa {
    color: #c05c7e !important;
    text-decoration: none;
}

    .link-rosa:hover {
        color: #c05c7e;
        text-decoration: underline !important;
        text-underline-offset: 6px;
    }


.btn-outline-morado {
    color: var(--csp-primary);
    border-color: var(--csp-primary);
}

    .btn-outline-morado:hover {
        color: #fff;
        background-color: var(--csp-primary-600);
        border-color: var(--csp-primary);
    }

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
    color: #fff;
}

.form-control:focus {
    color: rgb(33, 37, 41);
    background-color: #fff !important;
    box-shadow: none;
    border: none;
    outline: 0px;
}

input:-internal-autofill-selected {
    appearance: menulist-button;
    background-image: none !important;
    background-color: #fff !important;
    color: initial !important;
}

.radius-20 {
    border-radius: 20px;
}

.top-radius-20 {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

    .radius-20 > .card-header {
        background-color: transparent;
    }


.csp-fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity .25s ease-out, transform .25s ease-out;
}

.programa-banner {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.csp-border-dashed {
    border-radius: 20px;
    border: 3px dashed rgba(149,90,118,.2);
}

.csp-bg-textura-blanca {
    background-image: var(--csp-fondo-textura-blanco);
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
}


.page-link {
    color: var(--csp-primary);
}
    .page-link:hover {
        color: var(--csp-primary);
    }

.page-item.active .page-link {
    background-color: var(--csp-primary);
    border-color: var(--csp-primary);
}

/** ---------------------------------
    ALERTAS
-------------------------------------*/
.csp-alert {
    padding: 1rem 1.25rem;
    border-radius: .75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .75rem;
    line-height: 1.4;
}

    .csp-alert i {
        font-size: 1.25rem;
        margin-top: 2px;
    }

/* Morada */
.csp-alert-primary {
    background-color: var(--csp-accent);
    border: 1px solid var(--csp-primary-600);
    color: var(--csp-primary-600);
}

    .csp-alert-primary i {
        color: var(--csp-primary);
    }


/* Rosa */
.csp-alert-secondary {
    background-color: #fde8f0;
    border: 1px solid var(--csp-secondary-600);
    color: var(--csp-secondary-600);
}

    .csp-alert-secondary i {
        color: var(--csp-secondary);
    }

/* Verde */
.csp-alert-success {
    background-color: #e4f4eb;
    border: 1px solid var(--csp-success);
    color: var(--csp-success);
}

    .csp-alert-success i {
        color: var(--csp-success);
    }


 /* Amarillo */
.csp-alert-warning {
    background-color: #fff7d6;
    border: 1px solid var(--csp-warning);
    color: var(--csp-warning);
}

    .csp-alert-warning i {
        color: var(--csp-warning);
    }


/* Rojo */
.csp-alert-danger {
    background-color: #fbecec;
    border: 1px solid var(--csp-danger);
    color: var(--csp-danger);
}

    .csp-alert-danger i {
        color: var(--csp-danger);
    }


    /* Gris */
.csp-alert-muted {
    background-color: #f3f4f6;
    border: 1px solid var(--csp-muted);
    color: var(--csp-muted);
}

    .csp-alert-muted i {
        color: var(--csp-muted);
    }


.grid-wrapper .page-item.active .page-link {
    background-color: var(--csp-primary) !important;
    border-color: var(--csp-primary) !important;
    color: #fff !important;
}


/** ---------------------------------
    BREADCRUMB
-------------------------------------*/
.csp-breadcrumb {
    --bs-breadcrumb-divider: '>';
}
    .csp-breadcrumb .active {
        color: var(--csp-secondary);
        font-family: 'objectsans-heavy';
    }


/** ---------------------------------
    FORMS
-------------------------------------*/
.card.card.csp-form {
    border: none;
    border-radius: 20px;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}
    .card.csp-form > .card-header,
    .card.csp-form > .card-footer {
        border: none;
        background-color: transparent;
    }

.card.csp-form input:not([type="checkbox"]):not([type="radio"]),
.card.csp-form select {
    border: none;
    border-bottom: 2.8px dotted #999;
    outline: none;
}

    .card.csp-form input:not([type="checkbox"]):not([type="radio"]):focus,
    .card.csp-form select:focus {
        color: #212529;
        background-color: #fff;
        border-color: #c05c7e;
        outline: 0;
        box-shadow: none;
    }

.card.csp-form .form-floating:has(input:focus) label,
.card.csp-form .form-floating:has(select:focus) label {
    color: #c05c7e;
}

.csp-form .accordion-button:not(.collapsed) {
    color: #555078;
    font-weight: 700;
    background-color: #E3DCFF;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

/*.accordion-button:focus {
    z-index: 3;
    border-color: transparent;
    outline: 0;
    box-shadow: none;
}*/




/** ---------------------------------
    CARRUSEL - CONTROLES CIRCULARES
-------------------------------------*/
.carousel-control-dot.carousel-control-prev,
.carousel-control-dot.carousel-control-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: background-color 0.3s ease; /* Optional: smooth transition on hover */
    align-self: center;
}

    .carousel-control-dot.carousel-control-prev:hover,
    .carousel-control-dot.carousel-control-next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }



/** ---------------------------------
    SPINNER
-------------------------------------*/
.overlay {
    position: fixed; /* Positions the overlay relative to the viewport */
    top: 0; /* Aligns the overlay to the top of the viewport */
    left: 0; /* Aligns the overlay to the left of the viewport */
    width: 100%; /* Ensures the overlay spans the full width of the viewport */
    height: 100%; /* Ensures the overlay spans the full height of the viewport */
    /*background-color: rgba(241,247,255, .6);*/ /* Sets a semi-transparent background color */
    background-color: rgba(0,0,0, .5);
    z-index: 9999; /* Places the overlay on top of other content */
}

    .overlay > div:first-child {
        width: 100%;
        height: 100%;
    }

    .overlay .spinner-border {
        width: 4rem;
        height: 4rem;
        border: none;
        -webkit-animation: none;
        animation: none;
        background-image: url("/assets/imagenes/generales/csp-animacion.gif");
        background-repeat: no-repeat;
        background-size: 4rem 4rem; /* mismos valores que width y height (arriba) */
    }


.modal-body {
    background-image: url("/assets/imagenes/generales/csp-fondo-general.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.moda-csp .modal-body {
    background-image: url("/assets/imagenes/generales/csp-fondo-general.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.moda-csp .card {
    border: none;
    background-color: transparent;
}
.moda-csp .card-body {
    background-color: transparent;
}

@media (max-width: 500px) {
    .main-wrapper {
        margin-top: 70px;
    }
    
}

@media (min-width: 500px) {
    .main-wrapper {
        margin-top: 130px;
    }
}

.text-justify {
    text-align: justify !important;
}