@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;  
    color: #333;
    text-align: center;
    line-height: 1.6;
}

a{
    text-decoration: none;
}

/* ======== HEADER ======== */
header {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* TOP HEADER */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem; /* más pequeño */
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 100px;
    height: 50px;
    object-fit: contain; 
}

.logo h1 {
    font-size: 1.3rem;
    color: #2e8b57;
}

/* CONTACT INFO */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-contact p {
    color: #2e8b57;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.header-contact i {
    color: #2e8b57;
    margin-right: 5px;
}

/* NAVIGATION */
nav {
    background-color: #2e8b57;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 2rem;
}

.nav-menu {
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.3rem;
}

.nav-menu li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    position: relative; 
    padding-bottom: 4px;
    transition: color 0.3s ease;
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #12375c;
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: #12375c;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-top: 0.5rem;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    transition: all 0.3s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2e8b57;
        flex-direction: column;
        text-align: center;
        display: none;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .header-contact {
        justify-content: center;
        gap: 10px;
        margin-top: 0.5rem;
    }
}

/* carrusel */
.carousel{
    height: 100vh;
    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: 20%;
    width: 1140px;
    max-width: 80%;
    left: 40%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 20px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 3em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: greenyellow;
}
.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: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

.des {
    font-size: 20px; 
    line-height: 1.5; 
}

.author {
    font-size: 20px;  
    line-height: 1.5; 
}


/* inicio del boton */
.info-button {
    background-color: #002147 !important; 
    color: white !important;
    font-size: 14px; 
    font-weight: bold;
    padding: 8px 15px; 
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
}

.info-button:hover {
    background-color: greenyellow !important; 
    transform: scale(1.05); 
}

.info-button:active {
    transform: scale(0.95); 
}

/* imagenes pequeñas */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    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;
}

/* flechas */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    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: greenyellow;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #002147;
    color: #fff;
}

/* animacion */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* Texto de animación en el primer elemento */
.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;
}

/* pasar de animación al hacer clic */
.carousel.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;
    }
}

.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);
    }
}

/* tiempo de ejecución */
.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 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* clic anterior */
.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 .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;
    }
}
@media screen and (max-width: 678px) {
    .carousel {
        height: 90vh; 
    }

    .carousel .list .item .content {
        padding-right: 0;
        width: 90%;
        left: 50%;
        top: 30%;
        transform: translateX(-50%);
        text-align: center;
    }

    .carousel .list .item .content .author {
        font-size: 14px;
        letter-spacing: 5px;
    }

    .carousel .list .item .content .title {
        font-size: 30px;
        line-height: 1.2em;
    }

    .carousel .list .item .content .topic {
        font-size: 24px;
    }

    .carousel .list .item .content .des {
        display: none; 
    }

    .carousel .list .item .buttons {
        grid-template-columns: 1fr;
        justify-content: center;
        margin-top: 10px;
    }

    .carousel .list .item .buttons button {
        width: 100px;
        font-size: 12px;
        padding: 6px;
    }

    /* Ajustar miniaturas */
    .thumbnail {
        bottom: 20px;
        gap: 10px;
    }

    .thumbnail .item {
        width: 100px;
        height: 150px;
    }

    /* Ajustar flechas */
    .arrows {
        top: 85%;
        right: 50%;
        width: 200px;
        gap: 5px;
    }

    .arrows button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}
/* ======== FOOTER ======== */
.pie-pagina {
    width: 100%;
    background: #002147;
    color: white;
    font-family: sans-serif;
}

.pie-pagina .grupo-1 {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 45px 20px;
    text-align: center;
}

.pie-pagina .grupo-1 .box h2 {
    color: orange;
    margin-bottom: 20px;
    font-size: 20px;
}

.pie-pagina .grupo-1 .box p,
.pie-pagina .grupo-1 .box ul li {
    color: #efefef;
    margin-bottom: 10px;
    font-size: 15px;
}

.pie-pagina .grupo-1 .box ul {
    list-style: none;
    padding: 0;
}

.pie-pagina .grupo-1 .box .carreras a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.pie-pagina .grupo-1 .box .carreras a:hover {
    color: green;
}

.pie-pagina .grupo-1 .box figure {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pie-pagina .grupo-1 .box figure img {
    width: 150px;
    height: auto;
    border-radius: 10px;
}

.red-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }
  
  .red-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%; /* Cambiado a círculo */
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
  }
  
  /* Colores de cada red social */
  .red-social a.facebook {
    background-color: #1877f2;
  }
  
  .red-social a.youtube {
    background-color: #ff0000;
  }
  
  .red-social a.instagram {
    background: radial-gradient(circle at 30% 107%, 
      #fdf497 0%, #fdf497 5%, 
      #fd5949 45%, #d6249f 60%, 
      #285aeb 90%);
  }
  
  .red-social a.tiktok {
    background-color: #000;
  }
  
  /* Efecto hover */
  .red-social a:hover {
    transform: scale(1.1);
  }
  

.pie-pagina .grupo-2 {
    background-color: #0c7d35;
    padding: 15px 10px;
    text-align: center;
    color: #fff;
}

.pie-pagina .grupo-2 small {
    font-size: 14px;
}
.box-combinado {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.box-combinado .libro,
.box-combinado .redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.box-combinado .libro figure img {
    width: 150px;
    height: auto;
}

.box-combinado .red-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}


@media screen and (max-width: 750px) {
    .pie-pagina .grupo-1 {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 35px 20px;
    }
}