/* Reset y tipografía */
html {
  margin: 0;
}

body {
  margin: 0;
  width: 101%;
  font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #D9AF62;
  background-color: #fff;
  overflow-x: hidden;
  /* Oculta el scroll horizontal */
  overflow-y: auto;
  /* Permite scroll vertical */
}

/* Sección Hero */
.hero {
  position: relative;
  height: 100vh;
  background: url('/images/hero-bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(229, 224, 216, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.5rem;
}

/* Secciones */
section {
  height: 100vh;

}

.services {
  background-color: rgba(247, 245, 243, 0.618);
  ;
}

.about,
.contact {
  background-color: rgba(12, 12, 12, 0.901);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 0.5rem;
}

section {
  padding-left: 1%;
}

/* Botón */

.btn-outline-dark {
  display: inline-block;
  padding: 10px 20px;
  background-color: #D9AF62;
  ;
  color: #fff;
  border: none;
  text-decoration: none;
  border-radius: 5px;
}

.btn-outline-dark,
.btn:hover {
  scale: 1.2;
}

/* Formulario de Contacto */
#contact-form {
  background-color: #222;
  padding: 40px 20px;
  margin-top: -40px;
}

#contact-form form {
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#contact-form input,
#contact-form textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

#contact-form button {
  padding: 10px;
  background-color: #e50914;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Animación del título principal */
.main-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10.5rem;
  transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 100;
  margin: 0;
  white-space: nowrap;
}

