
/* ============================================================
   TOLDOS CORONA — Estilos principales
   ============================================================ */

/* ── Variables globales ─────────────────────────────────── */
:root {
  --dark:      #1d1d1f;
  --soft:      #f5f5f7;
  --gold:      #f5c330;
  --gold-dark: #d4a017;
  --blue:      #0071e3;
  --blue-mid:  #1d1d1f;
  --text:      #1d1d1f;
  --muted:     #6e6e73;
  --white:     #fff;
}

/* ── Reset básico ───────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: rgba(255, 255, 255, .82);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .3s, box-shadow .3s;
}

.site-header.scrolled { border-bottom-color: rgba(0, 0, 0, .1); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.logo { display: flex; align-items: center; }.logo img { display: block; width: 228px; height: auto; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 400; letter-spacing: -.01em; }
.solutions-menu { display: flex; align-items: center; height: 30px; position: relative; }

.group-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); min-height: 680px; background: var(--dark); color: var(--white); }
.group-hero-copy { display: grid; align-content: center; gap: 24px; padding: 92px clamp(46px, 6vw, 110px); }
.group-hero-copy .eyebrow { color: var(--gold); }.group-hero-copy h1 { max-width: 620px; margin: 0; font-size: clamp(48px, 5.2vw, 76px); line-height: .98; }.group-hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .76); font-size: 19px; line-height: 1.65; }
.group-hero-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; }.group-hero-facts div { display: grid; gap: 4px; min-width: 115px; padding-left: 14px; border-left: 2px solid var(--gold); }.group-hero-facts strong { font-size: 20px; }.group-hero-facts span { color: rgba(255, 255, 255, .62); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.group-hero-media { position: relative; min-height: 500px; overflow: hidden; }.group-hero-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }.group-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 29, 31, .35), transparent 42%); }.group-hero-inset { position: absolute; z-index: 1; right: clamp(20px, 4vw, 64px); bottom: 48px; width: min(42%, 290px); aspect-ratio: 1 / .82; border: 5px solid var(--dark); overflow: hidden; }.group-hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.group-introduction { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(42px, 7vw, 110px); width: min(1240px, calc(100% - 112px)); margin: 112px auto; align-items: center; }.group-image-wall { --mosaic-gap: 14px; position: relative; height: 434px; }.group-image-wall figure { position: absolute; width: calc((100% - var(--mosaic-gap)) * .375); height: calc((100% - var(--mosaic-gap)) / 2); right: 0; margin: 0; overflow: hidden; transition: width .5s cubic-bezier(.16, 1, .3, 1), height .5s cubic-bezier(.16, 1, .3, 1), top .5s cubic-bezier(.16, 1, .3, 1), right .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s cubic-bezier(.16, 1, .3, 1); }.group-image-wall figure:first-child { top: 0; left: 0; right: auto; width: calc((100% - var(--mosaic-gap)) * .625); height: 100%; }.group-image-wall figure:nth-child(2) { top: 0; }.group-image-wall figure:nth-child(3) { top: calc((100% + var(--mosaic-gap)) / 2); }.group-image-wall img { display: block; width: 100%; height: 100%; object-fit: cover; }.group-intro-copy { max-width: 520px; }.group-intro-copy h2 { margin: 10px 0 18px; font-size: clamp(34px, 3.4vw, 50px); }.group-intro-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.68; }.group-intro-copy .eyebrow { color: var(--blue); }
.group-method { padding: 112px max(56px, calc((100vw - 1240px) / 2)); background: var(--soft); }.group-method-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 56px; align-items: end; margin-bottom: 48px; }.group-method-heading h2 { margin: 10px 0 0; }.group-method-heading > p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }.group-method-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.group-method-item { position: relative; isolation: isolate; display: grid; align-content: end; min-height: 420px; overflow: hidden; padding: 30px; color: var(--white); background: center / cover no-repeat; }.group-method-item::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(10, 16, 20, .94), rgba(10, 16, 20, .16) 75%); }.group-method-item:nth-child(1) { background-image: url('Imágenes/grupo-proceso-visita.webp'); }.group-method-item:nth-child(2) { background-image: url('Imágenes/grupo-proceso-diseno.webp'); }.group-method-item:nth-child(3) { background-image: url('Imágenes/grupo-proceso-instalacion.webp'); }.group-method-item strong { display: none; }.group-method-item h3 { margin: 0 0 10px; font-size: 27px; }.group-method-item p { margin: 0; color: rgba(255, 255, 255, .84); line-height: 1.6; }
.group-ecosystem { padding: 112px max(56px, calc((100vw - 1320px) / 2)); background: var(--white); }.group-ecosystem-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 56px; align-items: end; margin-bottom: 48px; }.group-ecosystem-heading h2 { margin: 10px 0 0; }.group-ecosystem-heading > p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }.group-companies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }.group-company { display: grid; grid-template-rows: 280px auto; overflow: hidden; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; background: var(--white); }.group-company-image { overflow: hidden; background: var(--dark); }.group-company-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }.group-company-copy { display: grid; gap: 14px; padding: 26px; }.group-company-type { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.group-company h3 { margin: 0; font-size: 28px; }.group-company p { margin: 0; color: var(--muted); line-height: 1.6; }.group-company a { width: fit-content; margin-top: 6px; border-bottom: 2px solid var(--gold); font-weight: 800; padding-bottom: 4px; }.group-company:hover .group-company-image img { transform: scale(1.05); }
.group-connection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 500px; background: var(--dark); color: var(--white); }.group-connection-media img { display: block; width: 100%; height: 100%; min-height: 380px; object-fit: cover; }.group-connection-copy { display: grid; align-content: center; gap: 20px; padding: 76px clamp(42px, 7vw, 120px); }.group-connection-copy .eyebrow { color: var(--gold); }.group-connection-copy h2 { margin: 0; font-size: clamp(36px, 3.8vw, 54px); }.group-connection-copy p:not(.eyebrow) { margin: 0; color: rgba(255, 255, 255, .76); font-size: 18px; line-height: 1.65; }.group-connection-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; }.group-connection-links a { border-bottom: 2px solid var(--gold); color: var(--white); font-weight: 800; padding-bottom: 4px; }
@media (max-width: 900px) { .group-hero, .group-introduction, .group-method-heading, .group-ecosystem-heading, .group-connection { grid-template-columns: 1fr; }.group-hero-copy { padding: 76px 22px; }.group-hero-media { min-height: 440px; }.group-hero-inset { right: 22px; bottom: 28px; width: 42%; }.group-introduction { width: calc(100% - 44px); margin: 72px auto; gap: 38px; }.group-image-wall { height: 374px; }.group-method, .group-ecosystem { padding: 72px 22px; }.group-method-heading, .group-ecosystem-heading { gap: 18px; }.group-method-list, .group-companies { grid-template-columns: 1fr; }.group-method-item, .group-method-item + .group-method-item { padding: 22px 0; border-left: 0; }.group-method-item strong { margin-bottom: 28px; }.group-company { grid-template-rows: 230px auto; }.group-connection-media img { min-height: 300px; }.group-connection-copy { padding: 64px 22px; } }

.solutions-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.solutions-menu-trigger::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.solutions-menu.is-open .solutions-menu-trigger::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.solutions-menu-list {
  position: absolute;
  top: calc(100% + 13px);
  left: -16px;
  display: grid;
  width: 210px;
  padding: 7px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease;
}

.solutions-menu.is-open .solutions-menu-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.solutions-menu-list a {
  padding: 11px 12px;
  border-radius: 4px;
  font-weight: 600;
}

.solutions-menu-list a:hover,
.solutions-menu-list a:focus-visible {
  background: var(--soft);
  color: var(--blue);
  outline: 0;
}

.legal-page {
  width: min(900px, calc(100% - 44px));
  margin: 0 auto;
  padding: 112px 0 96px;
}

.legal-page-header {
  max-width: 720px;
  margin-bottom: 64px;
}

.legal-page-header h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 66px);
}

.legal-page-header p,
.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-section {
  padding: 38px 0;
  border-top: 1px solid rgba(0, 0, 0, .12);
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 38px);
}

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

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.legal-section strong {
  color: var(--dark);
}

.legal-section a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.group-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 560px;
  background: var(--dark);
  color: var(--white);
}

.group-hero-copy {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 96px clamp(56px, 7vw, 120px) 96px 56px;
}

.group-hero-copy .eyebrow { color: rgba(255, 255, 255, .62); }
.group-hero-copy h1 { margin: 0; }
.group-hero-copy p:not(.eyebrow) { max-width: 580px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 19px; line-height: 1.65; }
.group-hero-media { min-height: 420px; }
.group-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.group-story { position: relative; isolation: isolate; width: min(1200px, calc(100% - 112px)); margin: 104px auto; overflow: hidden; }
.group-story::before { content: '2015'; position: absolute; z-index: -1; top: 118px; right: -10px; color: var(--blue); font-size: clamp(170px, 23vw, 340px); font-weight: 800; line-height: .8; letter-spacing: 0; opacity: .045; pointer-events: none; }
.group-story-heading { max-width: 700px; margin-bottom: 52px; }
.group-story-heading p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.group-timeline { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 30px 0 30px 28px; border-top: 1px solid rgba(0, 0, 0, .12); }
.group-timeline::before { content: ''; position: absolute; top: -1px; bottom: -1px; left: 7px; width: 2px; background: rgba(11, 98, 159, .28); }
.group-timeline::after { content: ''; position: absolute; top: 36px; left: 0; width: 16px; height: 16px; border: 4px solid var(--white); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px rgba(11, 98, 159, .35); }
.group-timeline:last-child { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.group-year { color: var(--blue); font-size: 18px; font-weight: 800; }
.group-timeline h3 { margin: 0 0 9px; }
.group-timeline p { max-width: 740px; margin: 0; color: var(--muted); line-height: 1.65; }

.group-ecosystem { padding: 104px max(56px, calc((100vw - 1320px) / 2)); background: var(--soft); }
.group-ecosystem-heading { max-width: 720px; margin-bottom: 48px; }
.group-ecosystem-heading p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.group-companies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.group-company { position: relative; isolation: isolate; display: grid; align-content: end; gap: 16px; min-height: 420px; overflow: hidden; padding: 30px; border: 0; border-radius: 8px; color: var(--white); background: var(--dark); }
.group-company::before { content: ''; position: absolute; z-index: -2; inset: 0; background: center / cover no-repeat; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.group-company::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(2, 18, 31, .94), rgba(2, 18, 31, .36) 72%); }
.group-company:nth-child(1)::before { background-image: url('Imágenes/feature-pergola.webp'); }
.group-company:nth-child(2)::before { background-image: url('Imágenes/solar-galeria-01.webp'); }
.group-company:nth-child(3)::before { background-image: url('Imágenes/oficina tienda 01.webp'); }
.group-company-type { color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.group-company h3 { margin: 0; }
.group-company p { margin: 0; color: rgba(255, 255, 255, .84); line-height: 1.6; }
.group-company a { margin-top: auto; color: var(--white); font-weight: 800; }
@media (hover: hover) and (pointer: fine) { .group-company:hover::before { transform: scale(1.06); } }

.group-values { width: min(1200px, calc(100% - 112px)); margin: 104px auto; }
.group-values-header { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 44px; }
.group-values-header p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.group-values-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.group-value { padding: 28px 0; border-top: 3px solid var(--gold); }
.group-value h3 { margin: 0 0 10px; }.group-value p { margin: 0; color: var(--muted); line-height: 1.6; }

@media (hover: hover) and (pointer: fine) {
  .group-image-wall figure:hover {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
  }

  .group-image-wall figure:first-child:hover {
    left: 0;
  }
}

.group-image-wall figure,
.group-method-item,
.group-company {
  border-radius: 24px;
}

.group-company {
  display: block;
}

.group-company-image {
  display: none;
}

.group-company-copy {
  min-height: 100%;
}

@media (max-width: 900px) {
  .group-hero { grid-template-columns: 1fr; }
  .group-hero-copy { padding: 76px 22px; }.group-hero-media { min-height: 340px; }
  .group-story, .group-values { width: calc(100% - 44px); margin: 70px auto; }
  .group-story::before { display: none; }
  .group-ecosystem { padding: 70px 22px; }.group-timeline, .group-values-header, .group-companies, .group-values-list { grid-template-columns: 1fr; gap: 18px; }
  .group-timeline { gap: 8px; }.group-company { min-height: 0; }
}

.language-switcher select {
  min-width: 58px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 8px;
}

.language-switcher.has-language-flags select,
.language-switcher.has-language-flags .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-flags {
  display: flex;
  align-items: center;
  gap: 4px;
}

.language-flag {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  filter: saturate(.6);
  opacity: .7;
  transition: border-color .2s, filter .2s, opacity .2s, transform .2s;
}

.language-flag img {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.language-flag:hover:not(:disabled),
.language-flag.is-active {
  border-color: rgba(0, 0, 0, .22);
  filter: saturate(1);
  opacity: 1;
}

.language-flag:hover:not(:disabled) {
  transform: translateY(-1px);
}

.language-flag:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

/* ── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 25px;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid transparent;
  transition: .2s;
}

.btn.small {
  padding: 11px 18px;
  font-size: 13px;
}

.btn-primary {
  background: var(--gold);
  color: #111;
}

.btn-primary:hover {
  background: var(--gold-dark);
  color: white;
}

.btn-secondary {
  border-color: white;
  color: white;
  background: rgba(0, 0, 0, .18);
}

.btn-secondary.dark {
  border-color: var(--dark);
  color: var(--dark);
  background: transparent;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 720px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 56px;
  color: white;
  overflow: hidden;
  background: var(--dark);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.12) 100%
  );
  z-index: 1;
}



.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

/* ── Eyebrow (subtítulo pequeño) ────────────────────────── */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Tipografía ─────────────────────────────────────────── */
h1 {
  font-size: 66px;
  font-weight: 800;
  line-height: .98;
  margin: 0 0 26px;
  letter-spacing: -.04em;
}

