:root {
  --doya-green: #1BA100;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f8f9fa;
  scroll-behavior: smooth;
  color: #222;
}

/* NAV */
.navbar {
  background: #fff;
  border-bottom: 3px solid var(--doya-green);
}
.navbar-brand img {
  height: 60px;
  margin-right: 10px;
}
.nav-link.active {
  color: var(--doya-green) !important;
  font-weight: 600;
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(90deg, #003000 0%, #1BA100 100%);
  color: #eee;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero img {
  max-height: 140px;
  margin-bottom: 20px;
  animation: fadeIn 1.2s ease;
}
.hero h2 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero p {
  color: #ddd;
  font-size: 1.1rem;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* SECCIONES */
section { padding: 60px 0; }
h2 { color: var(--doya-green); font-weight: 700; }

/* TARJETAS */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: all .25s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(27,161,0,0.35);
}

/* IMÁGENES */
img {
  cursor: pointer;
  transition: transform .3s ease, opacity .3s ease;
}
img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* MODAL */
.modal-content img {
  border-radius: 12px;
}

/* ====== MODAL ARREGLADO ====== */

/* Botón de cerrar "X" — visible y funcional */
.modal .btn-close {
  filter: invert(1);
  opacity: 1;
  z-index: 5;
}

/* Flechas: sin fondo, blancas por defecto, verde Doya al hover */
#imgModal .carousel-control-prev-icon,
#imgModal .carousel-control-next-icon {
  background: none;
  mask-size: contain;
  mask-repeat: no-repeat;
  width: 2.5rem;
  height: 2.5rem;
  background-color: white; /* blanco por defecto */
}

/* Izquierda */
#imgModal .carousel-control-prev-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFF' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 010 .708L5.707 8l5.647 5.646a.5.5 0 01-.708.708l-6-6a.5.5 0 010-.708l6-6a.5.5 0 01.708 0z'/%3E%3C/svg%3E");
}

/* Derecha */
#imgModal .carousel-control-next-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFF' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 010 .708L10.293 8l-5.647 5.646a.5.5 0 11-.708-.708l6-6a.5.5 0 010-.708l-6-6a.5.5 0 01.708 0z'/%3E%3C/svg%3E");
}

/* Hover verde */
#imgModal .carousel-control-prev-icon:hover,
#imgModal .carousel-control-next-icon:hover {
  background-color: var(--doya-green);
}

/* Área clickeable */
#imgModal .carousel-control-prev,
#imgModal .carousel-control-next {
  width: 6%;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
#imgModal .carousel-control-prev:hover,
#imgModal .carousel-control-next:hover {
  opacity: 1;
}

/* ====== CAROUSELES ====== */
.carousel-inner img {
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  margin: auto;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  width: 2rem;
  height: 2rem;
}

/* ====== FOTOS PILOTOS ====== */
.driver-photo {
  aspect-ratio: 3/4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.driver-photo img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* ====== LIGAS ITEMIZADAS ====== */
.driver-leagues {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
.driver-leagues li {
  font-size: 0.9rem;
  color: #555;
  margin: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.driver-leagues li::before {
  content: "🏎️";
  font-size: 0.9rem;
}

/* ====== INSTAGRAM ====== */
.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #C13584;
  font-size: 0.9rem;
  text-decoration: none;
}
.insta-link:hover {
  color: #e1306c;
  text-decoration: underline;
}

/* ====== FOOTER ====== */
footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 15px;
}
