* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2933;
  background: #ffffff;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: #1f7a3a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 30, .55) 0%,
    rgba(10, 20, 30, .25) 70%,
    rgba(10, 20, 30, 0) 100%
  );
  color: #fff;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.site-header.is-solid {
  background: rgba(15, 23, 42, .82);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 170px;
  object-fit: contain;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .92;
}

.nav a:hover {
  opacity: .75;
}

.hero {
  min-height: calc(85vh - 60px);
  position: relative;
  height: 85vh;
  background: url("../assets/img/hero/hero.png") center 30% / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 20, 30, .85) 0%,
    rgba(10, 20, 30, .55) 45%,
    rgba(10, 20, 30, .15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 60px 40px 0;
  color: #fff;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.62;
  margin-bottom: 20px;
  opacity: .9;
  text-wrap: pretty;
  hyphens: none;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.btn {
  padding: 12px 20px;
  font-size: .9rem;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
}

.btn.primary {
  background: #2ea44f;
  color: #fff;
}

.btn.secondary {
  border: 1px solid #fff;
  color: #fff;
}

.badges {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  flex-wrap: nowrap;
  opacity: .95;
}

.badge {
  width: 400px;
  max-height: 700px;
  height: auto;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}

.kiwa-badge {
  width: 110px;
  max-height: none;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 125px;
  height: auto;
  aspect-ratio: 1;
  padding: 14px;
  background: #fff;
  border-radius: 4px;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.badge-link.iso-badge-link,
.badge-link.en15343-badge-link {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.iso-badge {
  width: 400px;
  max-height: 700px;
}

#personalizado {
  scroll-margin-top: 78px;
}

.badge-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.content {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 40px;
}

.content h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 14px 0;
  color: #0f172a;
}

.content h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  background: rgba(46, 164, 79, .85);
  border-radius: 999px;
}

.content p {
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.72;
  color: #334155;
  margin: 12px 0 0 0;
  text-wrap: pretty;
  hyphens: none;
}

.content p + p {
  margin-top: 10px;
}

.location-contact-band {
  width: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .78)), url("../assets/img/situacion.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.location-contact-band #contacto {
  padding-bottom: 32px;
}

.location-contact-band #como-llegar {
  padding-top: 32px;
}

.content-page {
  padding-top: 96px;
}

.content-page p {
  margin-top: 16px;
}

.content-page section + section {
  margin-top: 36px;
}

.certification-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 42px;
  align-items: center;
}

.certification-logo {
  width: 100%;
  height: auto;
  display: block;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.document-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(31, 122, 58, .35);
  border-radius: 4px;
  color: #1f7a3a;
  text-decoration: none;
  font-weight: 700;
}

.scope-table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: .96rem;
}

.scope-table th,
.scope-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, .12);
  text-align: left;
  vertical-align: top;
}

.scope-table th {
  color: #0f172a;
  background: rgba(46, 164, 79, .08);
}

.about-content {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.process-video-block {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 460px;
  padding: 0;
  background: #f8fafc;
}

.process-video-block + .process-video-block {
  margin-top: 32px;
}

.process-video-media,
.process-video-overlay {
  position: absolute;
  inset: 0;
}

.process-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.65) contrast(.85) brightness(1.08);
}

.process-video-overlay {
  background: rgba(255, 255, 255, .72);
}

.process-video-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px;
  color: #0f172a;
}

.process-video-content h2,
.process-video-content h3,
.process-video-content p,
.process-video-content li,
.process-video-content strong {
  color: #0f172a;
}

.process-video-content h2::after {
  background: rgba(46, 164, 79, .85);
}

.process-video-content p {
  color: #334155;
}

.process-video-content .bullets {
  border-left-color: rgba(15, 23, 42, .10);
}

.process-video-content .bullets li::before {
  background: rgba(46, 164, 79, .9);
}

.print-custom-section {
  background: #0f172a;
  color: #fff;
}

.print-custom-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 56px;
}

.print-custom-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 28px 56px;
  align-items: end;
  margin-bottom: 34px;
}

.print-custom-intro .bc-section-label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .72);
  margin-bottom: -14px;
}

