:root {
  --roof-rust: #a84325;
  --roof-dark: #6f2a17;
  --roof-charcoal: #25251f;
  --roof-cream: #fbf6ee;
  --roof-sand: #eadcc8;
  --roof-ink: #332f2a;
  --roof-muted: #70665d;
  --roof-line: #dfd1bf;
  --roof-wa: #147c42;
  --roof-wa-hover: #0f5f32;
  --roof-shadow: 0 20px 55px rgba(69, 39, 23, .16);
}

.page-roofs {
  overflow-x: hidden;
  background: var(--roof-cream);
  color: var(--roof-ink);
}

.page-roofs .alerta {
  padding: 10px 16px;
  background: var(--roof-charcoal);
  color: #f7eadd;
  font-size: 12.5px;
  letter-spacing: .01em;
}

.site-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  max-width: 1180px;
  min-height: 74px;
  margin: 0 auto;
  padding: 12px 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(223, 209, 191, .82);
  background: rgba(251, 246, 238, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--roof-charcoal);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand b { color: var(--roof-rust); }

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px 18px 8px 18px;
  background: linear-gradient(145deg, var(--roof-rust), var(--roof-dark));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(111, 42, 23, .25);
}

.site-nav .wa-mini {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 17px;
  align-items: center;
  border: 1px solid #cce9d7;
  border-radius: 999px;
  background: #e8f6ed;
  color: var(--roof-wa);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav .wa-mini::before {
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--roof-wa);
  content: "";
  box-shadow: 0 0 0 4px rgba(20, 124, 66, .12);
}

.page-roofs .hero {
  position: relative;
  max-width: 1240px;
  margin: 10px auto 0;
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(37, 37, 31, .97), rgba(63, 45, 34, .96) 58%, rgba(168, 67, 37, .9)),
    repeating-linear-gradient(135deg, transparent 0 38px, rgba(255, 255, 255, .035) 38px 40px);
  color: #fff;
  box-shadow: 0 25px 70px rgba(69, 39, 23, .22);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 580px;
  max-width: 1140px;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
  padding-top: 62px;
  padding-bottom: 62px;
}

.hero-copy { max-width: 690px; }

.page-roofs .hero .eyebrow {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid rgba(242, 194, 163, .36);
  border-radius: 999px;
  color: #ffd9c2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.page-roofs .hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -.055em;
  line-height: 1.02;
}

.page-roofs .hero h1 span { color: #f4a881; }

.page-roofs .hero .hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 0 28px;
  color: #e8ded5;
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.page-roofs .wa,
.page-roofs .button-secondary {
  display: inline-flex;
  min-height: 54px;
  margin: 0;
  padding: 14px 23px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.page-roofs .wa { background: var(--roof-wa); color: #fff; }
.page-roofs .wa:hover { background: var(--roof-wa-hover); }

.page-roofs .button-secondary {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(28, 25, 21, .3);
  color: #fff;
}

.roof-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 205, .18);
  border-radius: 26px 8px 26px 8px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025));
}

.sun {
  position: absolute;
  top: 42px;
  right: 48px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #f4a881;
  box-shadow: 0 0 0 24px rgba(244, 168, 129, .08), 0 0 0 52px rgba(244, 168, 129, .04);
}

.roof-plane {
  position: absolute;
  transform: rotate(-12deg) skewX(-18deg);
  border: 1px solid rgba(255, 233, 217, .18);
}

