:root {
  --azul-oscuro: #0f1a48;
  --azul-medio: #1a2c86;
  --azul-claro: #1188d8;
  --verde-hoja: #a7cf45;
  --verde: #519134;
  --verde-tours: #57aa21;
  --amarillo-tours: #ffd000;
  --celeste-tours: #28a7ff;
  --dorado: #e0ac27;
  --texto: #f2f5fa;
  --azul-1: #1f4a25;
  --azul-2: #07300e;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Open Sans", sans-serif;
  color: var(--texto);
  background: #0f1a48;
  overflow-x: hidden;
}

.font-hero {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
}

/* ======= Glass ======= */
.glass {
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(83, 152, 67, 0.14);
  border: 1px solid rgba(167, 205, 62, 0.35);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

/* ---- HOJAS REALISTAS ---- */
.leaf {
  position: fixed;
  top: -10vh;
  left: 0;
  width: var(--size);
  pointer-events: none;
  z-index: 9999;
  animation: leaf-float var(--duration) linear var(--delay) infinite;

  opacity: 0.2;
  filter: blur(0.6px);
}

@keyframes leaf-float {
  0% {
    transform: translate(calc(var(--startX)), -15vh) rotate(0deg);
  }

  50% {
    transform: translate(calc(var(--startX) + 25px), 45vh) rotate(180deg);
  }

  100% {
    transform: translate(var(--endX), 110vh) rotate(var(--rotation));
  }
}

/* WhatsApp */
.btn-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
}

/* Texto dorado */
.brand-gradient {
  background: var(--verde-hoja);
  -webkit-background-clip: text;
  color: transparent;

  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* Naturaleza lateral pegada abajo */
.side-nature {
  position: fixed;
  bottom: 0; /* SIEMPRE pegadas abajo */
  top: auto;
  width: 260px; /* ajusta según el PNG */
  height: 260px; /* altura de la “pared” de hojas */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center; /* que la hoja salga desde abajo */
  pointer-events: none;
  opacity: 0.9;
  z-index: 4; /* por encima del fondo, debajo de las hojas que caen (z=5) */
}

.side-nature.left {
  left: -40px; /* la metemos un poquito fuera del viewport para que se vea orgánico */
  background-image: url("../assets/img/plants_left.png");
}

.side-nature.right {
  right: -40px;
  background-image: url("../assets/img/plants_right.png");
}

/* Opcional: en pantallas chicas, escondemos o reducimos */
@media (max-width: 768px) {
  .side-nature {
    width: 160px;
    height: 160px;
    opacity: 0.6;
  }
}

/* ================= HERO ANIMATIONS ================= */

/* Fondo con movimiento */
@keyframes heroSlowMove {
  0% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(1.08) translateY(-2%);
  }
}

/* =====================================================
   HERO BACKGROUND RESPONSIVO
===================================================== */

/* 📱 Mobile FIRST */
.hero-bg {
  background-image: url("../assets/img/bg-movil-a.avif");
}

/* 💻 Tablets y PC */
@media (min-width: 1024px) {
  .hero-bg {
    background-image: url("../assets/img/bg-pc-a.avif");
  }
}

/* Fade + subida */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 1.1s ease-out both;
}

.delay-1 {
  animation-delay: 0.15s;
}
.delay-2 {
  animation-delay: 0.35s;
}
.delay-3 {
  animation-delay: 0.55s;
}

/* Botones más vivos */
.btn-glow:hover {
  box-shadow: 0 0 28px rgba(0, 200, 120, 0.55);
  transform: scale(1.1);
}

.btn-gold:hover {
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.6);
  transform: scale(1.1);
}

.btn-blue:hover {
  box-shadow: 0 0 22px rgba(55, 123, 212, 0.6);
  transform: scale(1.1);
}

.aexa-green {
  color: var(--verde-tours);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ===== BODY LOCK ===== */
.modal-open {
  overflow: hidden;
}

/* ===== FADE ANIMATION ===== */
.modal-fade {
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.input-modal {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

/* ================= INPUT MODERN ================= */

.input-group {
  position: relative;
}

.input-modern {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
  transition: 0.25s;
}

/* glow focus */
.input-modern:focus {
  border-color: var(--amarillo-tours);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.4),
    0 0 18px rgba(212, 175, 55, 0.25);
}

/* floating label */
.input-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  pointer-events: none;
  transition: 0.25s;
  background: #0b1220;
  padding: 0 6px;
}

/* move label */
.input-modern:focus + label,
.input-modern:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 0.75rem;
  color: var(--amarillo-tours);
}
