
/* ==========================================================
   Puertas Marco · Restyling web
   Author: Luvi Studio
   Accessibility target: WCAG AA+
   ========================================================== */

:root {
  --pm-navy: #08233f;
  --pm-navy-2: #0e3458;
  --pm-blue: #007cc2;
  --pm-blue-soft: #dff3ff;
  --pm-wood: #b77a46;
  --pm-wood-dark: #7a4b2b;
  --pm-cream: #f5ede2;
  --pm-cream-2: #fbf4ea;
  --pm-paper: #ffffff;
  --pm-ink: #132338;
  --pm-muted: #5d6978;
  --pm-line: #e5ddd4;
  --pm-shadow: 0 22px 70px rgba(8, 35, 63, .12);
  --pm-radius: 18px;
  --pm-radius-sm: 14px;
  --pm-container: 1180px;
  --pm-focus: #ffbf47;
  --font-heading: "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--pm-ink);
  background:
    radial-gradient(circle at top left, rgba(183,122,70,.09), transparent 28rem),
    linear-gradient(180deg, #fff 0%, var(--pm-cream-2) 100%);
}

body.menu-open {
  overflow: hidden;
}

img,
picture {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--pm-blue);
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--pm-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 9999;
  left: 1rem;
  top: 1rem;
  transform: translateY(-150%);
  background: var(--pm-navy);
  color: #fff;
  padding: .8rem 1rem;
  border-radius: .5rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--pm-container));
  margin-inline: auto;
}

.flow > * + * {
  margin-top: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #bd8a5d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: none;
}

.eyebrow--line::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.title-rule {
  width: 46px;
  height: 2px;
  background: var(--pm-wood);
  margin-top: .75rem;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--pm-ink);
  line-height: 1.08;
}

h1,
.h1,
h2,
.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -.035em;
}

h1,
.h1 {
  font-size: clamp(2.35rem, 5vw, 3.5rem);
}

h2,
.section-title {
  font-size: clamp(1.85rem, 3.8vw, 3.2rem);
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

p {
  margin: 0;
}

.lead {
  color: var(--pm-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 68ch;
}

.muted {
  color: var(--pm-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 44px;
  padding: .68rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--pm-navy);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn:hover {
  color: #fff;
  background: var(--pm-navy-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(8,35,63,.18);
}

.btn--light {
  background: #fff;
  color: var(--pm-navy);
  border-color: rgba(8,35,63,.22);
}

.btn--light:hover {
  background: var(--pm-cream);
  color: var(--pm-navy);
}

.btn--ghost {
  background: transparent;
  color: var(--pm-navy);
  border-color: rgba(8,35,63,.26);
}

.btn--ghost:hover {
  background: var(--pm-navy);
  color: #fff;
}

.icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar {
  background: var(--pm-navy);
  color: #fff;
  font-size: .88rem;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__list {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__item,
.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(8,35,63,.08);
}

.header__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 900;
  color: var(--pm-navy);
}

.logo img {
  width: 205px;
  height: auto;
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  background: var(--pm-navy);
  color: #fff;
  border: 0;
  border-radius: .35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .7rem .85rem;
  color: var(--pm-ink);
  font-weight: 750;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.main-nav a[aria-current="page"],
.main-nav a:hover,
.dropdown-toggle:hover {
  color: var(--pm-blue);
}

.nav-item--dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  min-width: 250px;
  padding: .55rem;
  background: #fff;
  border: 1px solid rgba(8,35,63,.12);
  box-shadow: var(--pm-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-item--dropdown:focus-within .dropdown,
.nav-item--dropdown:hover .dropdown,
.dropdown[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown ul {
  display: grid;
  gap: .15rem;
}

.dropdown a {
  width: 100%;
  justify-content: space-between;
  border-radius: .25rem;
}

.header-cta {
  flex: 0 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--pm-cream-2) 0%, var(--pm-cream-2) 44%, rgba(251,244,234,0) 66%),
    var(--pm-cream-2);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  min-height: 620px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.7rem, 8vw, 6.2rem);
}

.hero__content .lead {
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero__media {
  position: absolute;
  inset: 0 0 0 40%;
  z-index: 1;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--pm-cream-2) 0%, rgba(251,244,234,.86) 17%, rgba(251,244,234,.22) 45%, rgba(251,244,234,0) 76%),
    linear-gradient(180deg, rgba(251,244,234,0) 76%, var(--pm-cream-2) 100%);
  z-index: 2;
}

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

.trust-panel {
  position: relative;
  z-index: 3;
  margin-top: -58px;
  padding-bottom: 3.4rem;
  background: linear-gradient(180deg, transparent 0 58px, #fff 58px 100%);
}

.trust-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--pm-cream-2);
  box-shadow: var(--pm-shadow);
  border: 1px solid rgba(8,35,63,.08);
}

.trust-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .95rem;
  padding: 1.45rem 1.55rem;
}

.trust-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 24%;
  bottom: 24%;
  width: 1px;
  background: var(--pm-line);
}

