html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ======================================================
   BASE
   ====================================================== */

body {
  font-family: Arial, sans-serif;
  color: #ffffff;
  background: #000000;
}

/* ======================================================
   NAVEGACIÓN
   ====================================================== */

.nav {
  display: flex;
  justify-content: center;
  padding: 0.8rem 1rem;
  background: #000000;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #e0e0e0;
  z-index: 10;
  text-align: center;
}

.nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav a {
    margin: 0.3rem 0.6rem;
    font-size: 0.9rem;
  }
}

/* ======================================================
   LAYOUT CON SIDEBAR (SOLO MAIN)
   ====================================================== */

main.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* El layout NO hereda centrados globales */
.layout {
  text-align: left;
}

/* Sidebar */
.layout .sidebar {
  align-self: start;
  text-align: left;
}

.sidebar-photo {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 1rem;
}

.sidebar-role {
  opacity: 0.75;
  margin-top: 0.2rem;
}

.sidebar-bio {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.85;
}

/* Contenido principal */
.layout .content {
  min-width: 0;
  max-width: 900px;
}

/* MOBILE: sidebar como bloque normal */
@media (max-width: 900px) {
  main.layout {
    grid-template-columns: 1fr;
  }

  .layout .sidebar {
    text-align: center;
    margin-bottom: 2rem;
  }

  .layout .content {
    max-width: 100%;
  }
}

/* ======================================================
   SECCIONES
   ====================================================== */

.section {
  padding: 3rem 1rem;
  text-align: center;
}

.section h2 {
  margin-bottom: 1rem;
}

/* ======================================================
   BLOQUE DE AUDIO / VIDEO
   ====================================================== */

.audio-block {
  max-width: 1200px;
  margin: 0 auto;
}

.audio-block iframe {
  width: 100%;
  height: 280px;
  border: none;
}

@media (max-width: 600px) {
  .audio-block {
    max-width: 100%;
  }
}

/* ======================================================
   MARQUEE DE MARCAS (SOLO HOME)
   ====================================================== */

#heardin .marquee-container {
  overflow: hidden;
  width: 100%;
  margin-top: 1.5rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
  cursor: pointer;
}

.marquee-content {
  display: flex;
  align-items: center;
}

.marquee-content img {
  height: 40px;
  margin: 0 2.5rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.marquee-content img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ======================================================
   TABLAS DE CRÉDITOS – DISEÑO EDITORIAL
   ====================================================== */

:root {
  --table-border-width: 2px;
  --table-header-bg: #000000;
  --table-row-odd: #303030;
  --table-row-even: #1e1e1e;
  --table-col-project: rgba(255, 255, 255, 0.05);
  --table-col-character: rgba(255, 255, 255, 0.09);
  --table-col-company: rgba(255, 255, 255, 0.05);
  --table-col-year: rgba(255, 255, 255, 0.12);
  --table-text: #ffffff;
}

/* Wrapper */
.section .table-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
}

/* Tabla */
.section table {
  width: 100%;
  border-collapse: collapse;
  border: var(--table-border-width) solid #ffffff;
  color: var(--table-text);
  font-size: 0.95rem;
}

.section thead th {
  background: var(--table-header-bg);
  text-align: left;
  padding: 0.9rem 1rem;
}

.section tbody td {
  padding: 0.8rem 1rem;
}

.section tbody tr:nth-child(odd) {
  background: var(--table-row-odd);
}

.section tbody tr:nth-child(even) {
  background: var(--table-row-even);
}

.section tbody td:nth-child(4) {
  text-align: center;
  font-weight: 500;
}

/* Hover desktop */
@media (hover: hover) and (pointer: fine) {
  .section tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.12);
  }
}

/* ======================================================
   FOOTER (AISLADO DEL LAYOUT)
   ====================================================== */

footer {
  padding: 2rem 1rem;
  background: #000000;
  border-top: 1px solid #ddd;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.footer-social img {
  width: 26px;
  height: auto;
}

.disclaimer {
  font-size: 0.7rem;
  opacity: 0.6;
  max-width: 900px;
  margin: 1.5rem auto 0;
  line-height: 1.4;
}

/* ======================================================
   IFRAME SAFE
   ====================================================== */

iframe {
  max-width: 100%;
  border: none;
}
/* ======================================================
   LOGO HOME – CONTROL DE TAMAÑO
   ====================================================== */

.home img {
  width: auto;
  max-width: 90%;
  max-height: 180px; /* ← clave */
  height: auto;
}