.print-custom-intro h2 {
  font-size: 2.05rem;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.print-custom-intro h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  background: rgba(46, 164, 79, .95);
  border-radius: 999px;
}

.print-custom-intro p {
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, .84);
  margin: 0;
  text-wrap: pretty;
  hyphens: none;
}

.print-custom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
}

.print-custom-item {
  min-height: 170px;
  padding: 24px;
  background: rgba(255, 255, 255, .06);
}

.print-custom-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
}

.print-custom-item p {
  font-size: .95rem;
  line-height: 1.66;
  color: rgba(255, 255, 255, .8);
  margin: 0;
  text-wrap: pretty;
  hyphens: none;
}

.products-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  padding-left: 56px;
  padding-right: 56px;
}

.bc-root {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 0;
}

.bc-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, .12);
}

.bc-h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 10px 0;
  color: #0f172a;
}

.bc-h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  background: rgba(46, 164, 79, .85);
  border-radius: 999px;
}

.bc-subtitle {
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.68;
  color: #475569;
  margin: 0;
  text-wrap: pretty;
  hyphens: none;
}

.bc-badge-row {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.bc-badge {
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .14);
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.bc-badge.active,
.bc-badge:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.bc-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #64748b;
  margin: 0 0 12px;
}

.bc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(15, 23, 42, .12);
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.bc-card {
  appearance: none;
  border: 0;
  text-align: left;
  background: #fff;
  padding: 1.25rem;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}

.bc-card:hover,
.bc-card:focus-visible {
  background: #f8fafc;
  outline: none;
}

.bc-card.is-dimmed {
  opacity: .35;
}

.bc-card-wide {
  grid-column: span 2;
}

.bc-card-num,
.bc-card-icon,
.bc-card-title,
.bc-card-tagline,
.bc-card-footer {
  display: block;
}

.bc-card-num {
  font-size: .72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bc-card-icon {
  font-size: 1.4rem;
  color: #64748b;
  margin-bottom: 20px;
}

.bc-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 8px;
}

.bc-card-tagline {
  font-size: .9rem;
  line-height: 1.58;
  color: #475569;
  text-wrap: pretty;
  hyphens: none;
}

.bc-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bc-tag {
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.bc-tag-blue { background: #e6f1fb; color: #185fa5; }
.bc-tag-teal { background: #e1f5ee; color: #0f6e56; }
.bc-tag-amber { background: #faeeda; color: #854f0b; }
.bc-tag-coral { background: #faece7; color: #993c1d; }
.bc-tag-gray { background: #f1efe8; color: #5f5e5a; }
.bc-tag-green { background: #eaf3de; color: #3b6d11; }

.bc-detail-panel {
  display: none;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bc-detail-panel.visible {
  display: block;
}

.bc-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 1rem;
}

.bc-detail-head h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.bc-detail-head p {
  color: #475569;
  margin: 0;
}

.bc-detail-close {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 1.2rem;
}

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

.bc-detail-block {
  padding: 14px;
  background: #f8fafc;
  border-radius: 6px;
}

.bc-detail-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin: 0 0 6px;
}

.bc-detail-value {
  font-size: .92rem;
  line-height: 1.62;
  color: #334155;
  margin: 0;
  text-wrap: pretty;
  hyphens: none;
}

.bc-sector-strip,
.bc-prestaciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.bc-sector-chip,
.bc-prest-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  font-size: .86rem;
  color: #475569;
}

.bc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(248, 250, 252, .6);
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
}

.contact-cta {
  margin-top: 28px;
}

.contact-address {
  font-style: normal;
}

.bc-cta-left h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: #0f172a;
}

.bc-cta-left p {
  margin: 0;
  max-width: 58ch;
  font-size: .95rem;
  line-height: 1.66;
  color: #475569;
  text-wrap: pretty;
  hyphens: none;
}

.bc-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.bullets {
  list-style: none;
  margin: 22px 0 0 0;
  max-width: 72ch;
  border-left: 3px solid rgba(15, 23, 42, .10);
  padding-left: 16px;
}

.bullets li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  color: #0f172a;
  line-height: 1.55;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(46, 164, 79, .9);
}

.bullets strong {
  color: #0f172a;
  font-weight: 700;
}

.values {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 46px auto 0;
  padding: 0 56px;
}

.values-block {
  max-width: none;
  margin: 0;
  overflow: visible;
  padding: 0;
}

.process-video-block + .values-block {
  margin-top: 0;
}

.values h3 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 14px 0;
  color: #0f172a;
}

.values h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  background: rgba(46, 164, 79, .85);
  border-radius: 999px;
}

