:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef4f7;
  --text: #16323f;
  --muted: #5b7180;
  --primary: #0f4c5c;
  --primary-2: #1f7a8c;
  --accent: #f28f3b;
  --brand-green: #1f8c3e;
  --border: rgba(15, 76, 92, 0.12);
  --shadow: 0 20px 45px rgba(15, 76, 92, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbfc 0%, var(--bg) 100%);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.48rem 2rem 0.36rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  width: min(117px, 15.6vw);
  height: auto;
  display: block;
}
.brand-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: 2px 4px;
}
.brand-strip__bar {
  display: block;
}
.brand-strip__bar--red {
  background: #ff2300;
}
.brand-strip__bar--green {
  background: #0cab00;
}
.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.menu-toggle {
  display: none;
  border: 0;
  background: var(--primary);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 2rem 3rem;
  background:
    linear-gradient(90deg, rgba(5, 23, 28, 0.82) 0%, rgba(15, 76, 92, 0.58) 100%),
    url('../../site/images/inicio/ini_01.png') center/cover no-repeat;
}
.hero-content {
  max-width: 720px;
  color: #fff;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 140, 62, 0.13);
  color: #1f8c3e;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.hero p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}
.video-section {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2rem 2rem 0;
}
.video-frame {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}
.video-frame video {
  width: 100%;
  display: block;
  min-height: 340px;
}
.product-list {
  display: grid;
  gap: 1rem;
}
.product-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
}
.product-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.product-item p {
  margin: 0;
  color: var(--muted);
}
.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.product-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.product-links a:hover {
  transform: translateY(-2px);
  background: var(--primary-2);
}
.product-section-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
.product-side {
  display: grid;
  gap: 1rem;
}
.product-special-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-special-card h3 {
  margin: 0 0 0.8rem;
  color: var(--primary);
}
.product-special-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}
.product-special-links {
  display: grid;
  gap: 0.75rem;
}
.product-special-links a {
  display: inline-flex;
  padding: 0.75rem 1rem;
  background: rgba(15,76,92,0.1);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.product-special-links a:hover {
  background: rgba(15,76,92,0.15);
}
.product-special-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}
.product-special-highlight .btn-primary {
  background: #fff;
  color: var(--primary);
}
.product-special-highlight .product-special-links a {
  color: #fff;
  background: rgba(255,255,255,0.18);
}
.transport-logo img {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: block;
}
.product-section-grid .product-list {
  display: grid;
  gap: 1rem;
}
.product-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.product-item h3 {
  margin: 0 0 0.5rem;
}
.product-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}
.product-item .product-links {
  margin-top: auto;
}
.product-special-card.card--accent {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
}
.product-special-card.card--accent h3,
.product-special-card.card--accent p,
.product-special-card.card--accent li {
  color: rgba(255,255,255,0.98);
}
.product-special-card.card--accent a {
  color: #fff;
}
.product-special-card.card--accent .transport-logo img {
  filter: brightness(0) invert(1);
}
.product-special-highlight .btn-primary:hover {
  background: rgba(255,255,255,0.94);
}
.product-special-highlight .product-special-links a:hover {
  background: rgba(255,255,255,0.28);
}
.product-special-highlight .btn-primary {
  align-self: flex-start;
}
.product-special-highlight {
  min-height: 220px;
}
.product-special-card {
  min-height: 220px;
}
.product-special-card .btn-primary {
  margin-top: auto;
}
.product-special-highlight p {
  margin-bottom: 1rem;
}
.product-special-card h3 {
  font-size: 1.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-panel {
  display: grid;
  gap: 1rem;
}
.hero .panel-card,
.hero-overview__card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.38);
  backdrop-filter: blur(6px);
}
.hero .hero-overview__card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: 0 18px 40px rgba(5, 23, 28, 0.2);
}
.hero .hero-overview__card h3,
.hero .hero-overview__card p,
.hero .hero-overview__card li {
  color: #133241;
}
.hero-overview__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}
.hero-overview__card {
  min-height: 100%;
}
.hero-overview__card .btn {
  margin-top: 0.8rem;
}
.panel-card,
.card,
.product-card,
.contact-card {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.panel-card h3,
.panel-card p,
.card h3,
.card p,
.product-card h3,
.product-card p,
.contact-card h3,
.contact-card p {
  color: var(--text);
}
.panel-card:hover,
.card:hover,
.product-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(15, 76, 92, 0.16);
}
.section {
  padding: 4rem 2rem;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 1.6rem;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
}
.grid,
.product-grid,
.gallery-grid {
  display: grid;
  gap: 1.2rem;
}
.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-overview {
  padding-top: 2rem;
}
.home-overview__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-overview__card {
  min-height: 100%;
}
.home-overview__card .btn {
  margin-top: 0.8rem;
}
.album-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.album-card {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.album-card:hover {
  transform: translateY(-4px);
}
.album-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.album-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(15,76,92,0) 0%, rgba(15,76,92,0.88) 100%);
  color: #fff;
}
.album-card__info strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.album-card__info span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
}
.card--accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}
.card.card--accent h3,
.card.card--accent p,
.card.card--accent li {
  color: rgba(255,255,255,0.98);
}
.check-list.rse-checklist {
  padding-left: 1.25rem;
}
.check-list.rse-checklist li {
  margin-bottom: 0.85rem;
}
.rse-intro {
  align-items: stretch;
  gap: 1.2rem;
}
.rse-hero-card {
  min-height: 100%;
  overflow: hidden;
}
.rse-hero-image {
  min-height: 260px;
  background: linear-gradient(180deg, rgba(15, 76, 92, 0.6), rgba(15, 76, 92, 0.35)), url('../site/images/paginas/rse01.png') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  border-radius: var(--radius);
}
.rse-hero-copy .eyebrow {
  margin: 0 0 1rem;
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.rse-hero-copy p {
  color: rgba(255,255,255,0.96);
  margin: 0;
  font-size: 1.03rem;
}
.rse-details-card {
  padding-top: 1rem;
}
.rse-bottom-grid {
  align-items: stretch;
  gap: 1.2rem;
}
.rse-ethics-card,
.rse-contact-card {
  min-height: 100%;
}
.rse-contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rse-contact-item {
  margin: 0.85rem 0;
  color: rgba(255,255,255,0.95);
}
.rse-contact-card a {
  color: #fff;
  text-decoration: underline;
}
.rse-form-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  padding: 1rem;
}
.rse-form-card label {
  font-weight: 600;
  color: #fff;
}
.rse-form-card input,
.rse-form-card textarea {
  background: rgba(255,255,255,0.94);
  border-color: rgba(15,76,92,0.18);
}
.rse-form-card .btn-secondary {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.rrhh-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.4fr;
  gap: 1.5rem;
  align-items: stretch;
}
.rrhh-photo {
  min-height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 76, 92, 0.95), rgba(15, 76, 92, 0.55)), url('../../site/images/paginas/rrhh01.png') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: #fff;
}
.rrhh-photo__title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.rrhh-text {
  background: #f4f7f9;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.rrhh-text p {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.8;
}
.rrhh-text p:last-child {
  margin-bottom: 0;
}
.rrhh-text a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.rrhh-text a:hover {
  text-decoration: underline;
}
.section-image-banner {
  margin: 1.2rem 0 1.2rem;
}
.section-image-banner img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .section-image-banner img { max-height: 200px; }
}
.proveedores-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1.6rem;
  align-items: center;
}
.proveedores-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.proveedores-card a {
  max-width: fit-content;
}
.proveedores-image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.proveedores-image-card img {
  width: 100%;
  display: block;
}
.calidad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1.6rem;
}
.seguridad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1.6rem;
}
.medioambiente-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1.6rem;
}
.calidad-card,
.seguridad-card,
.medio-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Medio Ambiente image placed inside the first content card */
.medio-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 320px;
  display: block;
  margin-bottom: 1rem;
}

