/* Navegar – dark theme (Asteras-style) + Tailwind */

body { font-family: 'Inter', sans-serif; background-color: #030305; }

.page-fade-in .header-wrapper {
  opacity: 0;
  animation: contentFadeIn 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}
.page-fade-in main {
  opacity: 0;
  animation: contentFadeIn 3s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}
.page-fade-in #sections {
  opacity: 0;
  animation: contentFadeIn 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}
.page-fade-in #plans {
  opacity: 0;
  animation: contentFadeIn 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}
.page-fade-in #contact {
  opacity: 0;
  animation: contentFadeIn 2.5s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}
.page-fade-in footer {
  opacity: 0;
  animation: contentFadeIn 2.5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}
@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.loader-content {
  width: 120px;
  height: 120px;
  position: relative;
}
.loader-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  border-radius: 50%;
  animation: pulseCore 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.3);
}
@keyframes pulseCore {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.8; }
}
.loader-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}
.loader-orb-1 {
  animation: orbit1 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.loader-orb-2 {
  animation: orbit2 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -0.3s;
}
.loader-orb-3 {
  animation: orbit3 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -0.5s;
}
@keyframes orbit1 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(45px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(45px) rotate(-360deg); }
}
@keyframes orbit2 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(60px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(60px) rotate(-360deg); }
}
@keyframes orbit3 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(35px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(35px) rotate(-360deg); }
}
.loader-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}
.particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
.particle:nth-child(1) {
  animation: particle1 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.particle:nth-child(2) {
  animation: particle2 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -0.1s;
}
.particle:nth-child(3) {
  animation: particle3 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -0.2s;
}
.particle:nth-child(4) {
  animation: particle4 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -0.05s;
}
.particle:nth-child(5) {
  animation: particle5 2.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -0.15s;
}
.particle:nth-child(6) {
  animation: particle6 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -0.25s;
}
.particle:nth-child(7) {
  animation: particle7 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -0.3s;
}
.particle:nth-child(8) {
  animation: particle8 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -0.35s;
}
@keyframes particle1 {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg) translateX(80px) rotate(0deg) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(180deg) translateX(80px) rotate(-180deg) scale(1.2); opacity: 1; }
}
@keyframes particle2 {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg) translateX(75px) rotate(-45deg) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(225deg) translateX(75px) rotate(-225deg) scale(1.2); opacity: 1; }
}
@keyframes particle3 {
  0%, 100% { transform: translate(-50%, -50%) rotate(90deg) translateX(70px) rotate(-90deg) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(270deg) translateX(70px) rotate(-270deg) scale(1.2); opacity: 1; }
}
@keyframes particle4 {
  0%, 100% { transform: translate(-50%, -50%) rotate(135deg) translateX(85px) rotate(-135deg) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(315deg) translateX(85px) rotate(-315deg) scale(1.2); opacity: 1; }
}
@keyframes particle5 {
  0%, 100% { transform: translate(-50%, -50%) rotate(180deg) translateX(65px) rotate(-180deg) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(360deg) translateX(65px) rotate(-360deg) scale(1.2); opacity: 1; }
}
@keyframes particle6 {
  0%, 100% { transform: translate(-50%, -50%) rotate(225deg) translateX(90px) rotate(-225deg) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(405deg) translateX(90px) rotate(-405deg) scale(1.2); opacity: 1; }
}
@keyframes particle7 {
  0%, 100% { transform: translate(-50%, -50%) rotate(270deg) translateX(55px) rotate(-270deg) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(450deg) translateX(55px) rotate(-450deg) scale(1.2); opacity: 1; }
}
@keyframes particle8 {
  0%, 100% { transform: translate(-50%, -50%) rotate(315deg) translateX(95px) rotate(-315deg) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) rotate(495deg) translateX(95px) rotate(-495deg) scale(1.2); opacity: 1; }
}

body.scrolled .header-wrapper { transform: translateY(-100%); }
.header-wrapper { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }

.spline-container {
  transition: opacity 0.3s ease-out;
}
.spline-container iframe { display: block; }