.trust-card:last-child {
  border-right: 0;
}

.trust-card h2 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  letter-spacing: -.01em;
}

.trust-card p {
  font-size: .92rem;
}

.trust-card img{ 
  width: 42px;
}

.trust-card .icon {
  color: var(--pm-wood);
  width: 38px;
  height: 38px;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--cream {
  background: rgba(247,242,235,.72);
}

.section--white {
  background: #fff;
}

.section-heading {
  display: grid;
  gap: .75rem;
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading--center {
  text-align: center;
  margin-inline: auto;
  justify-items: center;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-card {
  position: relative;
  min-height: 350px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: visible;
  background: var(--pm-cream-2);
  color: var(--pm-ink);
  text-decoration: none;
  border: 1px solid rgba(8,35,63,.08);
  box-shadow: 0 12px 34px rgba(8,35,63,.055);
}

.catalog-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .45s ease;
}

.catalog-card::after {
  content: none;
}

.catalog-card:hover img {
  transform: scale(1.06);
}

.catalog-card__body {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 92px;
  padding: 1.45rem 1rem 1.05rem;
  background: var(--pm-cream-2);
}

.catalog-card__icon {
  position: absolute;
  left: 1rem;
  top: -28px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  border-radius: 999px;
  background: var(--pm-navy);
  color: #fff;
  border: 4px solid var(--pm-cream-2);
  box-shadow: 0 10px 24px rgba(8,35,63,.18);
}

.catalog-card h3 {
  color: var(--pm-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.12rem;
  padding-top: .3rem;
}


.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.35rem;
  counter-reset: process;
}

.process-card {
  position: relative;
  padding: .45rem .65rem 0;
}

.process-card__top {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .85rem;
}

.process-card__number {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: #c99b72;
  line-height: 1;
}

.process-card .icon {
  width: 42px;
  height: 42px;
  color: #c99b72;
  margin-bottom: 0;
}

.process-card img{ width: 70px; }

.process-card h3 {
  font-size: 1.08rem;
  margin-bottom: .35rem;
}

.process-card p {
  font-size: .92rem;
}


.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
}

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

.media-stack img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame {
  min-height: 460px;
  overflow: hidden;
  box-shadow: var(--pm-shadow);
}

.media-frame--short {
  min-height: 320px;
}

.feature-list {
  display: grid;
  gap: .85rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: start;
  color: var(--pm-muted);
}

.feature-list .icon {
  width: 22px;
  height: 22px;
  color: var(--pm-wood);
  margin-top: .17rem;
}


.project-strip {
  display: grid;
  grid-template-columns: .68fr repeat(4, 1fr);
  gap: .75rem;
  align-items: stretch;
}

.project-strip__intro {
  padding-right: 1.45rem;
  align-self: center;
}

.project-strip__intro .section-title {
  font-size: clamp(1.75rem, 3vw, 2.15rem);
}

.project-strip__intro .lead {
  font-size: .98rem;
  line-height: 1.65;
}

.project-strip__intro .btn {
  width: 176px;
  min-height: 42px;
  padding-block: .58rem;
}

.project-strip img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}