/* Medio Ambiente: use image as background of the first content card */
.medio-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(15,76,92,0.12), rgba(15,76,92,0.08)), url('../../site/images/paginas/medioambiente01.png') left center/cover no-repeat;
  padding: 2rem;
  min-height: 260px;
  color: var(--text);
  border-radius: var(--radius);
}

@media (max-width: 760px) {
  .medio-hero {
    background: none;
    padding: 1rem 1rem 0.5rem;
    min-height: auto;
  }
}

/* Reduce visual footprint of the RSE hero copy */
.rse-hero-copy p {
  font-size: 0.98rem;
  margin: 0;
}
.info-list {
  margin: 0;
  padding-left: 1.25rem;
}
.info-list li {
  margin-bottom: 0.85rem;
  line-height: 1.75;
}
.info-section {
  padding-top: 1rem;
  border-top: 1px solid rgba(15,76,92,0.08);
}
.info-section h4 {
  margin: 0 0 0.85rem;
  color: var(--primary);
  font-size: 1rem;
}
.card--wide {
  max-width: 860px;
}
.check-list {
  margin: 0;
  padding-left: 1.1rem;
}
.product-card h3,
.card h3,
.contact-card h3 {
  margin-top: 0;
}
.site-footer {
  padding: 1.2rem 2rem 2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #f7fbfd;
}
.album-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 30, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}
.album-modal.is-open {
  display: flex;
}
.album-modal__panel {
  width: min(1100px, 100%);
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.album-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}
.album-modal__header {
  padding: 1.6rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
}
.album-modal__header h3 {
  margin: 0;
  font-size: 1.5rem;
}
.album-modal__header p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}
.album-modal__selected {
  position: relative;
  padding: 1rem 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.album-modal__image {
  max-width: 100%;
  max-height: 65vh;
  border-radius: 18px;
  object-fit: contain;
}
.album-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.album-modal__nav--prev {
  left: 1rem;
}
.album-modal__nav--next {
  right: 1rem;
}
.album-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.9rem;
  padding: 1.25rem 2rem 2rem;
}
.album-modal__thumbs button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15,76,92,0.08);
}
.album-modal__thumbs button img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.album-modal__thumbs button:hover img {
  transform: scale(1.04);
}
.album-modal__thumbs button.active {
  box-shadow: 0 0 0 2px var(--primary);
}
@media (max-width: 760px) {
  .album-modal__panel {
    width: 100%;
    border-radius: 20px;
  }
  .album-modal__header {
    padding: 1.2rem 1.2rem 0.9rem;
  }
  .album-modal__selected {
    padding: 1rem 1rem 0;
  }
  .album-modal__image {
    max-height: calc(60vh - 20px);
  }
  .album-modal__nav {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
  .album-modal__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    padding: 1rem 1rem 1.5rem;
  }
}
.contact-card label { display: grid; gap: 0.4rem; margin-bottom: 0.9rem; font-weight: 600; }
.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fcfd;
}
.gallery-grid {
  align-items: start;
}
.gallery-item {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.02);
  box-shadow: 0 18px 38px rgba(15, 76, 92, 0.2);
}
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 30, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}
.gallery-modal.is-open {
  display: flex;
}
.gallery-modal__image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}
.contact-map {
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}
.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 30, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  z-index: 2200;
}
.info-modal.is-open {
  display: flex;
}
.info-modal__panel {
  position: relative;
  width: min(1320px, 96vw);
  height: min(92vh, 980px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}
.info-modal__header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: #f6fafb;
}
.info-modal__header h3 {
  margin: 0;
}
.info-modal__frame {
  width: 100%;
  height: calc(100% - 64px);
  border: 0;
}
.pdf-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 30, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  z-index: 2250;
}
.pdf-modal.is-open {
  display: flex;
}
.pdf-modal__panel {
  position: relative;
  width: min(1400px, 98vw);
  height: min(92vh, 980px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: #f6fafb;
}
.pdf-modal__header h3 {
  margin: 0;
  font-size: 1.05rem;
}
.pdf-modal__actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.pdf-modal__button,
.pdf-modal__close {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.pdf-modal__button {
  padding: 0.72rem 1rem;
  background: var(--primary);
  color: #fff;
}
.pdf-modal__close {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}
.pdf-modal__frame {
  width: 100%;
  height: calc(100% - 69px);
  border: 0;
  display: block;
}
.gallery-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-overview__grid { grid-template-columns: 1fr; }
  .two-columns { grid-template-columns: 1fr; }
  .rrhh-row { grid-template-columns: 1fr; gap: 1rem; }
  .proveedores-grid,
  .calidad-grid,
  .seguridad-grid,
  .medioambiente-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 0.38rem 1rem 0.32rem;
  }
  .brand-logo {
    width: min(97px, 25.3vw);
  }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,0.97);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 0.9rem; }
  .info-modal__panel {
    height: min(90vh, 900px);
    border-radius: 16px;
  }
  .pdf-modal__panel {
    width: 100%;
    height: min(92vh, 920px);
    border-radius: 16px;
  }
  .pdf-modal__header {
    padding: 0.85rem 0.95rem;
  }
  .pdf-modal__button {
    padding: 0.68rem 0.9rem;
  }
}

