/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Roboto:wght@400;700&display=swap');

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #0d0d0d; /* fondo negro */
  color: #fff;
  line-height: 1.6;
 
}

/* Enlaces */
a {
  color: #ff7518; /* naranja Halloween */
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}
a:hover {
  color: #ffa500;
  text-shadow: 0 0 6px #ff7518;
}

/* Contenedor principal */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* Header y Nav */
.site-header {
  background-color: #111;
  border-bottom: 2px solid #ff7518;
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  font-weight: 700;
}

.brand {
  font-family: 'Creepster', cursive; /* fuente spooky para logo */
  font-size: 1.8rem;
  color: #ff7518;
  margin-left: 20px;
}

/* Language switcher */
.language-switcher button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 2rem;
}


#medilista{margin-left: 20px;}

.hero-left {
  flex: 1 1 400px;
}

.hero-right {
  flex: 1 1 400px;
}

/* Tagline */
.tagline {
  font-family: 'Creepster', cursive;
  color: #ff7518;
  font-size: 1.5rem;
  margin: 1rem 0;
}

/* Fact list */
.factlist {
  list-style: none;
  margin: 1rem 0;
}
.factlist li {
  margin-bottom: 0.5rem;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  margin-top: 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #222;
  color: #ff7518;
  border: 2px solid #ff7518;
}
.btn:hover {
  background-color: #ff7518;
  color: #111;
}
.btn.primary {
  background-color: #ff7518;
  color: #111;
}
.btn.primary:hover {
  background-color: #ffa500;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border: 2px solid #ff7518;
  border-radius: 12px;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  display: block;
}
.carousel-controls {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

/* Download grid for media.html */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.asset {
  background-color: #111;
  border: 2px solid #ff7518;
  padding: 1rem;
  border-radius: 10px;
}

/* Cards for contact.html */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background-color: #111;
  border: 2px solid #ff7518;
  padding: 1rem;
  border-radius: 10px;
}

/* Footer Halloween Style */
.site-footer {
  background-color: #111;
  border-top: 2px solid #ff7518;
  padding: 2rem 0;
  margin-top: 2rem;
  color: #fff;
}

.footer-inner {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.footer-inner div:first-child {
  margin-bottom: 0.5rem;
}

/* Redes sociales con emoticonos */
.footer-inner .socials a {
  margin-right: 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: #ff7518;
  transition: all 0.3s;
  text-decoration: none;
}
.footer-inner .socials a:hover {
  color: #ffa500;
  text-shadow: 0 0 6px #ff7518;
}

#social-lista{
  margin: 10px;
}

/* Responsive */
@media(max-width:768px){
  .hero { flex-direction: column; }
  .hero-left, .hero-right { flex: 1 1 100%; }
}

#banderas{
  margin-right:20px;
}

/* --- Devlog --- */
.devlog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

/* Igual altura para sidebar y main-devlog */
.devlog-container.equal-height {
  align-items: stretch; /* esto hace que sidebar tenga la misma altura que main-devlog */
}

/* Noticia principal centrada */
.main-devlog {
  flex: 1 1 65%;
  max-width: 65%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.main-devlog-img {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  margin: 20px 0;
}

.main-devlog p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

/* Sidebar de artículos */
.devlog-sidebar {
  flex: 1 1 30%;
  max-width: 30%;
  background-color: #111;
  border: 2px solid #ff7518;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto; /* ahora se ajusta automáticamente a la altura del main-devlog */
}

.devlog-sidebar h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.devlog-item {
  margin-bottom: 10px;
}

.devlog-item a {
  color: #ff7518;
  font-weight: 700;
  text-decoration: none;
}

.devlog-item a:hover {
  color: #ffa500;
  text-shadow: 0 0 6px #ff7518;
}

/* Botón dentro del devlog */
.devlog-content .btn {
  margin-top: 1rem;
}

/* Responsive */
@media(max-width: 900px){
  .devlog-container {
    flex-direction: column;
  }

  .main-devlog, .devlog-sidebar {
    max-width: 100%;
  }
}

.devlog-date {
  display: block;       /* se asegura que esté en línea separada */
  color: #ffffff;       /* blanco */
  font-size: 0.9rem;    /* tamaño más pequeño que el título */
  margin-bottom: 10px;  /* separación del contenido siguiente */
}

/* Banner vertical independiente y centrado */
.spooky-vertical-banner {
  display: flex;
  justify-content: center; /* centra horizontalmente */
  margin: 40px 0; /* espacio arriba y abajo */
}

.spooky-vertical-banner img {
  width: auto;      /* mantiene proporción original */
  height: auto;     /* mantiene proporción original */
  max-width: 748px; /* ancho máximo según tu proporción */
  max-height: 896px; /* altura máxima según tu proporción */
  display: block;
  border-radius: 12px; /* opcional: borde redondeado */
}
