/* RESTAURO S.A.C. — capa común de accesibilidad, marca y adaptación responsive */
:root {
  --brand-turquoise: #008f86;
  --brand-ink: #101211;
  --brand-grey: #5f6663;
  --brand-ivory: #f2efe7;
  --brand-paper: #fbfaf6;
  --brand-orange: #d76a2a;
  --ink: #101211;
  --ink-mid: #414744;
  --ink-soft: #626864;
  --ink-ghost: #8a918d;
  --cream: #f2efe7;
  --cream-warm: #ebe7de;
  --warm-rule: #d2d0c8;
  --accent: #00766f;
  --accent-lt: #31aaa1;
  --white: #ffffff;
}

html { text-size-adjust: 100%; }
body { overflow-wrap: anywhere; }
main, section, article, header, footer, nav, div { min-width: 0; }
img { height: auto; }

.nav-logo,
.nav-logo:visited { color: #00766f; }
.footer-brand .nav-logo { color: #006e68; }
.nav-logo span { color: #5f6663; }

/* Contraste AA para textos pequeños sin apartarse del turquesa institucional. */
.serv-num { color: #00766f !important; }
.proy-count { color: #686d69 !important; }
.whatsapp-btn,
.whatsapp-btn:visited { background: #137c3c !important; color: #ffffff !important; }
.whatsapp-btn:hover { background: #0f6732 !important; }
.footer-col-title,
.footer-copy,
.footer-credit { color: #5b615e !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-turquoise);
  outline-offset: 3px;
}

.hero-img-wrap,
.gs-img { background: var(--brand-ink); }
.hero-img-wrap img,
.gs-img img {
  object-fit: contain !important;
  object-position: center !important;
}

.director-compact .gs-text { padding-block: clamp(36px, 5vw, 64px); }
.director-compact .mega-title { font-size: clamp(30px, 4vw, 50px) !important; }
.director-compact .gs-img { min-height: 420px; }
.director-compact .gs-img img { max-height: 560px; }

.form-context {
  margin: 0 0 22px;
  color: var(--ink-mid, #4a4844);
  font-size: 14px;
  line-height: 1.75;
}
.form-help {
  display: block;
  margin-top: 8px;
  color: #5f6663;
  font-size: 12px;
  line-height: 1.55;
}
.form-privacy {
  margin: 16px 0 0;
  color: #5f6663;
  font-size: 11px;
  line-height: 1.6;
}

.whatsapp-btn { min-height: 44px; }
.social-links a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }

@media (max-width: 860px) {
  .hero-right { display: block !important; }
  .hero-main { grid-template-columns: 1fr !important; }
  .hero-img-wrap { height: auto !important; min-height: 0 !important; }
  .hero-img-wrap img { width: 100%; height: auto !important; aspect-ratio: auto !important; }
  .gs-block,
  .gs-block.gs-reverse { grid-template-columns: 1fr !important; }
  .gs-img { min-height: 0 !important; }
  .gs-img img { width: 100%; height: auto !important; max-height: none !important; }
  .director-compact .gs-img { max-height: 520px; overflow: hidden; }
  .director-compact .gs-img img { height: 520px !important; object-fit: cover !important; object-position: center top !important; }
  .forma-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 1024px) {
  .nav-links { display: none !important; }
  .nav-cta-desktop { display: none !important; }
  .nav-burger { display: flex !important; }
  .nav-mobile.open { display: flex !important; }
}

@media (max-width: 600px) {
  :root { --pad-x: 20px; }
  .nav-inner { padding-inline: 18px; }
  .hero-left,
  .gs-text,
  .contacto-inner,
  .forma-wrap { padding-inline: 20px !important; }
  .hero-h1 { font-size: clamp(36px, 11vw, 52px) !important; line-height: 1.02; }
  .hero-sub { font-size: 15px; line-height: 1.7; }
  .hero-actions { align-items: stretch; }
  .hero-actions a { width: 100%; text-align: center; min-height: 46px; }
  .gs-stats { grid-template-columns: 1fr !important; }
  .gs-stat-item { border-right: 0 !important; }
  .mega-title { font-size: clamp(32px, 10vw, 48px) !important; }
  .contacto-grid { grid-template-columns: 1fr !important; }
  input, select, textarea { font-size: 16px !important; }
}

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