@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');

:root {
  --main-bg: #f7f5f2;
  --main-border: #1a1a1a;
  --main-text: #18181b;
  --accent: #d6f95b;
  --button: #b39ddb;
  --button-hover: #a18fd1;
  --button-text: #18181b;
  --shadow: 0 8px 32px rgba(44,44,44,0.13);
  --ep1: #e0f7fa;
  --ep2: #ffe0e9;
  --ep3: #e9ffe0;
  --ep4: #e0e7ff;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--main-bg);
  color: var(--main-text);
  font-family: 'Poppins', Arial, sans-serif;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--main-border);
  background: #fff;
  padding: 0 5vw;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100vw;
  box-sizing: border-box;
}
.navbar .logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.3rem;
  gap: 0.5rem;
  letter-spacing: 1px;
}
.navbar .logo i {
  font-size: 1.1rem;
}
.navbar nav {
  display: flex;
  gap: 2vw;
}
.navbar nav a {
  color: var(--main-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.navbar nav a.active {
  color: var(--accent);
  font-weight: 800;
  border-bottom: 2.5px solid var(--accent);
  background: rgba(214, 249, 91, 0.12);
  transition: background 0.2s, color 0.2s, border-bottom 0.2s;
}
.navbar nav a:hover {
  color: var(--button);
  border-bottom: 2px solid var(--button);
}
.navbar .icons {
  display: flex;
  gap: 1.2rem;
  font-size: 1.1rem;
}
.navbar .icons a {
  color: var(--main-text);
  padding: 0.3em 0.6em;
  border-radius: 0.5em;
  transition: background 0.15s, color 0.2s;
  border: 1.5px solid #e5e5e5;
  background: #fff;
  margin-left: 0.1em;
}
.navbar .icons a:hover {
  background: var(--accent);
  color: var(--main-text);
  border-color: var(--accent);
}
.navbar .menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  margin-left: 1rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    padding: 0 3vw;
    height: auto;
  }
  .navbar nav {
    flex-direction: column;
    width: 100vw;
    gap: 0.7rem;
    display: none;
    background: #fff;
    position: absolute;
    left: 0;
    top: 64px;
    z-index: 99;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    box-sizing: border-box;
  }
  .navbar nav.show { display: flex; }
  .navbar .menu-toggle { display: block; }
}
@media (max-width: 600px) {
  .navbar {
    padding: 0 3vw;
    height: auto;
    min-height: 56px;
  }
}
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 3vw;
    gap: 0.4rem;
  }
  .navbar nav {
    top: 52px;
    padding-bottom: 0.7rem;
    gap: 0.5rem;
  }
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60vh;
  padding: 8vw 5vw 6vw 5vw;
  background: var(--main-bg);
  gap: 4vw;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.hero-content { max-width: 600px; flex: 1 1 0; }
.hero-title {
  font-size: clamp(1.6rem, 6vw, 2.7rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.12;
  letter-spacing: -1px;
}
.hero-title .highlight,
.hero-title .highlight-1 {
  background: var(--accent);
  color: var(--main-text);
  padding: 0.13em 0.4em;
  border-radius: 0.2em;
  box-shadow: 2px 3px 0 #22223b22;
  display: inline-block;
  transform: rotate(-4deg);
  font-size: 1.08em;
  font-weight: 900;
}
.hero-title .highlight-1 {
  background: var(--button);
}
.hero-desc {
  color: #444;
  margin-bottom: 1.5rem;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  line-height: 1.7;
  max-width: 420px;
}
.hero-btn {
  background: var(--button);
  color: var(--button-text);
  font-weight: bold;
  padding: 0.9em 1.5em;
  border-radius: 0.7em;
  font-size: 1rem;
  box-shadow: 2px 3px 0 #18181b20;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
  margin-top: 1rem;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}
.hero-btn i { margin-left: 0.7em; font-size: 1.1em; vertical-align: middle; }
.hero-btn:hover {
  background: var(--button-hover);
  color: var(--main-text);
  box-shadow: 0 2px 12px var(--button);
}
.hero-img {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
  max-width: 340px;
  width: 100%;
  box-sizing: border-box;
}
.hero-img img {
  width: 100%;
  max-width: 320px;
  display: block;
  border-style: solid;
  border-color: #d6f95b;
  border-radius: 10px;
  border-width: 4px;
  height: auto;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 7vw 5vw 5vw 5vw;
  }
  .hero-img {
    justify-content: center;
    max-width: 90vw;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 5vw 3vw 4vw 3vw;
    gap: 1.2rem;
  }
  .hero-title {
    font-size: clamp(1.2rem, 7vw, 2.1rem);
  }
  .hero-img img {
    max-width: 120px;
  }
  .hero-btn {
    width: 100%;
    font-size: 0.98rem;
    padding: 0.7em 0;
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: 3vw 2vw 3vw 2vw;
    gap: 1rem;
  }
  .hero-title {
    font-size: 1.05rem;
  }
  .hero-img img {
    max-width: 250px;
  }
}

