/* Fuentes */
@font-face {
  font-family: "Porkys";
  src: url("../fonts/PORKH___.TTF") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Porkys-regular";
  src: url("../fonts/PORKYS_.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset y base */
body {
  margin: 0;
  font-family: sans-serif;
  color: #ffffff;
  background: linear-gradient(160deg, #62067e, #eb4179, #fb7266);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Contenedor principal */
.container-custom {
  max-width: 99%;
  padding: 0 20px;
  margin: 0 auto;
}

/* NAV estilos base */
.navbar {
  background: transparent;
  text-align: center;
  padding-top: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, color 0.3s ease;
  padding: 0.5em 0.9em;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-bottom: 0.2em;
}

.top-header {
  display: flex;
  flex-direction: column;
}

/* Responsive */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column-reverse;
  }

  #page-title {display: none;}/* Oculta logo mobile */
  #page-cta{display: none;}/* Oculta parrafo en mobile */

  

  .menu-toggle {
    display: block;
    z-index: 9999;
  }

  .navbar {
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    width: 100%;
    padding: 1em;
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
  }

  .nav-links a {
    padding: 0.8em;
    text-align: left;
  }

.post-image {
  margin-bottom: 1.5em;
  width: 70%;
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0 0 2em 2em;
}

}



/* Estrellas de fondo */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.5);
  }
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

header h1 span {
  font-family: "Porkys";
  display: block;
  text-transform: uppercase;
  font-size: 2.4rem;
  letter-spacing: 2px;
}

header p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Main y secciones */
main {
  flex: 1;
}

.section {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0 20px;
}

.section h2 {
  font-family: "Porkys-regular";
  text-transform: uppercase;
  font-size: 1.8rem;
  text-align: center;
  margin: 1rem 0 1.1rem;
  letter-spacing: 1px;
  padding: 0 1rem;
}

.section h3 {
  font-family: "Porkys-regular";
  text-transform: uppercase;
  font-size: 1.5rem;
  text-align: center;
  margin: 1rem 0 1.1rem;
  letter-spacing: 1px;
  padding: 0 1rem;
}

.section p {
  font-size: 1.1rem;
  text-align: center;
}

iframe {
  width: 100%;
  height: 200px;
  border: none;
}

/* Footer */
footer {
  background: #62067e;
  color: white;
  text-align: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Plataformas */
.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 20px;
  font-size: 3em;
}

.platforms a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: background 0.3s ease;
  text-decoration: none;
  color: white;
  flex: 1 1 150px;
  min-width: 120px;
  height: 80px;
  font-size: 1.1rem;
}

.platforms a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.platforms i {
  margin-right: 5px;
  font-size: 1rem;
}

/* Enlaces personalizados */
a.custom-link {
  color: white;
  text-decoration: underline;
}

a.custom-link:hover {
  color: #62067e;
  text-decoration: none;
}

/* Bestiario */
.bestiario .card {
  background: transparent;
}

.bestiario .card-body {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.9rem;
  margin-top: 0.7rem;
  border-radius: 5px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.bestiario .card-title,
.bestiario .card-text {
  font-size: 1em;
  color: white;
}

/* Contenedor del post */
.post {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

/* Imagen del post */
.post-image-container {
  position: relative;
}



/* Título */
.post-title {
  font-family: "Porkys-regular";
  text-transform: uppercase;
  font-size: 1.9rem;
  color: #fff;
  margin: 1rem;
  letter-spacing: 2px;
}

#page-title a {
  text-decoration: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#page-title a:hover,
#page-title a:focus {
  opacity: 0.8;
}

/* Meta: fecha y duración */
.post-meta {
  color: #ccc;
  font-size: 0.9rem;
  margin: 0 1rem 0.5rem;
  text-align: center;
}

/* Texto */
.post-snippet {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  margin: 0 1rem 1.5rem;
}

/* Botón de Escuchar ahora */
.post-button {
  font-family: "Porkys-regular";
  letter-spacing: 1px;
  display: block;
  background: #62067e;
  color: white;
  text-align: center;
  padding: 0.9rem;
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 0 0 10px 10px;
  transition: background 0.3s ease;
}

.post-button:hover {
  background: #7d0a9f;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 0;
}

.page-info {
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
}

.pagination button {
  background: #62067e;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pagination button:hover:not(:disabled) {
  background: #7d0a9f;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Listados sin puntos */
ul {
  list-style: none;
  max-width: 570px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

ul li {
  font-size: 1em;
  margin-bottom: 1.2em;
  padding-left: 0;
  line-height: 1.6;
  text-align: center;
}

/* Enlaces sección Quienes somos */
.section.maniobra-adama a {
  color: #fff;
  text-decoration: none;
}

.section.maniobra-adama a:hover {
  color: #ddd;
  text-decoration: underline;
}

/* Media Queries Desktop */
@media (min-width: 1200px) {
  .container-custom {
    max-width: 800px;
  }

  .episode-player{ /* Player Ivoox*/
    margin-left: auto;
    margin-right: auto;
    margin-top:1em;
  }


  header h1 span {
    font-size: 2.6rem;
  }

  header p,
  .section p {
    font-size: 1rem;
    text-align: center;
  }

   #page-title{
    margin-bottom:0.5rem;
  }


  .mobile-only{ /* Oculta botón inicio en desktop */
    display: none;
  }

  .post-image {
  margin-bottom: 1.5em;
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0 0 2em 2em;
}

  .section h2 {
    font-size: 2.1rem;
  }

  .maniobra-adama li::before {
    font-size: 1em;
    margin-right: 0.2em;
  }

  .platforms a {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .post-title {
    font-family: "Porkys-regular";
    text-transform: uppercase;
    font-size: 1.9rem;
    color: #fff;
    margin: 1rem;
    letter-spacing: 2px;
  }
}
