/* Cerrajería Iván · ajuste visual v4 */
:root { --max: 1180px; --section-space: clamp(96px, 10vw, 144px); }

.brand { min-width: 220px; }
.brand__logo { width: 218px; height: auto; }
.brand__symbol, .brand__text { display: none !important; }

.hero { padding-top: 34px; }
.hero-grid { min-height: 580px; grid-template-columns: minmax(390px,.82fr) minmax(0,1.18fr); overflow: hidden; }
.hero-copy { padding: clamp(64px,7vw,96px) clamp(40px,5vw,68px); }
.hero-copy h1 { max-width: 600px; font-size: clamp(50px,4.75vw,74px); line-height: .98; text-wrap: balance; }
.hero-copy p { max-width: 560px; }
.hero-media { min-height: 580px; }
.photo-lock { transform: scale(1.035); transition: transform 900ms cubic-bezier(.2,.75,.2,1); }
.hero-grid:hover .photo-lock { transform: scale(1.07); }

.needs-grid { gap: 22px; border: 0; background: transparent; }
.need-item {
  position: relative;
  min-height: 248px;
  padding: 38px 30px 34px;
  text-align: left;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 40px rgba(25,25,25,.045);
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
.need-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 260ms ease;
}
.need-item:hover { transform: translateY(-8px); border-color: rgba(183,27,28,.35) !important; box-shadow: 0 26px 70px rgba(25,25,25,.10); }
.need-item:hover::before { transform: scaleY(1); }
.need-icon { margin: 0 0 24px; border-radius: 50%; transition: transform 260ms ease, background-color 260ms ease; }
.need-item:hover .need-icon { transform: rotate(-5deg) scale(1.08); background: rgba(183,27,28,.13); }
.need-item h3, .need-item p { margin-left: 0; margin-right: 0; max-width: none; }
.need-item h3 { min-height: 0; font-size: 1.12rem; }

.feature-grid { gap: 28px; }
.feature-card { position: relative; min-height: 440px; overflow: hidden; transition: transform 320ms ease, box-shadow 320ms ease; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 34px 90px rgba(17,17,17,.12); }
.feature-card__content { min-height: 250px; }
.feature-card .photo { transition: transform 700ms cubic-bezier(.2,.75,.2,1), filter 700ms ease; }
.feature-card:hover .photo { transform: scale(1.06); filter: saturate(1.08) contrast(1.02); }
.feature-card a span { display: inline-block; transition: transform 200ms ease; }
.feature-card a:hover span { transform: translateX(6px); }

.process { position: relative; overflow: hidden; }
.process::before { content:""; position:absolute; inset:-35% auto auto 58%; width:420px; height:420px; border:1px solid rgba(183,27,28,.24); border-radius:50%; }
.process-step { position: relative; z-index: 1; }
.process-step > span { color: var(--red); opacity: .9; }

.faq-items details { transition: background-color 200ms ease, padding 200ms ease; }
.faq-items details[open] { padding-inline: 18px; background: rgba(255,255,255,.68); }
.faq-items summary { position: relative; padding-right: 42px; }
.faq-items summary::after { content:"+"; position:absolute; right:0; top:50%; transform:translateY(-50%); color:var(--red); font-size:1.5rem; font-weight:500; }
.faq-items details[open] summary::after { content:"−"; }

.contact-brand { align-items: center; }
.contact-brand img { width: 88px; }

[data-aos] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

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

@media (max-width: 940px) {
  .brand__logo { width: 168px; }
  .needs-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand { min-width: 150px; }
  .brand__logo { width: 150px; }
  .hero-copy { padding-inline: 24px; }
  .hero-copy h1 { font-size: clamp(42px,12vw,58px); }
  .needs-grid { grid-template-columns: 1fr; }
  .need-item { min-height: auto; }
}
