/* Villa Sele — decoración y animaciones de naturaleza y aves */

/* ── Ambiente global ── */

body {
  background: linear-gradient(
    180deg,
    #f7faf5 0%,
    #ffffff 35%,
    #f9fbf7 70%,
    #f5f8f2 100%
  );
  background-attachment: fixed;
}

.nature-ambience {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page,
.site-header,
.site-footer,
.mobile-book-bar,
.lightbox {
  position: relative;
  z-index: 1;
}

/* Neblina de montaña */
.nature-mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  will-change: transform, opacity;
}

.nature-mist--1 {
  width: 55vw;
  height: 40vh;
  top: 8%;
  left: -10%;
  background: radial-gradient(circle, rgba(143, 170, 110, 0.45) 0%, transparent 70%);
  animation: mist-drift 28s ease-in-out infinite;
}

.nature-mist--2 {
  width: 45vw;
  height: 35vh;
  top: 45%;
  right: -15%;
  background: radial-gradient(circle, rgba(74, 103, 65, 0.2) 0%, transparent 70%);
  animation: mist-drift 36s ease-in-out infinite reverse;
}

@keyframes mist-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(24px, -12px) scale(1.06);
    opacity: 0.5;
  }
}

/* Follaje en esquinas */
.nature-foliage {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: 0.07;
  background-repeat: no-repeat;
  background-size: contain;
}

.nature-foliage--tl {
  top: 72px;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='%232d4a1f'%3E%3Cpath d='M10 90 Q40 20 90 30 Q50 50 70 90 Q30 70 10 90Z'/%3E%3Cpath d='M30 100 Q55 45 95 55 Q60 65 75 100 Q40 85 30 100Z' opacity='.6'/%3E%3C/svg%3E");
  animation: foliage-sway 12s ease-in-out infinite;
}

@keyframes foliage-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2deg); }
}

.nature-foliage--br {
  bottom: 80px;
  right: 0;
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='%234a6741'%3E%3Cpath d='M10 90 Q40 20 90 30 Q50 50 70 90 Q30 70 10 90Z'/%3E%3Cpath d='M25 95 Q50 40 88 48 Q55 58 72 95 Q38 80 25 95Z' opacity='.5'/%3E%3C/svg%3E");
  animation: foliage-sway-br 15s ease-in-out infinite;
}

@keyframes foliage-sway-br {
  0%, 100% { transform: scaleX(-1) rotate(0deg); }
  50% { transform: scaleX(-1) rotate(-2deg); }
}

/* Aves en vuelo */
.nature-bird {
  position: absolute;
  color: var(--green-deep);
  opacity: 0.12;
  will-change: transform;
}

.nature-bird svg {
  display: block;
  width: 100%;
  height: auto;
}

.nature-bird--a {
  width: 48px;
  top: 18%;
  left: -60px;
  animation: bird-fly-right 42s linear infinite;
  animation-delay: 0s;
}

.nature-bird--b {
  width: 36px;
  top: 32%;
  right: -50px;
  opacity: 0.09;
  transform: scaleX(-1);
  animation: bird-fly-left 55s linear infinite;
  animation-delay: 18s;
}

.nature-bird--c {
  width: 28px;
  top: 58%;
  left: -40px;
  opacity: 0.08;
  animation: bird-fly-right 68s linear infinite;
  animation-delay: 35s;
}

@keyframes bird-fly-right {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(35vw) translateY(-18px);
  }
  50% {
    transform: translateX(70vw) translateY(8px);
  }
  75% {
    transform: translateX(105vw) translateY(-12px);
  }
  100% {
    transform: translateX(130vw) translateY(0);
  }
}

@keyframes bird-fly-left {
  0% {
    transform: scaleX(-1) translateX(0) translateY(0);
  }
  30% {
    transform: scaleX(-1) translateX(-40vw) translateY(14px);
  }
  60% {
    transform: scaleX(-1) translateX(-80vw) translateY(-10px);
  }
  100% {
    transform: scaleX(-1) translateX(-120vw) translateY(6px);
  }
}

/* Hojas cayendo (muy sutiles) */
.nature-leaf-fall span {
  position: absolute;
  width: 10px;
  height: 14px;
  background: var(--green-accent);
  opacity: 0;
  border-radius: 0 80% 0 80%;
  animation: leaf-fall 18s ease-in-out infinite;
}

.nature-leaf-fall span:nth-child(1) {
  left: 12%;
  animation-delay: 2s;
}

.nature-leaf-fall span:nth-child(2) {
  left: 48%;
  width: 8px;
  height: 11px;
  animation-delay: 9s;
  animation-duration: 22s;
}

.nature-leaf-fall span:nth-child(3) {
  left: 78%;
  animation-delay: 15s;
  animation-duration: 20s;
}

