/********** Template CSS **********/
:root {
    --primary: #523715;
    --secondary: #F3E323;
    /** --secondary: #F3E323; */
    --links-yellow: #f3e975;
    --light: #F3F4F5;
    --dark: #282F34;
    --brown: #4A2F18;
    --crema: #f4e3c1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn.btn-primary:hover,
.btn.btn-secondary:hover {
    color: #523715;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .navbar-brand img {
    max-height: 50px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover {
    text-decoration: underline;
}
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 1212.98px) {
    .navbar .navbar-nav .nav-link:hover {
        text-decoration: none;
    }
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 1212px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-bg {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/bioparque-front.png) center center no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: #FFFFFF;
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 40px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
}


/*** Facts & Visiting Hours ***/
.facts {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/bg-1.jpg) center center no-repeat;
    background-size: cover;
}

.mision {
    background: url(../img/puma-bg.jpg) center center no-repeat;
    background-size: cover;
    @media (max-width: 1212px) {
        background: url(../img/puma-chico-2.jpg) center center no-repeat;
        background-size: cover;
    }
}

.visiting-hours {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/bg-pavo-real.jpg) center center no-repeat;
    background-size: cover;
}

.visiting-hours .list-group-item {
    display: flex;
    justify-content: space-between;
    color: var(--light);
    background: rgba(0, 0, 0, .15);
    border-color: rgba(255, 255, 255, .15);
}

.visiting-hours .table {
    color: var(--light);
    background: rgba(0, 0, 0, .15);
}

.visiting-hours .table td {
    padding: .5rem 1rem;
    border-color: rgba(255, 255, 255, .15);
}

.visiting-hours .table tr:last-child td {
    border: none;
}


/*** Animal ***/
.animal-item {
    position: relative;
    display: block;
}

.animal-item .animal-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.animal-item:hover .animal-text {
    opacity: 1;
    padding-bottom: 20px !important;
}


/*** Membership ***/
.membership-item {
    padding: 45px 30px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .7);
}

.membership-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.membership-item .display-1 {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 1212px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    border-color: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 600px;
    opacity: 1;
    @media (max-width: 1212.98px) {
        top:300px;
        width: 300px;
    }
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/leon-background-2.jpg) center center no-repeat;
    background-size: cover;
    @media (max-width: 1212.98px) {
        background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/pajaro-background-mobile.jpg) center center no-repeat;
    }
}
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

@font-face {
    font-family: 'Supply Center';
    src: url('../SupplyCenter.ttf') format('truetype');
}
.bp-title {
    font-family: 'Supply Center', sans-serif;
    font-size: 2rem;
        color: #523715 !important;
}

@media (max-width: 1400px) {
    .bp-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 1150px) {
    .bp-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 1212.98px) {
    .bp-title {
        font-size: 1.7rem;
    }
}
@media (max-width: 570px) {
    .bp-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 524px) {
    .bp-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .bp-title {
        font-size: 1rem;
    }
}

@media (max-width: 412px) {
    .bp-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 390px) {
    .bp-title {
        font-size: 0.8rem;
    }
}
@media (max-width: 368px) {
    .bp-title {
        font-size: 0.7rem;
    }
}

@media (max-width: 346px) {
    .bp-title {
        font-size: 0.65rem;
    }
}

@media (max-width: 335px) {
    .bp-title {
        font-size: 0.6rem;
    }
}

/* Selector idiona */
 .custom-select {
     position: relative;
     z-index: 9999; /* Añadido z-index alto */
     font-size: 0.8rem;
 }

.select-selected {
    background-color: #f8f8f8;
    padding: 8px 16px;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative; /* Añadido */
    z-index: 10000; /* Añadido z-index más alto que las opciones */
}

.select-items {
    position: absolute;
    background-color: #f8f8f8;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999; /* Actualizado a un z-index alto */
    border: 1px solid #ddd;
    border-top: none;
}

.select-hide {
    display: none;
}

.select-items div {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-top: 8px
}

.select-items div:hover {
    background-color: #e8e8e8;
}

.flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.footer-link:hover {
    text-decoration: underline;
}
.footer-link {
    color: var(--light);
}

@media (min-width: 1212.98px) {
    .language-dropdown {
        display: none;
    }
}

.current-link {
    color: var(--light);
}

.visit-facebook-gallery {
    background: #1877F2;
    border: white
}

.objectives-item:hover {
    background: #aafaeb;
}
.video-responsive {
    height: 100%;
    overflow: hidden;
    padding-bottom: 30%;
    position: relative;
    @media (max-width: 720px) {
        padding-bottom: 50%;
    }
}
.video-responsive iframe, .video-responsive object, .video-responsive embed {
    height: 100%;
    width: 50%;
    left: 25%;
    position: absolute;
    top: 0;
    @media (max-width: 720px) {
        height: 100%;
        width: 100%;
        left: 0;
    }
}

