/********** Template CSS **********/


html,
body {
    overflow-x: hidden;
}

/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }

    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }

    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }

    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }

    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary {
    background-color: #770AE8;
    border-color: #770AE8;
}

.btn-yellow {
    background-color: #FFC702;
    border-color: #FFC702;
    color: #fff;
}

.btn-primary:hover {
    background-color: #9C39FF;
    border-color: #9C39FF;
    color: #fff;
    /* box-shadow: inset 0 0 0 0 var(--primary); */
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 15px 0;
    color: #3d3d3d;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
    width: 7em;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: #3d3d3d
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #9C39FF;
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }

    #header .header-logo img {
        width: 50px !important;
        top: 5px !important;
        left: 15px !important;
    }

    .divhospital {
        display: none;
    }

    .divhospital2 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .rolcard {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        min-height: 20em !important;
        margin-bottom: 1em;
        padding-top: 3em !important;
    }

    .boxcomp {
        font-size: 0.8em;
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;

        z-index: 999;
    }

    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
        height: 80px;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: #9C39FF;
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }

    #header .header-logo img {
        width: 50px !important;
        top: 5px !important;
        left: 15px !important;
    }

    .navbar-dark .navbar-toggler {
        color: var(--primary) !important;
        border-color: var(--primary) !important;
    }

    .carousel-item img {
        height: 100% !important;
    }


    .d-flexm {
        display: block !important;
    }

    .margenmov {
        margin-left: 0 !important;
    }

    .divsocial {
        display: flex !important;
        margin-left: 20%;
    }



    .donarmedio {
        height: 100% !important;
        margin: 0.8rem !important;
    }

    .diretxt {
        font-size: 1em;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;

    opacity: 1;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    width: 3rem;
    height: 3rem;
    background-color: #4d4d4d;
    color: #EEF9FF !important;
    opacity: 1;
}

/*** Section Title ***/
/* .section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
} */

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {
        left: 0;
    }

    50% {
        left: 145px;
    }

    100% {
        left: 0;
    }
}

@-webkit-keyframes section-title-run-center {
    0% {
        left: 50%;
        margin-left: -75px;
    }

    50% {
        left: 50%;
        margin-left: 45px;
    }

    100% {
        left: 50%;
        margin-left: -75px;
    }
}

@-webkit-keyframes section-title-run-sm {
    0% {
        left: 0;
    }

    50% {
        left: 85px;
    }

    100% {
        left: 0;
    }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
    width: 65%;
    margin-left: auto;
    margin-right: auto;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.infancias {
    min-height: 300px
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -10em;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

.nav-item {
    font-size: 16px;
}

/**bg Colores */
:root {
    --primary: #770AE8;
    --secondary: #FF4F00;
    --light: #EEF9FF;
    --dark: #091E3E;
    --yellow: #FFC702;
    --dark2: #53216D;
    --dark3: #49cddc;
}

.bg-primary {
    background-color: #770AE8;
}

.bg-secondary {
    background-color: #FF4F00;
    color: #fff !important;
}

.bg-yellow {
    background-color: #FFC702;
}

.bg-aux1 {
    background-color: #031851;
}

.bg-aux2 {
    background-color: #53216D;
}

.bg-aux3 {
    background-color: #EDEDED;
}

.bg-dark3 {
    background-color: var(--dark3);
}

.btn-white {
    background-color: #fff;
    color: #770AE8;
}

.btn-ligth {
    background-color: #fff;
    color: #FF4F00 !important;
    border-radius: 4px;
}

.btn-ligth-yellow {
    background-color: #fff;
    color: #FFC702 !important;
    border-radius: 4px;
}

.donarmedio {
    height: 22em;
}

.mapBox {
    width: 100%;
    height: 430px;
    overflow: hidden
}

.imglogoFooter {

    width: 10em;
}

#header .header-logo img {
    position: absolute;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    width: 70px;
    top: 5px;
}

#header .header-logo .logo-normal {
    opacity: 1;
}

#header .header-logo .logo-sticky {
    opacity: 0;
}

.sticky-top.navbar-dark .header-logo .logo-normal {
    opacity: 0 !important;
}

.sticky-top.navbar-dark .header-logo .logo-sticky {
    opacity: 1 !important;
}

.btn-social {
    color: #000;

}

.btnfacts {
    width: 20em;
    height: 20em;
}

.imgteam {
    border-radius: 50%;
    background-color: transparent;
}

.bg-light {
    background-color: transparent !important;
}

.bg-lightimput {
    background-color: #EDEDED !important;
}

h2 {
    font-family: 'Montserrat', sans-serif;
}

h3 {
    font-family: 'Montserrat', sans-serif;
}

h4 {
    font-family: 'Montserrat', sans-serif;
}

h5 {
    font-family: 'Montserrat', sans-serif;
}

p {
    font-family: 'Montserrat', sans-serif;
}

li {
    font-family: 'Montserrat', sans-serif;
}

.text-black {
    color: #3d3d3d !important;
}

.carousel-item img {
    height: 85vh;
}

.nav-primary {
    background-color: var(--primary);
    padding-left: 10px !important;
    padding-right: 10px !important;
    color: #FFF !important;
    border-radius: 4px;
}

.nav-secondary {
    background-color: var(--secondary);
    padding-left: 10px !important;
    padding-right: 10px !important;
    color: #FFF !important;
    border-radius: 4px;
}

.nav-yellow {
    background-color: var(--yellow);
    padding-left: 10px !important;
    padding-right: 10px !important;
    color: #FFF !important;
    border-radius: 4px;
}