h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -.03em;
}

h3 {
  font-size: 23px;
  margin: 18px 0 10px;
}

.lead {
  font-size: 21px;
  line-height: 1.6;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ── Banda de confianza ─────────────────────────────────── */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--soft);
  color: var(--dark);
}

.trust div {
  padding: 32px 36px;
  border-right: 1px solid rgba(0, 0, 0, .08);
}

.trust strong {
  display: block;
  font-size: 26px;
  color: var(--dark);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.trust span {
  color: var(--muted);
  font-size: 14px;
}

/* ── Secciones genéricas ────────────────────────────────── */
.section {
  padding: 120px 56px;
}

.section.muted {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

/* ── Cards / rejilla ────────────────────────────────────── */
.cards {
  display: grid;
  gap: 24px;
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

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

.solution-cards.products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-cards.products-grid .card:last-child:nth-child(7) {
  grid-column: 2;
}

.card,
.project {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
  padding-bottom: 28px;
}

.card p,
.project p {
  color: var(--muted);
  line-height: 1.55;
}

.card h3,
.card p,
.project h3,
.project p {
  padding-left: 24px;
  padding-right: 24px;
}

.card-link {
  display: block;
  transition: opacity .32s ease, transform .32s ease, box-shadow .25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .14);
}

.solution-cards.is-leaving .card:not(.solution-pergolas) {
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
}

.solution-cards.is-leaving .solution-pergolas {
  transform: scale(1.025);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-img {
  transform: scale(1.06);
}
.image {
  height: 220px;
  background: linear-gradient(135deg, #1a5f8a, #2e8bc0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  text-align: center;
}

.image.pergolas     { background: linear-gradient(135deg, #0d2b45, #2e8bc0); }
.image.toldos       { background: linear-gradient(135deg, #1a5f8a, #7ec8e3); }
.image.cerramientos { background: linear-gradient(135deg, #0d3d5c, #a8d8ea); }
.image.exterior     { background: linear-gradient(135deg, #1a5f8a, #f5c330); }

/* ── Feature (Pérgola Moderna) ──────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  background: var(--dark);
  color: white;
  overflow: hidden;
}

.feature-text {
  padding: 95px 65px;
}

.feature-text p,
.feature-text li {
  color: #ddd;
  line-height: 1.7;
  font-size: 17px;
}

.feature-image {
  background: linear-gradient(135deg, #1a5f8a, #7ec8e3 52%, #0d2b45);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  overflow: hidden;
  position: relative;
}

.feature-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-image-diagram {
  aspect-ratio: 1376 / 768;
  background: var(--soft);
}

.feature-image-diagram img {
  object-fit: contain;
}

.feature-diagram {
  min-height: 0;
}

/* ── Proyectos (antes/después) ──────────────────────────── */
.projects-carousel {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.projects-viewport {
  height: 540px;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.projects-carousel.is-dragging .projects-viewport {
  cursor: grabbing;
}

.projects-carousel.is-dragging .projects-track {
  user-select: none;
}

.projects-track {
  display: flex;
  height: 100%;
  gap: 24px;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.project-showcase {
  flex: 0 0 960px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.project-image-after {
  opacity: 0;
}

.project-showcase.is-active .project-image-after {
  animation: project-before-after 10s ease-in-out infinite;
}

@keyframes project-before-after {
  0%, 28% { opacity: 0; }
  48%, 72% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

.projects-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.projects-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(29, 29, 31, .72);
  backdrop-filter: blur(12px);
}

.project-dot,
.projects-toggle {
  border: 0;
  cursor: pointer;
}

.project-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  transition: width .25s ease, background .25s ease;
}

.project-dot.is-active {
  width: 38px;
  background: rgba(255, 255, 255, .3);
}

.project-dot.is-active::after {
  content: '';
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: white;
}

.project-dot.is-progressing::after {
  animation: project-progress 10s linear forwards;
}

@keyframes project-progress {
  to { width: 100%; }
}

.projects-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(29, 29, 31, .72);
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
}

.projects-toggle span {
  width: 12px;
  height: 16px;
  border-left: 4px solid white;
  border-right: 4px solid white;
}

.projects-toggle:not(.is-playing) span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid white;
  border-right: 0;
}

.center {
  text-align: center;
  margin-top: 36px;
  justify-content: center;
}

/* ── Sección fábrica ────────────────────────────────────── */
.factory {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}

.factory-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.factory-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.factory-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 96px 56px;
}

.factory-content p {
  color: #ddd;
  font-size: 18px;
  line-height: 1.6;
}

/* ── Pasos del proceso ──────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 680px;
  transition: grid-template-columns 1.1s cubic-bezier(.65, 0, .35, 1), gap 1.1s cubic-bezier(.65, 0, .35, 1);
}

.steps div {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 24px;
  padding: 32px;
  background: white;
  overflow: hidden;
  transition: opacity .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}

.steps span {
  display: block;
  color: var(--muted);
  font-weight: 300;
  font-size: 36px;
  letter-spacing: -.03em;
}

.steps strong {
  font-size: 22px;
}

.steps p {
  color: var(--muted);
}

.step-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: opacity .45s ease;
}

.step-visit::after,
.step-design::after,
.step-fabrication::after,
.step-installation::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .18);
  transition: opacity .45s ease;
}

.step-visit strong,
.step-design strong,
.step-fabrication strong,
.step-installation strong,
.step-expanded-copy {
  position: relative;
  z-index: 2;
  color: white;
  transition: opacity .25s ease;
}

.step-visit .step-expanded-copy,
.step-design .step-expanded-copy,
.step-fabrication .step-expanded-copy,
.step-installation .step-expanded-copy {
  max-width: 480px;
  margin: 0;
  opacity: 0;
  color: white;
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
}

@media (hover: hover) and (pointer: fine) {
  .steps:has(.step-visit:hover) {
    grid-template-columns: minmax(0, 4fr) minmax(0, .001fr) minmax(0, .001fr) minmax(0, .001fr);
    gap: 0;
  }

  .steps:has(.step-design:hover) {
    grid-template-columns: minmax(0, .001fr) minmax(0, 4fr) minmax(0, .001fr) minmax(0, .001fr);
    gap: 0;
  }

  .steps:has(.step-fabrication:hover) {
    grid-template-columns: minmax(0, .001fr) minmax(0, .001fr) minmax(0, 4fr) minmax(0, .001fr);
    gap: 0;
  }

  .steps:has(.step-installation:hover) {
    grid-template-columns: minmax(0, .001fr) minmax(0, .001fr) minmax(0, .001fr) minmax(0, 4fr);
    gap: 0;
  }

  .steps:has(.step-visit:hover) > :not(.step-visit),
  .steps:has(.step-design:hover) > :not(.step-design),
  .steps:has(.step-fabrication:hover) > :not(.step-fabrication),
  .steps:has(.step-installation:hover) > :not(.step-installation) {
    opacity: 0;
    transform: scale(.96);
    pointer-events: none;
  }

  .step-visit:hover,
  .step-design:hover,
  .step-fabrication:hover,
  .step-installation:hover {
    z-index: 1;
  }

  .step-visit:hover .step-image,
  .step-design:hover .step-image,
  .step-fabrication:hover .step-image,
  .step-installation:hover .step-image {
    opacity: 1;
  }

  .step-visit:hover::after,
  .step-design:hover::after,
  .step-fabrication:hover::after,
  .step-installation:hover::after {
    opacity: .28;
  }

  .step-design:hover::after {
    opacity: .56;
  }

  .step-visit:hover strong,
  .step-design:hover strong,
  .step-fabrication:hover strong,
  .step-installation:hover strong {
    opacity: 0;
  }

  .step-visit:hover .step-expanded-copy,
  .step-design:hover .step-expanded-copy,
  .step-fabrication:hover .step-expanded-copy,
  .step-installation:hover .step-expanded-copy {
    opacity: 1;
    transition: opacity 2s ease 1.1s;
  }
}

/* ── Split por tipo de cliente ──────────────────────────── */
.split-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.choice {
  min-height: 320px;
  padding: 80px 56px;
  background: var(--dark);
  color: white;
}

.choice.business {
  background: var(--soft);
  color: var(--dark);
}

.choice.business h2 {
  color: var(--dark);
}

.choice p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
}

.choice.business p {
  color: var(--muted);
}

/* ── Sección empresa / equipo ───────────────────────────── */
.group {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
  padding: 96px 56px;
}

.group-grid {
  --mosaic-gap: 16px;
  height: 456px;
  position: relative;
  overflow: visible;
  border-radius: 24px;
}

.group-photo {
  position: absolute;
  width: calc((100% - var(--mosaic-gap)) / 2);
  height: calc((100% - var(--mosaic-gap)) / 2);
  right: 0;
  background: #a8d8ea;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  color: #0d2b45;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
  transition: width .5s cubic-bezier(.16, 1, .3, 1),
              height .5s cubic-bezier(.16, 1, .3, 1),
              top .5s cubic-bezier(.16, 1, .3, 1),
              right .5s cubic-bezier(.16, 1, .3, 1),
              box-shadow .5s cubic-bezier(.16, 1, .3, 1);
}

.group-photo:nth-child(2) {
  top: 0;
}

.group-photo:nth-child(3) {
  top: calc((100% + var(--mosaic-gap)) / 2);
}

.group-photo.large {
  top: 0;
  left: 0;
  right: auto;
  height: 100%;
  background: #2e8bc0;
  padding: 0;
}

.group-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .group-photo:hover {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
  }

  .group-photo.large:hover {
    left: 0;
  }
}

.group p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Promoción ──────────────────────────────────────────── */
.promo {
  position: relative;
  overflow: hidden;
  padding: 110px 56px;
  text-align: center;
  color: white;
  background: var(--dark);
}

.promo-logo {
  position: absolute;
  top: 53%;
  left: 50%;
  width: calc(90% + 112px);
  max-width: none;
  max-height: none;
  opacity: .1;
  pointer-events: none;
  transform: translate(-50%, -55%);
}

.promo-content {
  position: relative;
  z-index: 1;
}

.promo h2 {
  font-size: 54px;
}

.promo p {
  font-size: 20px;
  max-width: 760px;
  margin: 0 auto 25px;
  line-height: 1.5;
}

.promo small {
  display: block;
  color: #eee;
  margin-top: 18px;
}

/* ── Siggi ──────────────────────────────────────────────── */
.siggi {
  text-align: center;
  padding: 75px 56px;
  background: #fff;
}

.siggi p {
  font-size: 18px;
  color: var(--muted);
}

/* ── WhatsApp ───────────────────────────────────────────── */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 23px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.whatsapp:hover {
  filter: brightness(.94);
  transform: translateY(-2px);
}

.whatsapp-language-selector {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
}

.whatsapp-language-selector::backdrop {
  background: rgba(0, 0, 0, .58);
}

.whatsapp-language-selector h2 {
  margin: 0 36px 22px 0;
  font-size: 26px;
}

.whatsapp-language-selector-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.whatsapp-language-options {
  display: grid;
  gap: 10px;
}

.whatsapp-language-options a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 6px;
  color: var(--dark);
  text-decoration: none;
}

.whatsapp-language-options a:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, .08);
}

.whatsapp-language-flags {
  display: flex;
  gap: 4px;
}

.whatsapp-language-flags img {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, .12);
}

.whatsapp-language-options strong,
.whatsapp-language-options small {
  grid-column: 2;
}

.whatsapp-language-options strong {
  font-size: 15px;
}

.whatsapp-language-options small {
  margin-top: 3px;
  color: var(--muted);
}

.siggi-widget {
  position: fixed;
  right: 22px;
  bottom: 87px;
  z-index: 40;
}

.siggi-launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px 0 7px;
  border: 0;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 113, 227, .3);
  cursor: pointer;
}

.siggi-launcher-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
}

.siggi-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  display: none;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 96px));
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .22);
}

