:root {
  --ink: #242424;
  --muted: #626268;
  --line: #d8d2c7;
  --panel: #f2f0ea;
  --blue: #4f717c;
  --cyan: #789aa3;
  --green: #7c3f37;
  --yellow: #b7895f;
  --white: #fffdfa;
  --max: 1180px;
  --radius: 8px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(94, 133, 145, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  width: 46px;
  height: 46px;
  padding: 0;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
  color: #2f2e2c;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--blue);
}

.main-nav .btn {
  color: var(--white);
}

.main-nav .btn:hover,
.main-nav .btn:focus {
  color: var(--white);
}

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  line-height: 1.2;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn {
  background: var(--green);
  color: var(--white);
}

.btn:hover,
.btn:focus {
  background: #65312b;
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #f0ede6;
  transform: translateY(-1px);
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,253,248,0.97) 0%, rgba(255,253,248,0.9) 48%, rgba(255,253,248,0.42) 100%),
    url("../img/hero-logistica-almacen.jpg") right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-home {
  background-position: right center;
}

.hero-inner,
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw, 5rem);
  max-width: 820px;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3.1rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
  color: #45423e;
  max-width: 780px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  background: var(--white);
  padding: 22px 20px;
  text-align: left;
  font-weight: 800;
}

.trust-strip strong {
  display: block;
  color: var(--blue);
  font-size: 1rem;
}

.trust-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.section {
  background: var(--white);
}

.section.alt {
  background: var(--panel);
}

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

.section-head p {
  max-width: 600px;
  margin: 10px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.product-card,
.service-card,
.location-card,
.faq-item {
  position: relative;
  isolation: isolate;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(36, 36, 36, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card::before,
.service-card::before,
.location-card::before,
.faq-item::before,
.spec-panel::before,
.quote-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #2f5970 0%, #6f8fa1 55%, #d8d2c7 100%);
  opacity: 0.95;
}

.product-card::after,
.service-card::after,
.location-card::after,
.faq-item::after,
.spec-panel::after {
  content: "";
  position: absolute;
  top: -38px;
  right: -34px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 154, 163, 0.14) 0%, rgba(120, 154, 163, 0.05) 52%, rgba(120, 154, 163, 0) 74%);
  pointer-events: none;
}

.product-card:hover,
.service-card:hover,
.location-card:hover,
.faq-item:hover {
  border-color: #c4b7a6;
  box-shadow: 0 18px 38px rgba(36, 36, 36, 0.1);
  transform: translateY(-3px);
}

.product-card img,
.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: transparent;
  padding: 12px;
}

.product-card .product-shot,
.product-shot {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: contain;
  background: transparent;
  padding: 18px 18px 8px;
}

.product-card .body,
.service-card .body,
.location-card,
.faq-item {
  padding: 22px;
}

.product-card .body,
.service-card .body,
.faq-item,
.location-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 248, 242, 0.98) 100%);
}

.product-card p,
.service-card p,
.location-card p,
.faq-item p {
  color: var(--muted);
  margin: 10px 0 0;
}

.service-card a,
.location-card,
.product-link {
  text-underline-offset: 3px;
}

.location-card {
  display: block;
  text-decoration: none;
}

.location-card h3 {
  position: relative;
  z-index: 1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card,
.quote-panel {
  position: relative;
  isolation: isolate;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(36, 36, 36, 0.05);
  overflow: hidden;
}

.step-card {
  border-top: 4px solid var(--cyan);
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e8eeed;
  color: var(--ink);
  font-weight: 900;
}

.step-card p,
.quote-panel p {
  color: var(--muted);
}

.quote-panel {
  background:
    linear-gradient(180deg, rgba(248, 246, 240, 0.96) 0%, rgba(255, 253, 248, 0.98) 100%);
}

.quote-panel h2,
.quote-panel h3 {
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: #3f3c38;
  font-weight: 700;
  font-size: 0.92rem;
}

.meta-list,
.check-list {
  padding-left: 18px;
  margin: 14px 0 0;
  color: #3f3c38;
}

.meta-list li,
.check-list li {
  margin: 6px 0;
}

.band {
  background: var(--ink);
  color: var(--white);
}

.band .section-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.band p {
  color: #e6dfd5;
}

.band .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: #c9b69d;
}

