/* HERO */
#hero {
  padding-block: 0;
  background:
        linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.2)),
        url('../images/bg-royser.jpg');
    background-size: cover;
    background-position: center;
}

.hero-grid {
  padding: 64px 20px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 20px;
  color: var(--color-bg);
}

.hero-text p{
  font-size:22px;
}

h1 {
  color: var(--color-bg);
}

.hero-visual {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 20px;
  border: 5px solid white;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-bg);
}

.badge-antes,
.badge-despues {
  background: var(--color-black);
}

/* ------------------------Galería--------------------- */

.mf-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 20px;
}

.mf-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.mf-gallery-item:hover {
  transform: scale(1.05);
}

.mf-gallery-item img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  cursor: url("../images/cursor-zoom.svg"), pointer;
}

/* LIGHTBOX base */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Botón Cerrar */
.mf-gallery-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

/* FLECHAS */
.mf-gallery-nav {
  position: absolute;
  top: 50%;
  font-size: 60px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
}

.mf-gallery-prev {
  left: 30px;
}

.mf-gallery-next {
  right: 30px;
}

.mf-gallery-nav:hover {
  transform: translateY(-50%) scale(1.2);
}

/* Evitar scroll */
.no-scroll {
  overflow: hidden;
}