.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--pm-navy);
  color: #fff;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,35,63,.98) 0%, rgba(8,35,63,.92) 40%, rgba(8,35,63,.62) 72%, rgba(8,35,63,.86) 100%),
    url("../img/muestras-madera-diseno.jpg") right center / cover no-repeat;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.1rem, 6vw, 4.6rem);
  max-width: 620px;
	margin-left: 4%;
}

.cta-band .section-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.cta-band .lead {
  font-size: .98rem;
  line-height: 1.65;
}

.cta-band .btn {
  width: auto;
  min-height: 42px;
  padding-block: .58rem;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}


.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--pm-navy);
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,35,63,.95), rgba(8,35,63,.82), rgba(8,35,63,.32));
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 9vw, 7rem);
  width: 100%;
  max-width: var(--pm-container);
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: .9rem;
}

.breadcrumbs a {
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.info-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(8,35,63,.09);
  box-shadow: 0 12px 38px rgba(8,35,63,.06);
}

.info-card .icon {
  width: 42px;
  height: 42px;
  color: var(--pm-wood);
  margin-bottom: .9rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 118px;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(8,35,63,.09);
  box-shadow: 0 12px 38px rgba(8,35,63,.06);
}

.side-nav h2 {
  font-family: var(--font-body);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.side-nav ul {
  display: grid;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav a {
  display: block;
  padding: .75rem;
  text-decoration: none;
  color: var(--pm-muted);
  border-left: 3px solid transparent;
}

.side-nav a[aria-current="page"],
.side-nav a:hover {
  color: var(--pm-navy);
  border-left-color: var(--pm-blue);
  background: var(--pm-blue-soft);
}

.product-grid {
  display: grid;
  gap: 1.2rem;
}

.product-card {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 1.3rem;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(8,35,63,.09);
  box-shadow: 0 12px 38px rgba(8,35,63,.06);
}

.product-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .8rem;
}

.gallery-item {
  grid-column: span 4;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  background: var(--pm-navy);
}

.gallery-item--wide {
  grid-column: span 8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .9rem;
  padding: .85rem;
  color: #fff;
  background: rgba(8,35,63,.84);
  backdrop-filter: blur(8px);
}

.contact-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 2rem;
  align-items: start;
}

.contact-box {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(8,35,63,.09);
  box-shadow: 0 12px 38px rgba(8,35,63,.06);
}

.contact-list {
  display: grid;
  gap: .9rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
}

.contact-list .icon {
  width: 24px;
  height: 24px;
  color: var(--pm-wood);
  margin-top: .12rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: .45rem;
}

.form label {
  font-weight: 800;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #aeb6c2;
  border-radius: .2rem;
  padding: .8rem .9rem;
  background: #fff;
  color: var(--pm-ink);
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form small {
  color: var(--pm-muted);
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
}

.checkbox input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: .15rem;
}

.map-placeholder {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8,35,63,.95), rgba(14,52,88,.86)),
    radial-gradient(circle at 70% 20%, rgba(183,122,70,.45), transparent 18rem);
  text-align: center;
}

.site-footer {
  background: #fff;
  border-top: 1px solid rgba(8,35,63,.09);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 2rem;
  padding-block: 3rem;
}

.footer__logo img {
  width: 160px;
}

.footer h2 {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}

.footer a {
  color: var(--pm-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--pm-blue);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(8,35,63,.09);
  color: var(--pm-muted);
  font-size: .9rem;
}

.legal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


.kit-digital {
  background: #f1f3f5;
  border-top: 1px solid rgba(8,35,63,.09);
  padding-block: 1.55rem;
}

.kit-digital__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.6rem;
  align-items: center;
}

