:root {
  --size-re-main: 6rem;
  --logo-width: 120px;
  --font-primary: 'Inter', sans-serif;
  --color-text: #f0ead6;
  --color-background: #001224;
  --color-highlight: orange;
  --transition-duration-flip: 0.8s;
  --transition-duration-text-move: 0.7s;
  --transition-duration-stars: 1s;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow: hidden;
  position: relative;
  width: 100vw;
  height: 100vh;
}

h1, .logo-title { font-weight: 700; }
h2, .footer-right { font-weight: 600; }
.button, .logo-subtitle { font-weight: 500; }
p, li, .footer-left { font-weight: 400; }


#starCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  transition: filter 1s ease;
}

#starCanvas.active {
  filter: brightness(1.2) saturate(1.3);
}

.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--transition-duration-stars) ease;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.4;
  pointer-events: none;
  will-change: background-position;
}

.starfield.is-active .stars { opacity: 0.9; }
.starfield.is-active .stars-layer1 { animation-name: starvortex1-active; }
.starfield.is-active .stars-layer2 { animation-name: starvortex2-active; }
.starfield.is-active .stars-layer3 { animation-name: starvortex3-active; }

.stars-layer1 {
  background-image: radial-gradient(1.5px 1.5px at 10% 10%, #fff, transparent);
  animation: starvortex1-normal 30s linear infinite;
}

.stars-layer2 {
  background-image: radial-gradient(1.5px 1.5px at 40% 30%, #eee, transparent);
  animation: starvortex2-normal 20s linear infinite;
}

.stars-layer3 {
  background-image: radial-gradient(1.5px 1.5px at 25% 75%, #ccc, transparent);
  animation: starvortex3-normal 12s linear infinite;
}

@keyframes starvortex1-normal {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% -100%; }
}

@keyframes starvortex2-normal {
  0% { background-position: 0% 0%; }
  100% { background-position: 150% -150%; }
}

@keyframes starvortex3-normal {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% -200%; }
}

@keyframes starvortex1-active {
  0% { background-position: 0% 0%; }
  100% { background-position: -200% 200%; }
}

@keyframes starvortex2-active {
  0% { background-position: 0% 0%; }
  100% { background-position: -300% 300%; }
}

@keyframes starvortex3-active {
  0% { background-position: 0% 0%; }
  100% { background-position: -400% 400%; }
}

.header {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-block .logo {
  width: var(--logo-width);
  height: auto;
  display: block;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#mainInteractionZone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  z-index: 50;
  cursor: pointer;
}

.earth-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

#earth3d {
  width: 220px;
  height: 220px;
  position: relative;
  z-index: 1;
}

@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

#earth3d.is-pulsing {
  animation: subtlePulse 3s infinite ease-in-out;
}

#earth3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#reContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 3.9em;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

#reContainer.reverse-order {
  flex-direction: row-reverse;
}

#reContainer.reverse-order .flipper {
  transform: scaleX(-1);
}

.flip-container {
  position: relative;
  perspective: 1000px;
  display: inline-block;
  vertical-align: top;
}

.flipper {
  position: relative;
  width: max-content;
   width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--transition-duration-flip);
  transform: rotateY(0deg);
}

.flip-container.is-flipped .flipper {
  transform: rotateY(180deg);
}


.face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-re-main);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text);
}

.front { transform: rotateY(0deg); }
.back { transform: rotateY(180deg); }

.mirrored-text { transform: rotateY(180deg) scaleX(-1); }

.re-text {
  color: var(--color-highlight);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 165, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.3);
}

.text-group {
  position: absolute;
  top: 50%;
  left: calc(50% + 120px);
  transform: translateY(-50%);
  z-index: 4;
  white-space: nowrap;
  transition: all 0.8s ease;
  opacity: 1;
}

.text-group.gen-hidden .gen-text {
  opacity: 0;
  transform: translate(450px, -50%);
}

.gen-text {
  font-size: var(--size-re-main);
  font-weight: 400;
  line-height: 1.2;
}

.gen-hidden {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}


#volution {
  position: absolute;
  top: 50%;
  right: calc(50% + 125px);
  transform: translateY(-50%) scaleX(-1);
  font-size: var(--size-re-main);
  display: flex;
  color: var(--color-text);
  gap: 0.05em;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#volution .mirror-letter {
  display: inline-block;
  transition: transform 0.6s ease;
}
#volution.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

#volution.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}


#textGroupRight {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#textGroupRight.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

#textGroupRight.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1.5rem 3rem;
  background: transparent;
  font-size: 0.9rem;
  color: var(--color-text);
  z-index: 100;
  pointer-events: none;
}

.site-footer.is-hidden { opacity: 0; }

.logo-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: clamp(64px, 8vw, 120px);
  height: auto;
}

.logo-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-title {
  font-size: clamp(1.4rem, 2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.logo-subtitle {
  font-size: clamp(0.7rem, 1.1vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-subtitle);
  margin-top: 0.2em;
  display: flex;
  gap: 0.25em;
}

.text-separator { color: #6a7b3a; }
.text-beige { color: #f0ead6; }
.text-green { color: #768c5d; }

.newsletter-cta {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.paper-plane {
  width: 40px;
  height: 40px;
  animation: fly 3s ease-in-out infinite;
}

@keyframes fly {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.footer-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-style: italic;
  line-height: 1.4;
  opacity: 0.8;
  pointer-events: auto;
  text-align: left;
  flex-wrap: wrap;
}

.footer-left .arrow {
  color: #df8433;
  font-size: 1.2em;
  font-style: normal;
}

.footer-left .slogan {
  color: #d7ceb8;
  font-style: normal;
  font-weight: 400;
}


@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-block {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .logo-texts {
    align-items: center;
    text-align: center;
  }

  .logo-subtitle {
    font-size: 0.75rem;
  }
}

/* Hace ambos textos blancos en el centro */
.volve-text,
.gen-text {
  color: #fff !important;
}
