/* ── Cocina page styles (nav/footer via common.css) ── */

/* HERO */
.hero {
  background: var(--warm-white); border-bottom: 1px solid rgba(74,69,64,0.07);
  padding: 9rem 5rem 5rem; display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; max-width: 1300px; margin: 0 auto;
}
.eyebrow { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.75rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--stone); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero p { font-size: 1.05rem; color: var(--stone-mid); font-weight: 300; margin-bottom: 2rem; line-height: 1.8; }
.hero-stats { display: flex; gap: 2rem; }
.hstat { display: flex; flex-direction: column; }
.hstat-n { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 500; color: var(--stone); line-height: 1; }
.hstat-l { font-size: 0.75rem; color: var(--stone-mid); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hv-card { border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.hv-card:nth-child(1) { background: var(--terra-light); grid-column: span 2; flex-direction: row; align-items: center; gap: 1.25rem; }
.hv-card:nth-child(2) { background: var(--sage-light); }
.hv-card:nth-child(3) { background: var(--gold-light); margin-top: 1rem; }
.hv-card:nth-child(4) { background: var(--sky-light); }
.hv-card:nth-child(5) { background: var(--lav-light); margin-top: -1rem; }
.hv-emoji { font-size: 2rem; line-height: 1; }
.hv-card h3 { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 500; color: var(--stone); }
.hv-card p { font-size: 0.78rem; color: var(--stone-mid); }

/* FILTERS */
.filters-bar {
  background: white; border-bottom: 1px solid rgba(74,69,64,0.08);
  position: sticky; top: 68px; z-index: 100; padding: 0 2.5rem;
}
.filters-inner { max-width: 1300px; margin: 0 auto; padding: 0.85rem 0; display: flex; flex-direction: column; gap: 0.6rem; }

.search-row { display: flex; align-items: center; gap: 1rem; }
.search-box { position: relative; flex: 1; max-width: 340px; }
.search-box i { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--stone-mid); font-size: 0.82rem; pointer-events: none; }
.search-box input {
  width: 100%; padding: 0.55rem 1rem 0.55rem 2.4rem;
  border: 1.5px solid rgba(74,69,64,0.13); border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; color: var(--stone);
  background: var(--cream); outline: none; transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--sage); }
.results-count { font-size: 0.82rem; color: var(--stone-mid); margin-left: auto; }
.btn-clear { background: none; border: 1.5px solid rgba(74,69,64,0.13); color: var(--stone-mid); padding: 0.35rem 0.9rem; border-radius: 100px; font-size: 0.78rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s; }
.btn-clear:hover { border-color: var(--sage); color: var(--sage); }

/* Dropdowns de filtro */
.filter-dropdowns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filter-dropdown { position: relative; }

.fd-toggle {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.95rem;
  border: 1.5px solid rgba(74,69,64,0.13);
  border-radius: 100px;
  background: var(--cream);
  font-family: 'Inter', sans-serif; font-size: 0.82rem;
  color: var(--stone-mid); cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.fd-toggle:hover, .filter-dropdown.open .fd-toggle {
  border-color: var(--sage); color: var(--sage); background: var(--sage-light);
}
.fd-arrow { font-size: 0.65rem; transition: transform 0.2s; }
.filter-dropdown.open .fd-arrow { transform: rotate(180deg); }

.fd-badge {
  background: var(--sage); color: white;
  border-radius: 100px; font-size: 0.68rem; font-weight: 600;
  padding: 0.1rem 0.45rem; line-height: 1.4;
}

.fd-panel {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: white;
  border: 1.5px solid rgba(74,69,64,0.1);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(74,69,64,0.1);
  z-index: 200;
  min-width: 280px;
}
.filter-dropdown.open .fd-panel { display: block; }

.filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.fpill {
  padding: 0.32rem 0.85rem; border-radius: 100px; font-size: 0.8rem;
  border: 1.5px solid rgba(74,69,64,0.13); background: var(--cream);
  color: var(--stone-mid); cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif;
}
.fpill:hover { border-color: var(--sage); color: var(--sage); }
.fpill.active { background: var(--sage-light); border-color: var(--sage); color: var(--sage); font-weight: 500; }
.btn-clear:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* GRID */
.grid-section { max-width: 1300px; margin: 0 auto; padding: 2.5rem 2.5rem 5rem; }
.recipes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* RECIPE CARD */
.recipe-card {
  background: white; border: 1px solid rgba(74,69,64,0.08); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(74,69,64,0.1); }
.recipe-card.hidden { display: none; }

.card-img {
  aspect-ratio: 4/3; overflow: hidden; position: relative;
  background: var(--cream);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.recipe-card:hover .card-img img { transform: scale(1.05); }
.card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }

.cal-badge {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(250,247,242,0.95); backdrop-filter: blur(4px);
  padding: 0.22rem 0.65rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 500; color: var(--stone);
  border: 1px solid rgba(74,69,64,0.1);
}

.origen-badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: rgba(250,247,242,0.9); padding: 0.2rem 0.55rem;
  border-radius: 100px; font-size: 0.7rem; font-weight: 500;
  color: var(--stone-mid);
}

