/*=============================================
Navbar
=============================================*/
.navbar {
    background-color: var(--color-primario);
    z-index: 999;
}
.navbar-brand {
    font-weight: bold;
    color: var(--color-secundario) !important;
}
.nav-link {
    color: #ffffff !important;
}
.nav-link:hover {
    color: var(--color-secundario) !important;
}

/*=============================================
footer | Iconos Redes Sociales
=============================================*/
.icon-footers {
  display: flex;
  justify-content: center;
  gap: 0.7rem;

}

.icon-footer {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--second-text-color); /* Borde dorado */
  color: var(--second-text-color); /* Texto dorado */
  font-size: 0.8rem;
  transition: transform 0.3s ease, background-color 0.3s, color 0.3s;
  text-decoration: none;
}

.icon-footer i {
  line-height: 1; /* importante para evitar desajustes verticales */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


.icon-footer:hover {
  transform: scale(1.2);
  background-color: var(--bg-color); /* Fondo oscuro */
  color: var(--text-color); /* Texto claro en hover */
}

/* Responsive: tamaño muy pequeño en móviles */
@media (max-width: 576px) {
  .icon-footer {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.65rem;
  }
}

/* Más grande en escritorio */
@media (min-width: 768px) {
  .icon-footer {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }
}

/*=============================================
Botones Flotantes
=============================================*/
/* Estilos comunes para los botones */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para la posición fija del botón de volver arriba */
#back-to-top {
    justify-content: center;
    position: fixed;
    bottom: 120px;
    right: 20px;
    display: none; 
}

.btn-whatsapp {
    height: 50px;
    z-index: 10000;
    position: fixed;
    bottom: 60px;
    right: 20px;
    transition: right 0.5s ease, opacity 0.5s ease; /* Suavizamos la transición en la posición y la opacidad */
}

.whatsapp-button {
    display: flex;
    align-items: center;
}

/* Ocultamos el texto y ajustamos la posición */
.whatsapp-text {
    display: none;
    margin-left: 10px;
    opacity: 0; /* Inicia con opacidad cero */
    transition: opacity 0.5s ease; /* Suavizamos la transición de opacidad */
}

/* Al hacer hover, movemos el botón y mostramos el texto */
.whatsapp-button:hover {
    right: 80px; /* Desplazamos el botón a la izquierda */
}

.whatsapp-button:hover .whatsapp-text {
    display: inline-block; /* Mostramos el texto */
    opacity: 1; /* Aparece con opacidad 1 */
}

/*=============================================
carrusel
=============================================*/

.slider {
    height: 100vh;
    margin-top: -50px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .list .item .content {
    position: absolute;
    /* top: 25%; */
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}

/* Para dispositivos pequeños */
@media screen and (max-width: 767px) {
    .slider .list .item .content {
        top: 25%;
    }
}

/* Para dispositivos medianos en adelante */
@media screen and (min-width: 768px) {
    .slider .list .item .content {
        top: 35%;
    }
}

.slider .list .item .content .title,
.slider .list .item .content .type {
    font-size: 3em;
    font-family: Poppins;
    font-weight: bold;
    line-height: 1.3em;
}

.slider .list .item .type {
    color: #FCB536;
}

.slider .list .item .button {
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}

.slider .list .item .button button {
    border: none;
    background-color: #eee;
    /* font-family: Poppins; */
    font-weight: 500;
    cursor: pointer;
    transition: 0.4s;
    letter-spacing: 2px;
}

.slider .list .item .button button:hover {
    letter-spacing: 3px;
}

.slider .list .item .button button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

/* Thumbnail Section  */
.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item {
    /* width: 150px;
    height: 220px; */
    width: 102px;
    height: 150px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    /* box-shadow: 5px 0 15px rgba(255, 255, 255, 0.108); */
    border: 1px solid #ffffff5a
}

/* nextPrevArrows Section  */
.nextPrevArrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nextPrevArrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FCB536;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}

.nextPrevArrows button:hover {
    background-color: #fff;
    color: #000;
}

/* Animation Part */
.slider .list .item:nth-child(1) {
    z-index: 1;
}