/* EPISODIOS */
.episode-section {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--main-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 7vw 0;
  box-sizing: border-box;
}
.episode-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95vw;
  max-width: 1100px;
  gap: 3vw;
  padding: 4vw 3vw;
  background: rgba(255,255,255,0.92);
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(44,44,44,0.07);
  box-sizing: border-box;
  flex-wrap: wrap;
}
.episode-info {
  max-width: 530px;
  width: 100%;
  box-sizing: border-box;
}
.episode-info h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: var(--main-text);
}
.episode-info p {
  font-size: 1rem;
  color: var(--main-text);
  margin-bottom: 1.2rem;
}
.episode-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.btn-listen {
  background: var(--accent);
  color: var(--main-text);
  padding: 0.6em 1.2em;
  border-radius: 2em;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  margin-right: 0.3rem;
  box-shadow: 0 2px 8px rgba(44,44,44,0.08);
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-listen:hover {
  background: var(--main-text);
  color: var(--accent);
}
.episode-meta span {
  font-size: 1rem;
  color: var(--main-text);
  font-weight: bold;
}
.episode-img {
  width: 300px;
  max-width: 40vw;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(44,44,44,0.13);
  border: 4px solid var(--button);
  background: #fff;
  height: auto;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .episode-content {
    flex-direction: column;
    gap: 1.5rem;
    min-height: unset;
    width: 99vw;
    padding: 5vw 2vw;
  }
  .episode-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    max-width: 100vw;
  }
}
@media (max-width: 600px) {
  .episode-section {
    padding: 5vw 0;
  }
  .episode-info h2 {
    font-size: 1.05rem;
  }
  .episode-img {
    max-width: 95vw;
    border-width: 2px;
  }
}
@media (max-width: 480px) {
  .episode-content {
    padding: 3vw 1vw;
    gap: 0.7rem;
  }
}

/* AUDIO PLAYER */
.audio-player-box {
  width: 100%;
  max-width: 420px;
  margin: 1.2rem auto 0 auto;
  background: #fff;
  border: 2px solid var(--main-text);
  border-radius: 1.3rem;
  box-shadow: 0 4px 18px #22223b15;
  padding: 1rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  box-sizing: border-box;
}
.custom-audio-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
}
.audio-btn {
  background: var(--main-text);
  color: var(--accent);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #18181b22;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  outline: none;
  z-index: 2;
}
.audio-btn:active {
  transform: scale(0.93);
}
.audio-btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.audio-progress {
  flex: 1 1 0;
  height: 6px;
  background: #eee;
  border-radius: 4px;
  margin: 0 0.7rem;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  min-width: 70px;
  max-width: 160px;
}
.audio-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
  width: 0%;
  transition: width 0.1s;
  position: absolute;
  left: 0;
  top: 0;
}
.audio-time {
  font-size: 0.95rem;
  color: var(--main-text);
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.sound-wave-canvas {
  margin-right: 0.7rem;
  margin-left: 0.5rem;
  display: block;
  background: transparent;
  border-radius: 4px;
}
@media (max-width: 480px) {
  .audio-player-box {
    padding: 0.6rem 0.2rem;
    max-width: 98vw;
  }
}

/* CREADORES */
.creadores-section {
  background: var(--main-bg);
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow);
  padding: 7vw 0;
  box-sizing: border-box;
}
.creadores-content {
  max-width: 900px;
  width: 97vw;
  margin: auto;
  background: rgba(255,255,255,0.95);
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(44,44,44,0.07);
  padding: 5vw 3vw;
  text-align: center;
  box-sizing: border-box;
}
.creadores-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--main-text);
}
.creadores-list {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.creador {
  background: #fff;
  color: var(--main-text);
  border-radius: 1.2rem;
  padding: 1rem 0.7rem;
  text-align: center;
  width: 200px;
  box-shadow: 0 2px 8px rgba(44,44,44,0.09);
  margin-bottom: 0.7rem;
  border: 2px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.creador:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 6px 16px rgba(44,44,44,0.13);
  border-color: var(--button);
}
.creador img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 0.6rem;
  border: 2px solid var(--accent);
  object-fit: cover;
  background: #f7f5f2;
}
.creador h4 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--main-text);
  letter-spacing: -0.5px;
}
.creador p {
  font-size: 0.97rem;
  color: #444;
  margin: 0 0 0.1rem 0;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .creadores-list {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .creador {
    width: 100%;
    max-width: 300px;
  }
}
@media (max-width: 600px) {
  .creadores-content {
    padding: 4vw 2vw;
  }
  .creadores-title {
    font-size: 1.1rem;
  }
  .creador {
    padding: 0.7rem 0.4rem;
    font-size: 0.95rem;
  }
}

/* FEDERALISMO */
.federalismo-section {
  background: #fff;
  width: 100vw;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  padding: 7vw 0;
  box-sizing: border-box;
}
.federalismo-card {
  background: #f9f9ff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px #22223b11;
  padding: 4vw 3vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  width: 97vw;
  border: 2px solid var(--accent);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.federalismo-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--main-text);
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.5;
}
.federalismo-desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.federalismo-link {
  margin-top: 0.6rem;
  display: inline-block;
  background: var(--main-text);
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 2em;
  font-size: 1rem;
  box-shadow: 0 2px 8px #22223b22;
  transition: background 0.2s, color 0.2s;
}
.federalismo-link:hover {
  background: var(--accent);
  color: var(--main-text);
}
.federalismo-illustration {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 0.6rem auto;
  display: block;
  border: solid;
  border-width: 2px;
  border-radius: 7px;
  border-color: #b39ddb;
}

