/* ==========================================================================
   DIMAGA — capa de diseño moderna
   Se carga DESPUÉS de normalize.css, webflow.css y dimaga.webflow.css.
   Los componentes de Webflow (w-nav, w-slider, w-background-video) siguen
   funcionando con js/webflow.js; aquí solo se redefine su apariencia.
   ========================================================================== */

:root {
  --dm-navy: #0d2844;
  --dm-navy-900: #081b30;
  --dm-navy-700: #163a5f;
  --dm-orange: #e46d33;
  --dm-orange-600: #cc5a22;
  --dm-gold: #f0b354;
  --dm-ink: #15212f;
  --dm-muted: #566375;
  --dm-surface: #f4f6f9;
  --dm-line: #e3e8ef;
  --dm-white: #fff;
  --dm-radius: 16px;
  --dm-radius-sm: 10px;
  --dm-shadow: 0 1px 2px rgba(13, 40, 68, .06), 0 8px 24px rgba(13, 40, 68, .08);
  --dm-shadow-lg: 0 2px 4px rgba(13, 40, 68, .06), 0 18px 40px rgba(13, 40, 68, .14);
  --dm-font-head: Oswald, "Arial Narrow", Impact, sans-serif;
  --dm-font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dm-header-h: 72px;
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--dm-header-h) + 16px);
}

body.dm {
  margin: 0;
  padding: 0;
  background: var(--dm-white);
  color: var(--dm-ink);
  font-family: var(--dm-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.dm h1, .dm h2, .dm h3, .dm h4 {
  font-family: var(--dm-font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}

.dm p { margin: 0 0 1.1em; }
.dm p:last-child { margin-bottom: 0; }

.dm a { color: inherit; }

.dm :focus-visible {
  outline: 3px solid var(--dm-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.dm-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--dm-white);
  color: var(--dm-navy);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s;
}
.dm-skip:focus { top: 12px; }

.dm-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.dm-section { padding: 88px 0; }
.dm-section--surface { background: var(--dm-surface); }
.dm-section--tight { padding: 64px 0; }

.dm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--dm-orange-600);
  font-family: var(--dm-font-head);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.dm-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--dm-orange);
}

.dm-title {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--dm-navy);
}

.dm-section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.dm-prose {
  color: var(--dm-muted);
  font-size: 17px;
  line-height: 1.75;
}
.dm-prose strong { color: var(--dm-ink); font-weight: 600; }
.dm-prose .dm-brand { color: var(--dm-orange-600); font-weight: 700; }

/* ---------- Botones ---------- */

.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--dm-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.dm-btn img { width: 20px; height: 20px; flex: none; }
.dm-btn:hover { transform: translateY(-1px); }
.dm-btn:active { transform: translateY(0); }

.dm-btn--primary {
  background: var(--dm-orange);
  color: var(--dm-white);
  box-shadow: 0 6px 18px rgba(228, 109, 51, .32);
}
.dm-btn--primary:hover { background: var(--dm-orange-600); color: var(--dm-white); }

.dm-btn--ghost {
  border-color: rgba(255, 255, 255, .55);
  color: var(--dm-white);
}
.dm-btn--ghost:hover { background: var(--dm-white); border-color: var(--dm-white); color: var(--dm-navy); }

.dm-btn--lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }

.dm-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---------- Barra superior ---------- */

.dm-topbar {
  background: var(--dm-orange);
  color: var(--dm-white);
  font-size: 14px;
  line-height: 1.3;
}
.dm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.dm-topbar__phone,
.dm-topbar__place {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dm-topbar__phone img { width: 16px; height: 16px; }
.dm-topbar a { color: var(--dm-white); text-decoration: none; font-weight: 600; }
.dm-topbar a:hover { text-decoration: underline; }
.dm-social { display: flex; align-items: center; gap: 6px; }
.dm-social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color .2s;
}
.dm-social a:hover { background: rgba(255, 255, 255, .2); }
.dm-social img { width: 22px; height: 22px; }

