/* ============================================================
   DRAGONES DE PLATA — Página de Inicio
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-height) var(--space-md) var(--space-lg);
}

/* Fondo con gradiente y ruido */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 25%, rgba(201, 160, 50, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 80% 75%, rgba(184, 48, 48, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 15% 70%, rgba(201, 160, 50, 0.05) 0%, transparent 55%);
}

/* Líneas decorativas */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 160, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 160, 50, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: fadeUp 0.9s ease both;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero__logo {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-md);
  filter: drop-shadow(0 0 28px rgba(201, 160, 50, 0.45)) drop-shadow(0 0 8px rgba(184, 48, 48, 0.25));
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero__logo svg {
  width: 100%;
  height: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-silver);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.8s 0.4s ease both;
}

.hero__title span {
  color: var(--color-gold-bright);
  text-shadow: 0 0 40px var(--color-accent-glow);
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease both;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s ease both;
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 1s 1.2s ease both;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ── Historia ───────────────────────────────────────────── */
.historia {
  padding: var(--space-xl) 0;
}

.historia__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.historia__visual {
  position: relative;
}

.historia__badge {
  width: 100%;
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-accent);
  box-shadow: var(--shadow-card), inset 0 0 60px rgba(79, 127, 206, 0.05);
  position: relative;
  overflow: hidden;
}

.historia__badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--color-gold) 0%, transparent 50%, var(--color-red) 100%);
  z-index: -1;
  opacity: 0.45;
  border-radius: var(--radius-lg);
}

.historia__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.historia__text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.historia__text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 6px;
  color: var(--color-gold);
}

/* ── Accesos rápidos ────────────────────────────────────── */
.accesos {
  padding: var(--space-xl) 0;
}

.accesos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.acceso-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.acceso-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 32px rgba(201, 160, 50, 0.15);
  transform: translateY(-4px);
}

.acceso-card__icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: grayscale(0.3);
  transition: transform var(--transition), filter var(--transition);
}

.acceso-card:hover .acceso-card__icon {
  transform: scale(1.15);
  filter: grayscale(0);
}

.acceso-card__name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-silver);
}

.acceso-card__desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── Animaciones ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.6); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .historia__inner    { grid-template-columns: 1fr; }
  .historia__visual   { order: -1; }
  .accesos__grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .accesos__grid    { grid-template-columns: repeat(2, 1fr); }
}
