:root {
	/* Color Aparecia focus Boton Azul - ALL */
    --slide-gradient-start: #1859B4;
    --slide-gradient-end: #0467F1;
	/* Colocar esta instruccion */
	/* background: linear-gradient(to right, var(--slide-gradient-start) 0%, var(--slide-gradient-end) 100%); */
	/* fin */
}

* {
    scroll-behavior: smooth;
}

body{
    margin: 0;
    background-color: #000;
    color: #eee;
    font-family: Poppins;
    font-size: 12px;
}
a{
    text-decoration: none;
}
/* Seccion MENU */
header{
    width: 1140px;
    max-width: 80%;
    margin: auto;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    /* z-index: 100; */
}
header a{
    color: #0a2729;
    margin-right: 40px;
}

/* carousel */
.carousel{
    height: 90vh;
    margin-top: -50px;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .list .item .content{
    position: absolute;
    top: 15%;
    width: 1160px;
    max-width: 90%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
	/* border: 2px solid red; */
	/* margin-top: 5px; */
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title{
    font-size: 3.2em;
    font-weight: bold;
    line-height: 1.3em;
	/* border: 2px solid red; */
}
.carousel .list .item .topic{
    color: #f1683a;
	font-size: 2.5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .des{
	font-size: 1.5em;
	max-width: 100%;
}
.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons button{
    border: none;
    background-color: #2C4205;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #2C4205;
    color: #fff;
	font-weight: 500;
}
/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 60%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
	/* border: 2px solid red; */
}
.thumbnail .item{
    width: 90px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 92%;
    right: 32%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .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;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage 1.8s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 1s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.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;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.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) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}

.p_alinear_left{
	text-align: left;
}
/* Ventana Modal */
#modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 49;
  visibility: hidden;
}

#modal-box {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.5);
  border: 2px solid #6F9331;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-120px);
  animation-fill-mode: forwards;
  position: relative;
}

.modal-inner {
  border: 2px solid #6F9331;
  border-radius: 0.75rem;
  //padding: 1.5rem;
  background-color: #f9fafb;
}

.modal-title-top {
  position: fixed;
  font-size: 1.25rem;
  font-weight: 150;
  font-weight: bold;
  color: #ffffff;
  margin: 13.4rem 0.5rem 0.5rem;
}

.modal-image {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem 0.75rem 0.0rem 0.0rem;
  //border-radius: 50%; /*Efecto redondo*/
  /*object-fit: cover;
  margin-bottom: 1rem; // Sin margen
  */
}

h2 {
  font-size: 1.5rem;
  //font-weight: 600;
  color: #1f2937;
  //margin-bottom: 0.5rem;
  margin: 0.0rem 0.3rem 0.8rem 0.3rem;
}

p {
  font-weight: 400;
  color: #4b5563;
  font-size: 0.9rem;
  margin: 0.0rem 0.3rem 0.5rem 0.3rem;
  text-align: justify;
}

button {
  background-color: #8CB951;
  color: white;
  padding: 0.3rem 0.3rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #34441E;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 1px;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: bold;
  color: #35461F;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #FFFFFF;
}

@keyframes slide-down {
  to {
	opacity: 1;
	transform: translateY(0);
  }
}

@keyframes slide-up {
  to {
	opacity: 0;
	transform: translateY(-50px);
  }
}

.animate-slide-down {
  animation: slide-down 0.5s ease-out forwards;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-in forwards;
}
