:root {
  --ink: #182430;
  --navy: #173f63;
  --blue: #2778a8;
  --muted: #5b6874;
  --soft: #eef4f7;
  --line: #d8e0e6;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
section[id] {
  scroll-margin-top: 92px;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
}
.shell {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #231f20;
  border-bottom: 1px solid #3d3839;
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-size: 14px;
}
.desktop-nav {
  display: none;
  gap: 22px;
  align-items: center;
}
.desktop-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.desktop-nav a:hover,
.desktop-nav a:focus {
  color: var(--navy);
}
.brand img {
  display: block;
  width: 104px;
  height: 62px;
  object-fit: contain;
  background: #231f20;
}
.brand-copy {
  display: grid;
  justify-items: start;
  line-height: 1;
  white-space: nowrap;
}
.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.015em;
}
.brand-copy small {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.mobile-menu {
  display: block;
}
.mobile-menu summary {
  width: 50px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu summary span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}
.mobile-menu nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  width: min(300px, calc(100vw - 30px));
  display: grid;
  padding: 10px;
  border: 1px solid #3d3839;
  border-radius: 0 0 14px 14px;
  background: #231f20;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}
.mobile-menu nav a {
  padding: 14px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  transition: background 0.2s ease;
}
.mobile-menu nav a:hover,
.mobile-menu nav a:focus {
  background: rgba(255, 255, 255, 0.08);
}
.mobile-menu nav a:last-child {
  border-bottom: 0;
}
.footer-brand {
  white-space: nowrap;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 62px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero .eyebrow {
  white-space: nowrap;
}
.hero h1 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  box-shadow: 0 4px 14px rgba(23, 63, 99, 0.2);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.proof {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 25px;
  color: var(--muted);
  font-size: 14px;
}
.proof span:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.photo-placeholder {
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(145deg, #eef5f8, #dfeaf0);
  color: var(--muted);
  border-radius: 16px;
}
.hero-photo {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(24, 36, 48, 0.1);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}
.hero-photo div {
  position: relative;
  z-index: 1;
  max-width: 310px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 10px;
}
.hero-photo p {
  margin: 5px 0 0;
}

.maps-inline-btn {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.maps-inline-btn:hover {
  background: var(--line);
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}
h2 {
  margin: 0 0 13px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.section-intro {
  max-width: 760px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
}
.catalog-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--soft);
  border-radius: 16px;
}
.catalog-title {
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 99, 0.14);
  border-radius: 12px;
}
.catalog-title img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 865;
  object-fit: cover;
  object-position: center;
}
.quality-section {
  background: #fafcfd;
}
.quality-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.iso-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  background: #e8f2f7;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(24, 36, 48, 0.05);
}
.tuv-logo {
  display: block;
  width: min(100%, 360px);
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 10px;
}
.tuv-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.iso-card strong {
  font-size: 34px;
  font-weight: 500;
}
.iso-card span {
  color: var(--muted);
}
.iso-card small {
  margin-bottom: 10px;
  color: var(--muted);
}
.checks {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 22px;
}
.checks li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.privacy {
  color: var(--muted);
  font-size: 14px;
}
.contact-section {
  background: #fafafa;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
}
.contact-data {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.contact-data p {
  margin: 0;
}
.contact-data a,
footer a {
  text-decoration: none;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.contact-form .wide {
  grid-column: 1/-1;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39, 120, 168, 0.18);
}
.contact-form textarea {
  resize: vertical;
}
.success {
  margin: 0;
  color: #17633a;
  font-weight: 600;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
}

/* Tarjetas de Productos y Galería */
.product-grid { 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; 
}
.product { 
  overflow: hidden; 
  padding: 0; 
  background: #fff; 
  border-radius: 16px;
  border-top: 4px solid var(--blue);
  box-shadow: 0 10px 25px rgba(24, 36, 48, 0.06); 
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(24, 36, 48, 0.12);
}
.product img { 
  display: block; 
  width: 100%; 
  height: 205px; 
  object-fit: cover; 
}
.product-copy { 
  padding: 20px; 
}
.product-copy p {
  margin: 0;
  color: var(--muted);
}

.gallery { 
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr; 
  grid-template-rows: 240px 240px; 
  gap: 14px; 
}
.gallery-item { 
  position: relative; 
  min-width: 0; 
  margin: 0; 
  overflow: hidden; 
  background: var(--soft); 
  border-radius: 14px;
}
.gallery-item.large { 
  grid-row: 1 / 3; 
  min-height: 0; 
}
.gallery-item.wide { 
  grid-column: 2 / 4; 
}
.gallery-item img { 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.gallery-item.large img { 
  object-position: center 48%; 
}
.gallery-item figcaption { 
  position: absolute; 
  left: 12px; 
  bottom: 12px; 
  padding: 8px 12px; 
  background: rgba(255, 255, 255, 0.92); 
  color: var(--ink); 
  font-size: 14px; 
  font-weight: 700; 
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.team-photo { 
  grid-column: 1 / -1; 
  height: 420px; 
  min-height: 190px; 
}
.gallery-item.team-photo img { 
  object-position: center 45%; 
}

/* Media Queries */
@media (max-width: 800px) {
  .nav {
    align-items: center;
    padding: 8px 0;
  }
  .brand img {
    width: 88px;
    height: 54px;
  }
  .brand-copy strong {
    font-size: 18px;
  }
  .brand-copy small {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 0.015em;
  }
  .mobile-menu summary {
    width: 46px;
    height: 44px;
  }
  .hero,
  .catalog-card,
  .quality-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 22px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery { 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 300px 220px 220px; 
  }
  .gallery-item.large { 
    grid-column: 1 / -1; 
    grid-row: auto; 
  }
  .gallery-item.wide { 
    grid-column: 1 / -1; 
  }
  .team-photo { 
    height: 360px; 
    min-height: 220px; 
  }
}

@media (max-width: 540px) {
  .shell {
    width: min(100% - 30px, 1120px);
  }
  .site-header {
    position: sticky;
  }
  .nav {
    display: flex;
  }
  .hero {
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 44px;
  }
  .hero-photo {
    order: -1;
    border-radius: 12px;
  }
  .hero .eyebrow {
    margin-top: 2px;
    margin-bottom: 9px;
    font-size: 10px;
    letter-spacing: 0.055em;
  }
  .hero h1 {
    margin-bottom: 12px;
    font-size: 32px;
    line-height: 1.02;
  }
  .lead {
    margin: 0;
    font-size: 16px;
  }
  .lead-detail {
    display: none;
  }
  .hero .actions {
    margin-top: 18px;
  }
  .hero .actions .button:nth-child(3) {
    display: none;
  }
  .proof {
    gap: 8px 14px;
    margin-top: 18px;
    font-size: 12px;
  }
  .hero-photo {
    min-height: 270px;
  }
  .hero-photo img {
    height: 270px;
  }
  .section {
    padding: 54px 0;
  }
  .product-grid,
  .gallery,
  .contact-form {
    grid-template-columns: 1fr;
  }
  .product img { 
    height: 220px; 
  }
  .gallery { 
    display: grid; 
    grid-template-columns: 1fr; 
    grid-template-rows: none; 
  }
  .gallery-item, 
  .gallery-item.large, 
  .gallery-item.wide { 
    grid-column: auto; 
    grid-row: auto; 
    height: 250px; 
  }
  .gallery-item.team-photo { 
    height: 330px; 
  }
  .contact-form .wide {
    grid-column: auto;
  }
  .catalog-card {
    padding: 22px;
  }
  .catalog-title {
    min-height: 150px;
  }
  .footer-inner {
    display: grid;
  }
  .footer-brand {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button:hover,
  .product:hover {
    transform: none;
  }
}