.perspective-container { perspective: 1200px; }
.dyson-sphere {
  transform-style: preserve-3d;
  animation: rotateSphere 25s linear infinite;
}
.ring {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.05);
}
.ring:nth-child(1) { transform: rotateY(0deg); }
.ring:nth-child(2) { transform: rotateY(30deg); }
.ring:nth-child(3) { transform: rotateY(60deg); }
.ring:nth-child(4) { transform: rotateY(90deg); }
.ring:nth-child(5) { transform: rotateY(120deg); }
.ring:nth-child(6) { transform: rotateY(150deg); }
.ring:nth-child(7) { transform: rotateX(45deg); }
.ring:nth-child(8) { transform: rotateX(90deg); }
.ring:nth-child(9) { transform: rotateX(135deg); }
.ring:nth-child(10) { transform: rotateX(-45deg); }
@keyframes rotateSphere {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg); }
}
.core-glow {
  background: radial-gradient(circle at center, rgba(255,255,255,1) 0%, rgba(255,255,255,0.5) 20%, transparent 70%);
  filter: blur(20px);
  animation: pulseCore 3s ease-in-out infinite alternate;
}
@keyframes pulseCore {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0.9; transform: scale(1.1); }
}

.logo { transition: opacity 0.2s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.logo:hover { opacity: 0.9; }

.header-cta {
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.header-cta:hover { background: #e2e8f0; transform: scale(1.02); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.header-cta:focus-visible { outline: 2px solid rgba(96, 165, 250, 0.8); outline-offset: 2px; }

/* Buttons */
a.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
a.button svg { flex-shrink: 0; width: 1rem; height: 1rem; }
a.button { background: white; color: #030305; }
a.button:hover { background: #e2e8f0; transform: scale(1.02); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
a.button:focus-visible, button.button:focus-visible { outline: 2px solid rgba(96, 165, 250, 0.8); outline-offset: 2px; }
a.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
a.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

/* Hero */
#hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: white;
  letter-spacing: -0.03em;
  margin: 0 auto;
  max-width: 24ch;
}
#hero .tagline {
  font-size: 1.125rem;
  color: #94a3b8;
  margin: 1rem auto 0;
  max-width: 32ch;
}
#hero .cta { margin-top: 2rem; }

/* Sections */
#sections section {
  max-width: 50rem;
  margin: 0 auto 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#sections section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#sections section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
#sections .body {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 1rem;
}
#sections .coming-soon { font-size: 0.875rem; margin-top: 1rem; color: #64748b; }

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
}
.plan {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050508;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.plan:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.plan-featured {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.15);
}
.plan-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.25rem;
  align-self: flex-start;
}
.plan h3 { font-size: 1.25rem; font-weight: 600; color: white; margin: 0; }
.plan-price { font-size: 1rem; color: #94a3b8; }
.plan .benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plan .benefits li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
}
.plan .benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.6em;
  height: 0.6em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.plan .button { margin-top: auto; }

/* Contact CTA */
.open-mailbox {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #030305;
  background: white;
  border: 0;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.open-mailbox:hover {
  background: #e2e8f0;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.25);
  transform: scale(1.02);
}
.open-mailbox:focus-visible { outline: 2px solid rgba(96, 165, 250, 0.8); outline-offset: 2px; }

/* Footer */
footer a { color: #64748b; text-decoration: none; text-underline-offset: 3px; transition: color 0.2s; }
footer a:hover { color: #e2e8f0; text-decoration: underline; }
footer span { color: #64748b; }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(96, 165, 250, 0.8); outline-offset: 2px; }

/* Scroll reveal */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
#hero.in-view h1 { animation: fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
#hero.in-view .tagline { animation: fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
#hero.in-view .cta { animation: fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
#hero:not(.in-view) h1, #hero:not(.in-view) .tagline, #hero:not(.in-view) .cta { opacity: 0; }
#sections section.in-view h2 { animation: fade-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
#sections section.in-view .body { animation: fade-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.08s both; }
#sections section:not(.in-view) h2, #sections section:not(.in-view) .body { opacity: 0; }
#plans .plan.in-view { animation: fade-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
#plans .plan:nth-child(1).in-view { animation-delay: 0s; }
#plans .plan:nth-child(2).in-view { animation-delay: 0.08s; }
#plans .plan:nth-child(3).in-view { animation-delay: 0.16s; }
#plans .plan:not(.in-view) { opacity: 0; }
#contact.in-view { animation: fade-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
#contact:not(.in-view) { opacity: 0; }
