:root {
    --bs-border-width: 2px;
    --s1-radius: 0.4rem;
}
html,
.modal-dialog-scrollable .modal-body {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}
hr {
    margin: 4rem 0;
}
.form-control::placeholder {
    opacity: 0.45;
    font-style: italic;
}
.btn {
    --bs-btn-disabled-opacity: 0.45;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: inherit;
    text-wrap: balance;
    & a {
        text-decoration: none;
    }
}
.lead {
    text-wrap: balance;
}
.s1-bleed h1,
.s1-bleed .h1 {
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.8);
}
header .logo img {
    margin-block: 0.6rem;
}
header,
footer {
    background: var(--s1-secondary);
    color: white;
    padding-block: 0.4rem;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.8);
}
footer {
    padding-block: 2rem;
}

main > .row {
    margin-block-start: 4rem;
    margin-block-end: 4rem;
}

.s1-bleed {
    padding-block-start: 3rem;
    padding-block-end: 4rem;
    margin-block-start: 4rem;
    margin-block-end: 5rem;
}
.s1-bleed:has(+ .s1-bleed) {
    margin-block-end: 0;
}
.s1-bleed.brand-bkg {
    background-image: linear-gradient(355deg, lch(var(--s1-secondary-l) var(--s1-secondary-ch) / 65%) 0%, lch(var(--s1-primary-l) var(--s1-primary-ch) / 95%) 30%),url('/images/Footer/logotriangulo.png');
    background-repeat: no-repeat;
    background-position: 30% 50%;
}
.s1-bleed.texture-bkg {
    background-image: url('/images/bkg-2.png');
    background-repeat: repeat;
    background-size: auto;
    background-blend-mode: difference;
}
.text-white > a {
    color: white;
}

.btn.btn-outline-primary:hover {
    background-color: lch(var(--s1-primary-l) var(--s1-primary-ch) / 60%);
}
.btn.btn-outline-secondary:hover {
    background-color: lch(var(--s1-secondary-l) var(--s1-secondary-ch) / 60%);
}

.card {
    --bs-card-border-color: var(--bs-primary);
    background: linear-gradient(355deg, lch(var(--s1-primary-l) var(--s1-primary-ch) / 12%), lch(var(--s1-primary-l) var(--s1-primary-ch) / 0%) 35%);
}
.card .rounded-start {
    --bs-border-radius: var(--bs-card-inner-border-radius);
}

.tab-content>.tab-pane {
    padding-block: 2rem;
}

.modal-content {
    background: linear-gradient(355deg, lch(var(--s1-primary-l) var(--s1-primary-ch) / 12%), lch(var(--s1-primary-l) var(--s1-primary-ch) / 0%) 35%), white;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.6);
}

.bkg {
    position: relative;
    background-image: url('/images/bg-01.jpg');
    background-size: cover;
    background-position: center;
    padding-block: 6rem;
    margin-block: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.bkg > * {
    z-index: 1;
}
.s1-bleed.bkg:before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    opacity: 0.6;
    z-index: 0;
}
.btn.cart-button {
    --bs-btn-padding-x: 0.2rem;
    color: white;
}
.btn.cart-button .icon {
    font-size: 1.6rem;
}
.btn.cart-button .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.35rem !important;
}

.icon-list .icon {
    font-size: 4rem;
    filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.2));
}
.icon-list h4 {
    border-block-end: 1px solid rgba(255,255,255,0.4);
    padding-block-end: 0.4rem;
    padding-inline-start: 0.6rem;
    margin-inline-start: -0.6rem;
}

.media iframe {
    border: 2px solid var(--s1-primary);
    background: var(--s1-primary);
    border-radius: 0.6rem;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}

.popover {
    --bs-popover-bg: var(--bs-white);
    box-shadow: 2px 5px 8px rgba(0, 0, 0, 0.2);
}

div[class*='course-list'] .list-group,
div[class*='course-list'] .card-footer {
    font-size: 90%;
    line-height: 1.2;
}
div[class*='course-list'] .card-title a {
    color: var(--s1-secondary);
    text-decoration: none;
    transition: all .3s;
    &:hover {
        opacity: 0.8;
    }
}

