/* =========================================================
   Cómo trabajamos — landings institucionales
   Extiende landing.css / landings-hero.css
   ========================================================= */

/* landing.css pone smooth en html; acá el scroll lo maneja el JS */
html {
  scroll-behavior: auto !important;
}

.margin-header .section[id],
.margin-header .dif-strip[id],
.margin-header .pp-axis-title[id],
.margin-header .pp-arrow[id],
.margin-header .ab-bio[id],
.margin-header .ab-faq-group[id],
.margin-header .ab-band[id] {
  /* Fallback nativo; el JS usa header + nav sticky */
  scroll-margin-top: calc(var(--nh-header-h, 68px) + 56px);
}

.margin-header .srv-nav {
  top: var(--nh-header-h, 68px);
  z-index: 90;
}

.ctw-intro {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 8px;
}

.ctw-intro strong {
  color: var(--black);
}

.ctw-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--gray);
  border: 1px solid var(--gray2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}

.ctw-note strong {
  color: var(--black);
}

/* Certificación — paneles Inspección / Certificación profesional */
.ctw-cert-proceso {
  background: #f5f3ec;
  padding-bottom: 36px;
}

.ctw-cert-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  min-height: 200px;
}

.ctw-cert-panel {
  position: relative;
  color: #fff;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.ctw-cert-panel--light {
  background: #6cac18;
}

.ctw-cert-panel--dark {
  background: #418806;
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -28px;
  padding-left: 48px;
}

.ctw-cert-panel__content {
  position: relative;
  z-index: 1;
  max-width: 320px;
}

.ctw-cert-panel h3 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
}

.ctw-cert-panel__sub {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.95);
}

.ctw-cert-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ctw-cert-panel li,
.ctw-cert-panel p {
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
  margin: 0 0 6px;
}

.ctw-cert-panel li:last-child,
.ctw-cert-panel p:last-child {
  margin-bottom: 0;
}

.ctw-cert-panel__icon {
  position: absolute;
  right: 18px;
  bottom: 10px;
  width: 110px;
  height: 110px;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.ctw-cert-panel__icon--clip {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Crect x='16' y='10' width='32' height='44' rx='3'/%3E%3Cpath d='M24 10h16v6H24z'/%3E%3Cpath d='M24 26h16M24 34h16M24 42h10'/%3E%3Ccircle cx='44' cy='46' r='10' fill='%23418806' stroke='%23ffffff'/%3E%3Cpath d='M40 46l3 3 6-7' stroke='%23ffffff' stroke-width='2.2'/%3E%3C/svg%3E");
}

.ctw-cert-panel__icon--seal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='32' cy='28' r='16'/%3E%3Ccircle cx='32' cy='28' r='10'/%3E%3Cpath d='M24 42l-4 14 12-6 12 6-4-14'/%3E%3Cpath d='M32 22v12M26 28h12'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .ctw-cert-panels {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .ctw-cert-panel--dark {
    clip-path: none;
    margin-left: 0;
    padding-left: 28px;
  }

  .ctw-cert-panel {
    min-height: 180px;
    padding: 24px 22px;
  }

  .ctw-cert-panel__icon {
    width: 88px;
    height: 88px;
    right: 12px;
    opacity: 0.18;
  }
}

/* =========================================================
   Programa de Protección — flujo híbrido
   (tabla limpia original + tipografía / hero nuevo)
   ========================================================= */
.pp-intro {
  background: #f5f3ec; /* gray cálido home, un tono más marcado que --gray */
  padding-top: 28px;
  padding-bottom: 36px;
}

.pp-flow {
  background: #fff;
  padding: 40px 0 40px;
}

.pp-board {
  max-width: 980px;
  margin: 0 auto;
}

.pp-pills {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 6px;
}

.pp-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #408804;
  background: rgba(108, 172, 24, 0.12);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  line-height: 1.2;
}

.pp-pill--right {
  justify-self: end;
  color: #408804;
}

.pp-axis-title {
  text-align: center;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #6cac18;
  margin: 18px 0 4px;
  line-height: 1.2;
}

.pp-axis-title#comercial { color: #408804; }
.pp-axis-title#entrega { color: #285404; }

.pp-axis-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 600;
}

.pp-arrow {
  display: flex;
  justify-content: center;
  line-height: 0;
  margin: 0;
}

.pp-arrow img {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
}

.pp-row {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  gap: 0;
  align-items: stretch;
}

.pp-side {
  padding: 16px 28px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  display: flex;
  align-items: center;
}

.pp-side--right {
  text-align: left;
}

