/* ====================================
   HERO BANNER GENERAL
   ==================================== */
.hero-banner-1 {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: hidden;
  padding-top: 140px;
}

.hero-banner-1 .container {
  position: relative;
  height: 100%;
}

/* Fondo del slider */
.background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Slide individual con background */
.slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 20px;
  animation: panoMovePC 20s ease-in-out infinite alternate;
}

/* Degradado opcional */
.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}

/* ====================================
   CONTENIDO SOBRE EL SLIDER
   ==================================== */
.hero-banner-1 .content,
.hero-banner-1 .icons,
.hero-banner-1 .main-img,
.hero-banner-1 .video-btn {
  position: relative;
  z-index: 3;
}

.hero-banner-1 .content {
  background: rgba(0, 0, 0, 0.3);
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  animation: fadeInUp 1s ease forwards;
}

.hero-banner-1 .content h1,
.hero-banner-1 .content h4 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-banner-1 .content h1 {
  font-size: 48px;
  color: #ffffff;
  line-height: 1.2;
  animation: fadeInUp 1.2s ease forwards;
}

.hero-banner-1 .content h4 {
  font-size: 22px;
  color: #eeeeee;
  margin-top: 20px;
  animation: fadeInUp 1.5s ease forwards;
}

/* ====================================
   BOTÓN DE VIDEO
   ==================================== */
.video-btn {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-20px);
}

.video-btn-inner {
  position: relative;
  width: 100px;
  height: 100px;
}

.text-vector-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
}

.text-vector {
  width: 100%;
  height: 100%;
  animation: rotateText 10s linear infinite;
  pointer-events: none;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: #00A58D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 8px rgba(0,165,141,0.5);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}



/* ====================================
   ANIMACIONES
   ==================================== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(0,165,141,0.5);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 10px rgba(0,165,141,0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(0,165,141,0);
  }
}

@keyframes rotateText {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes panoMovePC {
  0% { background-position: left center; }
  50% { background-position: center center; }
  100% { background-position: right center; }
}

@keyframes panoMoveMobile {
  0% { background-position: left center; }
  100% { background-position: right center; }
}

/* ====================================
   RESPONSIVE MÓVIL
   ==================================== */
@media (max-width: 768px) {
  .hero-swiper .swiper-slide .slide-bg {
    animation: panoMoveMobile 6s ease-in-out infinite forwards;
  }

  .hero-banner-1 {
    min-height: 550px;
    padding-top: 100px;
  }

  .hero-banner-1 .content {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
  }

  .hero-banner-1 .content h1 {
    font-size: 26px;
  }

  .hero-banner-1 .content h4 {
    font-size: 18px;
    margin-top: 10px;
  }

  .video-btn {
    margin-top: 20px;
    transform: translateY(0);
  }

  .video-btn-inner {
    width: 80px;
    height: 80px;
  }

  .play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

.team__card,
.team__img_block{
  height: 460px;             
}

.team__img_block{
  position: relative;
  overflow: hidden;          
  border-radius: 24px;        
}


.team__img_block .team_img{
  width: 100%;
  height: 100%;
  object-fit: cover;          
  display: block;            
}

.user_img {
  width: 260px;     
  height: 260px;   
  object-fit: cover;
  border-radius: 50%; 
  object-position: center; 
}

.testimonial_card_content_block {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

.testimonial {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: unset !important;
}

.review_text {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: unset !important;
  font-size: 16px;
  line-height: 1.5;
}

.section-wrapper {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 165, 141, 0.15);
  padding: 60px 30px;
  margin-bottom: 60px;
}

.section-divider {
  background: url('../media/shapes/divider.png') repeat-x center;
  background-size: cover;
  height: 120px;
  width: 100%;
  margin: 0 auto;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0 center;
  }
  100% {
    background-position: 1000px center;
  }
}

.about__card__content p,
.feature__content p {
  white-space: normal !important; 
  overflow: visible !important;   
  text-overflow: initial !important; 
}

#carrera-lista .list-group-item {
  font-weight: 500;
  border-left: 5px solid transparent;
  transition: all 0.2s ease-in-out;
}

#carrera-lista .list-group-item.active {
  background-color: #00A58D;
  color: white;
  border-left: 5px solid #00796b;
}

.media-gallery h4 {
  font-weight: bold;
  color: #00A58D;
}

.media-gallery img,
.media-gallery iframe {
  border-radius: 12px;
}

.gallery_card {
  background-color: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.gallery_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.video-gallery iframe {
  border: none;
  border-radius: 8px;
  width: 300px;
  height: 170px;
}

@media (max-width: 768px) {
  .video-gallery iframe {
    width: 100%;
    height: 200px;
  }
}

.blog_card_img_block {
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.blog_card_img_block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog_card_img_block:hover img {
  transform: scale(1.05);
}

.blog_card_img_block .date {
  position: absolute;
  top: 12px;
  right: 12px; 
  background-color: #00A58D;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#adjuntos-noticia h5 {
  font-weight: bold;
  border-left: 4px solid #00A58D;
  padding-left: 10px;
}

#media-gallery img,
#media-gallery video {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 16px;
}

#media-gallery img:hover,
#media-gallery video:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.swiper-container { overflow: hidden; }

.accordion-header {
  background-color: #f0f4f8;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  border: 1px solid #d0dce5;
}

.accordion-header:hover {
  background-color: #e6eef5;
}

.accordion-body {
  border-left: 1px solid #d0dce5;
  border-right: 1px solid #d0dce5;
  border-bottom: 1px solid #d0dce5;
  border-radius: 0 0 5px 5px;
  background-color: #fff;
}

.custom-materia-card {
  border-left: 5px solid #2c7be5;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out;
}

.custom-materia-card:hover {
  transform: translateY(-2px);
}

.corner-icons .icon {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 4;
}

.corner-icons .top-left     { top: 20px; left: 20px; }
.corner-icons .top-right    { top: 20px; right: 20px; }
.corner-icons .bottom-left  { bottom: 20px; left: 20px; }
.corner-icons .bottom-right { bottom: 20px; right: 20px; }

.video-btn {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero-banner-1 .content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hero-banner-1:hover .content {
  opacity: 1;
  visibility: visible;
}

@media (hover: none) {
  .hero-banner-1:active .content,
  .hero-banner-1:focus-within .content {
    opacity: 1;
    visibility: visible;
  }
}
