.vida-universitaria {
  padding: 90px 0;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
}

.vida-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.vida-header h2 {
  color: #5f1e1e;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 16px;
}

.vida-header p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
}

.vida-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.vida-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #5f1e1e;
}

.vida-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vida-main .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(95, 30, 30, 0.95) 0%, rgba(95, 30, 30, 0.7) 50%, rgba(95, 30, 30, 0) 100%);
  color: #fff;
}

.vida-main .overlay-content h3 {
  color: #e8a210;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vida-main .overlay-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.vida-main .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid #e8a210;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(232, 162, 16, 0.1);
}

.vida-main .btn-outline:hover {
  background: #e8a210;
  color: #5f1e1e;
  transform: translateX(5px);
}

.vida-main .btn-outline i {
  transition: transform 0.3s ease;
}

.vida-main .btn-outline:hover i {
  transform: translateX(4px);
}

.vida-side {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.vida-small {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: calc(50% - 12.5px);
  background: #5f1e1e;
}

.vida-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vida-small .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(to top, rgba(95, 30, 30, 0.9) 0%, rgba(95, 30, 30, 0.4) 60%, transparent 100%);
}

.vida-small .overlay-content h4 {
  color: #e8a210;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.vida-small .overlay-content span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.vida-main::after,
.vida-small::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #e8a210, #d4950e);
  transition: width 0.4s ease;
}

.vida-small::after {
  height: 3px;
}

.vida-main:hover::after,
.vida-small:hover::after {
  width: 100%;
}

.vida-main:hover,
.vida-small:hover {
  box-shadow: 0 15px 40px rgba(95, 30, 30, 0.3);
  transform: translateY(-5px);
}

.vida-main img,
.vida-small img {
  transition: transform 0.6s ease;
}

.vida-main:hover img,
.vida-small:hover img {
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .vida-layout {
    grid-template-columns: 1fr;
  }

  .vida-main {
    height: 350px;
  }

  .vida-small {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .vida-universitaria {
    padding: 60px 0;
  }
  
  .vida-header h2 {
    font-size: 28px;
  }
  
  .vida-header p {
    font-size: 1rem;
  }
  
  .vida-main {
    height: 300px;
  }
  
  .vida-small {
    height: 180px;
  }
  
  .overlay {
    padding: 25px;
  }
  
  .vida-main .overlay-content h3 {
    font-size: 1.4rem;
  }
  
  .overlay h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .vida-universitaria {
    padding: 50px 0;
  }
  
  .vida-header {
    padding: 0 15px;
  }
  
  .vida-header h2 {
    font-size: 24px;
  }
  
  .vida-main {
    height: 250px;
  }
  
  .vida-small {
    height: 160px;
  }
  
  .vida-main .overlay {
    padding: 20px;
  }
  
  .vida-main .overlay-content h3 {
    font-size: 1.2rem;
  }
  
  .vida-main .btn-outline {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}