#msgIdEval {
    background: transparent;
    padding: 1rem;
}

.btn:has( > .icon) {
    /*--bs-btn-padding-x: 0.2rem;*/
    /*--bs-btn-padding-y: 0;*/
    line-height: 0;
}
.btn .icon {
    font-size: 1.2rem;
}
.btn {
    position: relative;
}
.btn[class*='btn-']:not(.btn-link)::before {
    content: '';
    position: absolute;
    border: 1px solid rgba(0,0,0,0.6);
    filter: blur(4px);
    width: 100%;
    height: 100%;
    top: 0.15rem;
    left: 0.15rem;
}


.main_nav .btn-link {
    --bs-btn-font-weight: 400;
    --bs-btn-font-size: 1.1rem;
    --bs-btn-color: white;
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: 0.25rem;
    text-transform: uppercase;
    text-decoration: none;
}
.dropdown-menu {
    box-shadow: 3px 3px 8px rgba(0,0,0,0.4);
}


.calculator-img {
    clip-path: polygon(0% 0%, 100% 0%, 74% 100%, 0 100%);
    object-fit: cover;
    height: 100%;
}

.course-list-1 .card,
.course-list-2 .card,
.eventos .card {
    --bs-card-border-color: var(--bs-border-color-translucent);
    background: linear-gradient(355deg, lch(var(--s1-l-100) var(--s1-white-ch) / 55%), lch(var(--s1-l-100) var(--s1-white-ch) / 100%) 35%);
}
.course-list-1 .card-title,
.course-list-2 .card-title,
.eventos .card-title {
    padding-inline-end: 1.4rem;
}
.card-img-top .badge {
    margin: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.8);
}

.cart-item-tooltip {
    top: -0.1rem;
    position: relative;
}
.line-item .btn[data-lineitem-remove] .icon {
    font-size: 1.2rem;
}

.list-group {
    --bs-list-group-bg: transparent;
}
.list-group-item {
    --bs-list-group-border-width: 1px;
}

.action-buttons .btn {
    margin-bottom: 0 !important;
}

