:root {
  --paper: #FFFDF4;
  --paper-deep: #FFF6D8;
  --accent: #FFE81C;
  --ink: #1C3130;
  --ink-soft: #3E5250;
  --ink-faint: #5C6F6C;
  --line: rgba(28,49,48,0.14);
  --surface: #ffffff;
  --whats: #1F9E5A;
  --whats-ink: #0F6E3B;
  --whats-wash: #E4F5EC;
  --dog-orange: #E9531E;
  --sans: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --display: "Bevan", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #23231d;
    --paper-deep: #1b1b16;
    --accent: #b3a50e;
    --ink: #f6f4e6;
    --ink-soft: #d6d2ba;
    --ink-faint: #a7a284;
    --line: rgba(255,255,255,0.16);
    --surface: #2b2b23;
    --whats: #3fce8a;
    --whats-ink: #d8f7e6;
    --whats-wash: rgba(255,255,255,0.12);
  }
}
:root[data-theme="dark"] {
  --paper: #23231d; --paper-deep: #1b1b16; --accent: #b3a50e;
  --ink: #f6f4e6; --ink-soft: #d6d2ba; --ink-faint: #a7a284;
  --line: rgba(255,255,255,0.16); --surface: #2b2b23;
  --whats: #3fce8a; --whats-ink: #d8f7e6; --whats-wash: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0; background: radial-gradient(120% 100% at 50% -10%, var(--paper) 0%, var(--paper-deep) 100%);
  color: var(--ink); font-family: var(--sans);
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8vh 20px 6vh; gap: 0; text-align: center; overflow-x: hidden;
}

/* luz ambiental dispersa: detras del texto y en los costados */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(44% 30% at 50% 72%, var(--accent) 0%, transparent 70%),
    radial-gradient(30% 26% at 8% 14%, var(--accent) 0%, transparent 70%),
    radial-gradient(26% 24% at 94% 40%, var(--accent) 0%, transparent 70%);
  opacity: 0.26;
  filter: blur(26px);
}

.logo-mark { width: min(180px, 42vw); height: auto; margin: 0 0 30px; }

/* ---- dog stage ---- */
.stage {
  position: relative;
  width: min(300px, 62vw); height: min(230px, 50vw);
  display: flex; align-items: flex-end; justify-content: center; margin: 8px 0 24px;
}
.stage::before {
  content: ''; position: absolute; inset: -18% -35% -14% -35%;
  background: radial-gradient(55% 52% at 50% 58%, var(--accent) 0%, rgba(255,232,28,0.35) 45%, transparent 72%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage::before {
    background: radial-gradient(55% 52% at 50% 58%, var(--accent) 0%, rgba(179,165,14,0.28) 45%, transparent 72%);
  }
}
:root[data-theme="dark"] .stage::before {
  background: radial-gradient(55% 52% at 50% 58%, var(--accent) 0%, rgba(179,165,14,0.28) 45%, transparent 72%);
}
.main { transform: scale(0.82); transform-origin: bottom center; }

h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 4.8vw, 2.2rem);
  line-height: 1.22; letter-spacing: 0; margin: 6px 0 14px; max-width: 15ch; text-wrap: balance;
  animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

p.dek {
  font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); max-width: 42ch; margin: 0 0 30px;
  animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.08s;
}

.cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--whats); color: #ffffff; font-family: var(--sans); font-weight: 700;
  font-size: 1.12rem; text-decoration: none; padding: 17px 34px; border-radius: 999px;
  box-shadow: 0 10px 26px -8px rgba(31,158,90,0.5), 0 0 0 0 rgba(31,158,90,0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) both, pulse 2.8s ease-out 1.4s infinite;
  animation-delay: 0.16s, 1.4s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(31,158,90,0.55); }
.cta:active { transform: translateY(0); }
.cta svg { width: 23px; height: 23px; flex-shrink: 0; }

@keyframes pulse {
  0% { box-shadow: 0 10px 26px -8px rgba(31,158,90,0.5), 0 0 0 0 rgba(31,158,90,0.35); }
  70%, 100% { box-shadow: 0 10px 26px -8px rgba(31,158,90,0.5), 0 0 0 12px rgba(31,158,90,0); }
}