/* RECURSOS */
.recursos-section {
  background: var(--ep4);
  width: 100vw; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow);
  padding: 7vw 0;
  box-sizing: border-box;
}
.recursos-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(44,44,44,0.13);
  overflow: hidden;
  max-width: 700px;
  width: 97vw;
  min-height: 220px;
  box-sizing: border-box;
}
.recurso-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4vw 2vw;
  border-right: 2px solid #f3f3f3;
  background: #f9f9ff;
  gap: 1rem;
  box-sizing: border-box;
}
.recurso-col:last-child {
  border-right: none;
  background: #fffbe7;
}
.recurso-icon {
  font-size: 2.2rem;
  color: var(--main-text);
  background: var(--accent);
  border-radius: 1em;
  padding: 0.3em 0.5em;
  margin-bottom: 0.4em;
  box-shadow: 0 2px 12px #ffe15644;
}
.recurso-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.2em;
  color: #22223b;
  letter-spacing: -1px;
  text-align: center;
}
.recurso-link {
  display: inline-block;
  background: var(--main-text);
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 2em;
  margin-top: 0.5em;
  font-size: 1rem;
  box-shadow: 0 2px 8px #22223b22;
  transition: background 0.2s, color 0.2s;
}
.recurso-link:hover {
  background: var(--accent);
  color: var(--main-text);
}
@media (max-width: 700px) {
  .recursos-card {
    flex-direction: column;
    min-height: unset;
    padding: 0;
  }
  .recurso-col {
    border-right: none;
    border-bottom: 2px solid #f3f3f3;
    padding: 3vw 2vw;
  }
  .recurso-col:last-child {
    border-bottom: none;
  }
}

/* CONTACTO */
.contacto-section {
  background: #f3f3f3;
  width: 100vw; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow);
  padding: 7vw 0;
  box-sizing: border-box;
}
.contacto-content {
  max-width: 600px;
  width: 97vw;
  margin: auto;
  background: rgba(255,255,255,0.95);
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(44,44,44,0.07);
  padding: 5vw 3vw;
  text-align: center;
  box-sizing: border-box;
}
.contacto-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  color: var(--main-text);
}
.contacto-correos {
  margin: 1.2rem 0 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
}
.correo-autor {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(44,44,44,0.09);
  padding: 0.7rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  border: 2px solid var(--button);
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-all;
  overflow-wrap: break-word;
}
.correo-autor i {
  color: var(--button);
  font-size: 1.2rem;
}
.correo-autor span {
  font-weight: bold;
  color: var(--main-text);
  margin-right: 0.4em;
}
.contact-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.contact-socials a {
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s;
  color: var(--main-text);
}
.contact-socials a:hover {
  transform: scale(1.12) rotate(-7deg);
  color: var(--button);
}
.contacto-texto {
  color: #444;
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
}

/* ULTRA RESPONSIVE */
@media (max-width: 600px) {
  .creadores-content,
  .contacto-content {
    padding: 4vw 2vw;
  }
  .creadores-title,
  .contacto-title {
    font-size: 1.1rem;
  }
  .creador {
    padding: 0.7rem 0.3rem;
    font-size: 0.95rem;
  }
  .correo-autor {
    padding: 0.5rem 0.3rem;
    font-size: 0.93rem;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-all;
    overflow-wrap: break-word;
  }
  .contacto-correos {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 2vw;
    gap: 0.3rem;
  }
  .hero,
  .episode-section,
  .creadores-section,
  .federalismo-section,
  .recursos-section,
  .contacto-section {
    padding: 3vw 0;
  }
  .hero {
    gap: 0.7rem;
  }
  .episode-content {
    padding: 2vw 1vw;
    gap: 0.5rem;
  }
  .audio-player-box {
    padding: 0.4rem 0.1rem;
    max-width: 99vw;
  }
  .creadores-content, .contacto-content {
    padding: 2vw 1vw;
  }
  .correo-autor {
    padding: 0.35rem 0.1rem;
    font-size: 0.9rem;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-all;
    overflow-wrap: break-word;
  }
  .contacto-correos {
    gap: 0.3rem;
  }
}

/* GENERAL: Asegura que todas las imágenes y videos sean responsivos */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* GENERAL: Box-sizing para todo */
*, *::before, *::after {
  box-sizing: border-box;
}
