/*Variables*/
:root{
     --color-principal: #a5c840;
    --color-secundario: #964335;
    --color-complementario1: #e17827;
    --color-complementario2: #e5e026;
    --color-fondo-transparente: rgba(0, 0, 0, 0.4);
    --color-background-sombra:#E92F3D30;
    --color-background:#ffffff;
    --color-texto:rgb(126, 155, 38);;
    --text-default:'Open Sans';
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BOTON DE IR ARRIBA */
#btn-top{
     width: 50px;
     height: 50px;
     background: var(--color-complementario2);
     cursor: pointer;
     position: fixed;
     bottom: 20px;
     right: 20px;
     z-index: 1;
     transform: translateY(200%);
     transition: all 0.5s;
}

#btn-top.show{
     transform: translateY(0);
}

#btn-top.scrollFinal{
     transform: translateY(-250%);
}

#btn-top span{
     color: #fff;
     font-size: 25px;
     width: 100%;
     text-align: center;
     line-height: 50px;
     transition: all 0.5s;
}

#btn-top:hover{
     background: #d89127;
}

#btn-top:hover span{
     transform: translateY(-3px);
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: var(--color-secundario);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
   background: linear-gradient(90deg, var(--color-complementario1), var(--color-principal));
  color: white;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
}

enlaces ul li{
   display: inline-block;
   padding: 0 10px;

}

.enlaces ul li a{
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(currentColor,currentColor);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: all 0.5s;
}

.enlaces ul li a:hover{
    color: var(--color-secundario);
    background-size: 100% 2px;
}

.sidebar {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.sidebar-slider {
  position: relative;
  height: 100%;
}

.sidebar-slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-color: rgba(0,0,0,0.5);
}

.sidebar-slide img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}

.sidebar-slide.active {
  opacity: 1;
  z-index: 1;
}

.sidebar-text {
  color: white;
  font-size: 30px;
  text-align: center;
  padding: 1rem;
  background-color: rgba(0,0,0,0.4);
}



.sidebar-item:hover {
  transform: scale(1.05);
}

.sidebar-item img {
  max-width: 100%;
  height: auto;
}

.sidebar-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: white;
      background-color: rgba(0, 0, 0, 0.4);
      padding: 1rem;
      border-radius: 10px;
      opacity: 0;
      animation: fadeInText 1s ease forwards;
    }

    .sidebar-slide.active .sidebar-text {
      animation: fadeInText 1s ease forwards;
    }

    @keyframes fadeInText {
      from {
        opacity: 0;
        transform: translate(-50%, -60%);
      }
      to {
        opacity: 1;
        transform: translate(-50%, -50%);
      }
    }

    .sidebar-slide {
      transition: opacity 1s ease;
    }

.mision-vision {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
      padding: 2rem;
    }

.mision, .vision {
      flex: 1 1 300px;
      position: relative;
      color: white;
      text-align: center;
      overflow: hidden;
      border-radius: 10px;
      height: 360px;
    }

    .mision::before, .vision::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-size: cover;
      background-position: center;
      z-index: 0;
      filter: brightness(0.5);
      transform: scale(1.1);
      transition: transform 1s ease;
    }

    .mision:hover::before, .vision:hover::before {
      transform: scale(1);
    }

    .mision::before {
      background-image: url('../images/vision.jpeg');
    }

    .vision::before {
      background-image: url('../images/mision.jpeg');
    }

    .mision h2, .vision h2,
    .mision p, .vision p {
      position: relative;
      z-index: 1;
      padding: 1rem;
      font-size: 30px;
      animation: fadeInUp 1s ease forwards;
    }

  .valores {
      padding: 2rem;
      text-align: center;
    }

    .valores-row {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 2rem;
      margin: 1rem 0;
    }

    .valor-item {
      flex: 1 1 200px;
      background: #f5f5f5;
      border-radius: 10px;
      padding: 1rem;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .valor-item:hover {
      transform: translateY(-10px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .valor-icon {
      font-size: 2.5rem;
      color: #ffffff;
      margin-bottom: 0.5rem;
    }

    .valor-title {
      font-size: 2rem;
      font-weight: bold;
      margin-bottom: 0.3rem;
    }

    .valor-subtitle {
      font-size: 1.5rem;
      color: #555;
    }

    .valor-item:nth-child(1) {
      background: linear-gradient(135deg, var(--color-complementario1), var(--color-principal));
    }

     .valor-item:nth-child(2) {
      background: linear-gradient(135deg, var(--color-complementario1), var(--color-principal));
    }

     .valor-item:nth-child(3) {
      background: linear-gradient(135deg, var(--color-complementario1), var(--color-principal));
    }

    .valor-item:nth-child(4) {
      background: linear-gradient(135deg, var(--color-complementario2), var(--color-complementario1));
    }

     .carta-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 4rem 2rem;
      position: relative;
    }

    .carta-titulo {
      text-align: center;
      font-size: 2.5rem;
      color: var(--color-secundario);
      margin-bottom: 2rem;
    }

 .carta {
      column-count: 2;
      column-gap: 1rem;
      padding: 2rem;
    }

    .carta-item {
      break-inside: avoid;
      margin-bottom: 1rem;
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.385);
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInCard 1s ease forwards;
    }

    .carta-item:nth-child(1) { animation-delay: 0.2s; }
    .carta-item:nth-child(2) { animation-delay: 0.4s; }
    .carta-item:nth-child(3) { animation-delay: 0.6s; }
    .carta-item:nth-child(4) { animation-delay: 0.8s; }
    .carta-item:nth-child(5) { animation-delay: 1s; }
    .carta-item:nth-child(6) { animation-delay: 1.2s; }

    @keyframes fadeInCard {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .carta-item img {
      width: 100%;
      display: block;
      transition: transform 0.5s ease;
    }

    .carta-item:hover img {
      transform: scale(1.05);
    }

    .carta-item p {
      padding: 1rem;
      font-size: 1rem;
      color: var(--color-secundario);
      font-weight: 300px;
      font-size: 30px;
    }

    @media (max-width: 768px) {
      .carta {
        column-count: 1;
      }
    }

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
}

footer a {
    color: #fff;
}

@media (max-width: 768px) {
  .mision, .vision {
    flex: 1 1 100%;
  }
  .valor-item {
    flex: 1 1 100%;
  }
}

 footer {
      background: linear-gradient(45deg, var(--color-principal), var(--color-complementario1));
      color: #fff;
      
      padding: 2rem;
      text-align: center;
    }

    footer h4 {
      margin: 0.5rem 0;
    }

    footer p {
      margin: 0.2rem 0;
      font-size: 20px;
      font-weight: 300;
    }