/* animation text in first item */
.slider .list .item:nth-child(1) .content .title,
.slider .list .item:nth-child(1) .content .type,
.slider .list .item:nth-child(1) .content .description,
.slider .list .item:nth-child(1) .content .buttons {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}

@keyframes showContent {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

.slider .list .item:nth-child(1) .content .title {
    animation-delay: 0.4s !important;
}

.slider .list .item:nth-child(1) .content .type {
    animation-delay: 0.6s !important;
}

.slider .list .item:nth-child(1) .content .description {
    animation-delay: 0.8s !important;
}

.slider .list .item:nth-child(1) .content .buttons {
    animation-delay: 1s !important;
}

/* Animation for next button click */
.slider.next .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;

}

@keyframes showImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.slider.next .thumbnail .item:nth-last-child(1) {
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}

.slider.prev .list .item img {
    z-index: 100;
}


@keyframes showThumbnail {
    from {
        width: 0;
        opacity: 0;
    }
}


.slider.next .thumbnail {
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext {
    from {
        transform: translateX(150px);
    }
}

/* Animation for prev button click */
.slider.prev .list .item:nth-child(2) {
    z-index: 2;
}

.slider.prev .list .item:nth-child(2) img {
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}

@keyframes outFrame {
    to {
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.slider.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}

.slider.next .nextPrevArrows button,
.slider.prev .nextPrevArrows button {
    pointer-events: none;
}

.slider.prev .list .item:nth-child(2) .content .title,
.slider.prev .list .item:nth-child(2) .content .type,
.slider.prev .list .item:nth-child(2) .content .description,
.slider.prev .list .item:nth-child(2) .content .buttons {
    animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
    to {
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

@media screen and (max-width: 678px) {
    .slider .list .item .content {
        padding-right: 0;
    }

    .slider .list .item .content .title {
        font-size: 50px;
    }
}


/*=============================================
Servicios | segmento
=============================================*/
.contenido::after {
	content: "";
	width: 2px;
	height: 100%;
	background: var(--color-primario);
	position: absolute;
	top: 0;
	left: calc(50% - 3px);
	z-index: 1;
}

.funcionalidad::after {
	content: "";
	display: block;
	width: 14px;
	height: 14px;
	border-radius: 100px;
	background: var(--color-secundario);
	border: 2px solid var(--color-primario);
	position: absolute;
	z-index: 2;
	top: calc(50% - 9px);
	left: calc(50% - 9px);
}

.foto {

	border: 5px solid var(--color-secundario); 
	box-shadow: #0b1539d5 0px 7px 29px 0px;
}

.foto:hover img {
    filter: brightness(0.4);
}

.foto  .textoFuncionalidades{
    visibility: hidden;
    opacity: 0;

    transition: all 500ms;
    top: 70px !important;
}

.foto:hover  .textoFuncionalidades{
    visibility: visible;
    right: 0;
    opacity: 1;

}

.foto .textoFuncionalidades-izq{
    transition: all 500ms;
}

.foto:hover .textoFuncionalidades-izq{
    left: 0;
}

.link-producto{
    color: var(--auxiliar);
    text-decoration: none;
    transition: all 500ms;

}

.link-producto:hover{
    color: var(--color-secundario);
    scale: 1.05;
}

/*--------Medium devices (tablets, 768px and up)----------*/
@media (min-width: 768px) and (max-width: 991.98px)  {

    .nombre{
        font-size: 2em !important;
		
    }

    .funcionalidad:nth-child(even) .nombre{
	justify-content: end;
    }

}

/*--------Large devices (desktops, 992px and up)----------*/
@media (min-width: 992px) and (max-width: 1199.98px) {


    .nombre{
        font-size: 2.5em !important;
    }

    .funcionalidad:nth-child(even) .nombre{
	    justify-content: end;
    }

}

/*--------X-Large devices (large desktops, 1200px and up)----------*/
@media (min-width: 1200px) and (max-width: 1399.98px) {


    .textoFuncionalidades{
        top:50% !important;
    }

    .nombre{
        font-size: 2.5em !important;
    }

    .funcionalidad:nth-child(even) .nombre{
	    justify-content: end;
    }


}


/*--------XX-Large devices (larger desktops, 1400px and up)----------*/
@media (min-width: 1400px)  {

    .textoFuncionalidades{
        top:50% !important;
    }

    .nombre{
        font-size: 3em !important;
    }

    .funcionalidad:nth-child(even) .nombre{
		justify-content: end;
    }

}

/*=============================================
Portafolio | segmento
=============================================*/

/* Fotos Swiper ministerios */

.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 280px; /* Asegura tamaño consistente */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.swiper-slide img {
    display: block;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--color-primario) !important;
    opacity: 0.5;
    margin: 0 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-secundario) !important;
    opacity: 1;
    width: 20px;
}

/*=============================================
Administracion de redes sociales | segmento
=============================================*/
.imgProduct img {
  transition: transform 0.5s ease;
  width: 100%;
  height: auto;
}

.imgProduct:hover img {
  transform: scale(1.1);
}

.card-body h5 {
  margin-top: 0.75rem;
  color: #333;
  letter-spacing: 0.5px;
}

@media (max-width: 576px) {
  h2.fs-1 {
    font-size: 1.8rem !important;
  }
}

/*=============================================
Quieres escribir un libro | segmento
=============================================*/
/* Nuestro equipo */
.team-section{
    background-color: #d1edfb;
}

.container-cards{
    margin: auto;
}

.card-team{
    width: 300px;
    margin: 10px;
    transition: all 400ms;
}

.card-team:hover{
    width: 350px;
}

.card-team .libro{
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-team .libro img{
    width: 250px;
    display: block;
    margin: auto;
    position: relative;
    top: 80px;
    z-index: 10;
    filter: drop-shadow(5px 5px 4px rgba(0,0,0,0.5));
    transition: all 500ms;
}

.card-team:hover .libro img{
    top: 0px;
}

.card-team .bg_img{
    width: 100%;
    height: 200px;
    position:absolute;
    bottom: -80px;
    background-size: cover;
    border-radius: 10px;
    transition: all 400ms;
}

/* fondos de imágenes */
.card-team:nth-of-type(1) .bg_img{
    background-image: url(/modules/libros/fondos/1.png);
}
.card-team:nth-of-type(2) .bg_img{
    background-image: url(/modules/libros/fondos/1.png);
}
.card-team:nth-of-type(3) .bg_img{
    background-image: url(/modules/libros/fondos/1.png);
}

.card-team:hover .bg_img{
    bottom: -40px;
}

.descripcion{
    background-color: #FFFFFF;
    margin-top: -10px;
    padding: 20px;
    border-radius: 0 0 10px 10px;
}

.card-team .descripcion h2{

    color: var(--color-primario);
    font-weight: 700;
}

.card-team .descripcion p{
    margin-top: 10px;
}

.card-team .descripcion .social{
    display: flex;
    justify-content:center;
}

.social a{
    margin: 5px 10px;
    font-size: 1.2em;
    color: var(--color-primario);
    transition: all 400ms;
}

.social a:hover{
    margin: 5px 10px;
    color: var(--color-secundario);
    transform: scale(1.5);
} 

/*=============================================
Contáctenos | segmento
=============================================*/
.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.contact-link {
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease-in-out;
}

.contact-link .icon-footer {
    font-size: 1.7rem;
    transition: all 0.4s ease-in-out;
}

.contact-link .contact-text {
    margin-left: 0.5rem;
    opacity: 0;
    transform: translateX(-12px);
    transition: all 0.4s ease;
    white-space: nowrap;
    font-weight: 500;
}

.contact-link:hover .icon-footer {
    transform: scale(1.25) rotate(10deg);
    animation: pulseGlow 0.6s ease-in-out;
}

.contact-link:hover .contact-text {
    opacity: 1;
    transform: translateX(0);
    animation: bounceInLeft 0.5s ease;
}

@keyframes pulseGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.25) rotate(10deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

@keyframes bounceInLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    60% { opacity: 1; transform: translateX(5px); }
    100% { transform: translateX(0); }
}