:root {
  --ink: #171b1f;
  --muted: #5d6669;
  --line: #d8ddd9;
  --canvas: #f4f5f3;
  --surface: #ffffff;
  --graphite: #202529;
  --purple: #9c198e;
  --purple-dark: #741067;
  --green: #2d6a5f;
  --gold: #b87425;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;
  padding: 10px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgb(216 221 217 / 92%);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.main-nav,
.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav {
  justify-content: center;
}

.main-nav a {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  color: #41494b;
  font-size: 13px;
  font-weight: 760;
}

.main-nav a:hover,
.main-nav a.active {
  background: #f1e8f2;
  color: var(--purple-dark);
}

.phone-link,
.roof-link,
.button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.phone-link,
.button.primary {
  color: #fff;
  background: var(--purple);
}

.phone-link:hover,
.button.primary:hover {
  background: var(--purple-dark);
}

.roof-link {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.roof-link:hover {
  border-color: #bba3bd;
}

.button.secondary {
  color: #fff;
  border-color: rgb(255 255 255 / 36%);
  background: rgb(255 255 255 / 13%);
}

.button.secondary:hover {
  background: rgb(255 255 255 / 20%);
}

.home-hero {
  position: relative;
  min-height: min(690px, calc(100vh - 82px));
  padding: 94px 34px 72px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image,
.hero-video {
  z-index: -3;
  object-fit: cover;
  filter: saturate(.92) contrast(1.05);
}

.cinema-hero .hero-image {
  z-index: -4;
}

.hero-video {
  display: block;
  background: #111417;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(23 27 31 / 95%) 0%, rgb(23 27 31 / 78%) 51%, rgb(23 27 31 / 26%) 100%),
    linear-gradient(0deg, rgb(23 27 31 / 26%), rgb(23 27 31 / 5%));
}

.home-hero-content {
  width: min(760px, 100%);
  color: #fff;
}

.kicker {
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero .kicker,
.about .kicker,
.roof-view-band .kicker {
  color: #f1a9ec;
}

.home-hero h1 {
  max-width: 770px;
  margin-bottom: 20px;
  font-size: 62px;
  line-height: .99;
  font-weight: 900;
}

.home-hero p {
  max-width: 690px;
  margin-bottom: 26px;
  color: rgb(255 255 255 / 84%);
  font-size: 18px;
  line-height: 1.62;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-band div {
  min-height: 104px;
  padding: 22px 34px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-right: 1px solid var(--line);
}

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

.trust-band strong {
  color: var(--ink);
  font-size: 15px;
}

.trust-band span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section,
.contact {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-head,
.section-copy {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head h2,
.section-copy h2,
.about h2,
.contact h1,
.contact h2,
.page-hero h1,
.final-cta h2,
.roof-view-band h2 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
}

.section-head p,
.section-copy p,
.about p,
.contact p,
.page-hero p,
.roof-view-band p,
.final-cta p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1fr);
  gap: 38px;
  align-items: start;
}

.home-link-grid {
  display: grid;
  gap: 14px;
}

.home-link-card,
.service-card,
.project-card,
.contact-form,
.contact-list,
.method-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgb(23 27 31 / 6%);
}

.home-link-card {
  min-height: 128px;
  padding: 22px;
  display: grid;
  gap: 8px;
}

.home-link-card:hover {
  border-color: #c59ac9;
}

.home-link-card span,
.icon {
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.home-link-card h3,
.service-card h3,
.project-card h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.2;
}

.home-link-card p,
.service-card p,
.project-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.roof-view-band {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  background: var(--graphite);
  color: #fff;
}

.roof-view-band p {
  margin-bottom: 0;
  color: rgb(255 255 255 / 76%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.service-card {
  min-height: 220px;
  padding: 23px;
  display: grid;
  align-content: start;
  gap: 13px;
}

.work-types {
  margin: 28px 0 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.work-types span {
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid #cfd8d4;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  color: #384144;
  background: #fff;
  font-size: 12px;
  font-weight: 780;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card div {
  padding: 19px 20px 22px;
}

.page-hero {
  padding: 86px max(24px, calc((100% - 1180px) / 2)) 58px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.page-hero p {
  max-width: 830px;
}

.about {
  padding: 86px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .72fr);
  gap: 42px;
  align-items: center;
  background: var(--graphite);
  color: #fff;
}

.about p {
  color: rgb(255 255 255 / 76%);
}

.page-about {
  margin-top: 0;
}

.method-panel {
  overflow: hidden;
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 16%);
  box-shadow: none;
}

.method-panel strong {
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  display: flex;
  align-items: center;
}

.method-panel ol {
  margin: 0;
  padding: 7px 0;
  list-style: none;
  counter-reset: method;
}

.method-panel li {
  min-height: 58px;
  padding: 13px 20px 13px 64px;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  color: rgb(255 255 255 / 84%);
  font-size: 14px;
  line-height: 1.45;
  counter-increment: method;
}

.method-panel li::before {
  content: counter(method);
  position: absolute;
  left: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.method-panel p {
  margin: 0;
  padding: 18px 20px;
  color: rgb(255 255 255 / 82%);
  font-size: 13px;
  line-height: 1.45;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, .65fr);
  gap: 42px;
  align-items: start;
}

.contact-list {
  margin-top: 28px;
  display: grid;
  overflow: hidden;
}

.contact-list a,
.contact-list div {
  min-height: 84px;
  padding: 17px 19px;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
}

.contact-list div:last-child {
  border-bottom: 0;
}

.contact-list small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-list strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.contact-form {
  padding: 24px;
  display: grid;
  gap: 15px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #343c3f;
  font-size: 12px;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd7d4;
  border-radius: 5px;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}

.contact-form input {
  min-height: 43px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 124px;
  padding: 11px 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgb(156 25 142 / 12%);
}

.contact-form .button {
  width: 100%;
}

.final-cta {
  margin: 0 auto 86px;
  width: min(1180px, calc(100% - 48px));
  padding: 42px;
  border-radius: 8px;
  display: grid;
  justify-items: start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.final-cta p {
  margin-bottom: 8px;
}

.site-footer {
  min-height: 92px;
  padding: 24px 34px;
  border-top: 1px solid #30363a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #171b1f;
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
}

.site-footer div {
  display: grid;
  gap: 5px;
}

.site-footer strong,
.site-footer a {
  color: #fff;
}

@media (max-width: 1050px) {
  .site-header {
    min-height: 104px;
    padding: 12px 24px;
    flex-wrap: wrap;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-hero {
    min-height: min(660px, calc(100vh - 104px));
  }

  .home-hero h1 {
    font-size: 52px;
  }

  .intro-grid,
  .about,
  .contact,
  .roof-view-band {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .service-grid.compact,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 132px;
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .phone-link,
  .roof-link {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .main-nav a {
    padding-inline: 10px;
    font-size: 12px;
  }

  .home-hero {
    min-height: min(610px, calc(100vh - 132px));
    padding: 54px 20px 46px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(23 27 31 / 95%) 0%, rgb(23 27 31 / 83%) 70%, rgb(23 27 31 / 50%) 100%),
      linear-gradient(0deg, rgb(23 27 31 / 24%), rgb(23 27 31 / 4%));
  }

  .home-hero h1 {
    font-size: 39px;
    line-height: 1.04;
  }

  .home-hero p {
    font-size: 15px;
  }

  .hero-actions,
  .trust-band,
  .service-grid,
  .service-grid.compact,
  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section,
  .contact,
  .roof-view-band,
  .final-cta {
    width: calc(100% - 36px);
  }

  .section,
  .contact,
  .page-hero {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-head h2,
  .section-copy h2,
  .about h2,
  .contact h1,
  .contact h2,
  .page-hero h1,
  .final-cta h2,
  .roof-view-band h2 {
    font-size: 31px;
    line-height: 1.13;
  }

  .about {
    padding: 62px 18px;
  }

  .roof-view-band,
  .final-cta {
    padding: 26px;
  }

  .site-footer {
    padding: 22px 20px;
    align-items: flex-start;
    flex-direction: column;
  }
}

.brand img {
  width: 230px;
  height: 58px;
  object-fit: contain;
}

.cinema-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 82px));
  padding: 92px 34px 76px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.cinema-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(156 25 142 / 14%) 0 1px, transparent 1px 96px),
    linear-gradient(0deg, rgb(255 255 255 / 8%) 0 1px, transparent 1px 96px);
  opacity: .32;
  pointer-events: none;
}

.cinema-hero .hero-overlay {
  background:
    linear-gradient(90deg, rgb(17 20 23 / 96%) 0%, rgb(17 20 23 / 80%) 48%, rgb(17 20 23 / 34%) 100%),
    linear-gradient(0deg, rgb(17 20 23 / 42%), rgb(17 20 23 / 4%));
}

.hero-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(360px, .62fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.hero-copy h1 {
  max-width: 790px;
  margin-bottom: 20px;
  font-size: 66px;
  line-height: .97;
  font-weight: 900;
}

.hero-copy p {
  max-width: 690px;
  margin-bottom: 26px;
  color: rgb(255 255 255 / 84%);
  font-size: 18px;
  line-height: 1.62;
}

.hero-brand-panel {
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  background: rgb(255 255 255 / 10%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
  backdrop-filter: blur(18px);
}

.hero-brand-panel img {
  width: 100%;
  padding: 22px;
  border-radius: 8px;
  background: rgb(255 255 255 / 92%);
}

.hero-brand-panel img.hero-logo-round {
  width: min(340px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 10px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.hero-brand-panel div {
  display: grid;
  gap: 7px;
}

.hero-brand-panel strong {
  color: #fff;
  font-size: 20px;
}

.hero-brand-panel span {
  color: rgb(255 255 255 / 76%);
  font-size: 14px;
  line-height: 1.45;
}

.intro-statement {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 94px 0 72px;
}

.intro-statement h2 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.07;
  font-weight: 900;
}

.intro-statement p:last-child {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.drone-section {
  padding: 86px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: center;
  background: #fff;
  border-block: 1px solid var(--line);
}

.drone-showcase {
  display: grid;
  grid-template-columns: .92fr 1fr;
  gap: 18px;
  align-items: end;
}

.feature-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgb(23 27 31 / 10%);
}

.feature-photo:nth-child(2) {
  transform: translateY(34px);
}

.feature-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-photo:nth-child(2) img {
  aspect-ratio: 16 / 10;
}

.feature-photo span {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.scroll-story {
  padding: 96px max(24px, calc((100% - 1180px) / 2));
}

.story-head {
  max-width: 740px;
  margin-bottom: 34px;
}

.story-head h2 {
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 900;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.story-step {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 13px;
  background: #fff;
  box-shadow: 0 16px 44px rgb(23 27 31 / 6%);
}

.story-step span,
.service-strip span {
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.story-step h3,
.service-strip h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.18;
}

.story-step p,
.service-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.roof-view-feature {
  padding: 94px max(24px, calc((100% - 1240px) / 2));
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.18fr);
  gap: 46px;
  align-items: center;
  background: var(--graphite);
  color: #fff;
}

.roof-copy h2 {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 900;
}

.roof-copy p {
  margin-bottom: 24px;
  color: rgb(255 255 255 / 76%);
  font-size: 16px;
  line-height: 1.7;
}

.roof-copy .kicker {
  color: #f1a9ec;
}

.product-stack {
  position: relative;
  min-height: 560px;
}

.product-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  background: #eef3f4;
  box-shadow: 0 24px 70px rgb(0 0 0 / 30%);
}

.product-shot img {
  width: 100%;
  object-fit: cover;
}

.main-shot img {
  aspect-ratio: 16 / 7.35;
}

.small-shot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
}

.small-shot img {
  aspect-ratio: 16 / 8.35;
}

.product-shot figcaption {
  min-height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

.service-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-strip article {
  min-height: 194px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 13px;
  background: #fff;
  box-shadow: 0 14px 30px rgb(23 27 31 / 6%);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease, transform 760ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 220ms;
}

.delay-3 {
  transition-delay: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1050px) {
  .brand img {
    width: 210px;
    height: 54px;
  }

  .cinema-hero {
    min-height: min(740px, calc(100vh - 104px));
  }

  .hero-grid,
  .drone-section,
  .roof-view-feature {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .hero-brand-panel {
    max-width: 520px;
  }

  .story-steps,
  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-stack {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .small-shot {
    position: static;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .brand img {
    width: 188px;
    height: 48px;
  }

  .cinema-hero {
    min-height: min(680px, calc(100vh - 132px));
    padding: 52px 20px 46px;
  }

  .hero-copy h1,
  .intro-statement h2,
  .story-head h2,
  .roof-copy h2 {
    font-size: 34px;
    line-height: 1.1;
  }

  .hero-copy p,
  .intro-statement p:last-child {
    font-size: 15px;
  }

  .hero-brand-panel {
    padding: 18px;
  }

  .intro-statement {
    width: calc(100% - 36px);
    padding: 62px 0;
  }

  .drone-section,
  .scroll-story,
  .roof-view-feature {
    padding: 62px 18px;
  }

  .drone-showcase,
  .story-steps,
  .service-strip {
    grid-template-columns: 1fr;
  }

  .feature-photo:nth-child(2) {
    transform: none;
  }

  .story-step,
  .service-strip article {
    min-height: auto;
  }

  .service-strip {
    width: calc(100% - 36px);
  }
}

/* Inicio rediseñado */
.site-header {
  min-height: 88px;
  padding: 12px 38px;
}

.brand img {
  width: 264px;
  height: 62px;
  object-fit: contain;
}

.main-nav a,
.phone-link,
.roof-link,
.button,
.story-step,
.service-strip article,
.feature-photo,
.product-shot {
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.phone-link,
.roof-link {
  min-height: 46px;
  padding-inline: 18px;
}

.cinema-hero {
  min-height: min(790px, calc(100vh - 88px));
  padding: 88px 38px 74px;
}

.cinema-hero .kicker {
  color: #f4b4ef;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, .72fr);
  gap: 58px;
}

.hero-copy h1 {
  max-width: 810px;
  font-size: 62px;
  line-height: 1;
}

.hero-copy p {
  max-width: 720px;
}

.hero-proof-panel {
  width: min(455px, 100%);
  justify-self: end;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  background: rgb(255 255 255 / 12%);
  box-shadow: 0 28px 80px rgb(0 0 0 / 34%);
  backdrop-filter: blur(18px);
}

.hero-proof-main {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  background: #edf2f3;
}

.hero-proof-main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.hero-proof-model img {
  aspect-ratio: 16 / 6.6;
}

.hero-proof-measurement img {
  aspect-ratio: 16 / 5.9;
}

.hero-proof-main figcaption {
  min-height: 62px;
  padding: 10px 14px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: #fff;
  color: var(--ink);
}

.hero-proof-measurement figcaption {
  min-height: 58px;
  padding: 10px 14px;
}

.hero-proof-main strong,
.hero-proof-mini strong {
  font-size: 15px;
  line-height: 1.2;
}

.hero-proof-main span,
.hero-proof-mini span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-proof-mini {
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: rgb(17 20 23 / 72%);
}

.hero-proof-mini img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  object-fit: cover;
}

.hero-proof-mini div {
  display: grid;
  gap: 5px;
}

.hero-proof-mini strong {
  color: #fff;
}

.hero-proof-mini span {
  color: rgb(255 255 255 / 72%);
}

.intro-statement {
  width: min(1040px, calc(100% - 48px));
  padding: 96px 0 78px;
}

.intro-statement > p:not(.kicker) {
  max-width: 880px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.intro-highlights,
.inspection-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro-highlights span,
.inspection-points span {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d5ddd9;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  color: #30383b;
  background: #fff;
  font-size: 13px;
  font-weight: 820;
}

.intro-highlights span::before,
.inspection-points span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--purple);
}

.inspection-points {
  margin-top: 24px;
}

.inspection-points span {
  background: #f7f8f7;
}

.drone-section {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.14fr);
  gap: 50px;
}

.feature-photo:hover,
.story-step:hover,
.service-strip article:hover {
  transform: translateY(-4px);
  border-color: #c59ac9;
  box-shadow: 0 22px 54px rgb(23 27 31 / 12%);
}

.story-steps {
  gap: 16px;
}

.story-step {
  position: relative;
  overflow: hidden;
}

.story-step::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 3px;
  background: var(--purple);
  opacity: .76;
}

.roof-view-feature {
  background:
    linear-gradient(135deg, #171b1f 0%, #24282c 58%, #211622 100%);
}

.roof-copy h2 {
  max-width: 620px;
}

.product-stack {
  min-height: 590px;
}

.main-shot img {
  aspect-ratio: 16 / 7.8;
}

.small-shot {
  width: 56%;
}

.service-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.services-heading {
  max-width: 760px;
}

.services-heading h2 {
  margin-bottom: 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-strip article {
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.service-strip article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), #2d6a5f);
}

.service-strip article ul {
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.service-strip article li {
  position: relative;
  padding-left: 16px;
  color: #3d4648;
  font-size: 13px;
  line-height: 1.45;
}

.service-strip article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.final-cta {
  padding: 46px;
  border-color: transparent;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(255 255 255 / 90%)),
    linear-gradient(90deg, var(--purple), var(--green));
  box-shadow: 0 22px 58px rgb(23 27 31 / 10%);
}

.final-cta .kicker {
  margin-bottom: 4px;
}

@media (max-width: 1050px) {
  .site-header {
    min-height: 112px;
    padding: 12px 24px;
  }

  .brand img {
    width: 232px;
    height: 58px;
  }

  .cinema-hero {
    min-height: min(780px, calc(100vh - 112px));
  }

  .hero-grid,
  .drone-section,
  .roof-view-feature {
    grid-template-columns: 1fr;
  }

  .hero-proof-panel {
    justify-self: start;
    max-width: 620px;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 136px;
    padding: 10px 18px;
  }

  .brand img {
    width: 204px;
    height: 52px;
  }

  .cinema-hero {
    min-height: auto;
    padding: 44px 18px 42px;
  }

  .cinema-hero .hero-overlay {
    background:
      linear-gradient(90deg, rgb(17 20 23 / 96%) 0%, rgb(17 20 23 / 86%) 72%, rgb(17 20 23 / 62%) 100%),
      linear-gradient(0deg, rgb(17 20 23 / 48%), rgb(17 20 23 / 8%));
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-copy h1,
  .intro-statement h2,
  .story-head h2,
  .roof-copy h2,
  .services-heading h2 {
    font-size: 34px;
    line-height: 1.1;
  }

  .hero-proof-panel {
    padding: 12px;
  }

  .hero-proof-mini {
    grid-template-columns: 1fr;
  }

  .hero-proof-mini img {
    aspect-ratio: 16 / 9;
  }

  .intro-statement {
    width: calc(100% - 36px);
    padding: 62px 0;
  }

  .intro-statement > p:not(.kicker) {
    font-size: 15px;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 30px;
  }
}

/* Proyectos dinámicos */
:focus-visible {
  outline: 3px solid rgb(156 25 142 / 42%);
  outline-offset: 3px;
}

.button.outline-dark {
  color: var(--ink);
  background: #fff;
  border-color: #cad3d0;
}

.button.outline-dark:hover {
  border-color: #b082b5;
  color: var(--purple-dark);
}

.projects-hero {
  padding: 54px max(24px, calc((100% - 1180px) / 2)) 46px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .58fr);
  gap: 34px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.projects-hero-copy h1,
.projects-section-head h2,
.projects-toolbar h2,
.projects-roof-copy h2,
.projects-final-cta h2,
.project-detail-copy h1,
.project-detail-cta h2,
.project-error h1 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
}

.projects-hero-copy p:not(.kicker),
.projects-final-cta p,
.project-detail-copy > p,
.project-detail-cta p,
.project-error p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.projects-hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgb(23 27 31 / 10%);
}

.projects-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-project-section,
.projects-browser,
.project-detail-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.featured-project-section {
  padding: 56px 0 40px;
}

.projects-section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.featured-project {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .78fr);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgb(23 27 31 / 8%);
}

.featured-project-image {
  min-height: 410px;
  background: #e9eeee;
}

.featured-project-image img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
}

.featured-project-copy {
  padding: 36px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.featured-project-copy h3,
.dynamic-project-card h3 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.12;
}

.featured-project-copy > p,
.dynamic-project-body > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.project-category {
  margin-bottom: 0;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-meta,
.project-technical {
  color: #333b3e;
  font-weight: 800;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-tags span {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  color: #334044;
  background: #edf2ef;
  font-size: 12px;
  font-weight: 820;
}

.projects-browser {
  padding: 36px 0 76px;
}

.projects-toolbar {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.projects-toolbar h2 {
  margin-bottom: 0;
}

.project-filters {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.project-filters button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cfd8d4;
  border-radius: 5px;
  color: #384144;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 840;
  cursor: pointer;
}

.project-filters button:hover,
.project-filters button.active {
  border-color: var(--purple);
  color: #fff;
  background: var(--purple);
}

.projects-status {
  min-height: 22px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.projects-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.projects-grid-dynamic.is-filtering {
  opacity: .36;
  transform: translateY(4px);
}

.dynamic-project-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgb(23 27 31 / 7%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dynamic-project-card:hover {
  transform: translateY(-4px);
  border-color: #c59ac9;
  box-shadow: 0 22px 54px rgb(23 27 31 / 12%);
}

.dynamic-project-image {
  display: block;
  background: #e9eeee;
}

.dynamic-project-image img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.dynamic-project-body {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.dynamic-project-card h3 {
  font-size: 20px;
}

.project-card-link {
  width: max-content;
  margin-top: 3px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
}

.project-card-link:hover {
  color: var(--purple-dark);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-loading {
  min-height: 360px;
}

.skeleton-media,
.skeleton-copy span,
.skeleton-copy strong,
.skeleton-copy p {
  border-radius: 6px;
  background: linear-gradient(90deg, #e9ece9, #f7f8f7, #e9ece9);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.25s ease-in-out infinite;
}

.skeleton-media {
  min-height: 360px;
}

.skeleton-copy {
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.skeleton-copy span {
  width: 120px;
  height: 14px;
}

.skeleton-copy strong {
  width: 82%;
  height: 42px;
}

.skeleton-copy p {
  width: 100%;
  height: 16px;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 0 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

.projects-roof-view {
  padding: 72px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  background:
    linear-gradient(135deg, #171b1f 0%, #25292d 62%, #241725 100%);
  color: #fff;
}

.projects-roof-copy .kicker {
  color: #f1a9ec;
}

.projects-roof-copy p:not(.kicker) {
  color: rgb(255 255 255 / 74%);
  font-size: 16px;
  line-height: 1.68;
}

.projects-roof-actions,
.projects-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.projects-roof-media {
  min-height: 440px;
  position: relative;
}

.projects-roof-media img {
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
}

.projects-roof-media img:first-child {
  width: 82%;
  aspect-ratio: 16 / 9;
}

.projects-roof-media img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  aspect-ratio: 16 / 10;
}

.projects-final-cta,
.project-detail-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 76px auto;
  padding: 42px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: #fff;
  box-shadow: 0 18px 48px rgb(23 27 31 / 9%);
}

.projects-final-cta h2,
.project-detail-cta h2 {
  max-width: 780px;
}

.projects-final-cta p,
.project-detail-cta p {
  max-width: 780px;
  margin-bottom: 0;
}

.breadcrumb {
  padding: 34px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: #30383b;
  font-weight: 820;
}

.breadcrumb a:hover {
  color: var(--purple);
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(420px, .9fr);
  gap: 34px;
  align-items: center;
}

.project-detail-copy {
  display: grid;
  gap: 14px;
}

.project-detail-copy h1 {
  margin-bottom: 0;
}

.project-detail-copy > p {
  margin-bottom: 0;
}

.project-detail-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9eeee;
  box-shadow: 0 18px 48px rgb(23 27 31 / 10%);
}

.project-detail-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-summary {
  margin: 42px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-summary article {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 7px;
  background: #fff;
}

.project-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-summary strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.project-narrative {
  margin: 42px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-text-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.project-text-block h2,
.gallery-section-head h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.14;
}

.project-text-block p,
.project-text-block li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.project-text-block p {
  margin-bottom: 0;
}

.project-text-block ul {
  margin: 0;
  padding-left: 18px;
}

.project-galleries {
  margin: 54px 0;
  display: grid;
  gap: 38px;
}

.gallery-section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.gallery-section-head h2 {
  margin-bottom: 0;
}

.gallery-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 220ms ease;
}

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

.project-detail-loading {
  padding: 52px 0;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(420px, .9fr);
  gap: 34px;
  align-items: center;
}

.project-error {
  min-height: 460px;
  padding: 74px 0;
  display: grid;
  align-content: center;
  justify-items: start;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: rgb(9 11 12 / 88%);
}

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

.project-lightbox figure {
  margin: 0;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.project-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgb(0 0 0 / 44%);
}

.project-lightbox figcaption {
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  min-height: 42px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 5px;
  color: #fff;
  background: rgb(255 255 255 / 12%);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0 14px;
}

.lightbox-nav {
  width: 92px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--purple);
}

.lightbox-open {
  overflow: hidden;
}

/* Quiénes somos: proveedores y constructoras */
.partners-section {
  padding: 88px max(24px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(180deg, #fff 0%, #f4f5f3 100%);
}

.partners-intro {
  max-width: 820px;
  margin-bottom: 32px;
}

.partners-intro h2 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
}

.partners-intro p:not(.kicker) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.partner-panels {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 18px;
  align-items: stretch;
}

.partner-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  box-shadow: 0 18px 48px rgb(23 27 31 / 8%);
}

.partner-panel.featured {
  border-color: #d5c0d8;
}

.partner-panel-head {
  min-height: 128px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.partner-panel-head > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.partner-panel-head h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.partner-panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.partner-logo-board {
  margin: 0;
  min-height: 286px;
  padding: 22px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgb(156 25 142 / 5%), transparent 38%),
    #fff;
}

.partner-logo-board img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
}

.company-compliance {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid #d6dedb;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: #171b1f;
  color: #fff;
}

.company-compliance strong {
  font-size: 16px;
  line-height: 1.35;
}

.company-compliance span {
  color: rgb(255 255 255 / 76%);
  font-size: 14px;
  line-height: 1.58;
}

@media (max-width: 1050px) {
  .projects-hero,
  .featured-project,
  .projects-toolbar,
  .projects-roof-view,
  .projects-final-cta,
  .project-detail-hero,
  .project-detail-cta,
  .project-detail-loading,
  .partner-panels,
  .company-compliance {
    grid-template-columns: 1fr;
  }

  .featured-project-image,
  .featured-project-image img {
    min-height: 330px;
  }

  .projects-grid-dynamic,
  .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-filters {
    justify-content: flex-start;
  }

  .projects-roof-media {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .projects-roof-media img:first-child,
  .projects-roof-media img:last-child {
    position: static;
    width: 100%;
  }

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

@media (max-width: 720px) {
  .projects-hero {
    padding: 42px 18px 34px;
  }

  .projects-hero-copy h1,
  .projects-section-head h2,
  .projects-toolbar h2,
  .projects-roof-copy h2,
  .projects-final-cta h2,
  .project-detail-copy h1,
  .project-detail-cta h2,
  .partners-intro h2,
  .project-error h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .featured-project-section,
  .projects-browser,
  .project-detail-shell {
    width: calc(100% - 36px);
  }

  .featured-project-copy,
  .projects-final-cta,
  .project-detail-cta {
    padding: 24px;
  }

  .featured-project-image,
  .featured-project-image img {
    min-height: 240px;
  }

  .projects-grid-dynamic,
  .project-summary,
  .project-narrative,
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-filters {
    margin-inline: -18px;
    padding-inline: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: thin;
  }

  .project-filters button {
    flex: 0 0 auto;
  }

  .projects-roof-view {
    padding: 58px 18px;
  }

  .partners-section {
    padding: 62px 18px;
  }

  .partner-panel-head {
    min-height: auto;
    padding: 20px;
  }

  .partner-logo-board {
    min-height: auto;
    padding: 16px;
  }

  .projects-final-cta,
  .project-detail-cta {
    width: calc(100% - 36px);
    margin: 58px auto;
  }

  .projects-cta-actions,
  .projects-roof-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .project-lightbox {
    padding: 76px 14px 20px;
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 100%;
  }

  .project-lightbox img {
    max-height: calc(100vh - 230px);
  }
}

/* Páginas legales */
.legal-page {
  background:
    linear-gradient(135deg, #fff 0%, #f8f2f7 46%, #edf5f2 100%);
}

.legal-hero {
  padding: 72px max(24px, calc((100% - 1180px) / 2)) 42px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 72%);
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: 52px;
  line-height: 1.04;
  font-weight: 950;
  color: var(--ink);
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.legal-shell {
  width: min(980px, calc(100% - 48px));
  margin: 42px auto 76px;
}

.legal-document {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgb(23 27 31 / 8%);
}

.legal-document h2,
.legal-document h3 {
  color: var(--ink);
  line-height: 1.22;
}

.legal-document h2 {
  margin: 0 0 26px;
  font-size: 24px;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-document h3 {
  margin: 34px 0 14px;
  font-size: 18px;
  font-weight: 950;
}

.legal-document h4 {
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 950;
  color: var(--ink);
}

.legal-document p,
.legal-document li,
.legal-data dd,
.legal-data dt {
  color: #30383b;
  font-size: 15px;
  line-height: 1.7;
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-data {
  margin: 18px 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  background: #f7f9f8;
}

.legal-data div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
}

.legal-data dt {
  font-weight: 900;
  color: var(--ink);
}

.legal-data dd {
  margin: 0;
}

@media (max-width: 720px) {
  .legal-hero {
    padding: 48px 18px 32px;
  }

  .legal-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .legal-shell {
    width: calc(100% - 36px);
    margin: 30px auto 54px;
  }

  .legal-document {
    padding: 28px 20px;
  }

  .legal-data div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Footer común con acreditación ANEDI */
.site-footer {
  min-height: 0;
  padding: 0;
  display: block;
  border-top: 1px solid #30363a;
  background:
    linear-gradient(135deg, #171b1f 0%, #202529 58%, #231425 100%);
}

.footer-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 24px;
  align-items: center;
}

.site-footer .footer-brand,
.site-footer .footer-contact,
.site-footer .footer-legal {
  display: grid;
  gap: 6px;
}

.footer-brand strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.footer-brand span,
.footer-contact span,
.footer-legal span {
  color: rgb(255 255 255 / 68%);
  font-size: 13px;
  line-height: 1.45;
}

.footer-contact,
.footer-legal {
  min-width: 210px;
}

.footer-contact span,
.footer-legal span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-contact a,
.footer-legal a {
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.footer-contact a:hover,
.footer-legal a:hover {
  color: #f1a9ec;
}

.footer-anedi {
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 18px 44px rgb(0 0 0 / 22%);
}

.footer-anedi img {
  width: min(254px, 100%);
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-contact,
  .footer-legal {
    min-width: 0;
  }

  .footer-anedi {
    width: min(320px, 100%);
  }
}

@media (max-width: 720px) {
  .footer-main {
    width: calc(100% - 36px);
    padding: 24px 0;
    gap: 18px;
  }
}

/* Ajuste final del logo de cabecera */
.site-header {
  min-height: 110px;
  padding: 14px 38px;
}

.brand {
  width: 386px;
  height: 100px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 186px 1fr;
  align-items: end;
  gap: 0;
  background: transparent;
  overflow: visible;
}

.brand img {
  height: auto;
  display: block;
  object-fit: contain;
}

.brand img.brand-mark {
  width: 186px;
  height: 98px;
  object-position: left bottom;
}

.brand-copy {
  min-width: 0;
  display: grid;
  align-content: end;
  gap: 2px;
  padding-bottom: 10px;
  margin-left: -2px;
}

.brand img.brand-word {
  width: 196px;
  height: auto;
  object-position: left bottom;
}

.brand-subtitle {
  position: static;
  width: 196px;
  display: grid;
  gap: 1px;
  color: #111827;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.14;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.brand-subtitle span {
  display: block;
}

@media (max-width: 1050px) {
  .site-header {
    min-height: 118px;
    padding: 12px 24px;
  }

  .brand {
    width: 326px;
    height: 86px;
    grid-template-columns: 156px 1fr;
  }

  .brand img.brand-mark {
    width: 156px;
    height: 82px;
  }

  .brand-copy {
    padding-bottom: 8px;
    margin-left: -1px;
  }

  .brand img.brand-word {
    width: 166px;
  }

  .brand-subtitle {
    width: 166px;
    font-size: 8.6px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 144px;
    padding: 10px 18px;
  }

  .brand {
    width: 270px;
    height: 72px;
    grid-template-columns: 130px 1fr;
  }

  .brand img.brand-mark {
    width: 130px;
    height: 68px;
  }

  .brand-copy {
    padding-bottom: 7px;
    margin-left: -1px;
  }

  .brand img.brand-word {
    width: 138px;
  }

  .brand-subtitle {
    width: 138px;
    font-size: 7.2px;
  }
}

/* Proyectos: casos técnicos */
.projects-hero {
  padding: 70px max(24px, calc((100% - 1260px) / 2)) 62px;
  grid-template-columns: minmax(0, .82fr) minmax(420px, .66fr);
  gap: 46px;
  background:
    linear-gradient(135deg, #fff 0%, #f8f2f7 46%, #edf5f2 100%);
}

.projects-hero-copy {
  max-width: 720px;
}

.projects-hero-copy h1 {
  max-width: 860px;
  font-size: 56px;
  line-height: 1.02;
}

.projects-hero-copy p:not(.kicker) {
  max-width: 680px;
  color: #3d4649;
  font-size: 18px;
}

.projects-hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.projects-hero-media {
  position: relative;
  border: 0;
  background: #151a1d;
  box-shadow: 0 28px 80px rgb(23 27 31 / 16%);
}

.projects-hero-media img {
  min-height: 390px;
  opacity: .94;
}

.projects-hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  color: #fff;
  background: rgb(18 23 26 / 82%);
}

.projects-hero-media figcaption strong {
  font-size: 18px;
}

.projects-hero-media figcaption span {
  color: rgb(255 255 255 / 78%);
  font-size: 14px;
  line-height: 1.45;
}

.projects-method-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.projects-method-strip article {
  min-height: 172px;
  padding: 22px;
  border: 1px solid #d9dfdb;
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(23 27 31 / 6%);
}

.projects-method-strip span {
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.projects-method-strip strong {
  font-size: 18px;
  line-height: 1.18;
}

.projects-method-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.featured-project-section {
  padding-top: 66px;
}

.projects-section-head {
  max-width: 820px;
}

.featured-project {
  border: 0;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  background: #12171a;
  color: #fff;
  box-shadow: 0 26px 80px rgb(23 27 31 / 16%);
}

.featured-project-image {
  position: relative;
  min-height: 520px;
  background: #252b2f;
}

.featured-project-image img {
  min-height: 520px;
  opacity: .92;
}

.featured-project-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--purple);
  font-size: 12px;
  font-weight: 900;
}

.featured-project-copy {
  padding: 44px;
  gap: 16px;
}

.featured-project-copy h3 {
  font-size: 36px;
  line-height: 1.05;
}

.featured-project-copy > p,
.featured-project-copy .project-meta,
.featured-project-copy .project-technical {
  color: rgb(255 255 255 / 76%);
}

.featured-project-copy .project-category {
  color: #f0a6ea;
}

.project-case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.project-case-stats span {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: rgb(255 255 255 / 6%);
}

.project-case-stats small {
  color: rgb(255 255 255 / 56%);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.project-case-stats strong {
  font-size: 15px;
  line-height: 1.2;
}

.project-case-flow {
  display: grid;
  gap: 9px;
}

.project-case-flow article {
  padding-left: 13px;
  border-left: 3px solid var(--purple);
}

.project-case-flow span {
  display: block;
  margin-bottom: 3px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-case-flow p {
  margin-bottom: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.48;
  opacity: .74;
}

.featured-project-copy .project-tags span {
  color: #fff;
  background: rgb(255 255 255 / 10%);
}

.projects-browser {
  padding-top: 28px;
}

.projects-toolbar {
  padding: 24px;
  border: 1px solid #dce1dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(23 27 31 / 6%);
}

.project-filters button {
  border-radius: 6px;
}

.projects-status {
  margin: 18px 0;
}

.projects-grid-dynamic {
  grid-template-columns: 1fr;
  gap: 16px;
}

.dynamic-project-card {
  display: grid;
  grid-template-columns: minmax(300px, .58fr) minmax(0, 1fr);
  border-color: #d8dfdb;
  box-shadow: 0 18px 48px rgb(23 27 31 / 8%);
}

.dynamic-project-image {
  min-height: 330px;
}

.dynamic-project-image img {
  height: 100%;
  min-height: 330px;
  aspect-ratio: auto;
}

.dynamic-project-body {
  padding: 28px;
  gap: 12px;
}

.dynamic-project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dynamic-project-topline .project-category {
  margin: 0;
}

.dynamic-project-topline span {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  color: #394246;
  background: #eef3f1;
  font-size: 12px;
  font-weight: 850;
}

.dynamic-project-card h3 {
  max-width: 760px;
  font-size: 28px;
  line-height: 1.1;
}

.dynamic-project-body .project-case-flow {
  padding: 14px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e0e6e2;
  border-bottom: 1px solid #e0e6e2;
}

.dynamic-project-body .project-case-flow article {
  min-width: 0;
}

.dynamic-project-body .project-case-flow p {
  color: var(--muted);
  opacity: 1;
}

.projects-roof-view {
  margin-top: 18px;
  background:
    linear-gradient(135deg, #13191c 0%, #25282b 58%, #2b172a 100%);
}

.projects-final-cta {
  background:
    linear-gradient(135deg, #fff 0%, #fbf4fa 48%, #eef5f2 100%);
}

@media (max-width: 1050px) {
  .projects-hero,
  .featured-project,
  .dynamic-project-card {
    grid-template-columns: 1fr;
  }

  .projects-method-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-project-image,
  .featured-project-image img,
  .dynamic-project-image,
  .dynamic-project-image img {
    min-height: 330px;
  }

  .dynamic-project-body .project-case-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .projects-hero {
    padding: 42px 18px 34px;
    gap: 28px;
  }

  .projects-hero-copy h1,
  .featured-project-copy h3,
  .dynamic-project-card h3 {
    font-size: 34px;
    line-height: 1.08;
  }

  .projects-hero-copy p:not(.kicker) {
    font-size: 16px;
  }

  .projects-hero-actions,
  .projects-hero-actions .button {
    width: 100%;
  }

  .projects-method-strip {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
  }

  .featured-project-copy,
  .dynamic-project-body,
  .projects-toolbar {
    padding: 22px;
  }

  .project-case-stats {
    grid-template-columns: 1fr;
  }

  .projects-hero-media img,
  .featured-project-image,
  .featured-project-image img,
  .dynamic-project-image,
  .dynamic-project-image img {
    min-height: 260px;
  }
}

/* Ajuste compacto para que el proyecto destacado se lea de un vistazo */
.featured-project-section {
  padding-top: 42px;
  padding-bottom: 30px;
}

.featured-project {
  grid-template-columns: minmax(0, 1.03fr) minmax(410px, .78fr);
}

.featured-project-image,
.featured-project-image img {
  min-height: 430px;
}

.featured-project-copy {
  padding: 30px;
  gap: 11px;
  align-content: start;
}

.featured-project-copy h3 {
  max-width: 520px;
  font-size: 31px;
  line-height: 1.08;
}

.featured-project-copy > p {
  font-size: 13px;
  line-height: 1.5;
}

.featured-project-copy .project-meta {
  font-size: 13px;
}

.featured-project-copy .button {
  width: max-content;
  min-height: 38px;
  margin-top: 2px;
}

.featured-project-copy .project-tags {
  gap: 6px;
}

.featured-project-copy .project-tags span {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

.featured-project-copy .project-case-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-project-copy .project-case-stats span {
  min-height: 62px;
  padding: 10px;
}

.featured-project-copy .project-case-stats small {
  font-size: 10px;
}

.featured-project-copy .project-case-stats strong {
  font-size: 13px;
}

.featured-project-copy .project-case-flow {
  gap: 7px;
}

.featured-project-copy .project-case-flow article {
  padding-left: 10px;
}

.featured-project-copy .project-case-flow span {
  margin-bottom: 1px;
  font-size: 11px;
}

.featured-project-copy .project-case-flow p {
  font-size: 12px;
  line-height: 1.38;
}

@media (max-width: 1050px) {
  .featured-project {
    grid-template-columns: 1fr;
  }

  .featured-project-copy .project-case-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .featured-project-image,
  .featured-project-image img {
    min-height: 250px;
  }

  .featured-project-copy h3 {
    font-size: 29px;
  }

  .featured-project-copy .project-case-stats {
    grid-template-columns: 1fr;
  }

  .featured-project-copy .button {
    width: 100%;
  }
}

/* Imagen completa en fichas de proyecto */
.featured-project-image,
.dynamic-project-image,
.project-detail-media {
  background: #eef2f1;
}

.featured-project-image img,
.dynamic-project-image img,
.project-detail-media img {
  object-fit: contain;
}

.project-detail-media {
  display: grid;
  place-items: center;
  padding: 0;
}

.project-detail-media img {
  width: 100%;
  height: auto;
  max-height: min(68vh, 680px);
}

/* Galería de proyecto simplificada */
.project-photo-gallery {
  margin-top: 10px;
}

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

.project-photo-grid .gallery-item img {
  aspect-ratio: 4 / 3;
}

.project-technical-gallery {
  margin-top: 8px;
}

.project-technical-grid {
  max-width: 1040px;
  grid-template-columns: 1fr;
}

.project-technical-grid .gallery-item {
  background: #eef2f1;
}

.project-technical-grid .gallery-item img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #eef2f1;
}

@media (max-width: 720px) {
  .project-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* Galería compacta: miniaturas elegantes que se amplían al hacer clic */
.project-galleries {
  margin: 38px 0 50px;
  gap: 30px;
}

.project-photo-gallery {
  margin-top: 0;
}

.project-photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-photo-grid .gallery-item {
  min-height: 0;
  box-shadow: 0 12px 28px rgb(23 27 31 / 7%);
}

.project-photo-grid .gallery-item img {
  height: clamp(158px, 12vw, 210px);
  aspect-ratio: auto;
  object-fit: cover;
}

.project-technical-grid {
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: start;
  gap: 12px;
}

.project-technical-grid .gallery-item {
  box-shadow: 0 12px 28px rgb(23 27 31 / 7%);
}

.project-technical-grid .gallery-item img {
  height: clamp(150px, 10vw, 190px);
  max-height: none;
  padding: 8px;
}

@media (max-width: 1050px) {
  .project-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-photo-grid .gallery-item img {
    height: clamp(180px, 24vw, 260px);
  }
}

@media (max-width: 720px) {
  .project-galleries {
    margin: 30px 0 42px;
  }

  .project-photo-grid {
    grid-template-columns: 1fr;
  }

  .project-photo-grid .gallery-item img {
    height: 230px;
  }

  .project-technical-grid {
    grid-template-columns: 1fr;
  }

  .project-technical-grid .gallery-item img {
    height: 210px;
  }
}
