:root {
  color-scheme: light;
  --naranja: #FBAA0A;
  --naranja-rojizo: #D94C0C;
  --dorado: #E9860B;
  --verde: #6D6A2C;
  --cafe: #2F1B07;
  --naranja-oscuro: #CC420B;
  --crema: #FECE84;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--crema);
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Baloo 2', sans-serif;
  color: var(--cafe);
  overflow: hidden;
}

.franja {
  position: relative;
  width: 100%;
  height: clamp(40px, 8vh, 64px);
  overflow: hidden;
  background: var(--naranja-rojizo);
  box-shadow: inset 0 0 0 3px rgba(47, 27, 7, 0.15);
  flex-shrink: 0;
}

.franja--abajo { background: var(--dorado); }

.franja-tren {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: desfilar 16s linear infinite;
}

.franja--abajo .franja-tren {
  animation-direction: reverse;
  animation-duration: 20s;
}

.franja-tren img {
  width: 40px;
  height: 40px;
  margin: 0 22px;
  animation: brincar 1.6s ease-in-out infinite;
}

main {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(8px, 3vh, 36px) 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(251, 170, 10, 0.55) 0%, rgba(251, 170, 10, 0) 55%),
    var(--crema);
}

.card {
  width: 100%;
  max-width: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 2.5vh, 20px);
  animation: aparecer 0.8s ease-out;
}

.logo-halo {
  width: clamp(130px, 28vh, 220px);
  max-width: 55vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--naranja-rojizo);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 12px 0 rgba(47, 27, 7, 0.18);
  flex-shrink: 0;
}

.logo {
  width: 92%;
  animation: flotar 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(47, 27, 7, 0.25));
}

.slogan {
  font-size: clamp(1rem, 3.6vh, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.25);
}

.slogan-extra {
  display: inline-block;
  margin-top: 2px;
  font-size: clamp(0.85rem, 3vh, 1.1rem);
  color: var(--naranja-rojizo);
}

.contacto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(9px, 2vh, 14px) 30px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--verde);
  color: var(--crema);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(47, 27, 7, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contacto:hover, .contacto:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(47, 27, 7, 0.3);
}

.contacto:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(47, 27, 7, 0.3);
}

.contacto svg { width: 22px; height: 22px; fill: var(--crema); }

.redes {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  flex-shrink: 0;
}

.redes a {
  width: clamp(40px, 8vh, 50px);
  height: clamp(40px, 8vh, 50px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--cafe);
  box-shadow: 0 5px 0 rgba(47, 27, 7, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.redes a:hover, .redes a:focus-visible {
  transform: translateY(-3px) scale(1.06);
  background: var(--naranja-rojizo);
}

.redes svg { width: 24px; height: 24px; fill: var(--crema); }

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes desfilar {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes brincar {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}

.franja-tren img:nth-child(odd) { animation-delay: 0.4s; }
.franja-tren img:nth-child(3n) { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .card, .logo, .franja-tren, .franja-tren img { animation: none; }
}
