/**
 * Espacios page component styles — Smart Catering Child · Fase 5
 *
 * Estilos específicos del template page-espacios.php. Reutiliza tokens y
 * componentes globales (.sc-section, .sc-eyebrow, .sc-button, .sc-prose,
 * .sc-watermark).
 *
 * Namespaced bajo body.scc-fase0 .scc-espacios.
 *
 * @package SmartCateringChild
 */

/* ===== Prose (mismo patrón que sobre/bodas) ===== */
body.scc-fase0 .scc-espacios .sc-prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.78);
  margin: 0 0 1.5rem;
}
body.scc-fase0 .scc-espacios .sc-prose p:last-child { margin-bottom: 0; }
/* ===== 1. HERO ===== */
body.scc-fase0 .sc-espacios-hero {
  padding-top: clamp(8rem, 18vh, 12rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
}
body.scc-fase0 .sc-espacios-hero__title {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-dark, #000);
  margin: 1.5rem 0 0;
}
body.scc-fase0 .sc-espacios-hero__lead {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 2rem;
  max-width: 48rem;
}

/* ===== 2. INTRO ===== */
body.scc-fase0 .sc-espacios-intro {
  padding-top: clamp(4rem, 8vh, 5rem);
  padding-bottom: clamp(4rem, 8vh, 5rem);
}
body.scc-fase0 .sc-espacios-intro__lead {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.85);
}

/* ===== 3. FINCA DESTACADA ===== */
body.scc-fase0 .sc-espacios-featured {
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
}
body.scc-fase0 .sc-espacios-featured__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  body.scc-fase0 .sc-espacios-featured__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}
body.scc-fase0 .sc-espacios-featured__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}
body.scc-fase0 .sc-espacios-featured__media img {
  /* Absolute-cover: height:100% resolves to auto inside an aspect-ratio box
   * (indefinite height), so portrait sources stretched the card. Taking the
   * img out of flow lets aspect-ratio win. Same fix on card/pending medias. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
body.scc-fase0 .sc-espacios-featured__media:hover img { transform: scale(1.03); }
body.scc-fase0 .sc-espacios-featured__title {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
}
body.scc-fase0 .sc-espacios-featured__lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
  margin: 0 0 1.5rem;
}
body.scc-fase0 .sc-espacios-featured__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body.scc-fase0 .sc-espacios-featured__tags li {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent, #B99C66);
  border: 1px solid rgba(185, 156, 102, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* ===== 4. FINCAS CON FICHA (grid 2 cols) ===== */
body.scc-fase0 .sc-espacios-list {
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
}
body.scc-fase0 .sc-espacios-list__header {
  margin-bottom: clamp(3rem, 5vh, 4rem);
  max-width: 48rem;
}
body.scc-fase0 .sc-espacios-list__header .sc-section__title {
  margin-top: 0.75rem;
}
body.scc-fase0 .sc-espacios-list__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  body.scc-fase0 .sc-espacios-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
body.scc-fase0 .sc-espacios-card {
  background: var(--color-cream, #F8F7F2);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
body.scc-fase0 .sc-espacios-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
body.scc-fase0 .sc-espacios-card__media {
  /* The media is an <a>: without display:block the aspect-ratio box never
   * forms and the absolute img collapses to 0 height. */
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}
body.scc-fase0 .sc-espacios-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.scc-fase0 .sc-espacios-card__body { padding: 2rem; }
body.scc-fase0 .sc-espacios-card__title {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}
body.scc-fase0 .sc-espacios-card__lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 1rem;
}
body.scc-fase0 .sc-espacios-card__cta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent, #B99C66);
}

/* ===== 5. FINCAS PENDIENTES (grid 3 cols, placeholder con nombre) ===== */
body.scc-fase0 .sc-espacios-pending {
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
}
body.scc-fase0 .sc-espacios-pending__header {
  margin-bottom: clamp(3rem, 5vh, 4rem);
  max-width: 48rem;
}
body.scc-fase0 .sc-espacios-pending__header .sc-section__title { margin-top: 0.75rem; }
body.scc-fase0 .sc-espacios-pending__header .sc-section__lead { margin-top: 1rem; }
body.scc-fase0 .sc-espacios-pending__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  body.scc-fase0 .sc-espacios-pending__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  body.scc-fase0 .sc-espacios-pending__grid { grid-template-columns: repeat(3, 1fr); }
}
body.scc-fase0 .sc-espacios-pending__card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  padding-bottom: 1.5rem;
}
/* Pending card photo (B2 markup emits __media when an image resolves; it never
 * had rules, so images rendered unconstrained). Mirrors the card media fix. */
body.scc-fase0 .sc-espacios-pending__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}
body.scc-fase0 .sc-espacios-pending__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
body.scc-fase0 .sc-espacios-pending__card:hover .sc-espacios-pending__media img {
  transform: scale(1.03);
}
body.scc-fase0 .sc-espacios-pending__placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ECE7DC 0%, #F8F7F2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
}
body.scc-fase0 .sc-espacios-pending__placeholder span {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}
body.scc-fase0 .sc-espacios-pending__title {
  font-family: var(--font-serif, "Merriweather", serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 1.5rem 0.35rem;
}
body.scc-fase0 .sc-espacios-pending__meta {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent, #B99C66);
  margin: 0 1.5rem;
}

/* ===== 6. CTA dark ===== */
body.scc-fase0 .sc-espacios-cta {
  padding-top: clamp(5rem, 10vh, 7rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
  text-align: center;
}
body.scc-fase0 .sc-espacios-cta__inner > div > .sc-section__title {
  margin: 1rem 0 1.25rem;
}
body.scc-fase0 .sc-espacios-cta__inner > div > .sc-section__lead {
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
