/* Estilos generales para alineación y orden */
/* Fallback si Bootstrap no está cargado */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}

.vivero-cuxtal {
  padding: 4em 1em;
}

/* Línea de tiempo (ajustada para móviles y centrada) */
.timeline {
  position: relative;
  margin: 3em 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  background: #ccc;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 1em 2em;
}
.timeline-item.left {
  left: 0;
}
.timeline-item.right {
  left: 50%;
}
.timeline-content {
  background: white;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .timeline::before {
    left: 0;
  }
  .timeline-item {
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
    left: 0 !important;
    margin-bottom: 2em;
  }
}

/* Cards de especies y equipo */
.catalogo-vivero .card,
.equipo-grid .card-personal {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.catalogo-vivero .card:hover {
  transform: scale(1.03);
}

.card-personal img {
  width: 100%;
  border-radius: 50%;
  border: 3px solid var(--main-green);
  object-fit: cover;
  aspect-ratio: 1/1;
}
.card-personal .info {
  text-align: center;
  margin-top: 0.5em;
}
.equipo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-top: 2em;
}
.card-personal {
  width: 180px;
}

/* Objetivos grid */
.objetivos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2em;
  margin-top: 1.5em;
}
.objetivo {
  flex: 1 1 200px;
  background: #fff;
  padding: 1.2em;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.objetivo:hover {
  transform: translateY(-5px);
}
.objetivo span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5em;
}



body{
    display: flex;
    height: 100vh;
    flex-wrap: wrap;
    justify-content: center;
}

.bg-conocenos{
    
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-name: img-transition-conocenos;
    animation-duration: 10s;
    animation-iteration-count: infinite;
}
.img-instalaciones-1{
    background-image: url("img/img-ccea-salon-1.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    transition: 0.3s;

}
.btn-aqui{
    transition: all 0.4s;
    background-color:rgba(84,200,232,1) ;
}
.btn-aqui:hover{
   opacity: 0.7;
}

@keyframes img-transition-conocenos {
  0%   {
    background-image: url("../img/vivero 3.png") ;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100dvh;
  }
  50%  {
    background-image: url("../img/vivero 2.png") ;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100dvh;
  }
  
  75% {background-image: url("../img/vivero 1.png") ;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100dvh;}
  100%{
    background-image: url("../img/vivero 4.png") ;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100dvh;
  }
}




.title-conocenos{
    width: 1200px;
    filter: drop-shadow(1px 5px 10px rgba(32, 32, 32, 0.459));
}

.title-conocenos h1{
    width: 80%;
    color: white;
}
 h4{
    font-size: 40px;
    font-weight: 500;
    color: white;
}

main{
    
    height: 800px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;

}


.salones-ccea{
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap:4em;
    width: 100%;
    margin-top: 1em;
    
    align-items: center;
    justify-content: center;
    justify-items: center;
    
}

.salon{
    background-color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--main-green);
    opacity: 0.5;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    
}

.salon img{
    width: 50%;
    transition: all 0.4s ease-out;
}
.salon:hover img{
    transform: scale(1.1);
}

.active{
    opacity: 1;
}
.salon:active, .salon:hover{
    opacity: 1;
}

#salones-desc{
    color:white;
    font-weight:800;
    font-size:40px;
}

.decreto{
    
    width: 1200px;
    padding-top: 4em;
    padding-bottom: 1em;

}

.content-decreto{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    column-gap: 2em;
}
.content-decreto p{
    text-align: justify;
    color: var(--secondary-blue);
}
.logo-ayunta{
    
    background-image: url("../img/logo-ayunta.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 300px;
    height: 300px;
    margin-left: 0;
    
    
    
}
.ano-decreto{
    align-items: center;
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 2em;
}
.ano-decreto h2{
    color: var(--main-green);
    font-size: 90px;
    width: 350px;
    font-weight: 800;
}
.link{
    background-image: url("../img/icons/link.svg");
    background-repeat: no-repeat;
    background-position: center;
    width: 25px;
    height: 25px;
    margin-left: 0.5em;
    cursor:pointer;
}
.areas{
    background-color: var(--main-violet);
    height: 1260px;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
}
.content-areas{
    width: 1200px;
}
.content-areas h4{
    margin-top: 2em;
    margin-bottom: 2em;
    width: 900px;
}

.card-container-areas{
    position: relative;
    background-color: white;
    width: 1200px;
    height: 850px;
    margin-bottom: 1em;
    border-radius: 20px;
    overflow: hidden;
}

.title-container-card{
    color: var(--main-violet);
    padding: 4em;
    display: flex;
}
.title-container-card h2{
    font-size: 90px;
    font-weight: 800;
    width: 400px;
    line-height: 1.5ch;
}
.monitoreo-img{
    background-image:url("../img/conocenos-areas-bio.jpg");
    background-size:cover;
    background-position:center;
    width: 60%;
    height: 200px;
    border-radius: 20px;
    margin-left: 2em;
}

.slides p{
    margin-left: 3em;
    margin-right: 3em;
}
.card-data-monitoreo{
    background-color: var(--main-green);
    height: 200px;
    margin-bottom: 0;
    margin-top: 1em;
    width: 1050px;
    margin-left: 4em;
    margin-right: 4em;
    border-radius: 20px;
}

.control-areas{
    display: flex;
    justify-content: center;
    margin-top: 1em;
}
.btn-areas-left{
   
    background-image: url("../img/icons/left.svg");
    background-repeat: no-repeat;
    background-position: center;
    height: 40px;
    width: 40px;
    opacity: 0.5;
    transition: 0.5s;
    cursor: pointer;
   
}
.btn-areas-right{
   
    background-image: url("../img/icons/right.svg");
    background-repeat: no-repeat;
    background-position: center;
    height: 40px;
    width: 40px;
    margin-left: 1em;
    opacity: 0.5;
    transition: 0.5s;
    cursor: pointer;
   
}
.btn-areas-left:hover,.btn-areas-right:hover{
    opacity: 1;
}

@media (width <= 450px){
    .title-conocenos{
        width: 350px;
        filter: drop-shadow(1px 5px 10px rgba(32, 32, 32, 0.459));
    }

    .title-conocenos h1{
        width: 80%;
        font-size:70px;
        color: white;
    }
    
    .decreto{
        width: 350px;
        padding-top: 2em;
        padding-bottom: 1em;
    }
   
    .ano-decreto h2{
        font-size:50px;
        color:var(--main-green);
        text-wrap:pretty;
    }
    main{
        height:1000px;
    }
    .content-decreto{
        display: grid;
        grid-template-columns: repeat(1,1fr);
        column-gap: 1em;
    }
    .content-decreto p{
        font-size:18px;
        text-align: justify;
        color: var(--secondary-blue);
    }
    .logo-ayunta{
        margin-left:2.5em;
    }
    .main-4-1{
        align-items:center;
    }
}

