/* Portada Little FOX DX Group — independiente del programa QSO Log */
@font-face { font-family: 'Poppins'; font-weight: 400; src: url('fonts/Poppins-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 500; src: url('fonts/Poppins-Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 700; src: url('fonts/Poppins-Bold.ttf') format('truetype'); font-display: swap; }

:root {
  --acento: #fb7e00;
  --acento-osc: #c45500;
  --fondo: #131313;
  --texto: #f5f5f5;
  --suave: rgba(245, 245, 245, .78);
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--fondo); color: var(--texto);
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  display: flex; flex-direction: column;
}

/* ---------- Fondo con fotos en fundido y zoom lento ---------- */
.fondo, .velo { position: fixed; inset: 0; }
.fondo { z-index: 0; overflow: hidden; background: var(--fondo); }
.foto {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease;
  transform: scale(1.02);
}
.foto.activa { opacity: 1; animation: zoom 14s ease-out forwards; }
@keyframes zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.velo {
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(19,19,19,.28) 0%, rgba(19,19,19,.6) 60%, rgba(19,19,19,.88) 100%),
    linear-gradient(to bottom, rgba(19,19,19,.25), rgba(19,19,19,.55) 70%, rgba(19,19,19,.95));
}

/* ---------- Contenido ---------- */
.portada {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 16px 24px; gap: 14px;
  animation: entrar 1s ease both;
}
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.logo-wrap { position: relative; width: 220px; height: 220px; margin-bottom: 10px; }
.logo {
  position: relative; z-index: 1; width: 100%; height: 100%;
  border-radius: 36px; display: block;
  box-shadow: 0 0 0 3px rgba(251,126,0,.85), 0 18px 50px rgba(0,0,0,.6), 0 0 60px rgba(251,126,0,.25);
}
/* Ondas de radio saliendo del logo */
.onda {
  position: absolute; inset: 0; border-radius: 40px;
  border: 2px solid var(--acento); opacity: 0;
  animation: onda 3.6s ease-out infinite;
}
.o2 { animation-delay: 1.2s; } .o3 { animation-delay: 2.4s; }
@keyframes onda { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: .5px; line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.subtitulo {
  font-size: clamp(.95rem, 2.4vw, 1.25rem); font-weight: 500; color: var(--acento);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.descripcion { max-width: 620px; color: var(--suave); font-size: clamp(.95rem, 2vw, 1.08rem); line-height: 1.6; }

.boton {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 44px; min-height: 56px; border-radius: 999px;
  background: var(--acento); color: #131313; text-decoration: none;
  font-weight: 700; font-size: 1.2rem; letter-spacing: .5px;
  box-shadow: 0 10px 30px rgba(251,126,0,.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.boton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.boton:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(251,126,0,.5); background: #ff8f1f; }
.boton:hover svg { transform: translateX(4px); }
.boton:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 6px; }
.enlaces:empty { display: none; }
.enlaces a { color: var(--suave); text-decoration: none; font-size: .95rem; border-bottom: 1px solid rgba(251,126,0,.5); padding-bottom: 2px; }
.enlaces a:hover { color: #fff; border-color: var(--acento); }

/* ---------- Reloj UTC ---------- */
.reloj {
  position: fixed; top: 16px; right: 16px; z-index: 3;
  display: flex; align-items: baseline; gap: 8px;
  background: rgba(19,19,19,.6); border: 1px solid rgba(251,126,0,.45);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.reloj span { font-size: .72rem; color: var(--acento); font-weight: 700; letter-spacing: 1.5px; }
.reloj b { font-size: 1.05rem; font-weight: 700; }
.reloj[hidden] { display: none; }

/* ---------- Pie ---------- */
.pie {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  font-size: .85rem; color: rgba(245,245,245,.6);
  border-top: 1px solid rgba(251,126,0,.25);
}
.epigrafe { font-style: italic; transition: opacity .6s ease; }

@media (max-width: 560px) {
  .logo-wrap { width: 160px; height: 160px; }
  .logo { border-radius: 28px; }
  .onda { border-radius: 30px; }
  .boton { width: 100%; max-width: 340px; justify-content: center; }
  .pie { justify-content: center; text-align: center; }
  .reloj { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .foto.activa, .onda, .portada { animation: none; }
  .foto { transition: none; }
}