.siggi-widget.is-open .siggi-panel { display: grid; grid-template-rows: auto minmax(160px, 1fr) auto auto auto; }

.siggi-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  color: #fff;
  background: var(--dark);
}

.siggi-panel-header strong { font-size: 18px; }
.siggi-panel-header p { margin: 3px 0 0; color: rgba(255, 255, 255, .72); font-size: 13px; }

.siggi-close {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.siggi-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  background: #f7f8fa;
}

.siggi-message { display: flex; max-width: 88%; }
.siggi-message p { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.siggi-message-assistant p { background: #fff; color: var(--dark); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.siggi-message-user { justify-self: end; }
.siggi-message-user p { background: var(--blue); color: #fff; }

.siggi-navigation {
  width: fit-content;
  margin: -2px 0 2px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.siggi-suggestions { display: flex; gap: 7px; padding: 10px 16px; overflow-x: auto; border-top: 1px solid #e5e7eb; }
.siggi-suggestions button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #d9dee5; border-radius: 5px; background: #fff; color: var(--dark); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

.siggi-contact-actions { padding: 12px 16px; border-top: 1px solid #e5e7eb; background: #fff8e6; }
.siggi-contact-actions p { margin: 0 0 9px; color: var(--dark); font-size: 13px; font-weight: 800; }
.siggi-contact-actions button, .siggi-contact-whatsapp { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 10px; border-radius: 5px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.siggi-contact-form { margin-right: 7px; border: 0; background: var(--blue); color: #fff; }
.siggi-contact-whatsapp { background: #25d366; color: #fff; }

.siggi-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid #e5e7eb; background: #fff; }
.siggi-form textarea { min-height: 44px; padding: 11px; border: 1px solid #cfd5dd; border-radius: 5px; resize: none; font: inherit; font-size: 14px; }
.siggi-form button { min-width: 68px; border: 0; border-radius: 5px; background: var(--dark); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.siggi-form button:disabled, .siggi-form textarea:disabled { opacity: .6; cursor: wait; }

@media (max-width: 600px) {
  .whatsapp { right: 14px; bottom: 14px; }
  .siggi-widget { right: 14px; bottom: 79px; }
  .siggi-panel { position: fixed; right: 14px; left: 14px; bottom: 58px; width: auto; max-height: min(650px, calc(100vh - 82px)); }
  .siggi-contact-actions button, .siggi-contact-whatsapp { width: 100%; }
  .siggi-contact-form { margin: 0 0 7px; }
}

/* ── Contacto ───────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  scroll-margin-top: 112px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 56px;
  background: var(--dark);
  color: white;
}

.contact-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .13;
  filter: contrast(1.05);
}

.contact > *:not(.contact-texture) {
  position: relative;
  z-index: 1;
}

.contact p {
  color: #ddd;
  font-size: 18px;
  line-height: 1.55;
}

.contact-info {
  display: grid;
  align-content: start;
  gap: 20px;
}

.contact-info > p { margin: 0; }

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .22);
}

.contact-detail {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 15px;
  background: rgba(20, 20, 22, .88);
}

a.contact-detail { transition: background .2s ease; }
a.contact-detail:hover { background: rgba(0, 113, 227, .76); }
.contact-detail-wide { grid-column: 1 / -1; }
.contact-detail span { color: rgba(255, 255, 255, .66); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.contact-detail strong { color: #fff; font-size: 15px; line-height: 1.35; }
.contact-detail .contact-languages { display: flex; gap: 6px; align-items: center; margin-top: 2px; line-height: 1; text-transform: none; }
.contact-detail .contact-languages img { display: block; width: 22px; height: 16px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .34); }

.contact-map {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: #fff;
}

.contact-map iframe { display: block; width: 100%; height: 240px; border: 0; }
.contact-map a { display: block; padding: 11px 14px; color: var(--blue); font-size: 14px; font-weight: 800; }

.contact-map-consent {
  display: grid;
  min-height: 240px;
  place-content: center;
  gap: 16px;
  padding: 28px;
  background: var(--soft);
  text-align: center;
}

.contact-map-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-map-consent button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 5px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
}

form {
  display: grid;
  gap: 14px;
  background: white;
  border-radius: 30px;
  padding: 30px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.form-field label span {
  color: var(--muted);
  font-weight: 400;
}

.form-label {
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.phone-fields {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
}

.phone-fields > div {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 15px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--blue);
}

textarea {
  min-height: 115px;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  font-weight: 900;
  padding: 16px;
  font-size: 15px;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

.contact-form-status {
  display: none;
  margin: 0;
  color: var(--dark);
  font-size: 14px;
  line-height: 1.45;
}

.contact-form-status:not(:empty) {
  display: block;
}

.contact .form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-note a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--dark);
  font-size: 13px;
  line-height: 1.45;
}

.privacy-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
}

.privacy-consent a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  padding: 44px 56px;
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand img {
  display: block;
  width: min(210px, 52vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 22px;
  color: #ddd;
}

.footer-links a:hover,
.footer-legal-links a:hover {
  color: var(--gold);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
}

.footer-legal-links a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}

footer small {
  color: rgba(255, 255, 255, .58);
}

/* ── Página de categoría: Pérgolas ─────────────────────── */
.category-hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: end;
  padding: 80px 56px;
  color: var(--white);
  overflow: hidden;
  background: var(--dark);
}

.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .24));
  z-index: 1;
}

.category-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero-wide {
  min-height: 0;
  aspect-ratio: 4 / 1;
  padding-top: 44px;
  padding-bottom: 44px;
}

.category-hero-wide h1 {
  font-size: clamp(42px, 4.2vw, 68px);
}

.category-hero-wide h3 {
  max-width: 560px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}

.category-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.category-hero .eyebrow {
  color: rgba(255, 255, 255, .7);
}

.pergola-intro {
  width: min(1320px, calc(100% - 112px));
  margin: 104px auto;
  background: var(--white);
}

.pergola-intro-heading {
  width: min(790px, 100%);
  margin-bottom: 64px;
}

.pergola-intro-heading .eyebrow {
  margin-bottom: 14px;
}

.pergola-intro-heading h2 {
  margin-bottom: 0;
}

.pergola-intro-story {
  display: grid;
  gap: 88px;
}

.pergola-intro-feature,
.pergola-intro-closing {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
}

.pergola-intro-feature-reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.pergola-intro-closing {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.pergola-intro-copy {
  padding: 0;
}

.pergola-intro:has(> .pergola-intro-media) {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
}

.pergola-intro-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: var(--soft);
}

.pergola-intro-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pergola-intro-copy > p:not(.eyebrow) {
  max-width: none;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.pergola-intro-copy > p:not(.eyebrow) {
  color: var(--dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.pergola-intro-copy > p:last-child {
  margin-bottom: 0;
}

.pergola-intro-image {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--soft);
}

.pergola-intro-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pergola-intro-image-main {
  aspect-ratio: 4 / 3;
}

.pergola-intro-image-detail {
  aspect-ratio: 4 / 3;
}

.pergola-intro-image-wide {
  aspect-ratio: 16 / 9;
}

.pergola-intro-conclusion {
  color: var(--dark) !important;
  font-weight: 700;
}

.modern-projects-section {
  padding-bottom: 104px;
}

.modern-projects-carousel .project-showcase {
  margin: 0;
}

.pergola-drainage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 72px;
  align-items: center;
  width: min(1320px, calc(100% - 112px));
  margin: 104px auto;
}

.pergola-drainage-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  border: 0;
  padding: 0;
  background: var(--soft);
  cursor: zoom-in;
}

.pergola-drainage-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-lightbox {
  width: min(1200px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 16px;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(6px);
}

.image-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 9px 12px;
  border: 0;
  border-radius: 4px;
  background: rgba(29, 29, 31, .9);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.pergola-drainage-copy > .eyebrow {
  margin-bottom: 14px;
}

.pergola-drainage-copy h2 {
  max-width: 560px;
}

.pergola-drainage-point {
  max-width: 560px;
  padding: 22px 0;
  border-top: 1px solid rgba(0, 0, 0, .12);
}

.pergola-drainage-point strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.pergola-drainage-point p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.bioclimatic-blades {
  width: min(1320px, calc(100% - 112px));
  margin: 104px auto;
}

.bioclimatic-blades-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
  column-gap: 96px;
  align-items: end;
  margin-bottom: 56px;
}

.bioclimatic-blades-heading .eyebrow,
.bioclimatic-blades-heading h2 {
  grid-column: 1;
}

.bioclimatic-blades-heading .eyebrow {
  margin-bottom: 14px;
}

.bioclimatic-blades-heading h2 {
  margin-bottom: 0;
}

.bioclimatic-blades-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.65;
}

.bioclimatic-blades-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bioclimatic-blade-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--soft);
}

.bioclimatic-blade-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bioclimatic-blade-copy {
  padding: 32px;
}

.bioclimatic-blade-copy .eyebrow {
  margin-bottom: 12px;
}

.bioclimatic-blade-copy h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.bioclimatic-blade-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pergola-upgrades {
  padding: 104px max(56px, calc((100vw - 1320px) / 2));
  background: var(--soft);
}

.pergola-upgrades-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
  column-gap: 96px;
  align-items: end;
  margin-bottom: 56px;
}

.pergola-upgrades-heading .eyebrow,
.pergola-upgrades-heading h2 {
  grid-column: 1;
}

.pergola-upgrades-heading .eyebrow {
  margin-bottom: 14px;
}

.pergola-upgrades-heading h2 {
  margin-bottom: 0;
  max-width: 700px;
}

.pergola-upgrades-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.65;
}

.pergola-upgrades .steps > div {
  border: 0;
  background: transparent;
}

.category-hero .lead {
  margin-bottom: 0;
}

.pergola-selector-section {
  padding: 78px 0 120px;
}

.pergola-selector-section .section-heading {
  padding: 0 56px;
}

.pergola-triptych {
  display: flex;
  height: clamp(420px, 47vw, 650px);
  overflow: hidden;
  background: var(--white);
}

.pergola-panel {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
  border: 0;
  border-radius: 0;
  padding: 0;
  transition: filter .35s ease;
}

.pergola-panel + .pergola-panel {
  margin-left: -4.8%;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.pergola-panel:first-child {
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.pergola-panel:last-child {
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.pergola-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .04) 65%);
  transition: opacity .7s ease;
}

.pergola-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.15s cubic-bezier(.16, 1, .3, 1);
}

.pergola-panel span {
  position: relative;
  z-index: 1;
  padding: 34px 36px;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 800;
  text-align: left;
  letter-spacing: 0;
  transition: opacity .45s ease, transform .45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pergola-triptych:has(.pergola-panel:hover) .pergola-panel:not(:hover) {
    filter: brightness(.52) saturate(.6);
  }

  .pergola-triptych .pergola-panel:hover {
    filter: brightness(1.08) saturate(1.08);
  }

  .pergola-panel:hover::after {
    opacity: .08;
  }

  .pergola-panel:hover img {
    transform: scale(1.08);
  }
}

.pergola-project {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 540px;
  background: var(--dark);
  color: var(--white);
}

.pergola-project-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.pergola-project-copy {
  padding: 76px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pergola-project-copy p {
  color: rgba(255, 255, 255, .76);
  line-height: 1.65;
}

.pergola-project-copy .eyebrow {
  color: rgba(255, 255, 255, .58);
}

.category-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 56px;
  text-align: center;
  background: var(--gold);
}

.category-cta-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .24;
}