.kit-digital__logos {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.kit-digital__logos img {
  max-height: 58px;
  width: auto;
}

.kit-digital p {
  color: #485260;
  font-size: .78rem;
  line-height: 1.55;
}


@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .trust-panel__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-card:nth-child(2) {
    border-right: 0;
  }

  .project-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-strip__intro {
    grid-column: 1 / -1;
  }

  .kit-digital__inner {
    grid-template-columns: 1fr;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .header__inner {
    min-height: 78px;
  }

  .logo img {
    width: 178px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    max-height: calc(100dvh - 78px);
    overflow: auto;
    display: none;
    padding: 1rem;
    background: #fff;
    border-top: 1px solid rgba(8,35,63,.09);
    box-shadow: var(--pm-shadow);
  }

  .main-nav[data-open="true"] {
    display: block;
  }

  .main-nav ul {
    display: grid;
    align-items: stretch;
  }

  .main-nav a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding-inline: .25rem;
  }

  .nav-item--dropdown {
    position: static;
  }

  .dropdown {
    position: static;
    min-width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 1rem;
    display: none;
  }

  .dropdown[data-open="true"] {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero {
    background: #fff;
  }

  .hero__grid {
    display: block;
    min-height: initial;
  }

  .hero__media {
    position: relative;
    inset: auto;
    height: 360px;
  }

  .hero__media::before {
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
  }

  .hero__content {
    padding-block: 3.5rem 1rem;
  }

  .trust-panel {
    margin-top: 0;
    padding-top: 1rem;
  }

  .split,
  .split--reverse,
  .contact-grid,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .split--reverse .media-frame {
    order: -1;
  }

  .side-nav {
    position: static;
  }

  .card-grid,
  .product-card {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1.25rem, var(--pm-container));
  }

  .catalog-grid,
  .process,
  .trust-panel__grid,
  .project-strip,
  .media-stack,
  .footer__main {
    grid-template-columns: 1fr;
  }

  .project-strip img {
    height: 300px;
  }

  .kit-digital__logos img {
    max-height: 50px;
  }

  .trust-card {
    border-right: 0;
    border-bottom: 1px solid var(--pm-line);
  }

  .trust-card::after {
    content: none !important;
  }

  .trust-card:last-child {
    border-bottom: 0;
  }

  .catalog-card {
    min-height: 275px;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

.workshop-mosaic{display:grid;grid-template-columns:1.15fr .85fr;gap:1rem;align-items:stretch}
.workshop-mosaic img{width:100%;height:100%;min-height:260px;object-fit:cover}
.workshop-mosaic__side{display:grid;gap:1rem}
.timeline-process{display:grid;gap:1rem;counter-reset:quality}
.timeline-item{position:relative;display:grid;grid-template-columns:auto 1fr;gap:1rem;padding:1.25rem;background:#fff;border:1px solid rgba(8,35,63,.09);box-shadow:0 12px 34px rgba(8,35,63,.045)}
.timeline-item::before{counter-increment:quality;content:"0" counter(quality);width:52px;height:52px;display:grid;place-items:center;border-radius:999px;background:var(--pm-cream);color:#bd8a5d;font-family:var(--font-heading);font-size:1.35rem}
.timeline-item h3{margin-bottom:.35rem}
.quality-band{background:linear-gradient(90deg,rgba(8,35,63,.95),rgba(8,35,63,.76)),url("../img/troncos-madera-seleccionada.jpg") center/cover no-repeat;color:#fff}
.quality-band h2,.quality-band p{color:#fff}
.quality-band__grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(2rem,5vw,5rem);align-items:center}
.spec-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:rgba(255,255,255,.22)}
.spec-card{padding:1.35rem;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}
.spec-card h3,.spec-card p{color:#fff}.spec-card h3{font-size:1.12rem;margin-bottom:.4rem}
@media(max-width:900px){.workshop-mosaic,.quality-band__grid,.spec-grid{grid-template-columns:1fr}}

/* Catálogo visual de modelos y acabados */
.product-gallery-section {
  overflow: hidden;
}

.catalog-tabs {
  margin-top: 2rem;
}

.catalog-tabs__buttons {
  display: flex;
  justify-content: center;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.catalog-tab {
  min-height: 44px;
  padding: .68rem 1.35rem;
  border: 1px solid rgba(8,35,63,.22);
  background: #fff;
  color: var(--pm-navy);
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.catalog-tab:hover,
.catalog-tab:focus-visible {
  border-color: var(--pm-navy);
}

.catalog-tab.is-active {
  background: var(--pm-navy);
  color: #fff;
  border-color: var(--pm-navy);
}

.catalog-tab-panel[hidden] {
  display: none;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.model-card,
.finish-card {
  background: #fff;
  border: 1px solid rgba(8,35,63,.09);
  box-shadow: 0 12px 34px rgba(8,35,63,.045);
  overflow: hidden;
}

.model-card a,
.gallery-lightbox-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #fff;
  cursor: zoom-in;
}

.model-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: .85rem;
  background: #fff;
  transition: transform .25s ease;
}

.model-card a:hover img,
.gallery-lightbox-trigger:hover img {
  transform: scale(1.035);
}

.model-card h3,
.finish-card h3 {
  padding: .75rem .8rem .9rem;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 850;
  text-align: center;
  background: var(--pm-cream-2);
  border-top: 1px solid rgba(8,35,63,.08);
}

.finish-groups {
  display: grid;
  gap: 2.2rem;
}

.finish-group > h3 {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 500;
  color: var(--pm-ink);
  text-align: center;
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.finish-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}

@media (max-width: 1100px) {
  .model-grid,
  .finish-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .model-grid,
  .finish-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-tabs__buttons {
    align-items: stretch;
  }

  .catalog-tab {
    flex: 1 1 190px;
  }
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8,35,63,.82);
  backdrop-filter: blur(8px);
}

.lightbox-modal[hidden] {
  display: none;
}

.lightbox-modal__dialog {
  position: relative;
  width: min(100%, 980px);
  max-height: 92dvh;
  display: grid;
  gap: .8rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}

.lightbox-modal__image {
  width: 100%;
  max-height: 76dvh;
  object-fit: contain;
  background: #fff;
}

.lightbox-modal__caption {
  margin: 0;
  color: var(--pm-ink);
  font-weight: 800;
  text-align: center;
}

.lightbox-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--pm-navy);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-modal__close:hover {
  background: var(--pm-blue);
}

.contact-map {
  width: 100%;
  height: 420px;
  border: 1px solid rgba(8,35,63,.1);
  overflow: hidden;
  background: var(--pm-cream);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.legal-content {
  max-width: 920px;
}

.legal-content h2 {
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}

.legal-content h3 {
  margin-top: 1.4rem;
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.legal-content li + li {
  margin-top: .45rem;
}

/* Trabajos realizados */
.works-intro {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.works-intro__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(8,35,63,.12);
}

.works-stat {
  padding: 1.35rem;
  background: var(--pm-cream-2);
}

.works-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  color: var(--pm-wood);
  margin-bottom: .35rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.work-card {
  grid-column: span 6;
  background: #fff;
  border: 1px solid rgba(8,35,63,.09);
  box-shadow: 0 12px 34px rgba(8,35,63,.055);
  overflow: hidden;
}

.work-card--wide {
  grid-column: span 8;
}

.work-card--narrow {
  grid-column: span 4;
}

.work-card__media {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.work-card__media img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  transition: transform .35s ease;
}

.work-card--narrow .work-card__media img {
  height: 390px;
}

.work-card__media:hover img {
  transform: scale(1.035);
}

.work-card__body {
  padding: 1.25rem;
  background: var(--pm-cream-2);
}

.work-card__body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin-bottom: .45rem;
}

.work-card__body p {
  color: var(--pm-muted);
  font-size: .96rem;
}

@media (max-width: 900px) {
  .works-intro,
  .works-intro__stats {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card--wide,
  .work-card--narrow {
    grid-column: 1 / -1;
  }

  .work-card__media img,
  .work-card--narrow .work-card__media img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .contact-map {
    height: 320px;
  }
}

.mapContainer{ padding: 0;}
.mapContainer iframe{ margin: 0; border: none; width: 100%;}
