/* ===========================
   Paleta basada en el escudo actualizado:
   - Verde hoja: #007E4F
   - Azul ciencia: #005C80
   - Cian químico: #009CDE
   - Gris acero: #3A3D40
   - Amarillo dorado: #F8B500
   - Azul escudo: #006D6D
   - Azul claro escudo: #A0E6E1
   =========================== */

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #A0E6E1, #FFFFFF);
  color: #003344;
}

/* ===========================
   Header
   =========================== */
header {
  background: linear-gradient(to right, #007E4F, #005C80);
  color: white;
  text-align: center;
  padding: 30px 20px;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}

.home-icon {
  color: white;
}

/* ===========================
   Main layout
   =========================== */
main {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* ===========================
   Podcast Card
   =========================== */
.podcast-card {
  background-color: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 92, 128, 0.2);
  padding: 20px;
  transition: transform 0.3s ease;
  text-align: center;
}

.podcast-card:hover {
  transform: translateY(-5px);
}

.podcast-card img {
  width: 60%;
  max-width: 300px;
  margin: 0 auto 15px auto;
  display: block;
  border-radius: 10px;
}

.podcast-card h2 {
  color: #005C80;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.podcast-card p {
  color: #007E4F;
  font-size: 1em;
}

/* ===========================
   Audio Player and Controls
   =========================== */
.audio-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 15px;
}

.audio-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #009CDE;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.audio-controls {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2em;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2);
}

.audio-player {
  display: none;
}

.extra-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
}

.extra-controls button {
  background-color: #F8B500;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.extra-controls button:hover {
  background-color: #005C80;
}

.volume-slider {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  background: #ccc;
  border-radius: 4px;
  outline: none;
  transition: background 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #007E4F;
  cursor: pointer;
}

/* ===========================
   Botones de Acción
   =========================== */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-buttons button {
  background-color: #F8B500;
  color: white;
  border: none;
  padding: 0.6em;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2em;
  transition: background 0.3s;
}

.action-buttons button:hover {
  background-color: #005C80;
}

/* ===========================
   Menú flotante circular
   =========================== */
.menu-container {
  position: relative;
}

.menu-float {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 92, 128, 0.2);
  border-radius: 50%;
  width: 180px;
  height: 180px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  place-items: center;
  animation: fadeInScale 0.4s ease forwards;
  z-index: 10;
}

.menu-float a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #A0E6E1;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
  color: #003344;
  font-weight: bold;
}

.menu-float a:hover {
  background-color: #005C80;
  color: white;
}

/* ===========================
   Footer decorado
   =========================== */
footer {
  background-color: #003344;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

.footer-text {
  margin: 0;
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-logo {
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

/* ===========================
   Logo con animación
   =========================== */
.logo {
  width: 150px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1px;
  animation: fadeInScale 1.2s ease-out;
}

/* ===========================
   Animaciones y Scroll Reveal
   =========================== */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 600px) {
  header h1 {
    font-size: 2em;
  }

  .podcast-card h2 {
    font-size: 1.2em;
  }

  .podcast-card p {
    font-size: 0.95em;
  }

  .logo {
    width: 90px;
  }
}
