body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
}

header {
  background: linear-gradient(90deg, #e63946, #2a9d8f, #457b9d);
  color: white;
  padding: 30px;
  text-align: center;
}

nav {
  background: #c9a227;
  padding: 10px;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.post {
  background: white;
  padding: 20px;
  border-left: 6px solid #e63946;
  margin-bottom: 20px;
  border-radius: 6px;
}

.post h2 a {
  color: #457b9d;
  text-decoration: none;
}

.post h2 a:hover {
  color: #e63946;
}

.post.rojo { border-left: 6px solid #e63946; }
.post.verde { border-left: 6px solid #2a9d8f; }
.post.azul { border-left: 6px solid #457b9d; }
.post.dorado { border-left: 6px solid #c9a227; }

.post {
  background: white;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.categoria {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: .4rem;
}

/* Colores cápsula */
.rojo { border-left: 6px solid #d62828; }
.verde { border-left: 6px solid #2a9d8f; }
.azul { border-left: 6px solid #457b9d; }
.dorado { border-left: 6px solid #c9a227; }


.fecha {
  font-size: 0.85em;
  color: #777;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 600px) {
  header {
    padding: 20px;
  }
}
.buscador {
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.buscador input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 25px;
  border: 2px solid #c97c5d;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.buscador input:focus {
  border-color: #953c36;
  box-shadow: 0 0 0 3px rgba(149,60,54,.15);
}

.post.rojo    { border-left: 6px solid #d62828; }
.post.verde   { border-left: 6px solid #2a9d8f; }
.post.azul    { border-left: 6px solid #457b9d; }
.post.dorado  { border-left: 6px solid #c9a227; }

.post {
  transition: transform .2s ease, box-shadow .2s ease;
}

.post:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.post-detalle {
  max-width: 700px;
  margin: 2rem auto;
}

.post-detalle p {
  line-height: 1.7;
  margin-bottom: 1rem;
}
.post-detalle {
  color: #457b9d;
}
.post-detalle {
  color: #333;
}

.post-detalle h2,
.post-detalle h3 {
  color: #457b9d;
}


nav .activo {
  color: inherit;        /* mismo color que el resto */
  font-weight: bold;
  cursor: default;
  text-decoration: none;
}
nav a {
  text-decoration: none;
}
.filtro {
  padding: 8px 16px;
  border-radius: 20px;
  background: #f2f2f2;
  color: #457b9d;        /* mismo azul que los articles */
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  border: 2px solid transparent;
}
.filtro.rojo   { border-color: #d62828; }
.filtro.verde  { border-color: #2a9d8f; }
.filtro.azul   { border-color: #457b9d; }
.filtro.dorado { border-color: #c9a227; }
.filtro {
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* Hover general */
.filtro:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  background-color: #ffffff;
}

/* Hover por color (detalle fino) */
.filtro.rojo:hover {
  border-color: #d62828;
}

.filtro.verde:hover {
  border-color: #2a9d8f;
}

.filtro.azul:hover {
  border-color: #457b9d;
}

.filtro.dorado:hover {
  border-color: #c9a227;
}
.filtro {
  will-change: transform;
}
.layout {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.anuncio {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.anuncio:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.anuncio img {
  width: 100%;
  display: block;
}

.anuncio span {
  display: block;
  padding: 8px;
  font-size: 0.85rem;
  color: #457b9d;
  text-align: center;
  background: #f8f5f2;
}

.anuncio a {
  text-decoration: none;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.anuncio {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.anuncio:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.anuncio img {
  width: 100%;
  display: block;
}

.anuncio span {
  display: block;
  padding: 8px;
  font-size: 0.85rem;
  color: #457b9d;
  text-align: center;
  background: #f8f5f2;
}

.anuncio a {
  text-decoration: none;
}
.cabecera {
  text-align: center;
  padding: 20px 10px;
}

.logo img {
  max-width: 140px;   /* ajusta según tu logo */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.cabecera p {
  font-size: 1rem;
  color: #666;
}
@media (max-width: 600px) {
  .filtros {
    gap: 6px;
    margin: 10px 0;
  }

  .filtro {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 14px;
  }
}
/* Textos del sistema Nespresso */
.post.rojo,
.post.rojo h2,
.post.rojo h3,
.post.rojo p {
  color: #457b9d;
}
.fabricante {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #eaeaea;
  flex-wrap: wrap;
}

.fabricante .icono {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.fabricante img {
  width: 24px;
  height: 24px;
}

.fabricante a {
  color: #457b9d;
  text-decoration: none;
  font-weight: 600;
}

.fabricante a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .fabricante {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
