/* ========================================
   BLOG.CSS - Estilos compartidos del blog
   ======================================== */

/* Reset bÃ¡sico */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* TipografÃ­a y cuerpo */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.8;
  color: #2c2c2c;
  background: #f9f9f9;
}

/* NavegaciÃ³n */
nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 2rem;
}

/* Layout principal */
main {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

/* ArtÃ­culo */
article {
  background: #fff;
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Encabezados */
h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  font-weight: 700;
}

h2 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #34495e;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.8rem;
  color: #2c3e50;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Imagen estilo revista */
.magazine-img {
  float: left;
  width: 45%;
  max-width: 340px;
  height: 260px;
  object-fit: cover;
  border-radius: 1rem;
  margin: 0.5rem 1.5rem 1rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  shape-outside: margin-box;
}

/* PÃ¡rrafos */
p {
  margin-bottom: 1.2rem;
  text-align: justify;
  font-size: 1.05rem;
}

/* Letra capital estilo revista */
article > p:first-of-type::first-letter {
  font-size: 3.2rem;
  float: left;
  line-height: 0.8;
  padding-right: 0.6rem;
  color: #c0392b;
  font-weight: bold;
}

/* Listas */
ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* BotÃ³n */
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.6rem;
  background: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #1a252f;
}

.btn-secondary {
  background: #7f8c8d;
}

.btn-secondary:hover {
  background: #616a6b;
}

/* Limpiar floats */
.clearfix::before {
  content: "";
  display: table;
  clear: both;
}

/* Tablas (si las usas en algÃºn artÃ­culo) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1rem;
}

th, td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background: #f4f4f4;
  font-weight: 600;
}

/* Bloques de cÃ³digo o citas */
blockquote {
  border-left: 4px solid #c0392b;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}

/* ========================================
   RESPONSIVE - MÃ³viles
   ======================================== */
@media (max-width: 600px) {
  article {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .magazine-img {
    float: none;
    width: 100%;
    max-width: 100%;
    height: 220px;
    margin: 0 0 1.5rem 0;
    display: block;
  }

  p {
    text-align: left;
  }
}