:root {
  --brand-green: #23a63a;
  --brand-dark: #0f6f36;
}

body {
  font-family: Arial, sans-serif;
  padding-top: 76px;
  background: url("../images/fondo.jpg") no-repeat center center fixed;
  background-size: cover;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
}

.navbar-brand {
  font-weight: bold;
  color: var(--brand-dark) !important;
}

.section-box {
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* HERO CAROUSEL */
#heroCarousel .carousel-item {
  height: 70vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}

#heroCarousel .carousel-item::before {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.5);
}

.carousel-caption { 
  z-index: 2; 
}

/* GALERÍA */
.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media(min-width:576px){ 
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  } 
}
@media(min-width:992px){ 
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  } 
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  padding-top: 75%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.gallery-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-thumb:hover img { 
  transform: scale(1.07); 
}

.gallery-caption {
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.45);
  color: #fff;
  text-align: center;
  padding: 5px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.3);
}

.modal .carousel-item img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal .carousel-item::before {
  content: none;
}

.modal .carousel-caption {
  background: rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  bottom: 10px;
  font-size: 1rem;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: var(--brand-green);
  border-radius: 50%;
  padding: 20px;
}

footer {
  background: rgba(255,255,255,0.8);
  padding: 1rem 0;
  margin-top: 2rem;
}

.navbar .btn-inscripcion {
  color: #000;
  transition: color 0.3s;
}

.navbar .btn-inscripcion:hover {
  color: #fff !important;
}

/* Tarjetas de servicios */
.service-card {
  height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover img {
  transform: scale(1.07);
}

.service-card .card-body {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.5rem;
}

.service-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
}

.service-card:hover .card-overlay {
  opacity: 1;
}