/* =========================================================
   Rebién · Página de inicio "Próximamente"
   ========================================================= */

:root {
  /* Colores del logo Rebién */
  --rb-rosa:     #F297BF;
  --rb-azul:     #6EC5E5;
  --rb-morado:   #AD86BC;
  --rb-amarillo: #FFD13F;
  --rb-naranja:  #F08540;
  --rb-verde:    #C3D550;

  /* Neutros */
  --rb-tinta:        #1F1D2B;
  --rb-fondo:        #FFFFFF;

  /* Tipografía */
  --rb-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rb-font-display: "Fira Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--rb-fondo);
  color: var(--rb-tinta);
  font-family: var(--rb-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Estructura ---------- */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Franja superior con los seis colores del logo */
.color-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 8px;
  flex-shrink: 0;
}
.color-band span:nth-child(1) { background: var(--rb-rosa); }
.color-band span:nth-child(2) { background: var(--rb-azul); }
.color-band span:nth-child(3) { background: var(--rb-morado); }
.color-band span:nth-child(4) { background: var(--rb-amarillo); }
.color-band span:nth-child(5) { background: var(--rb-naranja); }
.color-band span:nth-child(6) { background: var(--rb-verde); }

/* ---------- Formas decorativas de fondo ---------- */

.shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: rb-float 12s ease-in-out infinite;
}

.shape--rosa {
  top: 60px;
  left: -140px;
  width: 340px;
  height: 340px;
  background: var(--rb-rosa);
  opacity: 0.22;
  animation-duration: 14s;
}

.shape--azul {
  top: 180px;
  right: -100px;
  width: 260px;
  height: 260px;
  background: var(--rb-azul);
  opacity: 0.25;
  animation-duration: 11s;
  animation-direction: reverse;
}

.shape--morado {
  top: -40px;
  right: 18%;
  width: 120px;
  height: 180px;
  border-radius: 60px;
  background: var(--rb-morado);
  opacity: 0.22;
  rotate: 18deg;
  animation-duration: 13s;
}

.shape--amarillo {
  bottom: 170px;
  left: 7%;
  width: 150px;
  height: 150px;
  background: var(--rb-amarillo);
  opacity: 0.35;
  animation-duration: 10s;
}

.shape--naranja {
  bottom: -80px;
  right: 10%;
  width: 220px;
  height: 220px;
  background: var(--rb-naranja);
  opacity: 0.2;
  animation-duration: 15s;
  animation-direction: reverse;
}

.shape--verde {
  top: 42%;
  left: 15%;
  width: 70px;
  height: 70px;
  background: var(--rb-verde);
  opacity: 0.4;
  animation-duration: 9s;
}

@keyframes rb-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* ---------- Bloque principal ---------- */

.hero {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 5rem;
}

.hero__inner {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  text-align: center;
}

/* El titular es la propia imagen (Rebién + Gobierno de Aragón) */
.hero__title {
  margin: 0;
  width: 100%;
  max-width: 720px;
  line-height: 0;
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
}

/* Etiqueta "Próximamente" */
.badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  background: var(--rb-tinta);
  color: #FFFFFF;
  font-family: var(--rb-font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge__dot {
  display: block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rb-naranja);
  animation: rb-pulse 2s ease-out infinite;
}

@keyframes rb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 133, 64, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(240, 133, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 133, 64, 0); }
}

/* ---------- Móvil ---------- */

@media (max-width: 640px) {
  .hero {
    padding: 4rem 1.25rem 3.5rem;
  }
  .hero__inner {
    gap: 2.5rem;
  }
  .badge {
    font-size: 1.125rem;
    padding: 0.8rem 1.5rem;
  }
  .shape--rosa    { width: 220px; height: 220px; left: -110px; }
  .shape--azul    { width: 170px; height: 170px; right: -80px; }
  .shape--naranja { width: 160px; height: 160px; }
  .shape--verde   { display: none; }
  .shape--amarillo { bottom: 40px; width: 120px; height: 120px; }
}

/* ---------- Accesibilidad: sin animaciones si el usuario lo pide ---------- */

@media (prefers-reduced-motion: reduce) {
  .shape,
  .badge__dot {
    animation: none;
  }
}
