html {
  scroll-behavior: smooth;
}
.reveal {
  opacity: 0;

  transform: translateY(45px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

.reveal-left {
  opacity: 0;

  transform: translateX(-50px);

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal-left.active {
  opacity: 1;

  transform: translateX(0);
}

/* Desde la derecha */

.reveal-right {
  opacity: 0;

  transform: translateX(50px);

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal-right.active {
  opacity: 1;

  transform: translateX(0);
}

/* ==========================================
           ANIMACIÓN ESCALONADA
        =========================================== */

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

/* ==========================================
           BOTONES MODERNOS
        =========================================== */

.btn-gold {
  position: relative;

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.btn-gold::before {
  content: "";

  position: absolute;

  top: 0;

  left: -100%;

  width: 100%;

  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );

  transition: left 0.6s ease;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  transform: translateY(-3px);

  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.25);
}

.btn-gold:active {
  transform: translateY(-1px);
}

/* Botón oscuro */

.btn-dark {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.btn-dark:hover {
  transform: translateY(-3px);

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.btn-dark:active {
  transform: translateY(-1px);
}

/* Botón outline */

.btn-outline {
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-outline:hover {
  transform: translateY(-3px);

  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

/* ==========================================
           CARDS DE PROPIEDADES
        =========================================== */

.property-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.property-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.property-card:hover .property-image {
  transform: scale(1.04);
}

/* ==========================================
           BOTÓN FLOTANTE
        =========================================== */

.floating-button {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.floating-button:hover {
  transform: translateY(-4px);

  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.35);
}

/* ==========================================
           FORMULARIO DE CONTACTO
        =========================================== */

.contact-form {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.contact-form:hover {
  transform: translateY(-4px);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

/* Inputs */

.contact-input {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.contact-input:hover {
  border-color: rgba(201, 162, 39, 0.5);
}

.contact-input:focus {
  outline: none;

  border-color: #c9a227;

  background-color: #ffffff;

  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.contact-input::placeholder {
  color: #94a3b8;
}

/* Textarea */

.contact-textarea {
  min-height: 130px;

  resize: vertical;
}

/* Botón formulario */

.contact-submit {
  position: relative;

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-submit::before {
  content: "";

  position: absolute;

  top: 0;

  left: -100%;

  width: 100%;

  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );

  transition: left 0.6s ease;
}

.contact-submit:hover::before {
  left: 100%;
}

.contact-submit:hover {
  transform: translateY(-3px);

  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.3);
}

.contact-submit:active {
  transform: translateY(-1px);
}

/* Mensaje */

.form-message {
  opacity: 0;

  transform: translateY(-8px);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.form-message.show {
  opacity: 1;

  transform: translateY(0);
}

/* ==========================================
           REDUCIR ANIMACIONES SI EL USUARIO
           LO PREFIERE
        =========================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;

    transform: none;

    transition: none;
  }

  .property-card,
  .property-image,
  .btn-gold,
  .btn-dark,
  .btn-outline,
  .contact-form,
  .contact-input,
  .contact-submit {
    transition: none;
  }
}
