/* =============================================================
   WEB STUDIO — preview.css
   Componentes compartidos por las mini-páginas concepto
   (extiende ../styles.css, mismos tokens)
   ============================================================= */

.preview-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.2rem;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .02em;
  padding: .7rem 1.25rem;
}
@media (min-width: 720px) { .preview-banner { padding-inline: 2.5rem; } }
.preview-banner strong { font-weight: 700; }
.preview-banner a {
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}

/* Media placeholder block (no real photography in a concept) */
.media-block {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, var(--gray-200) 0 1px, transparent 1px 14px),
    var(--gray-100);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.media-block svg { width: 34%; height: 34%; stroke: var(--gray-400); stroke-width: 1.2; fill: none; }

/* Generic card grids */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.p-card { background: var(--bg); padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.p-card-title { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; }
.p-card-meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-500); }
.p-card-desc { color: var(--gray-700); font-size: .92rem; }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .3rem; font-family: var(--mono); }
.p-card-price { font-weight: 800; font-size: 1.05rem; }

/* List rows (menu items, program modules, etc.) */
.list-rows { border-top: 1px solid var(--line); }
.list-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.list-row-main { display: flex; flex-direction: column; gap: .3rem; }
.list-row-name { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; }
.list-row-desc { color: var(--gray-500); font-size: .85rem; max-width: 46ch; }
.list-row-value { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.list-row-num { font-family: var(--mono); font-size: .78rem; color: var(--gray-300); font-weight: 800; }

/* Pricing tiers */
.price-card { background: var(--bg); padding: 2rem 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.price-card.is-featured { background: var(--ink); color: var(--bg); }
.price-card.is-featured .price-feat { color: var(--gray-300); }
.price-card.is-featured .price-tag { border-color: var(--bg); }
.price-name { font-family: var(--mono); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: inherit; opacity: .7; }
.price-value { font-family: var(--sans); font-weight: 800; font-size: 2.2rem; }
.price-value span { font-family: var(--mono); font-size: .9rem; font-weight: 500; opacity: .6; }
.price-feat { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; color: var(--gray-700); }
.price-feat li::before { content: "— "; font-family: var(--mono); }
.price-tag { align-self: flex-start; font-family: var(--mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; border: 1px solid var(--ink); padding: .3rem .55rem; }

/* Pill filters (inert, visual only) */
.filter-bar { display: flex; flex-wrap: wrap; gap: .8rem; }
.filter-pill {
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  border: 1.5px solid var(--ink); padding: .7rem 1.1rem;
  background: var(--bg); color: var(--ink); appearance: none;
  cursor: pointer;
}

/* Mock form (visual only, non-functional) */
.form-mock { display: grid; gap: 1rem; max-width: 30rem; }
@media (min-width: 640px) { .form-mock.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field label { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); }
.form-field input, .form-field select {
  font-family: var(--sans); font-size: .95rem; padding: .8rem .9rem;
  border: 1.5px solid var(--ink); background: var(--bg); color: var(--ink);
}
.form-field.full { grid-column: 1 / -1; }

/* Badges / tags row */
.tag-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag-pill {
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  border: 1px solid var(--line); padding: .45rem .8rem;
  color: var(--gray-700);
}

/* Testimonial */
.testimonial { max-width: 56ch; }
.testimonial-quote { font-family: var(--sans); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.4; }
.testimonial-who { margin-top: 1rem; font-family: var(--mono); font-size: .82rem; color: var(--gray-500); }

/* Horizontal image carousel (place photos, dish photos, etc.) */
.gallery { position: relative; }
.gallery-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .2rem .2rem 1rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 82%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .gallery-slide { flex-basis: 44%; } }
@media (min-width: 1000px) { .gallery-slide { flex-basis: 29.5%; } }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-slide:hover img { transform: scale(1.05); }
.gallery-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; }
.gallery-arrows { display: flex; gap: .7rem; }
.gallery-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s, color .15s;
}
.gallery-arrow:hover { background: var(--ink); color: var(--bg); }
.gallery-arrow svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.gallery-dots { display: flex; gap: .5rem; }
.gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-300); border: 0; cursor: pointer; padding: 0; transition: background-color .2s, width .2s; }
.gallery-dot.is-active { background: var(--ink); width: 20px; border-radius: 4px; }

/* Reservation / form confirmation card (hidden until JS reveals it) */
.reserva-confirm {
  display: none; flex-direction: column; align-items: flex-start; gap: 1rem;
  padding: 2rem; border: 1.5px solid var(--ink); border-radius: var(--radius); max-width: 30rem;
}
.reserva-confirm.is-visible { display: flex; }
.reserva-confirm-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reserva-confirm-icon svg { width: 24px; height: 24px; stroke: var(--bg); stroke-width: 2.4; fill: none; }
.reserva-confirm h3 { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; }
#reservaForm.is-hidden { display: none; }
