/* Cerrajería Iván · refinamiento v3 */
:root {
  --max: 1240px;
  --section-space: clamp(78px, 9vw, 124px);
}

.container {
  width: min(calc(100% - 48px), var(--max));
}

.brand__symbol,
.contact-brand img {
  content: url("../img/isotipo.svg");
}

.hero {
  padding-top: 18px;
}

.hero-grid {
  min-height: 560px;
  grid-template-columns: minmax(440px, 0.92fr) minmax(480px, 1.08fr);
  border: 0;
  gap: 26px;
}

.hero-copy {
  padding: clamp(54px, 6vw, 82px) clamp(24px, 5vw, 58px) clamp(54px, 6vw, 82px) 0;
}

h1 {
  max-width: 660px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 570px;
  font-size: clamp(17px, 1.25vw, 20px);
}

.hero-media {
  min-height: 560px;
  display: block;
  overflow: hidden;
  border-radius: 28px 0 28px 0;
  background: var(--paper);
}

.hero-media::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 92px;
  height: 92px;
  background: rgba(255,255,255,0.92) url("../img/isotipo.svg") center/66px no-repeat;
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
}

.photo-lock {
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0.14)), var(--hero-photo);
  background-position: 58% 50%;
}

.info-card {
  display: none;
}

.needs {
  padding-top: clamp(72px, 8vw, 106px);
}

.needs-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  border: 0;
  background: transparent;
}

.need-item {
  position: relative;
  min-height: 240px;
  padding: 34px 26px 30px;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.need-item::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(183,27,28,0.14);
  border-radius: 50%;
  transition: transform 220ms ease, background-color 220ms ease;
}

.need-item:hover {
  transform: translateY(-8px);
  border-color: rgba(183,27,28,0.38);
  box-shadow: 0 24px 60px rgba(17,17,17,0.10);
}

.need-item:hover::after {
  transform: scale(1.2);
  background: rgba(183,27,28,0.05);
}

.need-icon {
  width: 62px;
  height: 62px;
  margin: 0 0 28px;
  color: var(--red);
  background: transparent;
  border: 1px solid rgba(183,27,28,0.28);
  transform: rotate(-3deg);
}

.need-icon i {
  font-size: 2rem;
  transform: rotate(3deg);
}

.need-item h3 {
  min-height: auto;
  margin: 0 0 12px;
  max-width: 210px;
  font-size: 1.08rem;
}

.need-item p {
  margin: 0;
  max-width: 220px;
}

.feature-cards {
  padding-bottom: var(--section-space);
}

.feature-grid {
  gap: 24px;
}

.feature-card {
  min-height: 470px;
  grid-template-columns: 1fr;
  border-radius: 26px 0 26px 0;
  overflow: hidden;
}

.feature-card__content {
  min-height: 240px;
  padding: 38px 38px 34px;
}

.feature-card h2 {
  font-size: clamp(30px, 2.5vw, 40px);
}

.feature-card p {
  max-width: 340px;
  font-size: 1rem;
}

.feature-card a {
  margin-top: auto;
  padding-top: 30px;
}

.photo-cylinder,
.photo-portal,
.photo-car {
  min-height: 230px;
}

.services-list {
  display: none;
}

.process-grid {
  min-height: 230px;
}

.process-step {
  min-height: 230px;
  padding: 38px 34px;
}

.faq-layout {
  grid-template-columns: minmax(260px, 0.4fr) minmax(0, 1fr);
}

.contact {
  padding-top: 82px;
  padding-bottom: 72px;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-media {
    min-height: 480px;
  }

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

  .need-item:last-child {
    grid-column: 1 / -1;
  }

  .feature-card {
    min-height: 320px;
    grid-template-columns: 1fr 0.9fr;
  }

  .feature-card__content,
  .photo-cylinder,
  .photo-portal,
  .photo-car {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

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

  .need-item:last-child {
    grid-column: auto;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card__content {
    min-height: auto;
  }

  .photo-cylinder,
  .photo-portal,
  .photo-car {
    min-height: 220px;
  }
}
