/* ============================================================
   POMBERO: LA LEYENDA DE YARÁ — Rediseño Web
   Estética: Dark fantasy / folklore atmosférico
   ============================================================ */

:root {
  --color-bg:        #0a0a0f;
  --color-surface:   #111118;
  --color-surface2:  #17171f;
  --color-border:    rgba(160, 100, 200, 0.18);
  --color-purple:    #7b3fa0;
  --color-purple-l:  #a660d4;
  --color-accent:    #3de8b0;   /* verde selva vibrante */
  --color-text:      #e8e0f0;
  --color-muted:     #8a7fa0;
  --color-gold:      #c9a84c;
  --font-display:    'Nova Mono', monospace;
  --font-body:       'Poppins', sans-serif;
  --nav-h:           3.5rem;
  --radius:          10px;
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.7;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-purple-l); }

img { display: block; max-width: 100%; }

/* ── Scroll-to-top button ── */
.floating-square {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(123, 63, 160, 0.85);
  border: 1px solid var(--color-purple-l);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}
.floating-square:hover { background: var(--color-purple); transform: translateY(-3px); }
.floating-square a { color: #fff; font-size: 13px; display: flex; }

/* ── Top social bar ── */
.first-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2rem;
  background: rgba(6, 4, 12, 0.95);
  border-bottom: 1px solid rgba(123, 63, 160, 0.25);
  display: flex;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}
.first-header .social-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
}
.first-header .social-icons p {
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 0.3rem;
}
.first-header .social-icons a {
  color: var(--color-muted);
  font-size: 13px;
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
}
.first-header .social-icons a:hover {
  color: var(--color-accent);
  transform: scale(1.2);
}

/* ── Main navigation ── */
.second-header {
  position: fixed;
  top: 2rem; left: 0;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(10, 8, 18, 0.85);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  z-index: 9998;
  transition: background var(--transition);
}
.second-header.scrolled { background: rgba(10, 8, 18, 0.98); }

.second-header .logo img {
  width: 44px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(0,0,0,0.5);
  transition: transform var(--transition), border-color var(--transition);
}
.second-header .logo img:hover {
  transform: scale(1.1);
  border-color: var(--color-accent);
}

.second-header .title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.second-header .title h1 {
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: var(--color-text);
  font-weight: 400;
  white-space: nowrap;
}
.logo-pombero {
  height: 2rem;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(166, 96, 212, 0.6));
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 0.3rem;
}
.navbar a {
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.navbar a:hover, .navbar a.active {
  color: var(--color-text);
  border-color: var(--color-border);
  background: rgba(123, 63, 160, 0.15);
}

/* ── Banner / Hero ── */
#banner {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background-image: url('../img/PomberoYaraBanner0.webp');
  background-position: center top;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 18, 0.3) 0%,
    rgba(10, 8, 18, 0.1) 40%,
    rgba(10, 8, 18, 0.7) 80%,
    var(--color-bg) 100%
  );
}
#bloque-0 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
#imagen {
  width: min(520px, 80vw);
  height: 280px;
  background-image: url('../img/logoJuego-transparente.webp');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 40px rgba(123, 63, 160, 0.7));
  transition: transform 0.1s ease;
}

/* ── Main content ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Section blocks ── */
.bloque-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--color-border);
  animation: fadeUp 0.7s ease both;
}
.bloque-section:last-child { border-bottom: none; }

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

/* ── Section titles ── */
.titulo__seccion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}
.titulo__seccion h2 {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--color-purple-l);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
}
.titulo__seccion h2::after {
  content: '';
  display: block;
  margin-top: 4px;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, var(--color-purple), transparent);
}
.icono_miniatura {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(166, 96, 212, 0.5));
  flex-shrink: 0;
}

/* ── Gameplay bullets ── */
.gameplay-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.gameplay-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: border-color var(--transition), background var(--transition);
}
.gameplay-list li::before {
  content: '◆';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 0.6rem;
}
.gameplay-list li:hover {
  border-color: rgba(61, 232, 176, 0.3);
  background: var(--color-surface2);
}

/* ── Lore paragraphs ── */
.lore-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lore-list li {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(30, 20, 45, 0.8) 100%);
  border-left: 2px solid var(--color-purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: #cdc4de;
  line-height: 1.8;
}

/* ── Artwork image ── */
.artwork-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: transform var(--transition);
}
.artwork-img:hover { transform: scale(0.98); }

/* ── Contact block ── */
.caja__contacto {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.columna__imagen { flex: 0 0 auto; }
.imagen__ajustada {
  width: 80px;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 0 12px rgba(123,63,160,0.4));
  transition: transform var(--transition);
}
.imagen__ajustada:hover { transform: scale(1.06); }

.columna__redes { flex: 1; }
.redes__sociales {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.redes__sociales li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-muted);
  font-size: 14px;
  transition: color var(--transition);
}
.redes__sociales li a:hover { color: var(--color-accent); }
.redes__sociales li a i { width: 1rem; text-align: center; }

/* ── Footer ── */
footer {
  background: rgba(6, 4, 12, 0.98);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}
footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
footer .social-icons a {
  color: var(--color-muted);
  font-size: 18px;
  transition: color var(--transition), transform var(--transition);
}
footer .social-icons a:hover { color: var(--color-accent); transform: scale(1.2); }

/* ── Page top padding (below fixed headers) ── */
.page-pad-top { padding-top: calc(2rem + var(--nav-h)); }

/* ── Responsive ── */
@media (max-width: 780px) {
  .second-header .logo { display: none; }
  .second-header { padding: 0 0.75rem; }
  .second-header .title h1 { font-size: 0.75rem; }
  .navbar a { padding: 0.3rem 0.5rem; font-size: 11px; }
  #banner { height: 70vh; }
  #imagen { height: 180px; }
  .caja__contacto { flex-direction: column; text-align: center; }
  .columna__imagen { margin: 0 auto; }
}