.pp-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Match flecha-aviso-publicitario.png ≈ #6cac18 / #6dad19 */
  background: #6cac18;
  color: #fff;
  padding: 14px 12px;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.pp-mid--2 { background: #408804; } /* match flecha-comercial */
.pp-mid--3 { background: #285404; } /* match flecha-asistencia */
.pp-mid--g { background: #5e5f61; }

.pp-done-wrap {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  margin-top: 0;
}

.pp-done {
  grid-column: 2;
  background: #5e5f61;
  color: #fff;
  text-align: center;
  padding: 22px 12px 18px;
}

.pp-done__title {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.pp-done__sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-bottom: 10px;
}

.pp-done__ok {
  width: 28px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}

.pp-done__hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.pp-foot {
  max-width: 980px;
  margin: 28px auto 0;
}

@media (max-width: 900px) {
  .pp-pills,
  .pp-row,
  .pp-done-wrap {
    grid-template-columns: 1fr;
  }

  .pp-pill,
  .pp-pill--right {
    justify-self: start;
    margin-bottom: 8px;
  }

  .pp-arrow {
    display: none;
  }

  .pp-side {
    padding: 10px 4px 14px;
    border-bottom: 1px solid var(--gray2);
  }

  .pp-side--right {
    border-bottom: none;
    padding-bottom: 20px;
  }

  .pp-mid {
    order: -1;
    border-radius: 6px;
    margin-bottom: 4px;
  }

  .pp-row {
    margin-bottom: 8px;
    padding-bottom: 4px;
  }

  .pp-done {
    grid-column: 1;
    border-radius: 8px;
    max-width: 280px;
    margin: 12px auto 0;
  }

  .pp-axis-title {
    text-align: left;
    margin-top: 28px;
  }

  .pp-axis-sub {
    text-align: left;
  }
}

/* Comparación vendedor / eje / comprador (otras landings) */
.ctw-stage {
  margin-bottom: 28px;
}

.ctw-stage__head {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 180px) 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.ctw-stage__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.ctw-stage__label--right {
  text-align: right;
}

.ctw-stage__axis {
  text-align: center;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.25;
}

.ctw-stage__sub {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.ctw-row {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 180px) 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 8px;
}

.ctw-side {
  background: #fff;
  border: 1px solid var(--gray2);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}

.ctw-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 12px 10px;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.ctw-mid--dark {
  background: #418806;
}

.ctw-mid--deeper {
  background: #295505;
}

.ctw-mid--gray {
  background: #5e5f61;
}

.ctw-done {
  background: #5e5f61;
  color: #fff;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  max-width: 320px;
  margin: 8px auto 0;
}

.ctw-done__title {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.ctw-done__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.ctw-done__hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* Cards de 3 columnas (certificación / ambiental) */
.ctw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ctw-card {
  background: #fff;
  border: 1px solid var(--gray2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ctw-card__img {
  aspect-ratio: 16 / 10;
  background: #d0cfc8;
  overflow: hidden;
}

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

.ctw-card__body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ctw-card__body h3 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 10px;
}

.ctw-card__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.ctw-card__body li {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray2);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ctw-card__body li:last-child {
  border-bottom: none;
}

.ctw-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* Beneficios 2 columnas */
.ctw-ben-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ctw-ben {
  background: #fff;
  border: 1px solid var(--gray2);
  border-radius: 10px;
  padding: 24px 22px;
}

.ctw-ben h3 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 14px;
  line-height: 1.1;
}

.ctw-ben h3 span {
  color: var(--green-dark);
}

.ctw-ben ol {
  list-style: none;
  counter-reset: ctw;
  margin: 0 0 18px;
  padding: 0;
}

.ctw-ben li {
  counter-increment: ctw;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
  padding: 8px 0 8px 36px;
  border-bottom: 1px solid var(--gray2);
  position: relative;
}

.ctw-ben li::before {
  content: counter(ctw, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
}

.ctw-ben li:last-child {
  border-bottom: none;
}

/* Split imagen + texto */
.ctw-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.ctw-split--rev {
  grid-template-columns: 0.8fr 1.2fr;
}

.ctw-split__media img,
.ctw-split__media {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.ctw-split__media--frame {
  background: var(--gray);
  border: 1px solid var(--gray2);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctw-split__media--frame img {
  max-width: 280px;
  width: 100%;
  height: auto;
}

.ctw-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ctw-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.ctw-source {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}

.ctw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ctw-cta-row .srv-cta--ghost {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}

.ctw-cta-row .srv-cta--ghost:hover {
  background: var(--dark);
  color: #fff;
}

.ctw-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ctw-slider img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.ctw-armadores {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray2);
  border-radius: 10px;
  padding: 20px;
}

.ctw-armadores__copy h3 {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 8px;
}

.ctw-armadores__copy p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

.ctw-armadores__fig {
  margin: 0;
}

.ctw-armadores__fig img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .ctw-cards,
  .ctw-ben-grid,
  .ctw-gallery,
  .ctw-slider {
    grid-template-columns: 1fr;
  }

  .ctw-split,
  .ctw-split--rev,
  .ctw-armadores {
    grid-template-columns: 1fr;
  }

  .ctw-stage__head,
  .ctw-row {
    grid-template-columns: 1fr;
  }

  .ctw-stage__label--right {
    text-align: left;
  }

  .ctw-mid {
    order: -1;
    min-height: auto;
    padding: 10px 12px;
  }

  .ctw-stage__axis {
    text-align: left;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .ctw-cards,
  .ctw-gallery,
  .ctw-slider {
    grid-template-columns: 1fr 1fr;
  }
}
