:root {
  --bg-color: #ffffff;
  --panel-bg: rgba(255, 255, 255, 0.85);
  --accent-red: #E63946;
  --accent-blue: #1D3557;
  --accent-yellow: #F4A261;
  --text-main: #1d1d1f;
  --text-muted: #5e5e60;
  --glass-border: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.08);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

#waveCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

.app-container {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: var(--accent-blue);
  text-shadow: 2px 4px 10px rgba(29, 53, 87, 0.15);
}

.highlight {
  color: var(--accent-red);
  font-style: italic;
}

.day-selector {
  display: inline-flex;
  gap: 1rem;
  background: var(--panel-bg);
  padding: 0.5rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px var(--shadow-color);
  margin: 0 auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--accent-blue);
}

.tab-btn.active {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 4px 10px rgba(29, 53, 87, 0.3);
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.clock-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.15));
}

svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.slice {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center;
  stroke: var(--bg-color);
  stroke-width: 4px;
}

.slice:hover {
  transform: scale(1.03);
  filter: brightness(1.05) drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.slice.active-show {
  stroke: var(--accent-red);
  stroke-width: 6px;
  filter: drop-shadow(0 0 15px rgba(230, 57, 70, 0.4));
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% {
    filter: drop-shadow(0 0 5px rgba(230, 57, 70, 0.2));
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.6));
  }

  100% {
    filter: drop-shadow(0 0 5px rgba(230, 57, 70, 0.2));
  }
}

.blinking-dot {
  animation: blink-dot 2s ease-in-out infinite;
}

@keyframes blink-dot {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

.slice-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 15px;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  
  /* Esto elimina el trazo (stroke) heredado del contenedor (.slice) */
  stroke: none;
}

.clock-center {
  fill: var(--bg-color);
  stroke: var(--glass-border);
  stroke-width: 2px;
}

.clock-center-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  fill: var(--accent-blue);
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.clock-mark {
  stroke: var(--text-muted);
  stroke-width: 2px;
}

.clock-mark-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  fill: var(--text-muted);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Hands styles */
.clock-hand-hour {
  stroke: var(--accent-blue);
  stroke-width: 8px;
  stroke-linecap: round;
  transition: transform 0.5s cubic-bezier(0.4, 2.08, 0.55, 0.44);
  transform-origin: center;
  pointer-events: none;
}

.clock-hand-minute {
  stroke: var(--accent-red);
  stroke-width: 5px;
  stroke-linecap: round;
  transition: transform 0.5s cubic-bezier(0.4, 2.08, 0.55, 0.44);
  transform-origin: center;
  pointer-events: none;
}

.clock-center-dot {
  fill: var(--accent-yellow);
  stroke: var(--accent-red);
  stroke-width: 3px;
  pointer-events: none;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 100;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--accent-red);
}

.modal-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.host-photo-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-yellow);
  box-shadow: 0 5px 15px rgba(244, 162, 97, 0.4);
  flex-shrink: 0;
}

.host-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.show-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1.2;
}

.host-name {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 600;
}

.schedule-time {
  font-size: 0.9rem;
  color: var(--accent-red);
  background: rgba(230, 57, 70, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin-top: 0.5rem;
  align-self: flex-start;
  font-weight: 600;
}

.modal-body {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.show-description {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

.listen-btn {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  font-family: 'Montserrat', sans-serif;
}

.listen-btn:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 53, 87, 0.4);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .day-selector {
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 20px;
  }

  .tab-btn {
    padding: 0.6rem 1rem;
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
  }

  .schedule-time {
    align-self: center;
  }
}

/* --- Host Profile Styles --- */
.clickable-host {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.clickable-host:hover {
  color: var(--accent-red);
  transform: translateY(-2px);
}

.clickable-host::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.clickable-host:hover::after {
  transform: scaleX(1);
}

.profile-modal {
  max-width: 600px;
  text-align: center;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-photo-container {
  width: 150px;
  height: 150px;
  border-width: 5px;
}

.profile-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-blue);
}

.profile-body {
  border-top: none;
  padding-top: 0;
}

.profile-bio {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: justify;
  margin-bottom: 2rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom Scrollbar for Bio */
.profile-bio::-webkit-scrollbar {
  width: 6px;
}
.profile-bio::-webkit-scrollbar-track {
  background: var(--glass-border);
  border-radius: 10px;
}
.profile-bio::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 10px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  color: white;
}

.btn-youtube {
  background: #FF0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover {
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
}