.alert * {
    margin-block-end: 0;
}
.alert .icon {
    filter: drop-shadow(2px 4px 1px rgba(255,255,255,1));
}
.alert.alert-info .error-icon {
	display: none;
}
.alert.alert-danger .info-icon {
	display: none;
}
#alertbox {
    width:100%;
    position:fixed;
    top:-100px;
    z-index:9999;
    text-align:center;
    pointer-events:none;
    opacity: 0;
    transition: all .3s;
    transition-timing-function: ease-in-out;
}
#alertbox.showing {
    top: 150px;
    opacity: 1;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-name: bounce-7;
    animation-timing-function: cubic-bezier(0.280, 0.840, 0.420, 1);
}
@keyframes bounce-7 {
    0%   { transform: scale(1,1)      translateY(0); }
    10%  { transform: scale(1.1,.9)   translateY(0); }
    30%  { transform: scale(.9,1.1)   translateY(-50px); }
    50%  { transform: scale(1.05,.95) translateY(0); }
    57%  { transform: scale(1,1)      translateY(-7px); }
    64%  { transform: scale(1,1)      translateY(0); }
    100% { transform: scale(1,1)      translateY(0); }
}
#alertbox .alert {
    max-width:90%;
    margin:0 auto;
    pointer-events:none;
    -webkit-box-shadow:1px 8px 18px rgba(10,10,10,.4);
    box-shadow:1px 8px 18px rgba(10,10,10,.4);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,.2);
    font-size: 3rem;
    color: rgba(10,10,10,.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner-border {
    --bs-spinner-border-width: 0.1em;
    --bs-spinner-animation-speed: 0.85s;
}

.s1-bleed.home-slider {
    padding-block-start: 0;
    padding-block-end: 0;
    margin-block-start: -3rem;
    margin-block-end: 4rem;
    background: linear-gradient(180deg, var(--s1-primary) 0%, rgb(0 0 0) 90%);
}

.contacts-list .icon {
    font-size: 2rem;
    color: var(--s1-primary);
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
    margin: 0 0 -1.6rem -1.8rem;
    z-index: -1;
    position: relative;
    opacity: 0.2;
}
/*
.price.override-special-true {
    background-color: lch(var(--s1-danger-l) var(--s1-danger-ch) / 1) !important;
}
.list-group-item.override-special-true {
    background-color: lch(var(--s1-danger-l) var(--s1-danger-ch) / .25) !important;
    padding: 4px !important;
    border-radius: 4px;
}
*/

.royalSlider {
    width: 100%;
    height: auto;
}
.rsDefault .rsThumbsVer {
    width: 16%;
    overflow: visible;
}
.rsDefault.rsWithThumbsVer .rsThumbsContainer {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
.rsDefault .rsThumb {
    position: relative;
    float: none;
    overflow: visible;
    width: auto;
    height: auto;
    padding: 0.8rem;
    margin: 0.2rem 0;
    background: var(--s1-secondary);
    filter: drop-shadow(-2px 3px 4px rgba(0, 0, 0, 0.4));
}
.rsDefault .rsThumb:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    left: -5px;
    top: calc(50% - 5px);
    background: var(--s1-secondary);
    transform: rotate(45deg);
}
.rsDefault .rsThumb:hover {
    background: var(--bs-gray-700);
}
.rsDefault .rsThumb:hover::before {
    background: var(--bs-gray-700);
}
.rsDefault .rsThumb.rsNavSelected {
    background: var(--s1-primary);
    cursor: default;
}
.rsDefault .rsThumb.rsNavSelected::before {
    background: var(--s1-primary);
    width: 16px;
    height: 16px;
    left: -8px;
    top: calc(50% - 8px);
}
.rsABlock {
    left: 2rem;
    top: auto;
    bottom: 2rem;
    background: var(--s1-primary);
    line-height: 1;
    padding: 1.4rem 2rem;
    border-radius: var(--bs-border-radius);
}
.rsABlock * {
    margin-bottom: 0;
}

.form-control[readonly] {
    background-color: var(--bs-gray-100);
}

.accordion {
    --bs-accordion-active-bg: lch(80 var(--s1-primary-ch));
    --bs-accordion-active-color: var(--bs-dark);
}
.accordion-button[disabled]::after {
    opacity: 0;
}
.accordion-button h4 {
    margin-block-end: 0;
}

.attendance-btn {
    top: 5px !important;
    left: 5px !important;
    border-width: 0;
    z-index: 10;
}

.blog-layout .sidebar .list-group-item h5 {
    margin-block-end: 0;
}
.blog-layout .sidebar .list-group-item a,
.blog-layout .badge a {
    text-decoration: none;
}
.blog-layout .sidebar .list-group-item a {
    &:hover {
        color: var(--bs-dark);
    }
}

.social .btn {
    padding: 1.4rem 0.8rem;
}
.social .btn .icon {
    font-size: 2.4rem;
}

footer h4 {
    margin-block-end: 1rem;
}

/* Small devices only (landscape phones, 575px and under) */
@media (max-width: 575px) {
    header, footer {
        padding-block: 0.8rem;
    }
    .royalSlider {
        grid-column: full-width !important;
    }
    .rsDefault .rsThumbsVer {
        width: 6%;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
    .rsDefault .rsThumb {
        width: 100%;
        padding: 0.3rem;
        margin: 0rem 0;
        text-align: center;
    }
    .rsDefault .rsTmb h5 {
        position: relative;
        z-index: 1;
    }
    .rsDefault .rsThumb.rsNavSelected::before {
        width: 10px;
        height: 10px;
        left: -5px;
        top: calc(50% - 5px);
    }
    .rsThumbsArrow {
        display: none !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .rsThumbsArrow {
        display: none !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    #alertbox .alert {
        max-width: 40%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    
}