/* ---------- Encabezado / navegación (Webflow w-nav) ---------- */

.dm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dm-navy);
  transition: box-shadow .25s;
}
.dm-header.is-stuck { box-shadow: 0 6px 24px rgba(8, 27, 48, .35); }

.dm-header .w-nav { background: transparent; }

.dm-nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--dm-header-h);
}

.dm-header .w-nav-brand {
  float: none;
  flex: none;
  display: block;
  padding: 6px 0;
}
.dm-header .w-nav-brand img { width: 102px; height: auto; }

.dm-header .w-nav-menu {
  float: none;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  text-align: left;
}

.dm-header .w-nav-link {
  position: relative;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .84);
  font-family: var(--dm-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  transition: color .2s, background-color .2s;
}
.dm-header .w-nav-link:hover { color: var(--dm-white); background: rgba(255, 255, 255, .08); }
.dm-header .w-nav-link.w--current { color: var(--dm-gold); }
.dm-header .w-nav-link.w--current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--dm-gold);
}

.dm-nav__call { flex: none; min-height: 42px; padding: 9px 18px; font-size: 15px; }
.dm-nav__call img { width: 18px; height: 18px; }

.dm-header .w-nav-button {
  float: none;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--dm-white);
  font-size: 26px;
  place-items: center;
  transition: background-color .2s;
}
.dm-header .w-nav-button:hover,
.dm-header .w-nav-button.w--open { background: rgba(255, 255, 255, .18); color: var(--dm-white); }

@media (max-width: 991px) {
  .dm-header .w-nav-menu { display: none; }
  .dm-header .w-nav[data-collapse] .w-nav-button { display: grid; }
  .dm-nav__inner { justify-content: space-between; }
  .dm-nav__call { margin-left: auto; }

  /* Menú desplegable móvil: webflow.js mueve el menú dentro de .w-nav-overlay */
  .dm-header .w-nav-overlay { top: 100%; }
  .dm-header .w-nav-menu[data-nav-menu-open] {
    display: block;
    background: var(--dm-navy-900);
    padding: 8px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 18px 30px rgba(8, 27, 48, .4);
  }
  .dm-header .w-nav-menu[data-nav-menu-open] .w-nav-link {
    display: block;
    padding: 15px 10px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 17px;
  }
  .dm-header .w-nav-menu[data-nav-menu-open] .w-nav-link:last-of-type { border-bottom: 0; }
  .dm-header .w-nav-link.w--current::after { display: none; }
}

/* ---------- Hero de inicio (Webflow w-slider de fondo) ---------- */

.dm-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 78vh, 760px);
  padding: 72px 0 150px;
  background: var(--dm-navy);
  color: var(--dm-white);
  overflow: hidden;
}

.dm-hero .w-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--dm-navy);
}
.dm-hero .w-slide {
  background-image: none;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}
.dm-hero .w-slide.image1 { background-image: url('../images/dimaga_portada1.jpg'); }
.dm-hero .w-slide.image2 { background-image: url('../images/dimaga_portada2.jpg'); }
.dm-hero .w-slide.image3 { background-image: url('../images/dimaga_portada3.jpg'); }
.dm-hero .w-slide.image4 { background-image: url('../images/dimaga_portada6.jpg'); }
.dm-hero .w-slide.image5 { background-image: url('../images/dimaga_portada5.jpg'); }

.dm-hero .w-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 27, 48, .92) 0%, rgba(8, 27, 48, .72) 42%, rgba(8, 27, 48, .28) 100%),
    linear-gradient(0deg, rgba(8, 27, 48, .55) 0%, rgba(8, 27, 48, 0) 40%);
}

.dm-hero .w-slider-arrow-left,
.dm-hero .w-slider-arrow-right { display: none; }

