@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jolly+Lodger&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;700&display=swap');



/* porfavor usar estos nombres de clases para los estilos...
.body-bg: fondo del sitio
.section-bg: fondo de cada sección
.text-main: texto normal
.title: títulos principales (h1, h2)
.subtitle: subtítulos (h3, h4)
.btn: botón general
.btn:hover : hover en botones
.link : para enlaces
.card-bg  : fondo de cajas tipo "tarjeta"
.border : bordes y líneas divisoras
.shadow-dark : sombras para elementos flotantes
*/

.body-bg {
  background-color: #0a0a0a;
  color: #212529;
}

.main-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 1100px;
  padding: 1.5rem;
  background-color: #121212;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.18);
}



.preview-section {
  flex: 1 1 300px;
  min-width: 300px;
  background-color: #181818;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.12);
  padding: 1.5rem;
  margin: 0.5rem 0;
  border: 1px solid #2a2a2a;
}


.section-bg {
  background-color: #121212;
}

.text-main {
  color: #e0e0e0;
}

.title {
  font-family: 'Jolly Lodger', cursive;
  font-size: 2.2rem;
  font-weight: 700;
  color: #e50914;
  text-decoration: none;
}

.subtitle {
  color: #ff3c00;
  font-family: 'Jolly Lodger', cursive;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.subtitle-link:hover {
  color: #ff6f00;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.3s ease, text-underline-offset 0.3s ease;
}

.btn {
  background-color: #e50914;
  color: #fff; /* short hex is fine */
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 120px;
}


.btn:hover {
  background-color: #5f070b;
}

.link {
  color: #5bcefa;
  text-decoration: none;
}

.link:hover {
  color: #6e6e6e;
  text-decoration: underline;
}

.border {
  border: 1px solid #2a2a2a;
}

.card {
  padding: 1.2rem;
  border-radius: 0.5rem;
  margin: 2rem 2rem;
  border: 1px solid #2a2a2a;
}

.card-bg {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}


.shadow-dark {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  color: #e0e0e0;
  background-color: #0a0a0a;
}

.line-spacing {
    line-height: 1.6;
}

header {
  padding: 1rem;
  text-align: center;
}

footer {
  color: #fff;
  padding: 2rem 1rem; /* kept from VMz69, bigger padding */
  font-size: 14px;
  text-align: center;
  position: relative;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.93), rgba(23, 23, 23, 0.93)),
    url(../images/ghost.png);
  background-repeat: repeat;
  background-size: 32px;
  background-position: top left;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 12px;
  color: #aaa;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.article-header-img {
  display: block;
  width: auto;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 0.5rem;
}

  .preview-img-global {
    display: block;
    width: 50%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  .contact-form-section {
            max-width: 500px;
            margin: 2rem auto;
            border-radius: 12px;
            box-shadow: 0 2px 16px rgba(0,0,0,0.08);
            padding: 2rem 2.5rem;
        }
        .contact-form label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            letter-spacing: 0.02em;
        }
        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            margin-bottom: 1.5rem;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 1rem;
            background: #b2b2b2;
            transition: border-color 0.2s;
        }
        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: #0077cc;
            outline: none;
            background: #fff;
        }
        .contact-form textarea {
            resize: vertical;
        }
        .contact-form .btn {
            display: block;
            width: 100%;
            padding: 0.9rem 0;
            font-size: 1.1rem;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
            box-shadow: 0 1px 6px rgba(0,0,0,0.07);
        }
        .contact-form .btn:hover {
          transition: background 0.2s;
                }

@media (max-width: 600px) {
  .card {
    margin: 1rem;
    padding: 1rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .btn {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .article-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-img {
    width: 100%;
    height: auto;
    max-width: 300px;
  }
  

  .article-header-img {
    margin: 1rem auto;
    height: 200px;
  }

  .sidebar {
    position: static;
    width: auto;
    max-width: none;
    margin-top: 1rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .card {
    margin: 1.5rem;
  }

  .title {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .btn {
    flex: 1 1 30%;
    max-width: 30%;
  }

  .article-preview {
    gap: 0.75rem;
  }

  .article-header-img {
    margin: 1rem auto;
    height: 300px;
  }

  .sidebar {
    position: static;
    width: auto;
    max-width: none;
    margin-top: 1rem;
  }
}

@media (min-width: 1025px) {
  .card { max-width: 900px; margin: 2rem auto; }

  #post { box-sizing: border-box;  }

#post{
    margin-right: 500px;         
    width: min(900px, calc(100vw - 360px - 4rem));
  }

  #post.card { max-width: none; }

  .sidebar {
    position: fixed;
    top: 110px; 
    right: 2rem;
    width: 320px;
    max-width: 320px;
    margin: 0;
    z-index: 50;
  }

  .article-header-img { margin: 1rem auto; height: 400px; }
  .article-preview { gap: 1rem; }
  .sidebar .article-preview { align-items: center; gap: .75rem; }
  .sidebar .preview-img { width: 80px; height: 80px; object-fit: cover; }

}

@media (max-width: 1024px) {
  #post{ margin-right: 0; width: auto; }
  .sidebar{ position: static; width: auto; max-width: none; margin-top: 1rem; }
}