.nav-dark {
    background-color: var(--dark);
    padding-left: 10px !important;
    padding-right: 10px !important;
    color: #FFF !important;
    border-radius: 4px;
}

.nav-dark2 {
    background-color: var(--dark2);
    padding-left: 10px !important;
    padding-right: 10px !important;
    color: #FFF !important;
    border-radius: 4px;
}

.nav-dark3 {
    background-color: var(--dark3);
    padding-left: 10px !important;
    padding-right: 10px !important;
    color: #FFF !important;
    border-radius: 4px;
}

.rolcard {

    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 22em;
    margin-bottom: 1em;
}

.iniciativacard {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 250px;
    margin-bottom: 1em;
}

.container2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 1rem;
    max-width: 1440px;
    margin: 0 auto;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile:nth-child(1) {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 22em;
}

.tile:nth-child(2) {
    grid-column: span 2;
    min-height: 13em;
}

.tile:nth-child(3) {
    grid-column: span 2;
    grid-row: span 2;
}

.tile:nth-child(4),
.tile:nth-child(5) {
    grid-column: span 2;
}

.tile:nth-child(6) {
    grid-column: span 2;
    min-height: 300px;
}

.tile:nth-child(7) {
    grid-column: span 4;
}

.eticabox {
    min-height: 250px;
}

@media screen and (max-width: 650px) {
    .container {
        display: block;
    }

    .tile {
        margin-bottom: 1rem;
    }
}

.divhospital {
    bottom: 0px;
    position: absolute;
}

.divhospital:hover {

    position: absolute;
}

.colhosp {
    position: relative;
    background-image: url(/img/carrousel3.jpg);
    background-position: center;
    background-size: cover;
    height: 100%;
    background-color: transparent;

}

.textbackr {
    font-size: 0.85em
}

#donacionValor {
    text-align: right;
}

.modal-footer {
    border: 0 !important;
}

.modal-header {
    border: 0 !important;
}

.colhosp2 {
    position: relative;
    background-image: url(/img/carrousel/car9.jpg);
    background-position: center;
    background-size: cover;
    height: 100%;
    background-color: transparent;

}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flipcard {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
    /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flipcardinner {
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flipcard:hover .flipcardinner {
    transform: rotateY(180deg);
}

.card-text {
    font-size: 0.95em
}

/* Position the front and back side */
.colhosp, .colhospback {
    position: absolute;

    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

.colhosp2, .colhospback {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}


/* Style the back side */
.colhospback {
    display: block;
    width: 100%;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: #4d4d4d;
    font-size: 0.9em;
    transform: rotateY(180deg);
}

.btnspace {
    height: 100px;
}

.infodiv {
    color: #fff;
    justify-content: center;
    top: -7px !important;
    left: -5px !important;
    background-color: #4d4d4d;
    height: 16px;
    width: 16px;
    margin: 0 !important;
    padding: 0px;
}

.infodiv i {
    top: 0;
    left: 0;
    position: absolute;
}


/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    /* Remove this if you don't want the 3D effect */
}

.flip-card2 {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px;
    /* Remove this if you don't want the 3D effect */
}

.myAnim {
    transform: rotateY(180deg);
    transition: transform 0.8s;
}

/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card2:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

.flip-card-front, .flip-card-back2 {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
    background-color: transparent;
    color: #4d4d4d;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style the back side */
.flip-card-back {
    display: flex;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: #4d4d4d;
    transform: rotateY(180deg);
}

.flip-card-back2 {
    display: block;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: #4d4d4d;
    transform: rotateY(180deg);
}

.textpuesto {
    font-size: 0.7em;
}

.textapellido {
    font-size: 0.9em;
}

@media (max-width: 1199px) {
    .btnfacts {
        width: 10em;
        height: 10em;

    }

    .participa {
        font-size: 0.6em;
        padding-top: 1.6em !important;
    }


    .btnfacts a h6 {
        font-size: 1.1em !important;
    }

    .facts {
        position: relative;
        margin-top: -5em;
        z-index: 1;
    }
}

@media (max-width: 990px) {
    .facts {
        position: relative;
        margin-top: -11em;
        z-index: 1;
    }
}

@media (max-width: 580px) {
    .facts {
        position: relative;
        margin-top: -9.5em;
        z-index: 1;
        padding-bottom: 0 !important;
    }

    .participa {
        font-size: 0.4em;
        padding-top: 5em !important;
    }

    .facts .container {
        padding-bottom: 0 !important;
    }

    #about {
        padding-top: 0 !important;
    }

    #about .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .btnfacts {
        width: 6.5em;
        height: 6.5em;

    }

    .btnfacts a h6 {
        font-size: .8em !important;
    }

    .textbackr {
        font-size: 0.65em
    }

    .card-text {
        font-size: 0.95em
    }

    .row.g-5.ms-5.me-5 {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .infancias {
        min-height: 250px
    }

    .rolcard {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        min-height: 15em;
        margin-bottom: 1em;
    }

    .donatarjeta {
        display: grid;
        grid:
            "."auto "titulo"auto "."auto / auto;
        gap: 6%;
        height: 205px;
    }
}

.webhospital {
    font-size: 1em;
    vertical-align: middle;
}



.participa {

    padding-top: 1em;
}

.donatarjeta {
    display: grid;
    grid:
        "."auto "titulo"auto "."auto / auto;
    gap: 55%;
}

.titulo {
    grid-area: titulo;
}

.btndonar {
    width: 100%;
    display: flex;
}

.spanMl {
    color: #fff;
    font-size: 0.8em;
}