.dm-hero .w-slider-nav {
  display: block;
  z-index: 4;
  inset: auto 0 96px 0;
  height: auto;
  padding: 0 24px;
  text-align: center;
  font-size: 0;
}
.dm-hero .w-slider-dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  box-shadow: none;
  transition: width .3s, background-color .3s;
}
.dm-hero .w-slider-dot.w-active { width: 30px; background: var(--dm-orange); }
.dm-hero .w-slider-dot:focus { box-shadow: 0 0 0 2px var(--dm-gold); }

.dm-hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  pointer-events: none;
}
.dm-hero__content > * { pointer-events: auto; }

.dm-hero h1 {
  color: var(--dm-white);
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.08;
  margin-bottom: 20px;
}
.dm-hero h1 strong { color: var(--dm-gold); font-weight: 600; white-space: nowrap; }

.dm-hero__lead {
  max-width: 560px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
}

.dm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Servicios ---------- */

.dm-services {
  position: relative;
  z-index: 5;
  margin-top: -72px;
  padding-bottom: 88px;
}
.dm-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dm-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px 24px;
  background: var(--dm-white);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.dm-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--dm-shadow-lg);
}

.dm-card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--dm-orange);
}
.dm-card__icon--navy { background: var(--dm-navy); }
.dm-card__icon img { width: 32px; height: 32px; object-fit: contain; }

.dm-card h2 {
  margin-bottom: 10px;
  color: var(--dm-navy);
  font-size: 23px;
}
.dm-card p {
  color: var(--dm-muted);
  font-size: 15px;
  line-height: 1.6;
}
.dm-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--dm-orange-600) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.dm-card__link span { transition: transform .2s; }
.dm-card__link:hover span { transform: translateX(4px); }
.dm-card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Materiales ---------- */

.dm-materials { padding: 0 0 88px; }
.dm-materials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dm-material {
  margin: 0;
  overflow: hidden;
  background: var(--dm-white);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow);
}
.dm-material img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--dm-surface);
}
.dm-material figcaption {
  margin: 0;
  padding: 20px 22px 24px;
  color: var(--dm-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- Quiénes somos ---------- */

.dm-about__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}
.dm-about__media { position: relative; }
.dm-about__media::before {
  content: "";
  position: absolute;
  inset: 24px -16px -16px 24px;
  border-radius: var(--dm-radius);
  background: var(--dm-orange);
  opacity: .16;
}
.dm-about__media img {
  position: relative;
  width: 100%;
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow-lg);
}
.dm-about .dm-title { margin-bottom: 22px; }
.dm-about .dm-btn { margin-top: 32px; }

/* ---------- Hero de páginas internas ---------- */

.dm-pagehero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(228, 109, 51, .22), transparent 60%),
    var(--dm-navy);
  color: var(--dm-white);
  padding: 72px 0;
}
.dm-pagehero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.dm-pagehero h1 {
  color: var(--dm-white);
  font-size: clamp(34px, 4.6vw, 54px);
}
.dm-pagehero__lead {
  margin-top: 18px;
  max-width: 520px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}
.dm-pagehero__lead strong { color: var(--dm-gold); font-weight: 600; }
.dm-pagehero .dm-btn { margin-top: 30px; }
.dm-pagehero .dm-eyebrow { color: var(--dm-gold); }
.dm-pagehero__media img,
.dm-pagehero__media .w-background-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--dm-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.dm-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .66);
  font-size: 14px;
}
.dm-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.dm-crumbs a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.dm-crumbs a:hover { color: var(--dm-white); text-decoration: underline; }

/* ---------- Métricas (bodegas) ---------- */

