/* Fuente extra para "Siete Media" del header */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600&display=swap');

/* ---------- Variables y estilos base ---------- */

:root {
  --bg-body: #050816;
  --bg-elevated: #0f172a;
  --bg-elevated-alt: #020617;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-strong: #fb923c;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.6);
  --nav-height: 72px;

  /* Colores por medio */
  --radio-color: #14b8a6;   /* aguamarina */
  --revista-color: #f97316; /* naranja */
  --rtv-color: #ef4444;     /* rojo tipo YouTube */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 40%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
}

/* ---------- Cabecera / navegación ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 50px;
  height: 50px;
  /* sin bordes redondeados */
  border-radius: 0;
  background: #fff;
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f9fafb;
  font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Nav links */

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  position: relative;
  font-size: 0.88rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.5rem;
  height: 2px;
  bottom: 0.2rem;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  transition: transform 0.18s ease-out;
}

.nav-link:hover {
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.7);
}

.nav-link.active {
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.9);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Botón móvil */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.26rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* ---------- Secciones ---------- */

main {
  padding-top: var(--nav-height);
}

.section {
  padding: 4.5rem 1.25rem;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.2), rgba(15, 23, 42, 0.9));
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.9rem;
  margin: 0 0 1rem 0;
  letter-spacing: 0.03em;
}

.section p {
  margin: 0 0 1.2rem 0;
  color: var(--text-main);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 0 1.25rem;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;        /* centrado vertical */
  justify-content: center;    /* centrado horizontal */
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/hero-siete-media.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transform: scale(1.04);
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), transparent 55%),
    linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55));
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 26px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow-soft);
  text-align: center;
  transform: translateY(-10vh);  /* sube el bloque */
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--accent-strong);
  margin-bottom: 0.7rem;
}

/* Logo Siete Media dentro del hero */
.hero-logo {
  margin-bottom: 1.1rem;
}

.hero-logo img {
  max-width: 180px;
  width: 40%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  margin: 0 0 0.9rem 0;
}

/* Colores del título principal */
.brand-radio {
  color: var(--radio-color);
}

.brand-revista {
  color: var(--revista-color);
}

.brand-rtv {
  color: var(--rtv-color);
}

.hero-lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: #e5e7eb;
}

/* ---------- Enlaces a la revista (mantener estilo de texto) ---------- */

a.revista-link {
  text-decoration: none;
}

a.revista-link:hover {
  text-decoration: underline;
}

/* ---------- Botones (por si se usan en otras zonas) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111827;
  font-weight: 600;
  box-shadow: 0 16px 35px rgba(248, 113, 22, 0.55);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.6);
}

/* ---------- Grid genérico ---------- */

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Tarjetas ---------- */

.pillars {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.pillar-card,
.team-card,
.tech-card,
.content-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
}

/* Colores por medio en tarjetas */
.card-radio {
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.25), rgba(15, 23, 42, 0.96));
  border-color: rgba(45, 212, 191, 0.7);
}

.card-revista {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.25), rgba(15, 23, 42, 0.96));
  border-color: rgba(249, 115, 22, 0.75);
}

.card-rtv {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.25), rgba(15, 23, 42, 0.96));
  border-color: rgba(239, 68, 68, 0.75);
}

.pillar-card h3,
.team-card h3,
.tech-card h3,
.content-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.pillar-card p {
  margin-bottom: 0;
  color: var(--text-main);
}

/* Equipos */

.team-subtitle {
  margin-top: -0.2rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.team-roles {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.team-roles li {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

/* Checklists */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 0.7rem;
  font-size: 0.96rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.9rem;
  color: var(--accent-strong);
}

/* ---------- Línea temporal ---------- */

.timeline {
  position: relative;
  margin-top: 1.2rem;
  padding-left: 1.2rem;
  border-left: 2px solid rgba(148, 163, 184, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.6rem;
  padding-left: 1rem;
}

.timeline-dot {
  position: absolute;
  left: -1.3rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-content h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
}

.timeline-content p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-main);
}

/* ---------- Animaciones de aparición ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.3rem 1.25rem 1.8rem;
  text-align: center;
  color: var(--text-muted);
  background: #020617;
  font-size: 0.9rem;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .hero-content {
    padding: 2.5rem 1.8rem;
    transform: translateY(-6vh);
  }

  .hero-logo img {
    max-width: 160px;
    width: 55%;
  }

  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    inset: var(--nav-height) 0 auto 0;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.7rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .section {
    padding: 3.4rem 1.1rem;
  }

  .grid-2,
  .grid-3,
  .pillars {
    grid-template-columns: 1fr;
  }

  .stack-mobile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.86rem;
  }

  .hero-content {
    padding-inline: 1.3rem;
    transform: translateY(-4vh);
  }

  .hero-logo img {
    max-width: 140px;
    width: 65%;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Enlace del menú a Revista Hacer con icono */
.nav-revista {
  color: var(--revista-color) !important;
  font-weight: 600;
}

.icono-periodico {
  margin-right: 6px;
  font-size: 1rem;
  color: var(--revista-color);
  vertical-align: middle;
}

/* Efecto hover especial */
.nav-revista:hover {
  background: rgba(249, 115, 22, 0.15);
  color: var(--revista-color) !important;
}