.category-cta > *:not(.category-cta-texture) {
  position: relative;
  z-index: 1;
}

.category-cta p {
  max-width: 630px;
  margin: 0 auto 28px;
  color: rgba(0, 0, 0, .7);
  line-height: 1.6;
}

.category-cta .btn-primary {
  background: var(--dark);
  color: var(--white);
}

@media (max-width: 900px) {
  .category-hero,
  .category-cta {
    padding: 70px 22px;
  }

  .category-hero {
    min-height: 580px;
  }

  .category-hero-wide {
    min-height: 500px;
    aspect-ratio: auto;
  }

  .pergola-intro {
    width: calc(100% - 44px);
    margin: 70px auto;
  }

  .pergola-intro:has(> .pergola-intro-media) {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pergola-intro-heading {
    margin-bottom: 38px;
  }

  .pergola-intro-story {
    gap: 52px;
  }

  .pergola-intro-feature,
  .pergola-intro-feature-reverse,
  .pergola-intro-closing {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pergola-intro-feature-reverse .pergola-intro-image-detail {
    order: 2;
  }

  .pergola-intro-image-wide {
    order: 2;
  }

  .pergola-drainage {
    grid-template-columns: 1fr;
    gap: 42px;
    width: calc(100% - 44px);
    margin: 70px auto;
  }

  .bioclimatic-blades {
    width: calc(100% - 44px);
    margin: 70px auto;
  }

  .bioclimatic-blades-heading {
    display: block;
    margin-bottom: 38px;
  }

  .bioclimatic-blades-heading h2 {
    margin-bottom: 18px;
  }

  .bioclimatic-blades-grid {
    grid-template-columns: 1fr;
  }

  .bioclimatic-blade-card {
    border-radius: 16px;
  }

  .bioclimatic-blade-copy {
    padding: 24px;
  }

  .pergola-upgrades {
    padding: 70px 22px;
  }

  .pergola-upgrades-heading {
    display: block;
    margin-bottom: 38px;
  }

  .pergola-upgrades-heading h2 {
    margin-bottom: 18px;
  }

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

  .pergola-selector-section {
    padding: 44px 0 70px;
  }

  .pergola-selector-section .section-heading {
    padding-left: 22px;
    padding-right: 22px;
  }

  .pergola-triptych {
    height: 540px;
  }

  .pergola-panel span {
    padding: 22px 15px;
    font-size: 19px;
  }

  .pergola-panel + .pergola-panel {
    margin-left: -14%;
  }

  .vida-exterior-triptych,
  .pergola-triptych-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    gap: 8px;
    padding: 0 8px;
  }

  .vida-exterior-triptych .pergola-panel,
  .vida-exterior-triptych .pergola-panel:first-child,
  .vida-exterior-triptych .pergola-panel:last-child,
  .pergola-triptych-grid-mobile .pergola-panel,
  .pergola-triptych-grid-mobile .pergola-panel:first-child,
  .pergola-triptych-grid-mobile .pergola-panel:last-child {
    min-height: 240px;
    clip-path: none;
    border-radius: 8px;
  }

  .vida-exterior-triptych .pergola-panel + .pergola-panel,
  .pergola-triptych-grid-mobile .pergola-panel + .pergola-panel {
    margin-left: 0;
    clip-path: none;
  }

  .vida-exterior-triptych .pergola-panel span,
  .pergola-triptych-grid-mobile .pergola-panel span {
    padding: 18px;
    font-size: 18px;
    line-height: 1.15;
  }

  .pergola-expanded-copy {
    left: 28px;
    right: 28px;
    bottom: 32px;
  }

  .pergola-project-copy {
    padding: 64px 22px;
  }
}

/* ── Botón flotante WhatsApp ─────────────────────────────── */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #25d366;
  color: white;
  font-weight: 900;
  border-radius: 999px;
  padding: 15px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  z-index: 20;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.siggi-open .whatsapp {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

/* ── Responsive (≤ 900px) ───────────────────────────────── */
@media (max-width: 900px) {
  .whatsapp {
    right: 14px;
    bottom: 14px;
  }

  .site-header {
    padding: 0 18px;
    gap: 10px;
  }

  .logo img {
    width: 160px;
  }

  .site-header nav {
    display: none;
  }

  .site-header .btn.small {
    margin-left: auto;
  }

  .mobile-menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px;
    gap: 5px;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    transition: transform .2s, opacity .2s;
  }

  .mobile-menu-open .mobile-menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-open .mobile-menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    z-index: 9;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    background: rgba(0, 0, 0, .12);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s, transform .18s;
  }

  .mobile-menu[aria-hidden="false"] {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 18px 16px;
    background: white;
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-menu a:first-child {
    border-radius: 7px 0 0 0;
  }

  .mobile-menu a:nth-child(2) {
    border-radius: 0 7px 0 0;
  }

  .mobile-menu a:nth-last-child(2) {
    border-radius: 0 0 0 7px;
  }

  .mobile-menu a:last-child {
    border-radius: 0 0 7px 0;
  }

  .mobile-solutions-menu {
    grid-column: 1 / -1;
    padding: 0;
    background: white;
  }

  .mobile-solutions-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 16px;
    border-radius: 7px 7px 0 0;
    background: white;
    color: var(--dark);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-solutions-trigger::after {
    content: '+';
    color: var(--blue);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

  .mobile-solutions-menu.is-open .mobile-solutions-trigger::after {
    content: '−';
  }

  .mobile-solutions-list {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border-top: 1px solid rgba(0, 0, 0, .1);
    background: rgba(0, 0, 0, .1);
  }

  .mobile-solutions-menu.is-open .mobile-solutions-list {
    display: grid;
  }

  .mobile-solutions-list a {
    padding: 15px 14px;
    background: var(--soft);
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
  }

  h1 { font-size: 44px; }
  h2 { font-size: 32px; }

  .hero {
    padding: 70px 24px;
    min-height: 620px;
  }

  .trust,
  .cards.four,
  .cards.three,
  .solution-cards.products-grid,
  .feature,
  .factory,
  .steps,
  .split-choice,
  .group,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-details { grid-template-columns: 1fr; }
  .contact-detail-wide { grid-column: auto; }

  .steps {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
  }

  .section,
  .factory,
  .group,
  .contact,
  .promo {
    padding: 70px 22px;
  }

  .feature-text {
    padding: 70px 22px;
  }

  .projects-carousel {
    width: 100%;
    margin-left: 0;
  }

  .project-showcase {
    flex-basis: 100%;
  }

  .trust div {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  footer {
    padding: 36px 22px;
  }

  .footer-legal-links {
    width: 100%;
    order: 4;
    flex-wrap: wrap;
  }
}

/* ── Pantallas grandes (≥ 1440px) ───────────────────────── */
/*
   Técnica: el padding lateral crece para que el contenido
   nunca supere ~1440px de ancho útil, aunque el fondo de
   cada sección siga siendo full-bleed.
   Fórmula: max(mínimo-base, (ancho-pantalla - 1440) / 2 + base)
*/
@media (min-width: 1440px) {
  .site-header {
    padding: 0 max(48px, calc((100vw - 1440px) / 2 + 48px));
  }

  .hero {
    padding: 80px max(56px, calc((100vw - 1440px) / 2 + 56px));
  }

  .section,
  .siggi {
    padding-left:  max(56px, calc((100vw - 1440px) / 2 + 56px));
    padding-right: max(56px, calc((100vw - 1440px) / 2 + 56px));
  }

  .factory,
  .group {
    padding-left:  max(56px, calc((100vw - 1440px) / 2 + 56px));
    padding-right: max(56px, calc((100vw - 1440px) / 2 + 56px));
  }

  .promo,
  .contact {
    padding-left:  max(56px, calc((100vw - 1440px) / 2 + 56px));
    padding-right: max(56px, calc((100vw - 1440px) / 2 + 56px));
  }

  .choice {
    padding-left:  max(56px, calc((100vw - 1440px) / 4 + 56px));
    padding-right: max(56px, calc((100vw - 1440px) / 4 + 56px));
  }

  .feature-text {
    padding-left: max(65px, calc((100vw - 1440px) / 4 + 65px));
  }

  footer {
    padding-left:  max(56px, calc((100vw - 1440px) / 2 + 56px));
    padding-right: max(56px, calc((100vw - 1440px) / 2 + 56px));
  }

  h1 { font-size: clamp(66px, 5.5vw, 90px); }
  h2 { font-size: clamp(42px, 3.5vw, 58px); }
  .lead { font-size: clamp(21px, 1.6vw, 26px); }
}

/* ── Scroll reveal (Apple-style fade-up) ─────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal="left"] {
  transform: translateX(-40px);
}
[data-reveal="right"] {
  transform: translateX(40px);
}
[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible {
  transform: none;
}
@media (max-width: 900px) {
  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(40px);
  }
}
