/* ==========================================================================
   AgroClima - Fullscreen Standalone Plans Page (css/planes.css)
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "Urbanist", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Navbar normal idéntico al de inicio */
#nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  pointer-events: auto;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

#nav .logo img {
  width: 65px;
  transform: scale(1.8);
  transform-origin: left center;
}

#nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

#nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

#nav ul li a:hover {
  color: #b8b8b8;
}

#nav .btn {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 8px 25px;
  border: 1.5px solid #fff;
  border-radius: 25px;
  transition: all 0.3s ease;
}

#nav .btn:hover {
  background: #fff;
  color: #1a1a2e;
  transform: scale(1.08);
}

/* Escenario 3D pantalla completa */
main,
.plans-stage-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000;
  overflow: hidden;
  display: grid;
  place-items: center;
  z-index: 1;
  opacity: 1 !important;
  visibility: visible !important;
}

.plans-stage-fullscreen .plans-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1350px;
  perspective-origin: 50% 50%;
  background: #000;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Plataforma de caída y animación 3D */
.carousel-drop-rig {
  position: relative;
  width: var(--card-width);
  height: var(--card-height);
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}

/* Flechas centradas debajo de la tarjeta */
.plans-stage-fullscreen .carousel-controls {
  position: absolute;
  bottom: clamp(24px, 7vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  z-index: 100;
}

.plans-stage-fullscreen .carousel-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.plans-stage-fullscreen .carousel-arrow:hover,
.plans-stage-fullscreen .carousel-arrow:focus-visible {
  border-color: #9bdd7f;
  background: rgba(155, 221, 127, 0.2);
  color: #9bdd7f;
  outline: none;
}

/* Modales */
.plan-detail,
.stripe-demo {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
}

/* Adaptación responsive */
@media (max-aspect-ratio: 4/3), (max-width: 768px) {
  #nav {
    padding: 15px 5%;
  }

  #nav .logo img {
    width: 50px;
    transform: scale(1.3);
  }

  #nav .btn {
    font-size: 12px;
    padding: 6px 18px;
  }

  .plans-stage-fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .plans-stage-fullscreen .plans-stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    perspective: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .carousel-drop-rig {
    width: 100%;
    height: auto;
    transform-style: flat;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .plans-stage-fullscreen .carousel-controls {
    display: none; /* En móvil se usa el swipe táctil directo */
  }
}