.dm-stats {
  background: var(--dm-surface);
  border-bottom: 1px solid var(--dm-line);
  padding: 56px 0;
}
.dm-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dm-stat {
  padding: 26px 20px;
  background: var(--dm-white);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  text-align: center;
}
.dm-stat__value {
  color: var(--dm-orange-600);
  font-family: var(--dm-font-head);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
}
.dm-stat__label {
  margin-top: 8px;
  color: var(--dm-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- Bloque de texto + CTA ---------- */

.dm-article { max-width: 800px; margin: 0 auto; }
.dm-article .dm-title { margin-bottom: 24px; }

.dm-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 32px 36px;
  border-radius: var(--dm-radius);
  background: var(--dm-navy);
  color: var(--dm-white);
}
.dm-band__title {
  font-family: var(--dm-font-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.15;
}

/* ---------- Productos (ferretería) ---------- */

.dm-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dm-product {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--dm-radius);
  background: var(--dm-navy);
  box-shadow: var(--dm-shadow);
  aspect-ratio: 3 / 4;
}
.dm-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.dm-product:hover img { transform: scale(1.06); }
.dm-product figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 22px;
  text-align: left;
  background: linear-gradient(0deg, rgba(8, 27, 48, .88) 0%, rgba(8, 27, 48, .25) 46%, rgba(8, 27, 48, 0) 70%);
  color: var(--dm-white);
  font-family: var(--dm-font-head);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.12;
}

/* ---------- Terreno ---------- */

.dm-video.w-background-video {
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  width: 100%;
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow-lg);
  isolation: isolate; /* el <video> de Webflow usa z-index:-100 */
}
.dm-video .w-background-video--control {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 27, 48, .65);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.dm-video .w-background-video--control img { width: 22px; height: 22px; }
.dm-video .w-background-video--control [hidden] { display: none; }

.dm-terreno-intro {
  background: var(--dm-navy);
  color: var(--dm-white);
  padding: 40px 0 0;
}
.dm-terreno-intro__text {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 0 56px;
  text-align: center;
}
.dm-terreno-intro h1 { color: var(--dm-white); font-size: clamp(34px, 4.6vw, 54px); }
.dm-terreno-intro p {
  margin-top: 16px;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
}
.dm-terreno-intro p strong { color: var(--dm-gold); }

.dm-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.dm-gallery img {
  width: 100%;
  aspect-ratio: 1280 / 832;
  object-fit: cover;
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow);
  background: var(--dm-surface);
}

.dm-info {
  background: var(--dm-orange);
  color: var(--dm-white);
  padding: 64px 0;
  text-align: center;
}
.dm-info h2 { color: var(--dm-white); font-size: clamp(30px, 4vw, 44px); }
.dm-info__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--dm-white) !important;
  font-family: var(--dm-font-head);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}
.dm-info__phone img { width: 44px; height: 44px; }
.dm-info__phone:hover { text-decoration: underline; text-underline-offset: 8px; }
.dm-info__place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 18px;
}
.dm-info__place img { width: 24px; height: 24px; flex: none; }

/* ---------- 404 ---------- */

.dm-404 {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 80px 0;
  text-align: center;
}
.dm-404__code {
  color: var(--dm-orange);
  font-family: var(--dm-font-head);
  font-size: clamp(88px, 16vw, 160px);
  font-weight: 700;
  line-height: 1;
}
.dm-404 h1 { margin: 8px 0 12px; color: var(--dm-navy); font-size: clamp(28px, 4vw, 40px); }
.dm-404 p { color: var(--dm-muted); font-size: 17px; }
.dm-404 .dm-btn { margin-top: 28px; }

/* ---------- Pie / contacto ---------- */

