/* ===== RESET GENERAL ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===== FONDO COMPLETO ===== */
.page-background {
  background-image: url('../imgs/header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: rgba(13, 105, 71, 0);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #ce1327;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img {
  height: 50px;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ce1327 !important;
}

.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #0d6948;
}

.dropdown-item {
  color: #0d6948;
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #ce1327;
  color: #ffffff;
}

.navbar-scrolled {
  background-color: rgba(13, 105, 72, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
body::-webkit-scrollbar {
  width: 12px;
}
body::-webkit-scrollbar-track {
  background: #f4f4f4;
}
body::-webkit-scrollbar-thumb {
  background-color: #0d6948;
  border-radius: 6px;
  border: 2px solid #ce1327;
}
body {
  scrollbar-color: #0d6948 #f4f4f4;
  scrollbar-width: thin;
}

/* ===== SLIDER FULLSCREEN HERO ===== */
.hero-slide {
  position: relative;
  height: 90vh;
  width: 90%;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 30px 30px 30px; /* top, right, bottom, left */
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ===== BOTONES EN SLIDE ===== */
.slide-buttons .btn {
  margin-top: 15px;
}

/* ===== SWIPER STYLES ===== */
.galeria-slider .swiper {
  width: 90%;
  height: 90vh; /* ¡Clave! Para que el Swiper también sea fullscreen */
}

.galeria-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  height: 90vh;
}

/* ===== FLECHAS SWIPER PERSONALIZADAS ===== */
.custom-nav {
  width: 40px;
  height: 40px;
  background-color: rgba(13, 105, 72, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10;
}

.custom-nav:hover {
  background-color: #ce1327;
  transform: scale(1.1);
}

.custom-nav svg {
  width: 16px;
  height: 16px;
}

/* Ocultar las flechas nativas de Swiper */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .custom-nav {
    width: 36px;
    height: 36px;
  }
}
.animated-card {
  border: 2px solid #0d6948;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
}

.animated-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.icon-animado {
  transition: transform 0.4s ease;
}

.animated-card:hover .icon-animado {
  transform: rotate(10deg) scale(1.1);
}
.quienes-item ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}
.animated-card:hover .card-title {
  color: #ce1327;
}

.animated-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.quienes-somos {
  background-image: url('../imgs/header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  position: relative;
  z-index: 1;
}
.quienes-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.quienes-somos .container {
  position: relative;
  z-index: 2;
}
.ranking-equipos {
  background-color: #f9f9f9;
  border-top: 4px solid #0d6948;
  border-bottom: 4px solid #ce1327;
}

.ranking-equipos table {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.ranking-equipos th {
  background-color: #0d6948;
  color: #fff;
}

.ranking-equipos tbody tr:hover {
  background-color: #eafaf2;
  cursor: pointer;
}