@media (min-width: 1249px) and (max-width: 1297px) {
    .padding-nav-left {
        padding-left: 1.0rem !important;
    }
    .padding-nav-right {
        padding-right: 1.0rem !important;
    }
}

@media (min-width: 1230px) and (max-width: 1243px) {
    .padding-nav-left {
        padding-left: 0.5rem !important;
    }
    .padding-nav-right {
        padding-right: 0.5rem !important;
    }
}

@media (min-width: 1219px) and (max-width: 1229px) {
    .padding-nav-left {
        padding-left: 0.1rem !important;
    }
    .padding-nav-right {
        padding-right: 0.1rem !important;
    }
}

@media (min-width: 1212px) and (max-width: 1218px) {
    .padding-nav-left {
        padding-left: 0 !important;
    }
    .padding-nav-right {
        padding-right: 0 !important;
    }
}

.text-gray {
    color: #8a8a8a;
}

/* Alerta emergente */
.floating-alert-giras {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    max-width: 450px;
    min-width: 380px;
    box-shadow: 0 8px 25px rgba(82, 55, 21, 0.12);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: none;
}

.floating-alert-giras.show {
    transform: translateX(0);
    opacity: 1;
}

.floating-alert-giras .alert {
    margin: 0;
    border: 2px solid #f4e3c1;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f4e3c1 50%, #ffffff 100%);
    color: #523715;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.floating-alert-giras .alert::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border: 1px dashed rgba(243, 227, 35, 0.3);
    border-radius: 10px;
    pointer-events: none;
    z-index: 0;
}

.floating-alert-giras .alert-heading {
    color: #523715;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.floating-alert-giras .info-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    padding-left: 20px;
    margin-bottom: 12px;
    border: 2px solid #f4e3c1;
    position: relative;
    z-index: 1;
}

.floating-alert-giras .info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #F3E323;
    border-radius: 10px 0 0 10px;
}

.floating-alert-giras .info-section:last-of-type {
    margin-bottom: 0;
}

.floating-alert-giras .info-section h6 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: #523715;
}

.floating-alert-giras .info-section h6 .separator {
    color: #523715;
    margin: 0 4px;
}

.floating-alert-giras .info-section h6 .highlight {
    color: #523715;
    font-weight: 700;
}

.floating-alert-giras .info-section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #523715;
}

.floating-alert-giras .divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(82, 55, 21, 0.2), transparent);
    margin: 15px 0;
}

.floating-alert-giras .btn-close {
    background: transparent;
    border: none;
    opacity: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.floating-alert-giras .btn-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.floating-alert-giras .btn-close::before,
.floating-alert-giras .btn-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #523715;
    transform: translate(-50%, -50%) rotate(45deg);
}

.floating-alert-giras .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.floating-alert-giras .email-link {
    color: #523715;
    text-decoration: underline;
    font-weight: 500;
    word-break: break-all;
}

.floating-alert-giras .email-link:hover {
    color: #F3E323;
    text-decoration: none;
}

.floating-alert-giras .icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(243, 227, 35, 0.2);
    border-radius: 50%;
    margin-right: 8px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-alert-giras {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .floating-alert-giras {
        top: 10px;
        right: 5px;
        left: 5px;
    }

    .floating-alert-giras .alert {
        padding: 20px;
    }

    .floating-alert-giras .info-section {
        padding: 12px;
        padding-left: 17px;
    }
}

@media (max-width: 767px) {
    /* Reducir padding del contenedor principal */
    .visiting-hours.my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Ajustar títulos principales */
    .visiting-hours .display-6 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    /* Sección de Horarios */
    .visiting-hours .col-md-5 {
        margin-bottom: 2rem;
    }

    /* Hacer items de horario más compactos */
    .visiting-hours .list-group-item {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
    }

    /* Notas de última entrada y cierre - más compactas */
    .visiting-hours .text-center h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }

    .visiting-hours .text-center.mt-lg-4 {
        margin-top: 1rem !important;
    }

    .visiting-hours .text-center.mt-1 {
        margin-top: 0.3rem !important;
    }

    /* Sección de Valores */
    .visiting-hours .col-md-7 h1 {
        margin-bottom: 1rem !important;
    }

    /* Tabla más compacta */
    .visiting-hours .table td {
        padding: 0.5rem !important;
        font-size: 0.9rem;
        line-height: 1.3;
    }

    /* Reducir espacio de bullets de medios de pago */
    .visiting-hours .table td p {
        margin-bottom: 0.3rem !important;
        font-size: 0.85rem;
    }

    /* Advertencias más compactas */
    .visiting-hours .table td.text-danger {
        font-size: 0.85rem !important;
        padding: 0.4rem !important;
        line-height: 1.4;
    }

    /* Ajustar gap entre columnas */
    .visiting-hours .row.g-5 {
        row-gap: 1.5rem !important;
    }
}
