@import url("https://fonts.googleapis.com/css2?family=Marcellus+SC&family=Montserrat:wght@300;400;500&display=swap");

:root {
  --cotton: #fdf6e9;
  --coal: #1d1d1b;
  --strawberry: #590511;
  --raspberry: #95134c;
  --blueberry: #1a2c3f;
  --grape: #284b30;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--strawberry);
  color: var(--cotton);
  font-family: "Montserrat", Arial, sans-serif;
}

.page-shell {
  --pointer-x: 0px;
  --pointer-y: 0px;
  --content-x: 0px;
  --content-y: 0px;
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--strawberry);
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-shell::before {
  inset: -4%;
  background:
    linear-gradient(rgba(32, 0, 5, .24), rgba(32, 0, 5, .42)),
    url("hero-frutos-rojos.png") center / cover no-repeat;
  transform: scale(1.06) translate3d(var(--pointer-x), var(--pointer-y), 0);
  transition: transform 1.2s cubic-bezier(.2,.75,.25,1);
  animation: cinematic-drift 18s ease-in-out infinite alternate;
}

.page-shell::after {
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(52px, 8vh, 96px) 24px 28px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, 90vw);
  text-align: center;
  transform: translate3d(var(--content-x), var(--content-y), 0);
  transition: transform 1s cubic-bezier(.2,.75,.25,1);
}

.coming-soon {
  text-transform: uppercase;
  letter-spacing: .24em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-logo {
  display: block;
  width: clamp(210px, 26vw, 390px);
  height: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1) sepia(.08);
  opacity: 0;
  animation:
    reveal-logo 1.25s .1s cubic-bezier(.2,.75,.25,1) forwards,
    logo-breathe 7s 1.4s ease-in-out infinite;
}

.tagline {
  margin: clamp(28px, 4vh, 42px) 0 0;
  font-family: "Marcellus SC", Georgia, serif;
  font-size: clamp(2.1rem, 4.3vw, 4.25rem);
  font-weight: 400;
  line-height: .98;
  min-height: 2em;
}

.tagline-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
}

.tagline-line--first {
  animation: reveal-line 1.15s .75s cubic-bezier(.2,.75,.25,1) forwards;
}

.tagline-line--second {
  animation: reveal-line 1.05s 1.55s cubic-bezier(.2,.75,.25,1) forwards;
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: clamp(27px, 4vh, 42px) auto 24px;
  opacity: 0;
  animation: reveal .9s 2.35s cubic-bezier(.2,.75,.25,1) forwards;
}

.rule::before, .rule::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--cotton);
}

.rule span {
  width: 7px;
  height: 7px;
  border-radius: 50% 50% 50% 0;
  background: var(--cotton);
  transform: rotate(-45deg);
}

.coming-soon {
  margin: 0;
  font-size: clamp(.68rem, .9vw, .86rem);
  font-weight: 500;
  opacity: 0;
  animation: reveal .9s 2.65s cubic-bezier(.2,.75,.25,1) forwards;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-logo {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reveal-line {
  from { opacity: 0; transform: translateY(14px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes cinematic-drift {
  0% { background-position: 48% 49%; }
  100% { background-position: 53% 51%; }
}

@keyframes logo-breathe {
  0%, 100% { transform: translateY(0); filter: brightness(0) invert(1) sepia(.08) drop-shadow(0 10px 25px rgba(35,0,5,.08)); }
  50% { transform: translateY(-7px); filter: brightness(0) invert(1) sepia(.08) drop-shadow(0 16px 32px rgba(35,0,5,.24)); }
}

@media (max-width: 700px) {
  .tagline { min-height: 2.9em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-logo, .tagline-line, .rule, .coming-soon, .page-shell::before {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