.roof-plane-back {
  width: 360px;
  height: 170px;
  top: 122px;
  left: 20px;
  background: linear-gradient(145deg, #c55c36, #82331d);
  box-shadow: 0 28px 50px rgba(21, 17, 14, .28);
}

.roof-plane-front {
  width: 330px;
  height: 128px;
  top: 194px;
  left: 70px;
  background: repeating-linear-gradient(0deg, #35342e 0 17px, #292924 17px 19px);
}

.visual-note {
  position: absolute;
  z-index: 3;
  display: flex;
  min-height: 46px;
  padding: 10px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(34, 30, 26, .78);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 16, 13, .18);
  backdrop-filter: blur(8px);
}

.visual-note:nth-of-type(4) { top: 54px; left: 24px; }
.visual-note:nth-of-type(5) { right: 20px; bottom: 72px; }
.visual-note:nth-of-type(6) { bottom: 18px; left: 24px; }

.visual-note span { color: #f4a881; font-size: 10px; font-weight: 800; }
.visual-note strong { font-size: 12px; }

.trust-strip {
  position: relative;
  z-index: 4;
  display: grid;
  max-width: 1080px;
  margin: -30px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--roof-line);
  border-radius: 20px 8px 20px 8px;
  background: rgba(255, 252, 247, .98);
  box-shadow: var(--roof-shadow);
}

.trust-item {
  position: relative;
  display: grid;
  min-height: 98px;
  padding: 21px 22px 18px 64px;
  align-content: center;
  border-right: 1px solid var(--roof-line);
}

.trust-item:last-child { border-right: 0; }
.trust-item > span { position: absolute; top: 27px; left: 22px; color: var(--roof-rust); font-size: 10px; font-weight: 800; }
.trust-item strong { color: var(--roof-charcoal); font-size: 13.5px; }
.trust-item small { color: var(--roof-muted); font-size: 11.5px; }

.page-roofs .cuerpo { max-width: 1040px; }
.page-roofs section { padding-top: 54px; }

.page-roofs h2 {
  color: var(--roof-charcoal);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.035em;
  line-height: 1.18;
}

.page-roofs .sistemas { gap: 15px; }
.page-roofs .sistema {
  position: relative;
  min-height: 222px;
  padding: 24px 22px;
  overflow: hidden;
  border-radius: 18px 6px 18px 6px;
  background: #fffdfa;
  box-shadow: 0 9px 28px rgba(69, 39, 23, .06);
}

.page-roofs .sistema::after {
  position: absolute;
  width: 86px;
  height: 86px;
  right: -48px;
  bottom: -50px;
  border: 14px solid rgba(168, 67, 37, .08);
  border-radius: 50%;
  content: "";
}

.page-roofs .sistema .rango { color: var(--roof-charcoal); }
.page-roofs .senales { gap: 10px; }
.page-roofs .senales li { padding: 13px 16px 13px 46px; border: 1px solid var(--roof-line); border-radius: 12px; background: rgba(255, 253, 250, .7); }
.page-roofs .senales li::before { top: 13px; left: 16px; }

.page-roofs .caso {
  position: relative;
  margin-top: 48px;
  padding: 30px;
  overflow: hidden;
  border-radius: 22px 8px 22px 8px;
  background: var(--roof-charcoal);
  box-shadow: var(--roof-shadow);
}

.page-roofs .caso::after {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: -110px;
  border: 22px solid rgba(244, 168, 129, .12);
  transform: rotate(28deg);
  content: "";
}

.page-roofs .faqs details { padding: 16px 0; }
.page-roofs .faqs summary:focus-visible,
.page-roofs a:focus-visible { outline: 3px solid #0b78a8; outline-offset: 4px; }

.page-roofs .final { margin-top: 46px; padding: 54px 20px; background: linear-gradient(145deg, #f2e5d4, var(--roof-cream)); }
.page-roofs footer { padding: 34px 0 116px; background: #f2e8dc; font-size: 13.5px; line-height: 1.7; }
.page-roofs footer strong { display: inline; overflow-wrap: anywhere; word-break: break-all; }
.mobile-dock { display: none; }

@media (max-width: 900px) {
  .page-roofs .hero { margin-right: 14px; margin-left: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .roof-visual { min-height: 330px; }
  .trust-strip { margin-right: 28px; margin-left: 28px; }
}

@media (max-width: 680px) {
  .page-roofs { padding-bottom: 84px; }
  .page-roofs .alerta { font-size: 11px; line-height: 1.45; }
  .site-nav { min-height: 64px; padding: 10px 15px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand-mark { width: 36px; height: 36px; }
  .site-nav .wa-mini { min-height: 44px; padding: 8px 12px; font-size: 12px; }
  .page-roofs .hero { margin: 0; border-radius: 0 0 28px 28px; }
  .hero-grid { min-height: auto; padding: 58px 20px 42px; }
  .page-roofs .hero h1 { font-size: clamp(34px, 10vw, 43px); }
  .page-roofs .hero .hero-copy > p:not(.eyebrow) { font-size: 14px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 9px; }
  .page-roofs .hero-actions a { width: 100%; }
  .roof-visual { min-height: 310px; }
  .roof-plane-back { left: 4px; transform: scale(.84) rotate(-12deg) skewX(-18deg); transform-origin: left center; }
  .roof-plane-front { left: 38px; transform: scale(.84) rotate(-12deg) skewX(-18deg); transform-origin: left center; }
  .visual-note { max-width: calc(100% - 32px); }
  .trust-strip { margin: -18px 14px 0; grid-template-columns: 1fr; }
  .trust-item { min-height: 76px; padding: 16px 16px 14px 56px; border-right: 0; border-bottom: 1px solid var(--roof-line); }
  .trust-item:last-child { border-bottom: 0; }
  .trust-item > span { top: 24px; left: 18px; }
  .page-roofs section { padding-top: 44px; }
  .page-roofs .cuerpo { padding-right: 16px; padding-left: 16px; }
  .page-roofs .sistema { min-height: 0; }
  .page-roofs footer { font-size: 14px; }
  .mobile-dock {
    position: fixed;
    z-index: 100;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--roof-line);
    border-radius: 18px;
    background: rgba(255, 252, 247, .96);
    box-shadow: 0 16px 40px rgba(69, 39, 23, .24);
    backdrop-filter: blur(16px);
  }
  .mobile-dock a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 12px; color: var(--roof-charcoal); font-size: 13px; font-weight: 800; text-decoration: none; }
  .mobile-dock .dock-call { border: 1px solid var(--roof-line); background: #fff; }
  .mobile-dock .dock-wa { background: var(--roof-wa); color: #fff; }
}

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

/* El dock de contacto es fijo: el documento reserva su altura para que
   no quede encima del botón principal del hero. */
@media (max-width: 900px) {
  body {
    padding-bottom: 96px;
  }
}

/* Marca: el wordmark carga la identidad; el acento sustituye al
   recuadro de iniciales. */
.logo::before,
.identidad::before,
.brand::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.15em;
  flex: none;
  border-radius: 2px;
  background: currentcolor;
  opacity: .55;
}
.logo,
.identidad,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  --wordmark-acento: 1;
}

/* El dock repite los botones del hero: mientras esos botones están a la vista
   se aparta, para no quedar encima del principal. */
.mobile-dock.dock-oculto {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

.mobile-dock {
  transition: transform .18s ease-out, opacity .18s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-dock {
    transition: none;
  }
}