.fine {
  margin-top: 16px; font-size: 12.5px; color: var(--ink-faint);
  animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.22s;
}

footer {
  margin-top: 7vh; font-family: var(--sans); font-weight: 600; font-size: 13px;
  color: var(--ink-faint); letter-spacing: 0.02em;
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  h1, p.dek, .cta, .fine { animation: none; }
}
:focus-visible { outline: 2px solid var(--whats); outline-offset: 3px; }

/* =========================================================
   Ilustracion del perro - colores fijos a proposito (como un
   logo), no siguen el tema claro/oscuro de la pagina.
   ========================================================= */
.leg { position: absolute; bottom: 0; width: 3vmax; height: 4.125vmax; }
.paw { position: absolute; bottom: 0; left: 0; width: 3.75vmax; height: 1.875vmax; overflow: hidden; }
.paw::before { content: ''; position: absolute; width: 3.75vmax; height: 3.75vmax; border-radius: 50%; }
.top {
  position: absolute; bottom: 0; left: 0.75vmax; height: 4.5vmax; width: 2.625vmax;
  border-top-left-radius: 1.425vmax; border-top-right-radius: 1.425vmax;
  transform-origin: bottom right; transform: rotateZ(90deg) translateX(-0.1vmax) translateY(1.5vmax);
  z-index: -1; background-image: linear-gradient(70deg, transparent 20%, #ff8b56 20%);
}
.dog { position: relative; width: 22.5vmax; height: 8.25vmax; max-width: 300px; max-height: 110px; }
.dog::before {
  content: ''; position: absolute; bottom: -0.75vmax; right: -0.15vmax; width: 100%; height: 1.5vmax;
  background-color: rgba(28, 49, 48, 0.14); border-radius: 50%; z-index: -1000;
  animation: shadow 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}
.dog__head {
  position: absolute; left: 1.5vmax; bottom: 0; width: 9.75vmax; height: 8.25vmax;
  border-top-left-radius: 4.05vmax; border-top-right-radius: 4.05vmax;
  border-bottom-right-radius: 3.3vmax; border-bottom-left-radius: 3.3vmax;
  background-color: #FF8147; animation: head 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}
.dog__head-c {
  position: absolute; left: 1.5vmax; bottom: 0; width: 9.75vmax; height: 8.25vmax;
  animation: head 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite; z-index: -1;
}
.dog__snout {
  position: absolute; left: -1.5vmax; bottom: 0; width: 7.5vmax; height: 3.75vmax;
  border-top-right-radius: 3vmax; border-bottom-right-radius: 3vmax; border-bottom-left-radius: 4.5vmax;
  background-color: #D7DBD2; animation: snout 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}
.dog__snout::before {
  content: ''; position: absolute; left: -0.1125vmax; top: -0.15vmax; width: 1.875vmax; height: 1.125vmax;
  border-top-right-radius: 3vmax; border-bottom-right-radius: 3vmax; border-bottom-left-radius: 4.5vmax;
  background-color: #1C3130; animation: snout-b 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}
.dog__nose {
  position: absolute; top: -1.95vmax; left: 40%; width: 0.75vmax; height: 2.4vmax; border-radius: 0.525vmax;
  transform-origin: bottom; transform: rotateZ(10deg); background-color: #D7DBD2;
}
.dog__eye-l, .dog__eye-r {
  position: absolute; top: -0.9vmax; width: 0.675vmax; height: 0.375vmax; border-radius: 50%;
  background-color: #1C3130; animation: eye 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}
.dog__eye-l { left: 27%; }
.dog__eye-r { left: 65%; }
.dog__ear-l, .dog__ear-r {
  position: absolute; width: 10.5vmax; height: 3.375vmax;
  border-top-left-radius: 0vmax; border-top-right-radius: 0vmax;
  border-bottom-right-radius: 3.3vmax; border-bottom-left-radius: 3.3vmax; background-color: #E26538;
}
.dog__ear-l {
  top: 1.5vmax; left: 6vmax; transform-origin: bottom left; transform: rotateZ(-50deg); z-index: -1;
  animation: ear-l 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}
.dog__ear-r {
  top: 1.5vmax; right: 3vmax; transform-origin: bottom right; transform: rotateZ(20deg); z-index: -2;
  animation: ear-r 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}
.dog__body {
  display: flex; justify-content: center; align-items: flex-end; position: absolute; bottom: 0.3vmax;
  left: 3.75vmax; width: 18.75vmax; height: 7.2vmax;
  border-top-left-radius: 3vmax; border-top-right-radius: 6vmax;
  border-bottom-right-radius: 1.5vmax; border-bottom-left-radius: 6vmax;
  background-color: #ff702e; z-index: -2; animation: body 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}
.dog__tail {
  position: absolute; right: -3vmax; height: 1.5vmax; width: 4.5vmax;
  background-color: #E96839; border-radius: 1.5vmax;
}
.dog__paws { position: absolute; bottom: 0; left: 7.5vmax; width: 12vmax; height: 3vmax; }
.dog__bl-leg { left: -3vmax; z-index: -10; }
.dog__bl-paw::before { background-color: #bec4b6; }
.dog__bl-top { background-image: linear-gradient(80deg, transparent 20%, #E96839 20%); }
.dog__fl-leg { left: 0; z-index: 10; }
.dog__fl-paw::before { background-color: #D7DBD2; }
.dog__fr-leg { right: 0; }
.dog__fr-paw::before { background-color: #D7DBD2; }

@keyframes head {
  0%, 10%, 20%, 26%, 28%, 90%, 100% { height: 8.25vmax; bottom: 0; transform-origin: bottom right; transform: rotateZ(0); }
  5%, 15%, 22%, 24%, 30% { height: 8.1vmax; }
  32%, 50% { height: 8.25vmax; }
  55%, 60% { bottom: 0.75vmax; transform-origin: bottom right; transform: rotateZ(0); }
  70%, 80% { bottom: 0.75vmax; transform-origin: bottom right; transform: rotateZ(10deg); }
}
@keyframes body {
  0%, 10%, 20%, 26%, 28%, 32%, 100% { height: 7.2vmax; }
  5%, 15%, 22%, 24%, 30% { height: 7.05vmax; }
}
@keyframes ear-l {
  0%, 10%, 20%, 26%, 28%, 82%, 100% { transform: rotateZ(-50deg); }
  5%, 15%, 22%, 24% { transform: rotateZ(-48deg); }
  30%, 31% { transform: rotateZ(-30deg); }
  32%, 80% { transform: rotateZ(-60deg); }
}
@keyframes ear-r {
  0%, 10%, 20%, 26%, 28% { transform: rotateZ(20deg); }
  5%, 15%, 22%, 24% { transform: rotateZ(18deg); }
  30%, 31% { transform: rotateZ(10deg); }
  32% { transform: rotateZ(25deg); }
}
@keyframes snout {
  0%, 10%, 20%, 26%, 28%, 82%, 100% { height: 3.75vmax; }
  5%, 15%, 22%, 24% { height: 3.45vmax; }
}
@keyframes snout-b {
  0%, 10%, 20%, 26%, 28%, 98%, 100% { width: 1.875vmax; }
  5%, 15%, 22%, 24% { width: 1.8vmax; }
  34%, 98% { width: 1.275vmax; }
}
@keyframes shadow {
  0%, 10%, 20%, 26%, 28%, 30%, 84%, 100% { width: 99%; }
  5%, 15%, 22%, 24% { width: 101%; }
  34%, 81% { width: 96%; }
}
@keyframes eye {
  0%, 30% { width: 0.675vmax; height: 0.3vmax; }
  32%, 59%, 90%, 100% { width: 0.525vmax; height: 0.525vmax; transform: translateY(0); }
  60%, 75% { transform: translateY(-0.3vmax); }
  80%, 85% { transform: translateY(0.15vmax); }
}