.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.9) 42%, rgba(255, 253, 248, 0.74) 62%, rgba(255, 253, 248, 0.46) 100%),
    linear-gradient(135deg, #f4f1ea 0%, #fffdfa 52%, #e8eeed 100%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero .section-inner {
  padding-top: 52px;
  padding-bottom: 58px;
}

.page-hero .split {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.page-hero .feature-image {
  display: none;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.feature-image {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: rgba(246, 243, 236, 0.88);
  padding: 14px;
}

.page-hero--embalaje {
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.92) 42%, rgba(255, 253, 248, 0.78) 62%, rgba(255, 253, 248, 0.42) 100%),
    url("../img/hero-section-embalaje.jpg");
}

.page-hero--cintas {
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.92) 42%, rgba(255, 253, 248, 0.78) 62%, rgba(255, 253, 248, 0.4) 100%),
    url("../img/hero-section-cintas.jpg");
}

.page-hero--tarimas {
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.92) 42%, rgba(255, 253, 248, 0.78) 62%, rgba(255, 253, 248, 0.4) 100%),
    url("../img/hero-section-tarimas.jpg");
}

.page-hero--cobertura {
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.92) 42%, rgba(255, 253, 248, 0.8) 62%, rgba(255, 253, 248, 0.44) 100%),
    url("../img/hero-section-cobertura.jpg");
}

.page-hero--contacto {
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.92) 42%, rgba(255, 253, 248, 0.78) 62%, rgba(255, 253, 248, 0.42) 100%),
    url("../img/hero-section-contacto.jpg");
}

.page-hero--productos {
  background-image:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.92) 42%, rgba(255, 253, 248, 0.8) 62%, rgba(255, 253, 248, 0.46) 100%),
    url("../img/hero-section-productos.jpg");
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.product-detail {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.product-detail::before {
  content: "";
  position: absolute;
  inset: 26px auto auto 18px;
  width: 180px;
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(120, 154, 163, 0.16) 0%, rgba(120, 154, 163, 0) 75%);
  pointer-events: none;
}

.product-detail img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
  box-shadow: 0 20px 44px rgba(36, 36, 36, 0.12);
  position: relative;
  z-index: 1;
}

.spec-panel {
  position: relative;
  isolation: isolate;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(36, 36, 36, 0.06);
}

.spec-panel + .spec-panel {
  margin-top: 16px;
}

.spec-panel h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.product-link {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}

.technical-sheet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  background: var(--white);
}

.technical-sheet:hover,
.technical-sheet:focus {
  background: #f0ede6;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #e8eeed;
  color: var(--blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list a {
  color: var(--blue);
  font-weight: 800;
}

.footer {
  background: #ebe7df;
  border-top: 1px solid var(--line);
}

.footer .section-inner {
  padding-top: 38px;
  padding-bottom: 38px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 30;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius);
  }

  .main-nav.is-open {
    display: flex;
  }

  .grid.cols-3,
  .grid.cols-2,
  .process-grid,
  .split,
  .product-detail,
  .contact-grid,
  .band .section-inner,
  .footer .section-inner {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: block;
  }

  .step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
  }

  .step-card span {
    margin-bottom: 0;
  }

  .step-card p {
    grid-column: 1 / -1;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 118px;
  }

  .nav-wrap {
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-toggle {
    flex: 0 0 auto;
  }

  .hero {
    min-height: auto;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(255,253,248,0.98) 0%, rgba(255,253,248,0.88) 56%, rgba(255,253,248,0.52) 100%),
      url("../img/hero-logistica-almacen.jpg") center bottom / cover no-repeat;
  }

  .hero-inner,
  .section-inner {
    padding: 48px 16px;
  }

  .hero-inner {
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .page-hero .section-inner {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .page-hero {
    background-position: center top;
  }

  .page-hero .split {
    gap: 24px;
  }

  .breadcrumbs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .btn,
  .btn-secondary {
    width: 100%;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .responsive-table {
    min-width: 0;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

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

  .responsive-table tbody {
    display: grid;
    gap: 14px;
  }

  .responsive-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(36, 36, 36, 0.05);
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(110px, 40%) 1fr;
    gap: 10px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--blue);
    font-weight: 800;
  }

  .responsive-table td:first-child {
    background: #f6f8f8;
    font-weight: 800;
  }
}