.dm-footer {
  background: var(--dm-navy-900);
  color: rgba(255, 255, 255, .82);
  font-size: 15.5px;
}
.dm-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr .9fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 64px;
}
.dm-footer h3 {
  position: relative;
  margin-bottom: 26px;
  padding-bottom: 14px;
  color: var(--dm-white);
  font-size: 26px;
}
.dm-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--dm-orange);
}
.dm-footer h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 10px;
  color: var(--dm-white);
  font-family: var(--dm-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
}
.dm-footer h4:first-of-type { margin-top: 0; }
.dm-footer h4 img { width: 18px; height: 18px; }
.dm-footer ul { margin: 0; padding: 0; list-style: none; }
.dm-footer li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.dm-footer li:last-child { border-bottom: 0; }
.dm-footer a {
  color: var(--dm-white);
  text-decoration: none;
  transition: color .2s;
}
.dm-footer a:hover { color: var(--dm-gold); text-decoration: underline; text-underline-offset: 4px; }
.dm-footer__tel { font-weight: 600; white-space: nowrap; }
.dm-footer__closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.dm-footer__closing img.dm-footer__logo { width: 130px; }
.dm-footer__closing .dm-footer__hello {
  margin: 0;
  padding: 0;
  color: var(--dm-gold);
  font-size: clamp(32px, 3.4vw, 42px);
}
.dm-footer__closing .dm-footer__hello::after { display: none; }
.dm-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  text-align: center;
}

/* ---------- Animación de entrada ---------- */

.dm-js .dm-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--dm-delay, 0ms);
}
.dm-js .dm-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dm-js .dm-reveal { opacity: 1; transform: none; transition: none; }
  .dm-btn, .dm-card, .dm-product img { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .dm-services__grid { grid-template-columns: repeat(2, 1fr); }
  .dm-products { grid-template-columns: repeat(2, 1fr); }
  .dm-product { aspect-ratio: 4 / 3; }
  .dm-about__grid { gap: 40px; }
}

@media (max-width: 900px) {
  .dm-section { padding: 64px 0; }
  .dm-materials { padding-bottom: 64px; }
  .dm-services { padding-bottom: 64px; }
  .dm-about__grid { grid-template-columns: 1fr; }
  .dm-about__media { max-width: 460px; margin: 0 auto; order: 2; }
  .dm-pagehero { padding: 48px 0 56px; }
  .dm-pagehero__grid { grid-template-columns: 1fr; gap: 36px; }
  .dm-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .dm-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
  .dm-footer__closing { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  :root { --dm-header-h: 64px; }
  .dm-container { padding: 0 18px; }
  .dm-topbar__place > span { display: none; }
  .dm-header .w-nav-brand img { width: 88px; }
  .dm-hero { min-height: 0; padding: 56px 0 132px; }
  .dm-hero .w-slider::after {
    background: linear-gradient(0deg, rgba(8, 27, 48, .82), rgba(8, 27, 48, .7));
  }
  .dm-hero .w-slider-nav { bottom: 84px; }
  .dm-services { margin-top: -60px; }
  .dm-materials__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .dm-section-head { margin-bottom: 32px; }
  .dm-gallery { gap: 12px; }
  .dm-band { padding: 26px 22px; }
}

@media (max-width: 560px) {
  .dm-services__grid { grid-template-columns: 1fr; }
  .dm-products { gap: 12px; }
  .dm-product { aspect-ratio: 1 / 1; }
  .dm-product figcaption { padding: 14px; font-size: 20px; }
  .dm-stats__grid { gap: 12px; }
  .dm-stat { padding: 20px 12px; }
  .dm-gallery { grid-template-columns: 1fr; }
  .dm-footer__grid { grid-template-columns: 1fr; }
  .dm-hero__actions .dm-btn, .dm-cta-row .dm-btn, .dm-band .dm-btn, .dm-pagehero .dm-btn, .dm-about .dm-btn { width: 100%; }
  .dm-nav__call span { display: none; }
  .dm-nav__call { width: 46px; min-height: 46px; padding: 0; }
  .dm-prose { font-size: 16px; }
}

/* Icono del menú móvil centrado dentro del botón */
.dm-header .w-nav-button .w-icon-nav-menu {
  display: block;
  line-height: 1;
}

@media (max-width: 560px) {
  .dm-btn--lg { padding: 14px 18px; font-size: 16px; }
}
