/* grafhaus de méxico — hoja de estilos única (reescritura sin WordPress) */

/* ---------- tokens ---------- */
:root {
  --font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --text: #30373e;
  --heading: #23282d;
  --muted: #9ba1a7;
  --dark: #23282d;
  --white: #fff;
  --wa-green: #2db742;
  --container: 1280px;
  --gutter: 50px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.733; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0 0 0 1.2em; }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 .6em; }
h1 { font-size: 70px; font-weight: 700; line-height: 1.1; }
h2 { font-size: 30px; font-weight: 500; line-height: 1.25; }
h3 { font-size: 26px; font-weight: 500; }
h4 { font-size: 20px; font-weight: 500; }
p { margin: 0 0 1em; }
@media (max-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 24px; }
  h3 { font-size: 21px; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 20px; } }

.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 16px; }

/* ---------- header ---------- */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.site-head .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-head .logo img { height: 40px; width: auto; }
.site-nav ul { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.site-nav a { color: #fff; font-size: 14px; font-weight: 500; line-height: 80px; display: block; transition: opacity .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: .75; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 0; background: rgba(20, 23, 26, .97); display: none; align-items: center; justify-content: center; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; text-align: center; gap: 8px; }
  .site-nav a { font-size: 20px; line-height: 2.4; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle { position: relative; z-index: 12; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero (cover) ---------- */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40vh; overflow: clip; padding: 1em; }
.hero--full { min-height: 100vh; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .dim { position: absolute; inset: 0; background: #000; }
.hero .dim--80 { opacity: .8; }
.hero .dim--70 { opacity: .7; }
.hero .hero-content { position: relative; z-index: 1; width: 100%; max-width: 1235px; }
.hero .hero-title { font-size: 36px; font-weight: 400; color: #fff; text-align: center; margin: 0; line-height: 1.25; }
.display-xl { font-size: 70px; font-weight: 700; line-height: 1.1; }
@media (max-width: 768px) { .display-xl { font-size: 40px; } }
.hero-tagline { width: min(900px, 90%); margin: 0 auto; border-left: 13px solid #fab233; padding: 8px 0 8px 40px; }
.hero-tagline .ht-line { margin: 0; color: #fff; }
.hero-tagline .ht-sub { font-size: clamp(26px, 4.6vw, 42px); font-weight: 700; line-height: 1.2; }
.hero-tagline .ht-main { font-size: clamp(42px, 8.4vw, 79px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; color: #fff; }
.hero-tagline .ht-tag { font-size: clamp(17px, 2.8vw, 26px); font-weight: 500; margin-top: .9em; }
@media (max-width: 640px) { .hero-tagline { border-left-width: 9px; padding-left: 22px; } }

/* ---------- secciones / utilidades de espaciado ---------- */
.sp-10 { height: 10px; } .sp-20 { height: 20px; } .sp-25 { height: 25px; }
.sp-30 { height: 30px; } .sp-35 { height: 35px; } .sp-50 { height: 50px; }
.sp-70 { height: 70px; } .sp-100 { height: 100px; } .sp-200 { height: 200px; }
@media (max-width: 768px) { .sp-200 { height: 90px; } .sp-100 { height: 50px; } .sp-70 { height: 40px; } }

.cols { display: flex; flex-wrap: wrap; gap: 2em; }
.cols > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 768px) { .cols { display: block; } .cols > * + * { margin-top: 1.5em; } }

hr.sep { border: 0; border-top: 2px solid #23282d; width: 100px; margin: 0 auto; }

/* deco aviones de papel */
.planes img { margin: 0 auto; }

/* ---------- soluciones ---------- */
.project .cols { display: grid; grid-template-columns: 1fr min(940px, 78%) 1fr; gap: 0 1em; align-items: end; }
@media (max-width: 768px) { .project .cols { display: block; } }
.project-title { writing-mode: vertical-lr; transform: rotate(180deg); text-align: center; margin: 0 auto; font-size: clamp(34px, 4.5vw, 70px); font-weight: 700; line-height: 1.1; }
@media (max-width: 768px) { .project-title { writing-mode: horizontal-tb; transform: none; } }
.project-caption { text-align: center; }

/* comparador de imágenes */
.compare { position: relative; overflow: hidden; touch-action: none; cursor: ew-resize; }
.compare img { width: 100%; display: block; user-select: none; pointer-events: none; }
.compare .compare-top { position: absolute; inset: 0; overflow: hidden; }
.compare .compare-top img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.compare .compare-line { position: absolute; top: 0; bottom: 0; width: 4px; background: #fff; transform: translateX(-50%); pointer-events: none; }

/* ---------- galerías ---------- */
.masonry { columns: 4 220px; column-gap: 8px; }
.masonry a { display: block; margin: 0 0 8px; break-inside: avoid; }
.masonry--sol { columns: 4; }
@media (max-width: 960px) { .masonry--sol { display: none; } }

.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 960px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-grid img { width: 100%; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 12px; line-height: 1; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 10px; right: 16px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- nosotros ---------- */
.kits-cols ul { list-style: disc; }

/* ---------- contacto / formulario ---------- */
.form-field { margin: 0 0 1em; }
.form-field label { display: block; }
.form-field input, .form-field textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid #ccc; border-radius: 2px; background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid #23282d; outline-offset: -1px; }
.btn-submit {
  font: inherit; font-weight: 500; color: #fff; background: #23282d; border: 0;
  padding: 12px 32px; cursor: pointer; border-radius: 2px; transition: opacity .2s;
}
.btn-submit:hover { opacity: .85; }
.form-note { margin-top: 1em; display: none; border: 2px solid #46b450; padding: .5em 1em; }
.form-note.show { display: block; }
.contact-info { text-align: center; }
.contact-info .contact-logo { margin: 0 auto; width: min(400px, 80%); }

/* ---------- footer ---------- */
.site-foot { background: var(--dark); color: var(--muted); }
.site-foot .container { padding-top: 25px; padding-bottom: 25px; }

/* ---------- volver arriba ---------- */
.to-top { position: fixed; bottom: 15px; right: 20px; width: 40px; height: 40px; z-index: 20;
  display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(35, 40, 45, .6);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- botón WhatsApp ---------- */
.wa-btn { position: fixed; bottom: 20px; left: 20px; z-index: 30; display: flex; align-items: center; gap: 10px; }
.wa-btn .wa-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--wa-green);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.wa-btn .wa-icon svg { width: 30px; height: 30px; fill: #fff; }
.wa-btn .wa-label { background: #fff; border-radius: 8px; padding: 8px 14px; font-size: 13px; line-height: 1.35;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18); color: var(--text); }
.wa-btn .wa-label strong { display: block; }
@media (max-width: 640px) { .wa-btn .wa-label { display: none; } }
