.custom-card {
    width: auto;
    background-color: #F8F8F8;
    color: #000;
    padding: 8px 12px;
    border-left: 3px solid #E0E0E0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.scroll-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.scroll-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/*-----------------------------------------*/

.carousel-control-next-icon,
.carousel-control-prev-icon {
    filter: invert(50%) sepia(100%) saturate(500%) hue-rotate(180deg);
}

.carousel,
.carousel-item,
.carousel-item img {
    height: 100vh;
    /* ocupa todo el alto de la ventana */
}

.carousel-item img {
    object-fit: cover;
    /* recorta la imagen para llenar sin deformarse */
    width: 100%;
    /* que abarque todo el ancho */
}

.carousel-caption {
    bottom: 100px;
    /* ajusta la distancia desde abajo */
}

.carousel-item img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {

    .carousel,
    .carousel-item,
    .carousel-item img {
        height: auto;
        /* que se ajuste al contenido */
    }
}

@media (max-width: 1024) {

    .carousel,
    .carousel-item,
    .carousel-item img {
        height: auto;
        /* que se ajuste al contenido */
    }
}

/*-----------------------------------------*/

.azul2 {
    color: #0B5394;
}

.azul1 {
    color: #239DB0;
}

.bg-precio {
    background-color: #002A41;
    color: #f5f5f5;
    padding-top: 8px;
    padding-bottom: 5px;
}

.justificar {
    text-align: justify;
}

.letra-gris {
    color: #666666;
}

.interlineado-2 {
    line-height: 1.7;
}

.grisclaro {
    background-color: #f5f5f5;
}

.btn-suscribete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*background-color: #00bfa5;*/
    /* Verde esmeralda */
    background: #00BFA5;
    background: linear-gradient(90deg, rgba(0, 191, 165, 1) 0%, rgba(0, 93, 80, 1) 89%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    /* Bordes redondeados */
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-suscribete:hover {
    background-color: #009e88;
    /* un poco más oscuro al pasar */
    transform: translateY(-2px);
    color: aqua;
}


.btn-suscribete2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*background-color: #00bfa5;*/
    /* Verde esmeralda */
    background: #0B5394;
    background: linear-gradient(90deg, rgba(11, 83, 148, 1) 0%, rgba(2, 16, 29, 1) 89%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    /* Bordes redondeados */
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-suscribete2:hover {
    background-color: #3B75A9;
    /* un poco más oscuro al pasar */
    transform: translateY(-2px);
    color: yellow;
}

.btn-suscribete3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*background-color: #00bfa5;*/
    /* Verde esmeralda */
    background: #00BFA5;
    background: linear-gradient(90deg, rgba(0, 191, 165, 1) 0%, rgba(0, 93, 80, 1) 89%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    /* Bordes redondeados */
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-suscribete3:hover {
    background-color: #009e88;
    /* un poco más oscuro al pasar */
    transform: translateY(-2px);
    color: #ffffff;
}

.negritas {
    font-weight: bold;
}

.nav {
    list-style: none;
    display: flex;
    /* los elementos en fila */
    padding: 0;
    margin: 0;
}

.nav li {
    padding: 0 10px;
    /* espacio a los lados */
    border-right: 1px solid #fff;
    /* la rayita vertical */
}

.nav li:last-child {
    border-right: none;
    /* quitar la rayita del último */
}

/* Estilos por tipografía */
.open-sans {
    font-family: 'Open Sans', Arial, sans-serif;
}

.lato {
    font-family: 'Lato', Arial, sans-serif;
}

.roboto {
    font-family: 'Roboto', Arial, sans-serif;
}

.em2 {
    font-size: 2.0em;
}

.em-16 {
    font-size: 1.6em;
}

.em-15 {
    font-size: 1.5em;
}

.em-14 {
    font-size: 1.4em;
}

.em-13 {
    font-size: 1.3em;
}

.em-11 {
    font-size: 1.1em;
}

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

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


/*cambiar color al pasar mouse*/
.navbar-nav .nav-link:hover {
    color: #0B5394 !important;
}

/*tambien hover en los elementos del menu*/
.dropdown-menu .dropdown-item:hover {
    color: #0B5394 !important;
}

/*mega menu*/
/* Mega menú ocupa todo el ancho */
.mega-menu {
    width: 70vw;
    left: 0vw;
    right: 0;
    border-radius: 0;
    border: none;
    background-color: #f5f5f5;
}

/* Títulos */
.mega-menu h6 {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Items */
.mega-menu .dropdown-item {
    font-size: 0.85rem;
    padding: 2px 0;
    color: #666;
}

.mega-menu .dropdown-item:hover {
    color: #239DB0;
    /* tu color */
    background: transparent;
}

.no-decora {
    text-decoration: none;
}

.petroleo {
    color: #4C4C4C;
}

.petroleo:hover {
    font-style: italic;
    color: #239DB0;
}

.pie-link:hover {
    color: #ffc107 !important;
    font-style: italic;
}

.azul3 {
    background-color: #002A41;
}

.img-zoom {
    transition: transform 0.3s ease;
}

.img-zoom:hover {
    transform: scale(1.1);
}

.fuente-nav {
    /*font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;*/
    font-size: 0.8em;
    font-family: 'Roboto', Arial, sans-serif;
}

.active-bar {
    color: #239DB0;
}

.imagen-zoom {
    transition: transform 0.3s ease;
    /* Suaviza la animación */
    cursor: pointer;
    /* Opcional: cambia el cursor a una mano */
}

.imagen-zoom:hover {
    transform: scale(1.1);
    /* Agrandar la imagen un 20% (ajusta el valor) */
}

/*--------------------------------------------------------------*/
.zoom-pan {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* mejor usar % para que sea responsive */
    max-width: 600px;
    /* límite máximo si quieres */
    height: 400px;
}

.zoom-pan img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform-origin: center center;
    /* zoom desde el centro */
}

.zoom-pan:hover img {
    transform: scale(1.5);
    /* escala más moderada, no demasiado grande */
    cursor: zoom-in;
}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: #0B5394;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: #0B5394;
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------*/
.mark,
mark {
    background-color: #fdeb8e !important;
}

.no-decora {
    text-decoration: none;
}

.bg-edita {
    background-color: #FFD27F;
}

/*--------------------------modal right---------------------------------*/
.modal-dialog-right {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.modal-dialog-right .modal-content {
    width: 600px;
    /* ancho fijo */
    max-width: 90vw;
    /* no excede 90% del ancho de la pantalla */
    height: 600px;
    border-radius: 0;
    margin-right: 10px;
    /* pequeño espacio del borde */
}

/* animación para deslizar desde la derecha */
.modal.fade.right .modal-dialog {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.modal.show.right .modal-dialog {
    transform: translateX(0);
}

/*------------------------boton flotante------------------------*/
.wfloat {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 95px;
    right: 20px;
    background-color: #0B5394;
    color: #FFF;
    border-radius: 70px;
    text-align: center;
    font-size: 24px;
    /* un poco más pequeño para que no se salga */
    box-shadow: 2px 2px 30px #999;
    z-index: 100;
    text-decoration: none;

    /* Centramos con flexbox */
    display: flex;
    align-items: center;
    justify-content: center;
}

.wfloat:hover {
    text-decoration: none;
    color: #239DB0;
    background-color: #ffffff;
}

/* Define la animación */
@keyframes parpadeo {
    0% {
        opacity: 1.0;
    }

    /* Texto completamente visible */
    50% {
        opacity: 0.0;
    }

    /* Texto invisible */
    100% {
        opacity: 1.0;
    }

    /* Texto completamente visible de nuevo */
}

/* Aplica la animación a un elemento */
.pulso {
    animation-name: parpadeo;
    animation-duration: 1.5s;
    /* Duración de un ciclo de animación */
    animation-timing-function: linear;
    /* La velocidad de la animación es constante */
    animation-iteration-count: infinite;
    /* La animación se repite indefinidamente */
}


.form-check-input {
    border: 2px solid #ff2600 !important;
    /* color del borde */
    transform: scale(1.2);
    /* aumenta tamaño */
    margin-right: 8px;
    /* ajusta separación */
}

.form-check-input:checked {
    background-color: #007bff !important;
    /* color del relleno al marcar */
    border-color: #007bff !important;
    /* color del borde al marcar */
}

@media print {
    .no-print {
        display: none;
    }
}


/*-permitir scroll dentro del megamenu-*/
.mega-menu {
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .mega-menu {
        max-height: 70vh;
        overflow-y: auto;
    }

    .navbar-collapse {
        max-height: 100vh;
        overflow-y: auto;
    }
}

/*----------------------------------*/
.ico_redes {
    transition: transform 0.8s ease-in-out;
    display: inline-block;
}

.ico_redes:hover {
    animation: girar 1s linear infinite;
    transform: scale(1.2);
}

@keyframes girar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*-----------------------------------*/
.breadcrumb-custom {
    background: linear-gradient(90deg, #1f284f, #1559aa);
    border-radius: 12px;
}

.link-bread {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.link-bread:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #ffffff;
    font-size: 18px;
    padding: 0 8px;
}