/* RESET SUAVE */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Merriweather', serif;
  background-color: #f5f1ea;
  color: #2e2a27;
  line-height: 1.6;
}

/* BASE ESTABLE PARA TODO EL SITIO */

html {
  scroll-behavior: smooth;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  word-break: break-word;
}

.container,
.contenedor {
  width: 95%;
  max-width: 1200px;
  margin-inline: auto;
}

/* CONTENEDOR GENERAL */
.contenedor {
  width: 95%;
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.header {
  background: #3e2723;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.logo {
  font-size: 2.4rem;
  letter-spacing: 1px;
}

.subtitulo {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 8px;
}

/* NAV */
.nav {
  background: #7b2d26;
}

.nav-contenido {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.nav a:hover {
  opacity: 0.8;
}

/* LAYOUT */

.layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  margin: 40px auto;

}

/* DESTACADO */
.destacado {
  background: white;
  padding: 30px;
  margin-bottom: 40px;
  border-left: 6px solid #7b2d26;
}

.destacado h2 {
  margin-bottom: 15px;
}

.destacado {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: white;
  border-left: 6px solid #7b2d26;
  overflow: hidden;
}

.destacado-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destacado-contenido {
  padding: 30px;
}

.leer-mas {
  display: inline-block;
  margin-top: 15px;
  color: #7b2d26;
  text-decoration: none;
  font-weight: bold;
}

.leer-mas:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .destacado {
    grid-template-columns: 1fr;
  }
}

/* GRID ARTÍCULOS */
.grid-articulos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 20px;
  border: 1px solid #e0d8cf;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  color: #7b2d26;
  text-decoration: none;
  font-weight: bold;
}

/* IMAGENES */
img {
  border-radius: 6px;
}

.destacado-img {
  border-radius: 0;
  /* el destacado puede quedarse recto si quieres más seriedad */
}

.destacado h2 a {
  text-decoration: none;
  color: inherit;
}

.destacado h2 a:hover {
  color: #7b2d26;
}

/* LAYOUT ARTÍCULO */
.layout-articulo {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 50px;
  margin: 60px auto;
}

.articulo-principal {
  max-width: 760px;
  line-height: 1.7;
  font-size: 18px;
  color: #2a2a2a;
}

.articulo-principal p {
  margin-bottom: 18px;
}

.articulo-principal ul {
  padding-left: 24px;
  margin: 20px 0;
}

.articulo-principal li {
  margin-bottom: 10px;
}

.articulo-contenido {
  background: white;
  padding: 35px;
  border: 1px solid #e0d8cf;
}

.titulo-articulo {
  font-size: 1.9rem;
  margin-bottom: 15px;
}

.subtitulo-articulo {
  font-size: 1.25rem;
  margin-bottom: 32px;
  color: #5a5a5a;
  line-height: 1.65;
  font-weight: 400;
}

.articulo-contenido p {
  margin-bottom: 20px;
}

.articulo-contenido h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.articulo-img {
  width: 100%;
  margin-bottom: 35px;
}

blockquote {
  border-left: 4px solid #7b2d26;
  padding-left: 15px;
  margin: 25px 0;
  font-style: italic;
  color: #444;
}

/* SIDEBAR ARTÍCULO */
.articulo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.bloque-lateral {
  background: white;
  padding: 20px;
  border: 1px solid #e0d8cf;
}

.bloque-lateral h4 {
  margin-bottom: 15px;
}

.bloque-lateral ul {
  list-style: none;
}

.bloque-lateral li {
  margin-bottom: 10px;
}

.bloque-lateral a {
  text-decoration: none;
  color: #3e2723;
}

.bloque-lateral a:hover {
  text-decoration: underline;
}

/* FIRMA */

.firma {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #777;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .layout-articulo {
    grid-template-columns: 1fr;
  }
}

