@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Noto+Sans:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Background Images */

/* Index - Hero Slider */
.bg-hero-1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
}

.bg-hero-2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
}

.bg-hero-3 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
}

/* Index - Testimonial */
.bg-testimonial {
  background-image: url("https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=200&q=80");
}

/* Index - Gallery */
.bg-gallery-1 {
  background-image: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80");
}

.bg-gallery-2 {
  background-image: url("https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80");
}

.bg-gallery-3 {
  background-image: url("https://images.unsplash.com/photo-1427504746074-ce462944c680?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80");
}

.bg-gallery-4 {
  background-image: url("https://images.unsplash.com/photo-1544531586-fde5298cdd40?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80");
}

/* Faculties */
.bg-faculties-hero {
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.7) 100%
    ),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
}

/* Contact */
.bg-contact-hero {
  background-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
}

.bg-bank-guayaquil {
  background-image: url("https://images.unsplash.com/photo-1560472355-536de3962603?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80");
}

.bg-bank-amazonas {
  background-image: url("https://images.unsplash.com/photo-1556742049-0cfed4f7a07d?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80");
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(12, 141, 54, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(12, 141, 54, 0.6);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Mejoras de tarjetas */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glassmorphism mejorado */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Botones mejorados */
.btn-primary {
  background: linear-gradient(135deg, #0c8d36 0%, #0a7a2f 100%);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(12, 141, 54, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(12, 141, 54, 0.6);
}

.btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-secondary:hover::before {
  left: 100%;
}

/* Efectos de iconos */
.icon-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Mejoras en navegación */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0c8d36;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0c8d36 0%, #0a7a2f 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0a7a2f 0%, #0c8d36 100%);
}

/* Mejoras en secciones */
.section-gradient {
  background: linear-gradient(135deg, #f6f7f8 0%, #e8f5e9 100%);
}

/* Efecto parallax en imágenes */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Mejoras en testimonios */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  color: rgba(12, 141, 54, 0.1);
  font-family: Georgia, serif;
  z-index: 0;
}

/* Galería mejorada */
.gallery-item {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

/* Animación al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0c8d36;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
  .glass-effect {
    background: rgba(16, 25, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Mobile menu improvements */
@media (max-width: 1024px) {
  #mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
  }

  #mobile-menu.show {
    max-height: 500px;
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  .responsive-text {
    font-size: 2rem !important;
  }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0c8d36 0%, #0a7a2f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shadow improvements */
.shadow-glow {
  box-shadow: 0 0 30px rgba(12, 141, 54, 0.3);
}

.shadow-card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Partners Slider Animation */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-slide {
  animation: slide 30s linear infinite;
}

#partners-slider:hover {
  animation-play-state: paused;
}

/* Partners logos */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Dropdown Menu Styles */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0c8d36;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Animation */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
  visibility: visible;
}

.group:hover .group-hover\:translate-y-0 {
  transform: translateY(0);
}

/* Mobile Menu Scrollbar */
#mobile-menu {
  max-height: 70vh;
  overflow-y: auto;
}

#mobile-menu::-webkit-scrollbar {
  width: 6px;
}

#mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}

#mobile-menu::-webkit-scrollbar-thumb {
  background: #0c8d36;
  border-radius: 3px;
}

#mobile-menu::-webkit-scrollbar-thumb:hover {
  background: #0a7a2f;
}

/* Badge Animation */
.badge-pulse {
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Icon Hover Effects */
.icon-hover {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-hover:hover {
  transform: translateY(-3px);
}

/* Mobile Menu Item Styles */
#mobile-menu a {
  position: relative;
  overflow: hidden;
}

#mobile-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(12, 141, 54, 0.1), transparent);
  transition: width 0.3s ease;
}

#mobile-menu a:hover::before {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .group:hover .group-hover\:opacity-100 {
    display: none;
  }

  .nav-link::after {
    display: none;
  }
}