.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.card-tipo {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 0.18rem 0.6rem; border-radius: 100px;
  align-self: flex-start;
}
.tipo-desayuno { background: var(--gold-light); color: var(--gold); }
.tipo-almuerzo { background: var(--sage-light); color: var(--sage); }
.tipo-cena     { background: var(--lav-light);  color: var(--lavender); }
.tipo-snack    { background: var(--terra-light); color: var(--terracotta); }
.tipo-postre   { background: var(--sky-light);   color: var(--sky); }
.tipo-sopa     { background: #FFF0E8; color: #C07040; }
.tipo-ensalada { background: #EEF8EC; color: #5A8E5E; }
.tipo-batido   { background: #F0EEFA; color: #7A70AA; }

.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 500; color: var(--stone); line-height: 1.35; }
.card-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.78rem; color: var(--stone-mid); margin-top: auto; padding-top: 0.6rem; border-top: 1px solid rgba(74,69,64,0.07); flex-wrap: wrap; }
.card-ingredients { font-size: 0.75rem; color: var(--stone-mid); line-height: 1.5; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 5rem 2rem; grid-column: 1/-1; }
.empty-state p { font-size: 1rem; color: var(--stone-mid); }
.empty-state .big { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(74,69,64,0.5); z-index: 300; align-items: center; justify-content: center; padding: 1.5rem; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal {
  background: var(--warm-white); border-radius: 24px; max-width: 760px; width: 100%;
  position: relative; overflow: hidden; max-height: 92vh; overflow-y: auto;
}
.modal-img { width: 100%; aspect-ratio: 16/7; overflow: hidden; background: var(--cream); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.modal-content { padding: 2rem 2.25rem 2.5rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(250,247,242,0.9); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--stone); backdrop-filter: blur(4px); z-index: 10; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 500; color: var(--stone); line-height: 1.25; }
.modal-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.modal-badge { font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.75rem; border-radius: 100px; }
.modal-info-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding: 1rem; background: white; border-radius: 14px; border: 1px solid rgba(74,69,64,0.07); }
.modal-info-item { display: flex; flex-direction: column; gap: 0.15rem; }
.modal-info-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone-mid); }
.modal-info-val { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 500; color: var(--stone); }
.modal-section-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 500; color: var(--stone); margin-bottom: 0.75rem; margin-top: 1.5rem; }
.modal-ingredients { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.modal-ingredient { padding: 0.25rem 0.7rem; background: var(--cream); border: 1px solid rgba(74,69,64,0.1); border-radius: 100px; font-size: 0.8rem; color: var(--stone-mid); }
.modal-steps { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-step { display: flex; gap: 1rem; align-items: flex-start; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--sage-light); color: var(--sage); font-size: 0.78rem; font-weight: 500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step-t { font-size: 0.88rem; color: var(--stone-mid); line-height: 1.65; }


/* FOTOS DE LA COMUNIDAD */
.foto-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(74,69,64,0.08);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.foto-card:hover { box-shadow: 0 6px 20px rgba(74,69,64,0.1); }

.foto-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}
.foto-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s;
}
.foto-card:hover .foto-img-wrap img { transform: scale(1.03); }

.foto-body { padding: 0.85rem 1rem 1rem; }
.foto-titulo { font-size: 0.88rem; font-weight: 500; color: var(--stone); margin-bottom: 0.4rem; }
.foto-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.76rem; color: var(--stone-mid); margin-bottom: 0.6rem;
}
.foto-autor { display: flex; align-items: center; gap: 0.3rem; }

.foto-stars {
  display: flex; align-items: center; gap: 0.2rem;
}
.star-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(74,69,64,0.2); font-size: 0.9rem;
  padding: 0.1rem; transition: color 0.15s; line-height: 1;
}
.star-btn.active { color: var(--gold); }
.star-btn.mia    { color: var(--terracotta); }
.star-btn:hover  { color: var(--gold); }
.foto-stars-label { font-size: 0.78rem; color: var(--stone-mid); margin-left: 0.3rem; }

/* RESPONSIVE */
@media (max-width: 1100px) { .recipes-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 8rem 2.5rem 4rem; }
  .hero-visual { display: none; }
  .recipes-grid { grid-template-columns: repeat(2,1fr); }
  .filters-bar { padding: 0 1.5rem; }
  .grid-section { padding: 2rem 1.5rem 4rem; }
}
@media (max-width: 600px) {
  .hero { padding: 7rem 1.25rem 3rem; }
  .recipes-grid { grid-template-columns: 1fr; }
  .grid-section { padding: 1.5rem 1.25rem 3rem; }
}