.card img,
.promo img {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* SIDEBAR */
.sidebar>* {
  margin-bottom: 25px;
}

.sidebar h4 {
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  text-decoration: none;
  color: #3e2723;
}

.sidebar a:hover {
  text-decoration: underline;
}

.promo {
  background: white;
  padding: 10px;
  border: 1px solid #e0d8cf;
  text-align: center;
}

.promo img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.promo a {
  text-decoration: none;
  color: #2a2a2a;
  font-weight: bold;
  font-size: 0.9rem;
}

.anuncio-lateral img {
  width: 100%;
  border-radius: 6px;
}

.actualizado {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #777;
}


/* BLOQUE MERCADO */

/* PANEL MERCADO MEJORADO */

.mercado {
  padding: 18px 22px;
  background: #fafafa;
  border-left: 3px solid #222;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mercado-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e6e6e6;
}

.mercado-item:last-child {
  border-bottom: none;
}

.mercado-info {
  display: flex;
  flex-direction: column;
}

.mercado-nombre {
  font-weight: 600;
  font-size: 0.95rem;
}

.mercado-precio {
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  color: #333;
}

.mercado-variacion {
  font-weight: 700;
  font-size: 1rem;
}

/* Subida */
.subida .mercado-variacion {
  color: #2e7d32;
}



/* Bajada */
.bajada .mercado-variacion {
  color: #c62828;
}



.mercado-fecha {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #777;
}

.mercado h4 {
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}


/* FOOTER */
.footer {
  background: #3e2723;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* FECHA Y CATEGORIA */
.meta {
  font-size: 0.9rem;
  color: #8a8178;
  /* gris cálido */
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.fecha-publicacion {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

/* ENLACES DE HEADER EN SUBPAGINAS */
nav a.active {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
}

/* CLASIFICADOSS */
/* CONTENEDOR */

.titulo-seccion {
  font-size: 28px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.intro-clasificados {
  max-width: 720px;
  margin-bottom: 35px;
  color: #444;
  line-height: 1.6;
}


/* BLOQUE PUBLICAR */

.publicar-anuncio {
  background: #f5f5f5;
  padding: 22px;
  margin-bottom: 40px;
  border-left: 5px solid #8b5e3c;
}

.publicar-anuncio h3 {
  margin-top: 0;
}

.publicar-anuncio .email {
  font-weight: 700;
  font-size: 18px;
  color: #8b5e3c;
}


/* LISTA */

.lista-clasificados {
  display: flex;
  flex-direction: column;
  gap: 28px;
}


/* BLOQUE CLASIFICADO */

.clasificado {
  padding-bottom: 22px;
  border-bottom: 1px solid #e3e3e3;
}

.clasificado h3 {
  font-size: 20px;
  margin: 8px 0 8px 0;
  line-height: 1.4;
}


/* CABECERA */

.clasificado-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 1px;
}


/* ETIQUETA */

.tipo {
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}


/* COLORES */

.oferta .tipo {
  background: #e6f4ea;
  color: #1e6b3a;
}

.demanda .tipo {
  background: #fdeaea;
  color: #a12828;
}


/* FECHA */

.fecha {
  color: #777;
  font-size: 12px;
}


/* TEXTO */

.clasificado p {
  line-height: 1.6;
  color: #333;
}


/* CONTACTO */

.contacto {
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
}

.contacto a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
}

.contacto a:hover {
  text-decoration: underline;
}


/* ---------------- */
/* RESPONSIVE */
/* ---------------- */

@media (max-width:900px) {

  .titulo-seccion {
    font-size: 24px;
  }

  .clasificado h3 {
    font-size: 18px;
  }

}


@media (max-width:600px) {

  .publicar-anuncio {
    padding: 18px;
  }

  .clasificado {
    padding-bottom: 18px;
  }

  .clasificado-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .tipo {
    font-size: 11px;
  }

  .fecha {
    font-size: 11px;
  }

  .clasificado h3 {
    font-size: 17px;
  }

  .clasificado p {
    font-size: 15px;
  }

}

/* FUTUROS */
.indicador-mercado {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 20px;
}

.indicador-mercado.alcista {
  background-color: #e6f4ea;
  color: #1e7e34;
}

.indicador-mercado.neutral {
  background-color: #f2f2f2;
  color: #555;
}

.indicador-mercado.bajista {
  background-color: #fdecea;
  color: #a12622;
}

.nota-legal {
  font-size: 0.85rem;
  color: #777;
  margin-top: 30px;
}

.titulo-articulo {
  margin-bottom: 10px;
}

.indicador-mercado {
  margin-bottom: 25px;
}

.lista-futuros {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 30px 0;
}

.item-futuro {
  display: block;
  padding: 12px 15px;
  border: 1px solid #e0d8cf;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: all 0.2s ease;
}

.item-futuro:hover {
  background-color: #f7f4f1;
  border-color: #7b2d26;
}

/* HOME RECETAS */


.recetas-home {
  margin: 60px auto;
  padding: 0 20px;
}

.hero-recetas {
  text-align: center;
  margin-bottom: 60px;
}

.logo-recetas {
  font-family: Georgia, serif;
  margin-bottom: 20px;
}

.logo-100 {
  font-size: 60px;
  font-weight: bold;
  color: #6b3e26;
  display: block;
}

.logo-texto {
  font-size: 28px;
  color: #3e2a1f;
}

.intro-recetas {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  color: #555;
}

.categorias-recetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card-receta {
  text-decoration: none;
  background: #f7f1ea;
  padding: 20px;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #3e2a1f;
}

.card-receta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-receta h2 {
  margin-top: 15px;
  font-size: 22px;
}

.receta {
  max-width: 800px;
  margin: 60px auto;
}


.receta img {
  width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

.ingredientes,
.preparacion {
  margin-top: 30px;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 20px;
  color: #8a6a55;
}

.breadcrumb a {
  color: #8a6a55;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.meta-receta {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  font-size: 15px;
  color: #6b3e26;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item .icono {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Iconos personalizados */
.tiempo .icono {
  background-image: url('/imagenes/iconos/reloj.svg');
}

.dificultad .icono {
  background-image: url('/imagenes/iconos/gorro-chef.svg');
}

.categoria .icono {
  background-image: url('/imagenes/iconos/taza.svg');
}

.categoria-recetas {
  margin: 60px auto;
}

.cabecera-categoria {
  margin-bottom: 40px;
}

.cabecera-categoria h1 {
  font-size: 32px;
  color: #3e2a1f;
  margin-bottom: 10px;
}

.grid-recetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card-receta {
  max-width: 320px;
}

.card-receta img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card-receta {
  width: 100%;
  text-decoration: none;
  color: #3e2a1f;
  transition: transform 0.2s ease;
}

.card-receta:hover {
  transform: translateY(-5px);
}

.card-contenido h2 {
  font-size: 18px;
  margin-bottom: 5px;
}

.bebidas {
  background-color: #f3e8df;
  background-image: url('/imagenes/ilustraciones/bebidas.svg');
}

.imagen-categoria {
  height: 260px;
  /* más vertical */
  border-radius: 18px;
  background-position: center 60%;
  background-repeat: no-repeat;
  background-size: 200px;
  /* más presencia */
  background-color: #f3e8df;
}


.helados {
  background-color: #efe2d6;
  background-image: url('/imagenes/ilustraciones/helados.svg');
}

.postres {
  background-color: #f7ede5;
  background-image: url('/imagenes/ilustraciones/postres.svg');
}

.logo-recetas img {
  width: 320px;
  max-width: 90%;
  display: block;
  margin: 40px auto;
}

/* TEXTO BLOQUE GRAFICO ANUAL */
.meta-grafico {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
  line-height: 1.4;
  text-align: center;
}

/* EVENTOS */
.grid-eventos {

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 30px;

}

.evento-card {

  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #222;
  transition: transform .2s ease, box-shadow .2s ease;

}

.evento-card:hover {

  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);

}

.evento-imagen img {

  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;

}

.evento-contenido {

  padding: 18px;

}

.evento-contenido h3 {

  font-size: 18px;
  margin-bottom: 6px;

}

.evento-meta {

  font-size: 13px;
  color: #777;
  margin-bottom: 10px;

}

.evento-contenido p {

  font-size: 14px;
  line-height: 1.5;

}

/* ===============================
BLOQUE EVENTO
=============================== */

.evento {

  background: #ffffff;
  border: 1px solid #e6e6e6;
  transition: all 0.25s ease;
}

.evento:hover {

  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

}

/* Imagen */

.evento img {

  width: 100%;
  height: 180px;
  object-fit: cover;

}

/* Contenido */

.evento-contenido {

  padding: 18px;

}

.evento h3 {

  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.3;

}

.evento p {

  font-size: 14px;
  color: #444;
  line-height: 1.5;

}

/* Fecha */

.evento-meta {

  margin-top: 10px;
  font-size: 13px;
  color: #8a8a8a;

}

/* Botón */

.evento-boton {

  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #6b4f2a;
  text-decoration: none;
}

.evento-boton:hover {

  text-decoration: underline;

}

/* BOTÓN CONTACTO EMAIL */

/* ================================
BOTÓN EMAIL
================================ */

.boton-email {
  display: inline-block;
  background: #7b2d26;
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease;
}

.boton-email:hover {
  background: #5e201b;
  transform: translateY(-1px);
}


.boton-email:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nota-contacto {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #777;
}

.pagina-simple {
  padding: 40px;
}

.pagina-contenido {
  max-width: 750px;
}

/* ================================
RESPONSIVE
================================ */

@media (max-width:900px) {

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

}

@media (max-width:600px) {

  .grid-recetas {
    grid-template-columns: 1fr;
  }

}

.layout .card {
  max-width: 100%;
}

/* ===============================
EVENTOS GRID
=============================== */

.eventos-grid {

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;

}

/* Tablet */

@media (max-width:1024px) {

  .eventos-grid {

    grid-template-columns: repeat(2, 1fr);

  }

}

/* Móvil */

@media (max-width:640px) {

  .eventos-grid {

    grid-template-columns: 1fr;

  }

}

@media (max-width: 768px) {

  .logo-100 {
    font-size: 42px;
  }

  .logo-texto {
    font-size: 22px;
  }

  .intro-recetas {
    font-size: 16px;
    padding: 0 15px;
  }

  .categorias-recetas {
    gap: 20px;
  }

  .card-receta {
    padding: 18px;
  }

  .card-receta h2 {
    font-size: 20px;
  }

}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  overflow-x: hidden;
}