@keyframes leaf-fall {
  0% {
    top: -5%;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  8% {
    opacity: 0.15;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    top: 105%;
    opacity: 0;
    transform: translateX(40px) rotate(280deg);
  }
}

/* Colibrí en header */
.header-bird {
  display: inline-flex;
  margin-left: 6px;
  color: var(--green-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.header-bird svg {
  width: 22px;
  height: 22px;
  animation: humming-hover 3s ease-in-out infinite;
}

.site-header.is-scrolled .header-bird {
  opacity: 0.85;
  transform: translateY(0);
}

@keyframes humming-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ── Separadores con hoja ── */

.divider {
  position: relative;
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 20%,
    var(--green-light) 50%,
    var(--border) 80%,
    transparent 100%
  );
}

.divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235c7a3a'%3E%3Cpath d='M12 2C8 8 4 10 4 14c0 3 2 6 5 7 1-4 3-6 3-9 0-2-1-4 0-7 2 2 4 2 5 0 1 3 0 5 0 7 0 3 2 5 3 9 3-1 5-4 5-7 0-4-4-6-8-12z'/%3E%3C/svg%3E") center / 14px no-repeat;
  padding: 0 8px;
}

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }

/* ── Sección perfil: marco natural ── */

#perfil {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(238, 243, 234, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(143, 170, 110, 0.35);
  box-shadow: 0 4px 24px rgba(45, 74, 31, 0.06);
}

#perfil::before,
#perfil::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%232d4a1f'%3E%3Cpath d='M8 36 Q20 8 38 14 Q24 22 32 38 Q16 30 8 36Z'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

#perfil::before {
  top: 8px;
  right: 12px;
  animation: foliage-sway 10s ease-in-out infinite;
}

#perfil::after {
  bottom: 8px;
  left: 12px;
  transform: scaleX(-1);
  animation: foliage-sway 13s ease-in-out infinite reverse;
}

.profile-tag {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.profile-tag:hover {
  transform: translateY(-2px);
  border-color: var(--green-light);
  background: var(--green-muted);
  box-shadow: 0 4px 12px rgba(45, 74, 31, 0.1);
}

/* ── Camino: pasos que aparecen en secuencia ── */

.journey.is-visible .journey-step {
  animation: step-emerge 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.journey.is-visible .journey-step:nth-child(1) { animation-delay: 0.05s; }
.journey.is-visible .journey-step:nth-child(2) { animation-delay: 0.15s; }
.journey.is-visible .journey-step:nth-child(3) { animation-delay: 0.25s; }
.journey.is-visible .journey-step:nth-child(4) { animation-delay: 0.35s; }

@keyframes step-emerge {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.journey-step__icon-wrap {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-step:hover .journey-step__icon-wrap {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(45, 74, 31, 0.15);
}

/* ── Tarjeta de valor: sello boutique ── */

.value-box--premium {
  position: relative;
  overflow: hidden;
}

.value-box--premium::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--green-light),
    transparent 40%,
    transparent 60%,
    var(--green-accent)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  animation: seal-shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes seal-shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.75; }
}

/* ── Micro-interacciones ── */

.btn--primary {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow 0.3s ease;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 74, 31, 0.35);
}

.btn--primary:hover::after {
  transform: translateX(100%);
}

.highlight-card img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-card:hover img {
  transform: scale(1.06);
}

.highlight-card__overlay {
  transition: background 0.35s ease;
}

.highlight-card:hover .highlight-card__overlay {
  background: linear-gradient(to top, rgba(45, 74, 31, 0.82) 0%, transparent 100%);
}

.experience-card__media {
  overflow: hidden;
}

.experience-card__media img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.experience-card:hover .experience-card__media img {
  transform: scale(1.04);
}

.key-fact {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.key-fact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(45, 74, 31, 0.08);
}

.adventure-banner {
  position: relative;
  overflow: hidden;
}

.adventure-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  animation: banner-glow 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes banner-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3%, 2%); }
}

/* FAQ: entrada suave */
.faq-item {
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.faq-item:hover {
  padding-left: 4px;
}

.faq-item dt::before {
  content: "🍃 ";
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Reseñas: ave al fondo */
#resenas {
  position: relative;
}

#resenas::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 40px;
  opacity: 0.06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32' fill='%232d4a1f'%3E%3Cpath d='M4 18c6-10 18-12 28-6 5 3 10 3 16 0-3 6-2 12 4 18-8 2-18-2-22-6-6-4-10-2-12 0 2-4 0-8-2-12-6 2-12 0-14-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

/* ── Móvil: menos distracción ── */

@media (max-width: 767px) {
  .nature-bird--c,
  .nature-leaf-fall {
    display: none;
  }

  .nature-bird--a,
  .nature-bird--b {
    opacity: 0.07;
  }

  .nature-foliage {
    width: 120px;
    height: 120px;
    opacity: 0.05;
  }

  #perfil {
    padding: 20px 16px;
  }
}

/* ── Accesibilidad: sin movimiento forzado ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .nature-ambience {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .header-bird {
    display: none;
  }
}
