:root {
  --bg: #fff3e6;
  /* Alineado con Astra staging (links / texto) */
  --brand-blue: #046bd2;
  --brand-blue-dark: #045cb4;
  --text: #1e293b;
  --accent: #e87722;
  --accent-hover: #cf6618;
  --card: #ffffff;
  --muted: #334155;
  --muted-light: #64748b;
  --border: #ffc896;
  --border-header: #d1d5db;
  --header-bg: #ffffff;
  --layout-max: 1240px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(30, 41, 59, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --fab-offset: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  background: var(--header-bg);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border-header);
}

.site-header__inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 10px 20px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__logo-link {
  flex-shrink: 0;
  line-height: 0;
}

.site-header__logo {
  width: min(176px, 46vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
  flex: 1;
  justify-content: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav__link {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--brand-blue);
}

.site-nav__link.is-current {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.container {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 1rem 20px;
}

.container--catalog {
  padding-bottom: var(--fab-offset);
}

.container--detail {
  padding-bottom: 1.5rem;
}

.hero {
  padding: 0.5rem 0 1rem;
}

.hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.hero__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 4.8vw, 1.85rem);
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}

.hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 38em;
  line-height: 1.45;
}

.chips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.85rem;
  margin: 0 -0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card__media {
  aspect-ratio: 4 / 3;
  background: #fff8f0;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 0.8rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card__cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.card__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 700;
  color: var(--text);
}

.card__measures {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-lg {
  min-height: 48px;
  font-size: 0.95rem;
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-blue);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--brand-blue);
  font-weight: 600;
  min-height: 40px;
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.plazas-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1rem;
}

.plazas-block__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.plazas-block__intro {
  padding: 1rem;
}

.plazas-block__intro h3 {
  margin: 0 0 0.35rem;
  color: var(--text);
}

.plazas-block__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plazas-variants {
  border-top: 1px solid var(--border);
}

.plazas-variant {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #ffe8d4;
}

.plazas-variant:last-child {
  border-bottom: none;
}

.plazas-variant__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.plazas-variant__meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.plazas-variant__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-nav {
  margin-bottom: 0.65rem;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.product-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-page__hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff8f0;
}

.product-page__content {
  padding: 1.1rem 1rem 1.25rem;
  border-bottom: 1px solid #ffe8d4;
}

.product-page__cat {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

.product-page__title {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  line-height: 1.2;
  color: var(--text);
}

.product-page__measures,
.product-page__meta {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-page__measures span,
.product-page__meta-label {
  font-weight: 600;
  color: var(--text);
}

.product-page__cta {
  margin-top: 1.1rem;
}

.product-page__aside {
  padding: 1.1rem 1rem 1.25rem;
  background: #fffaf5;
}

.product-page__aside-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--text);
}

.product-page__aside-text {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer institucional (misma franja que WordPress / Astra) */
.tramp-catalog-footer {
  margin-top: 1.5rem;
}

.tramp-catalog-footer__bar {
  background: #1e293b;
  border-top: 1px solid #334155;
  text-align: center;
  padding: 20px 20px;
}

.tramp-catalog-footer .tramp-footer-lead {
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  margin: 0 0 0.4rem;
  line-height: 1.45;
}

.tramp-catalog-footer .tramp-footer-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.8rem, 2.2vw, 0.875rem);
  margin: 0;
  line-height: 1.45;
}

/* Botón flotante — ver también web-build/trampolin-floating-wa.css */
.tramp-floating-wa {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tramp-floating-wa:hover,
.tramp-floating-wa:focus-visible {
  background: #20bd5a;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.tramp-floating-wa:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.tramp-floating-wa svg {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
}

a.floating-wa.tramp-floating-wa {
  padding: 0;
  font-size: 0;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plazas-variant {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .plazas-variant__actions {
    flex-direction: row;
    align-items: center;
    min-width: 280px;
  }

  .card__actions {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
    padding-bottom: 4px;
  }

  .site-nav__link {
    font-size: 0.86rem;
  }
}

@media (min-width: 960px) {
  .site-header__logo {
    width: 176px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-page {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
  }

  .product-page__hero {
    grid-row: 1 / span 2;
    min-height: 100%;
  }

  .product-page__hero img {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
  }

  .product-page__content {
    border-bottom: none;
    padding: 1.35rem 1.25rem;
    align-self: center;
  }

  .product-page__aside {
    grid-column: 2;
    border-top: 1px solid #ffe8d4;
  }
}