/* Cuando se activa el scroll */
.main-title.scrolling {
  font-size: 4.5rem;
  left: 50%;
  top: 120%;
  transform: translate(-50%, 50%) rotate(-4deg);
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.intro-container {
  position: relative;
  min-height: 100vh;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.title-trail {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(17, 17, 17, 0.8) 30%,
      transparent 70%);
  z-index: 2;
}

.intro-image {
  width: 101%;
  min-height: 100vh;
  transform: scale(1.1);
  transition: transform 1.3s ease-out;
}

.intro-text {
  position: absolute;
  bottom: -50px;
  left: 15%;
  width: 40%;
  opacity: 0;
  transform: translateY(100px);
  transition: all 1s ease 0.3s;
  z-index: 3;
  background: rgba(17, 17, 17, 0.9);
  padding: 2rem;
  border-left: 3px solid #D9AF62;
}

/* Estados activos */
.intro-image.active {
  transform: scale(1);
}

.intro-text.active {
  opacity: 1;
  transform: translateY(0);
  bottom: 20%;
}

.holding-section {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f7f3ead3 35%, #faf8f2e0 65%, #faf6ef7e 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(217, 175, 98, 0.8) 0%, rgba(217, 175, 98, 0.2) 100%);
  border-radius: 50%;
  animation: float-particle 20s linear infinite;
  box-shadow: 0 0 10px rgba(217, 175, 98, 0.5);
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  5% {
    opacity: 1;
    transform: translateY(90vh) scale(1);
  }

  95% {
    opacity: 1;
    transform: translateY(10vh) scale(1);
  }

  100% {
    transform: translateY(-10vh) scale(0);
    opacity: 0;
  }
}

.holding-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(217, 175, 98, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(217, 175, 98, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.holding-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D9AF62' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.holding-section .logoCentral {
  position: relative;
  z-index: 10;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.holding-section .logoCentral.visible {
  opacity: 1;
  transform: translateY(0);
}

.holding-section .logoCentral.hiding {
  opacity: 0;
  transform: translateY(-30px);
}

@keyframes logo-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.holding-section .logoCentral img {
  filter: drop-shadow(0 10px 30px rgba(217, 175, 98, 0.4));
  transition: transform 0.5s ease;
}

.holding-section .logoCentral:hover img {
  transform: scale(1.05);
}

.holding-section .logoCentral h1 {
  color: #D9AF62;
  font-size: 2rem;
  margin-top: 1rem;
  text-shadow: 0 2px 20px rgba(217, 175, 98, 0.3);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.holding-section .logoCentral h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #D9AF62, transparent);
  border-radius: 2px;
}

.logo-central {
  position: relative;
  z-index: 2;
  background: #000;
  padding: 2rem;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  justify-content: center;
  text-align: center;
}

.logo-central img {
  width: 120px;
}

.bolita {
  position: absolute;
  width: 100px;
  height: 100px;
  text-align: center;
  border-radius: 50%;
  padding: 1rem;
  z-index: 1;
  opacity: 0;
  transform: scale(0.5) translateY(50px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bolita::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 175, 98, 0.5) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  animation: none;
}

.bolita.visible::before {
  opacity: 1;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

.bolita::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.bolita.visible::after {
  opacity: 1;
}

.bolita.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.bolita.hiding {
  opacity: 0;
  transform: scale(0.5) translateY(-30px);
}

animation: bolita-appear 0.6s ease forwards;
}

@keyframes bolita-appear {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  60% {
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.bolita img {
  width: 120px;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.bolita:hover img {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(217, 175, 98, 0.4);
}

.bolita img {
  width: 120px;
}

.bolita-label {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  color: #D9AF62;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.103);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bolita.visible:hover .bolita-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.bolita1 {
  top: 40%;
  left: 17%;
  transform: translate(-50%, 0);
}

.bolita2 {
  top: 17%;
  left: 29%;
  transform: translate(0, -50%);
}

.bolita3 {
  top: 5%;
  left: 48%;
  transform: translate(0, -50%);
}

.bolita4 {
  top: 17%;
  left: 65%;
  transform: translate(-50%, 0);
}

.bolita5 {
  top: 40%;
  left: 77%;
  transform: translate(-50%, 0);
}

.hidden {
  display: block;
  pointer-events: none;
}


.etiqueta-superior {
  position: absolute;
  top: 10px;
  /* Ajusta según el tamaño de la etiqueta */
  left: 105%;
  /* Lado derecho de la bolita */
  background-color: #343a40;
  color: white;
  padding: 0.5rem 0.7rem;
  padding-left: 10px;
  border-radius: 0.5rem;
  font-size: 0.80rem;
  line-height: 1.2;
  width: 200px;
  z-index: 10;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.etiqueta-superiorS {
  position: absolute;
  top: 10px;
  /* Ajusta según el tamaño de la etiqueta */
  right: 103%;
  /* Lado derecho de la bolita */
  background-color: #343a40;
  color: white;
  padding: 0.5rem 0.7rem;
  padding-left: 10px;
  border-radius: 0.5rem;
  font-size: 0.80rem;
  line-height: 1.2;
  width: 200px;
  z-index: 10;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Estilos mejorados */
.about-carousel-section {
  position: relative;
  min-height: 100vh;
  background-color: rgba(12, 12, 12, 0.901);
  color: #D9AF62;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.icono-superior {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.8s ease;
}

.icono-superiorS {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.8s ease;
}

.icono-superior.active {
  opacity: 1;
  transform: translateY(0);
}

/* ETIQUETA SUPERIOR */

/* CARRUSEL */
.about-carousel-section {
  position: relative;
  min-height: 100vh;
  color: #D9AF62;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contenido-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 0 5%;
}

.carrusel {
  flex: 0 0 60%;
  max-width: 800px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slide {
  width: 100%;
  display: none;
}

.slide.active {
  display: block;
  animation: fadeIn 2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.textos {
  flex: 1;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.textos.active {
  opacity: 1;
  transform: translateY(0);
}


@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contenido-section {
    flex-direction: column;
    padding-top: 6rem;
  }

  .carrusel {
    width: 100%;
    max-width: 100%;
  }
}

.scroll-container {
  position: relative;
  height: 2500px;
  perspective: 1000px;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform 3s ease, opacity 3s ease;
}

.background-a {
  background-image: url('/asset/img/img3.jpg');
  /* imagen inicial */
}

.background-b {
  background-image: url('/asset/img/img4.jpg');
  /* imagen transición */
  opacity: 0;
  width: 100%;
}

.background-a,
.background-b {
  transition: opacity 7s ease-in-out;
}

.logo-scroll {
  position: fixed;
  top: 15%;
  left: 0;
  width: 200px;
  z-index: 10;
  transition: transform 8s ease-out;
}

.content-scroll {
  position: relative;
  z-index: 1;
  padding: 100px;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}