:root {
  --azul-oscuro: #18499a;
  --azul-medio: #428ecc;
  --azul-claro: #94c8ee;
  --azul-pastel: #e3f2fd;
  --blanco: #ffffff;
  --negro: #0b1220;
  --font-display: "Titan One", cursive;
  --font-body: "Poppins", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

main section[id] { scroll-margin-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--azul-pastel);
  color: var(--negro);
  overflow-x: hidden;
}

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

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--azul-oscuro);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  width: 90px;
  animation: pulse-scale 1.1s ease-in-out infinite;
}

.loader-bar {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--azul-claro);
  animation: loader-sweep 1s ease-in-out infinite;
}

@keyframes loader-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.team-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.team-card:nth-child(2) { transition-delay: 0.08s; }
.team-card:nth-child(3) { transition-delay: 0.16s; }
.team-card:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(24, 73, 154, 0.55);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
  background: rgba(24, 73, 154, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand { display: inline-flex; }

.nav-logo {
  height: 48px;
  transition: height 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

.header.scrolled .nav-logo { height: 40px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--azul-claro);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--azul-claro); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--azul-claro); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  width: 30px;
  height: 22px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px;
  padding-bottom: 2rem;
  background: linear-gradient(160deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
  text-align: center;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: float-blob 12s ease-in-out infinite;
  pointer-events: none;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: var(--azul-claro);
  top: -10%;
  left: -8%;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: var(--azul-pastel);
  bottom: -5%;
  right: -6%;
  animation-delay: -6s;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.hero-wave {
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 110%;
  opacity: 0.15;
  filter: brightness(0) invert(1);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-logo {
  width: 170px;
  margin: 0 auto 2rem;
  animation: float-logo 4.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 4.2rem);
  letter-spacing: 2px;
  line-height: 1.15;
  background: linear-gradient(100deg, var(--blanco) 30%, var(--azul-claro) 50%, var(--blanco) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-subtitle {
  color: var(--azul-claro);
  font-size: 1.15rem;
  margin-top: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-schedule {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--blanco);
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.hero-about {
  max-width: 460px;
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.scroll-cue {
  display: inline-block;
  margin-top: 2.5rem;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  position: relative;
}

.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--azul-claro);
  border-radius: 2px;
  animation: scroll-cue-move 1.6s ease-in-out infinite;
}

@keyframes scroll-cue-move {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 6px; }
}

/* ---------- Wave dividers ---------- */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  line-height: 0;
  z-index: 2;
}

.wave-divider svg { width: 100%; height: 100%; display: block; }
.wave-divider path { fill: var(--fill); }

/* ---------- Player ---------- */
.player-section {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--azul-pastel);
  overflow: hidden;
}

.player-card {
  width: 100%;
  max-width: 700px;
  background: var(--blanco);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(24, 73, 154, 0.15);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.player-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(24, 73, 154, 0.22);
}

.player-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul-pastel), var(--azul-claro));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-icon {
  width: 30px;
  filter: invert(24%) sepia(60%) saturate(1500%) hue-rotate(190deg);
}

.player-info { flex: 1; }

.player-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azul-medio);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--azul-medio);
  animation: dot-pulse 1.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(66, 142, 204, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(66, 142, 204, 0); }
}

.dot.dot-live {
  background: #22c55e;
  animation: dot-pulse-live 1.2s ease-in-out infinite;
}

@keyframes dot-pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

