/* GOA - Galder Hernando · Odontología Adaptativa — Teaser */

:root {
  --blanco: #ffffff;
  --piedra: #dcdad2;
  --musgo: #586544;
  --menta: #9dcbb6;
  --negro: #232222;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--blanco);
  color: var(--negro);
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* soft organic shapes — "adaptativa": forma que se transforma lentamente */
.blob {
  position: absolute;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform, border-radius;
}

.blob-a {
  top: -12%;
  right: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  background: var(--menta);
  animation: morph-a 22s ease-in-out infinite;
}

.blob-b {
  bottom: -16%;
  left: -10%;
  width: 38vw;
  height: 38vw;
  max-width: 460px;
  max-height: 460px;
  background: var(--musgo);
  opacity: 0.16;
  animation: morph-b 26s ease-in-out infinite;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw 6vh;
}

.logo-wrap {
  opacity: 0;
  animation: rise 0.8s ease-out 0.1s forwards;
}

.logo {
  width: 260px;
  height: auto;
}

.subname {
  margin: 0;
  margin-top: 1.9rem;
  margin-bottom: 2rem;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 1.45rem;
  text-transform: uppercase;
  color: var(--musgo);
  opacity: 0;
  animation: rise 0.8s ease-out 0.28s forwards;
}

.claim {
  max-width: 46ch;
  margin: 0 0 2.6rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--negro);
  opacity: 0;
  animation: rise 0.8s ease-out 0.6s forwards;
}

.rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--menta);
  margin: 0 0 1.6rem;
  opacity: 0;
  animation: rise 0.8s ease-out 0.76s forwards;
}

.soon {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--musgo);
  opacity: 0;
  animation: rise 0.8s ease-out 0.9s forwards;
}

footer {
  position: relative;
  z-index: 1;
  background: var(--piedra);
  padding: 1rem 6vw;
  text-align: center;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 0.5rem;
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--negro);
}

.contact span:not(:last-child)::after {
  content: "|";
  display: inline-block;
  margin: 0 0.6em;
  color: var(--musgo);
}

.contact a {
  color: var(--negro);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact a:hover {
  color: var(--musgo);
  border-color: var(--musgo);
}

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

@keyframes morph-a {
  0%, 100% { border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; transform: rotate(0deg) scale(1); }
  33%      { border-radius: 58% 42% 40% 60% / 62% 55% 45% 38%; transform: rotate(8deg) scale(1.05); }
  66%      { border-radius: 50% 50% 35% 65% / 40% 62% 38% 60%; transform: rotate(-6deg) scale(0.97); }
}

@keyframes morph-b {
  0%, 100% { border-radius: 60% 40% 45% 55% / 50% 60% 40% 50%; transform: rotate(0deg) scale(1); }
  50%      { border-radius: 40% 60% 60% 40% / 55% 45% 55% 45%; transform: rotate(-10deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap, .subname, .claim, .rule, .soon {
    animation: none;
    opacity: 1;
  }
  .blob-a, .blob-b {
    animation: none;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 200px;
  }
  .contact {
    flex-direction: column;
    gap: 0.5rem;
  }
  .contact span:not(:last-child)::after {
    content: "";
    margin: 0;
  }
}