.values-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
  margin-top: 22px;
  margin-bottom: 20px;
  max-width: 70ch;
}

.values-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 34px;
  margin-top: 0;
  isolation: isolate;
}

.values-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: -196px;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .82)), url("../assets/img/mockup_esquema_tecnico.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.value-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.value-item img {
  width: 26px;
  height: 26px;
  opacity: .85;
}

.value-item strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 4px;
  color: #0f172a;
}

.value-item p {
  font-size: .92rem;
  line-height: 1.5;
  color: #475569;
}

.values .value-item p {
  margin-top: 8px;
}

.process-video-content .value-item img {
  filter: none;
  opacity: .85;
}

.process-video-content .value-item p {
  color: #475569;
}

.footer {
  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 24px;
  font-size: .8rem;
}

.footer a {
  color: #fff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.legal-page h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 14px 0;
  color: #0f172a;
}

.legal-page h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  background: rgba(46, 164, 79, .85);
  border-radius: 999px;
}

#inicio {
  scroll-margin-top: 72px;
}

@media (min-width: 960px) {
  .bullets {
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
    row-gap: 6px;
    border-left: none;
    padding-left: 0;
  }

  .bullets li {
    margin: 6px 0;
    padding-left: 18px;
  }
}

@media (max-width: 959px) {
  .bc-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .bc-badge-row {
    justify-content: flex-start;
  }

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

  .bc-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
  }

  .brand img {
    height: 40px;
    max-width: 150px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    min-height: 34px;
    padding: 7px 6px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;
    background: rgba(255, 255, 255, .08);
    font-size: .72rem;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .hero {
    height: auto;
    min-height: 86vh;
    padding: 96px 0 48px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-wrap: wrap;
  }

  .badges {
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 18px;
    width: 100%;
  }

  .mobile-hidden {
    display: none;
  }

  .badge {
    width: 132px;
    max-height: 96px;
  }

  .iso-badge {
    width: 198px;
    max-height: 144px;
  }

  .kiwa-badge {
    width: 96px;
  }

  .badge-link {
    width: 118px;
    height: 118px;
    padding: 11px;
  }

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

  .values-grid::before {
    bottom: -42px;
  }

  .values {
    padding: 0;
  }

  .about-content {
    padding-left: 0;
    padding-right: 0;
  }

  .process-video-block {
    min-height: 0;
  }

  .process-video-content {
    padding: 42px 20px;
  }

  .process-video-overlay {
    background: rgba(255, 255, 255, .78);
  }

  .print-custom-inner {
    padding: 46px 20px;
  }

  .print-custom-intro,
  .print-custom-grid {
    grid-template-columns: 1fr;
  }

  .print-custom-intro {
    gap: 18px;
  }

  .print-custom-intro h2 {
    font-size: 1.65rem;
  }

  .print-custom-item {
    min-height: 0;
  }

  #personalizado {
    scroll-margin-top: 128px;
  }

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

  .products-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bc-card-wide {
    grid-column: span 1;
  }

  .bc-card {
    min-height: 0;
  }

  .bc-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 1.25rem;
  }

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

  .certification-logo {
    max-width: 225px;
  }
}

@media (max-width: 520px) {
  .content {
    padding: 56px 20px;
  }

  .content h2 {
    font-size: 1.65rem;
  }

  .content p {
    font-size: 1rem;
  }

  .content-page {
    padding-top: 40px;
  }

  .location-contact-band #contacto {
    padding-bottom: 24px;
  }

  .location-contact-band #como-llegar {
    padding-top: 24px;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-video-media {
    display: none;
  }
}