.player-status.is-live { color: #22c55e; }
.player-status.is-error { color: #b45309; }

.player-info h2 {
  font-family: var(--font-display);
  color: var(--azul-oscuro);
  font-size: 1.5rem;
  margin: 0.5rem 0 0.25rem;
}

.player-info p { color: #555; margin-bottom: 0.75rem; }
.player-info p a { color: var(--azul-medio); font-weight: 600; text-decoration: none; }
.player-info p a:hover { text-decoration: underline; }

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.eq-bars span {
  display: block;
  width: 3px;
  height: 100%;
  background: var(--azul-medio);
  border-radius: 2px;
  animation: eq-bounce 1.2s ease-in-out infinite;
  animation-play-state: paused;
  transform-origin: bottom;
  transition: background 0.3s ease;
}

.eq-bars.playing span {
  animation-play-state: running;
  background: #22c55e;
}

.eq-bars span:nth-child(1) { animation-delay: 0s; }
.eq-bars span:nth-child(2) { animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { animation-delay: 0.1s; }
.eq-bars span:nth-child(5) { animation-delay: 0.25s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.play-button {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--azul-claro);
  color: var(--azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.15s ease;
}

.play-button:hover { background: var(--azul-medio); color: var(--blanco); }
.play-button:active { transform: scale(0.94); }
.play-button.playing { background: var(--azul-oscuro); color: var(--blanco); }

.play-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--azul-claro);
  animation: ring-pulse 2s ease-out infinite;
}

@keyframes ring-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Sections generic ---------- */
.section-title {
  font-family: var(--font-display);
  text-align: center;
  color: var(--azul-oscuro);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

/* ---------- Episodes ---------- */
.episodes-section {
  position: relative;
  padding: 6rem 1.5rem 7rem;
  background: var(--blanco);
  overflow: hidden;
}

.episodes-list {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--azul-pastel);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(24, 73, 154, 0.15);
}

.episode-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  font-family: var(--font-display);
  color: var(--azul-oscuro);
  font-size: 0.85rem;
  line-height: 1.3;
}

.episode-info { flex: 1; min-width: 0; }

.episode-info h3 {
  color: var(--azul-oscuro);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.episode-info p {
  color: #667;
  font-size: 0.85rem;
}

.episode-card audio {
  width: 320px;
  max-width: 45vw;
  height: 36px;
}

.episode-external {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #1db954;
  color: var(--blanco);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.episode-external:hover { background: #17a44a; transform: translateY(-2px); }

.episodes-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--azul-pastel);
  border-radius: 16px;
  color: #667;
}

.episodes-empty img {
  width: 48px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

.episodes-empty strong {
  display: block;
  color: var(--azul-oscuro);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.episodes-latest {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.episode-featured {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(120deg, var(--azul-oscuro), var(--azul-medio));
  color: var(--blanco);
  border-radius: 18px;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 14px 34px rgba(24, 73, 154, 0.25);
}

.episode-featured-tag {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--azul-claro);
  color: var(--azul-oscuro);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.episode-featured .episode-date { color: var(--azul-claro); }
.episode-featured .episode-info h3 { color: var(--blanco); font-size: 1.15rem; }
.episode-featured .episode-info p { color: rgba(255, 255, 255, 0.75); }
.episode-featured audio { width: 320px; flex-shrink: 0; }
.episode-featured .episode-external { flex-shrink: 0; }

.episodes-toolbar {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 1.25rem;
}

.episodes-toolbar input {
  width: 100%;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 73, 154, 0.15);
  background: var(--azul-pastel);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--negro);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.episodes-toolbar input:focus {
  outline: none;
  border-color: var(--azul-medio);
  box-shadow: 0 0 0 3px rgba(66, 142, 204, 0.15);
  background: var(--blanco);
}

.episodes-more {
  position: relative;
  z-index: 1;
  display: block;
  margin: 1.25rem auto 0;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--azul-medio);
  background: transparent;
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.episodes-more:hover { background: var(--azul-oscuro); color: var(--blanco); }

.episodes-no-results {
  text-align: center;
  color: #778;
  padding: 1.5rem;
}

.team-section {
  position: relative;
  padding: 5rem 1.5rem 7rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--azul-pastel);
  overflow: hidden;
}

.section-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  transform: translate(-50%, -50%);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.team-note {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

.team-tier {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.team-subtitle {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--azul-medio);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.team-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.team-card {
  width: 220px;
  text-align: center;
  background: var(--blanco);
  border: 1px solid rgba(24, 73, 154, 0.08);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 6px 20px rgba(24, 73, 154, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 36px rgba(24, 73, 154, 0.2);
  border-color: rgba(24, 73, 154, 0.2);
}

.team-card.featured {
  width: 240px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(24, 73, 154, 0.15);
  box-shadow: 0 10px 30px rgba(24, 73, 154, 0.15);
}

.team-card.small {
  width: 170px;
  padding: 1.25rem 1rem;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul-claro), var(--azul-medio));
  background-size: cover;
  background-position: center;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.team-card.featured .team-photo {
  width: 140px;
  height: 140px;
  box-shadow: 0 0 0 4px var(--blanco), 0 0 0 7px var(--azul-claro);
}

.team-card.small .team-photo { width: 88px; height: 88px; }

.team-card:hover .team-photo { transform: scale(1.06) rotate(-3deg); }

.team-card h3 {
  color: var(--azul-oscuro);
  font-size: 1.1rem;
}

.team-card.small h3 { font-size: 0.95rem; }

.team-card p {
  color: #777;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.team-card.featured p {
  color: var(--azul-medio);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* ---------- Contact ---------- */
.contact-section {
  position: relative;
  padding: 6rem 1.5rem 8rem;
  background: linear-gradient(180deg, var(--azul-pastel) 0%, var(--azul-claro) 100%);
  overflow: hidden;
}

.section-subtitle {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--azul-oscuro);
  opacity: 0.75;
  margin-top: -1.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.contact-grid {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

/* Chat widget */
.chat-widget {
  background: var(--blanco);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(24, 73, 154, 0.15);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.chat-widget:hover { box-shadow: 0 18px 44px rgba(24, 73, 154, 0.2); }

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(120deg, var(--azul-oscuro), var(--azul-medio));
  color: var(--blanco);
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px;
}

.chat-header-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }

.chat-header strong { font-size: 0.95rem; }

.chat-ig-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-ig-link:hover {
  background: linear-gradient(135deg, #4f5bd5, #962fbf, #d62976, #fa7e1e, #feda75);
  transform: scale(1.08);
}

.chat-hint a { color: var(--azul-medio); font-weight: 600; text-decoration: none; }
.chat-hint a:hover { text-decoration: underline; }

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--azul-claro);
}

.chat-status .dot { background: #6ee7a0; animation: dot-pulse-green 1.6s ease-in-out infinite; }

@keyframes dot-pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(110, 231, 160, 0); }
}

.chat-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--azul-pastel);
  min-height: 70px;
}

.bubble {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: bubble-in 0.3s ease;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble-in {
  align-self: flex-start;
  background: var(--blanco);
  color: var(--negro);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(24, 73, 154, 0.08);
}

.bubble-out {
  align-self: flex-end;
  background: var(--azul-oscuro);
  color: var(--blanco);
  border-bottom-right-radius: 4px;
  word-break: break-word;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
}

.chat-form input,
.chat-form textarea {
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-form input:focus,
.chat-form textarea:focus {
  outline: none;
  border-color: var(--azul-medio);
  box-shadow: 0 0 0 3px rgba(66, 142, 204, 0.15);
}

.chat-send {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  background: var(--azul-oscuro);
  color: var(--blanco);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.chat-send:hover { background: var(--azul-medio); }
.chat-send:active { transform: scale(0.97); }

.chat-hint {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.8rem;
  color: #888;
  transition: color 0.2s ease;
}

.chat-hint.success { color: var(--azul-medio); font-weight: 600; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(3); opacity: 0; }
}


/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--azul-oscuro);
  color: var(--azul-claro);
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  overflow: hidden;
}

.footer-logo {
  width: 70px;
  margin: 0 auto 1rem;
  position: relative;
  opacity: 0.9;
}

.footer p {
  position: relative;
  font-size: 0.85rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100vh;
    background: linear-gradient(160deg, var(--azul-oscuro), var(--azul-medio));
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a { font-size: 1.4rem; }
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .player-card { flex-direction: column; text-align: center; }
  .player-info p a { display: inline; }
  .section-watermark { width: 380px; }
  .team-tier { gap: 1.25rem; }
}

@media (max-width: 600px) {
  .hero-content { padding: 1.5rem 1.25rem; }
  .hero-logo { width: 130px; }
  .hero-title { letter-spacing: 1px; }
  .blob-1, .blob-2 { width: 260px; height: 260px; }
  .player-card { padding: 1.5rem; }
  .team-card { width: 100%; max-width: 260px; }
  .team-card.featured { width: 100%; max-width: 280px; }
  .team-card.small { width: 100%; max-width: 220px; }
  .team-tier { flex-direction: column; align-items: center; }
  .chat-header { padding: 0.85rem 1rem; }
  .chat-form, .chat-body { padding: 1rem; }
  .section-watermark { width: 280px; }
  .episode-featured { flex-direction: column; text-align: center; }
  .episode-featured audio { width: 100%; }
  .episode-card { flex-direction: column; text-align: center; }
  .episode-card audio { width: 100%; max-width: 100%; }
}

@media (max-width: 400px) {
  .hero-schedule { font-size: 0.8rem; padding: 0.45rem 0.9rem; }
  .nav-logo { height: 40px; }
}
