* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
}

.hero {
  width: 100%;
  min-height: 50vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4%;
  flex-wrap: wrap;
 background: 
    linear-gradient(to bottom right, rgba(1, 2, 1, 0.897), rgba(1, 34, 21, 0.623)),
    url('/assets/images/NUTRICION-VEGETAL.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #73ff00, #00ff95);
  color: rgb(0, 0, 0);
  font-weight: bold;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: linear-gradient(to right, #c8ff00, #2bff00);
  transform: translateY(-2px);
}

.hero-text {
  flex: 1 1 400px;
  padding-right: 3rem;
  animation: fadeInLeft 1.2s ease-out;
}

.gradient-title {
  font-size: 3.5rem;
  background: linear-gradient(90deg, #00ff0d, #03cc89c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFade 2s ease-out;
}

.intro-text {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  color: #ffffff;
  line-height: 1.6;
}
#animated-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #ffffff;
  white-space: pre-line;
  min-height: 140px;
}


.hero-images {
  flex: 1 1 500px;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.left-image img,
.top-right img,
.bottom-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.left-image {
  flex: 0 0 45%;
  aspect-ratio: 3 / 4;
}

.right-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 0 0 45%;
}

.top-right {
  flex: 0 0 45%;
  aspect-ratio: 3 / 2;
}

.bottom-right {
  flex: 1;
  aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
  }

  .hero-text {
    padding-right: 0;
  }

  .hero-images {
    flex-direction: column;
  }

  .left-image,
  .top-right,
  .bottom-right {
    flex: none;
    width: 100%;
    aspect-ratio: auto;
  }
}

/* Animaciones */
@keyframes gradientFade {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/*Seccion 2*/
.service-cards {
  position: relative;
  max-width: 1200px;
  margin: -80px auto 4rem auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  animation: slideUp 1s ease-out;
  z-index: 2;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  flex: 1 1 240px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #222;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}

.card:hover {
  background-color: #02b31ac4;
  color: white;
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.card:hover h3,
.card:hover p {
  color: rgb(0, 0, 0);
}

.card:hover .icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .service-cards {
    flex-direction: column;
    margin-top: -40px;
  }
}

/*Section de Carrrera*/
.carreras-section {
  padding: 2rem 0 4rem 0;
  background-color: #f9f9f9;
  text-align: center;
}

.carreras-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem;
}

.carrera-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
  min-height: 420px;
}

.carrera-card:hover {
  transform: translateY(-6px);
}

.card-image {
  position: relative;
  height: 100%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.titulo-carrera {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: left;
}
/* Animación inicial oculta */
.reveal {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s ease-out;
}

/* Cuando es visible */
.reveal.active {
  opacity: 1;
  transform: scale(1);
}

.card-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0,114,255,0.9), rgba(0,198,255,0.85));
  color: white;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  text-align: center;
}

.carrera-card:hover .card-hover {
  opacity: 1;
}

.card-hover p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.ver-mas-btn {
  background-color: white;
  color: #0072ff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.ver-mas-btn:hover {
  background-color: #e6f0ff;
}

@media (max-width: 768px) {
  .titulo-carrera {
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
  }

  .card-hover p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}





/*Section-Profesores*/

.docentes-section {
  padding: 4rem 2rem;
  background-color: #769e0613;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #036b0363;
  margin-bottom: 2rem;
}

.swiper {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.swiper-slide {
  background: white;
  border-radius: 20px;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 300px !important;
}

.swiper-slide:hover {
  transform: translateY(-6px);
}

.docente-foto {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.docente-foto::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 132px;
  height: 132px;
  border: 2px solid #73ff008c;
  border-radius: 50%;
  z-index: 0;
}

.docente-foto img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.docente-nombre {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1rem;
}

.docente-profesion {
  font-size: 0.95rem;
  color: #444;
}

.docente-correo {
  font-size: 0.85rem;
  color: #759e06b4;
  margin: 0.5rem 0 1rem 0;
}

.card-docente .btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.card-docente .btns a {
  color: #759e06b4;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: 0.3s ease;
}

.card-docente .btns a:first-child {
  background-color: #759e06b4;
  color: white;
}

.card-docente .btns a:last-child {
  background-color: white;
  border: 1px solid #759e06b4;
  
}
.swiper-pagination-bullets {
  bottom: 10px !important;
  text-align: center;
}

.swiper-pagination-bullet {
  background: #759e06b4;
  opacity: 0.4;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #759e06b4;
  opacity: 1;
  transform: scale(1.2);
}
.swiper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem 1rem;
  box-sizing: border-box;
}

.swiper-wrapper {
  align-items: center;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

/*Section Proposito*/
.proposito-section {
  background-color: #f5f9ff;
  padding: 4rem 2rem;
}

.proposito-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  flex-wrap: wrap;
}

.proposito-img {
  flex: 1 1 240px;
}

.proposito-img img {
  width: 100%;
  border-radius: 50px 0 50px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.proposito-text {
  text-align: justify;
  flex: 1 1 500px;
}

.proposito-text .subtitulo {
  color: #759e06b4;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.proposito-text h2 {
  font-size: 1.8rem;
  color: #557204a6;
  margin-bottom: 1rem;
}

.proposito-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}


.btn-proposito {
  display: inline-block;
  background-color: #759e06b4;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-proposito:hover {
  background-color: #a5e003c7;
}

/* Responsive */
@media (max-width: 768px) {
  .proposito-container {
    flex-direction: column;
    text-align: center;
  }

  .proposito-img img {
    border-radius: 60px;
  }

  .proposito-text h2 {
    font-size: 1.5rem;
  }
}

/*Section de conteo*/
.counter-section {
   background: linear-gradient(
      to bottom,
      rgba(63, 170, 0, 0.644) 0%,     /* 50% oscuro arriba */
      rgba(18, 148, 1, 0.534) 50%,    /* centro transparente */
      rgba(34, 145, 0, 0.842) 100%    /* 50% oscuro abajo */
    ),
    url('/assets/images/educación-1-1600x700.jpg') center/cover no-repeat;

  padding: 60px 20px;
  color: #fff;
  text-align: center;
}

.counter-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.counter-box {
  flex: 1 1 200px;
  max-width: 250px;
  padding: 20px;
}

.counter-box .icon {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 10px;
}

.count {
  font-size: 48px;
  font-weight: bold;
  display: block;
  transition: all 0.3s ease-in-out;
}

.counter-box p {
  margin-top: 5px;
  font-size: 16px;
  color: #ffffff;
}



/*Slider de logos*/
.logo-slider-section {
  width: 100%;
  padding: 2rem 0;
  background-color: #f9fbff;
}

.logo-swiper .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem; /* AUMENTA la separación entre logos */
}

.logo-swiper .swiper-slide {
  width: auto;
  max-width: 200px;
  transition: filter 0.3s ease;
  filter: grayscale(100%);
}

.logo-swiper .swiper-slide:hover {
  filter: grayscale(0%);
}

.logo-swiper img {
  width: 100%;
  height: auto;
  display: block;
}



/*Section galeria*/





.galeria-layout {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.galeria-item {
  overflow: hidden;
  border-radius: 12px;
  flex: 1;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.alto {
  flex-basis: 200px;
  min-height: 100%;
}

.galeria-centro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 2;
}

.galeria-centro .galeria-item {
  height: 50%;
}

/* Responsive */
@media (max-width: 768px) {
  .galeria-layout {
    flex-direction: column;
  }

  .galeria-centro {
    flex-direction: column;
  }

  .alto {
    flex-basis: auto;
    height: auto;
  }
}
