/* Garnic's Construction LLC — hoja de estilos unificada (rediseño 2026-11-02) */
:root {
  --blue: #073d8a;
  --blue-dark: #052f6b;
  --red: #d62104;
  --red-dark: #b91d04;
  --ink: #0c0c09;
  --muted: #595b66;
  --soft: #f4f6fa;
  --soft-blue: #e8eef8;
  --white: #ffffff;
  --success: #166534;
  --danger: #b42318;
  --header-h: 76px;
  --bar-h: 76px;
  --content: 1180px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --font: system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #176be0; outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 8px 16px;
  transform: translateY(-160%); color: #fff; background: var(--ink); border-radius: 8px;
}
.skip-link:focus { transform: none; }

/* ---------- Botones: un solo estilo ---------- */
.button {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 28px; color: #fff; background: var(--red); border: 0; border-radius: 999px;
  font-family: var(--font); font-size: 1rem; font-weight: 650; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform .18s ease, background .18s ease;
}
.button:hover { background: var(--red-dark); transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button svg { width: 20px; height: 20px; flex: none; }
.button-soft { color: var(--blue); background: var(--soft-blue); }
.button-soft:hover { color: #fff; background: var(--blue); }
.on-blue .button-soft { color: #fff; background: rgb(255 255 255 / 16%); }
.on-blue .button-soft:hover { color: var(--blue); background: #fff; }
.button-small { min-height: 42px; padding: 8px 20px; font-size: .95rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgb(255 255 255 / 97%); box-shadow: 0 8px 28px rgb(7 61 138 / 7%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.brand { flex: none; }
.brand img { width: 150px; height: 50px; object-fit: contain; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav-link { position: relative; display: inline-block; padding: 8px 0; font-size: .97rem; font-weight: 550; text-decoration: none; }
.nav-link::after {
  position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; content: ""; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .18s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 650; color: var(--muted); }
.lang a { text-decoration: none; padding: 6px 4px; }
.lang a[aria-current="true"] { color: var(--blue); }
.lang a:hover { color: var(--red); }
.lang span { opacity: .5; }
.header-cta { display: none; align-items: center; gap: 10px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px 7px; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.menu-button span { display: block; width: 27px; height: 2px; margin: 6px 0; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 1181px) {
  .brand img { width: 180px; height: 60px; }
  .header-cta { display: flex; }
  .header-actions { margin-left: 8px; }
}
@media (max-width: 1180px) {
  .menu-button { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 101; display: none;
    padding: 28px 20px; overflow-y: auto; background: #fff; margin-left: 0;
  }
  .site-nav[data-open="true"] { display: block; }
  .nav-list { display: grid; gap: 4px; }
  .nav-link { display: block; padding: 14px 0; font-size: 1.25rem; }
  .header-actions { margin-left: auto; }
}

/* ---------- Barra fija inferior (celular) ---------- */
.quick-bar { display: none; }
@media (max-width: 1180px) {
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .quick-bar {
    position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 97%);
    box-shadow: 0 -10px 30px rgb(7 61 138 / 12%);
  }
  .quick-bar .button { min-height: 50px; padding-inline: 12px; }
}

/* ---------- Secciones ---------- */
.band { padding-block: clamp(56px, 9vw, 120px); }
.band-soft { background: var(--soft); }
.band-blue { color: #fff; background: var(--blue); }
.band-blue h2, .band-blue h3 { color: #fff; }
.heading { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.heading.center { margin-inline: auto; text-align: center; }
.heading h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--blue); }
.band-blue .heading h2 { color: #fff; }
.heading p { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.band-blue .heading p { color: rgb(255 255 255 / 88%); }
.eyebrow { margin-bottom: 12px; color: var(--red); font-size: .82rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.band-blue .eyebrow { color: #ffb4a8; }

/* ---------- Hero dividido: texto sobre azul solido, foto a todo color sin velo ---------- */
.hero { background-color: #073d8a; background-color: var(--blue); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: end; padding-top: clamp(56px, 7vw, 96px); }
.hero-copy { align-self: center; padding-bottom: clamp(56px, 7vw, 96px); color: #fff; }
.hero h1 { margin-bottom: 20px; color: #fff; font-size: clamp(1.75rem, 4.3vw, 3.3rem); line-height: 1.14; font-weight: 750; letter-spacing: -0.025em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero p { max-width: 520px; margin-bottom: 32px; font-size: 1.15rem; line-height: 1.55; color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { align-self: end; }
.hero-media picture, .hero-media img { display: block; width: 100%; }
.hero-media img { height: auto; aspect-ratio: 570 / 624; object-fit: cover; object-position: center; background-color: #073d8a; border-radius: 50% 50% 0 0; }
@media (max-width: 1180px) { .hero-actions .button-soft { display: none; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; width: 100%; padding-top: 0; }
  .hero-media { order: -1; }
  .hero-media img { width: 100%; height: 40vh; min-height: 240px; max-height: 460px; aspect-ratio: auto; object-position: 50% 30%; border-radius: 0; }
  .hero-copy { padding: 36px 20px 48px; }
  .hero-actions .button { width: 100%; }
}

/* ---------- Iconos de servicio ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: grid; gap: 14px; padding: 32px 28px; color: var(--ink); background: var(--soft); border-radius: var(--r-m); text-decoration: none; transition: transform .18s ease, background .18s ease; }
.tile:hover { background: var(--soft-blue); transform: translateY(-3px); }
.tile svg { width: 40px; height: 40px; color: var(--blue); }
.tile:hover svg { color: var(--red); }
.tile h3 { margin: 0; font-size: 1.25rem; }
.tile span { color: var(--muted); font-size: .98rem; line-height: 1.5; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { gap: 12px; } .tile { padding: 24px 18px; } .tile h3 { font-size: 1.05rem; } .tile span { display: none; } }

/* ---------- Dos columnas ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 7vw, 96px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--r-l); object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
.split-media.wide img { aspect-ratio: 5 / 4; }
.prose p { color: #2a2c33; }
.band-blue .prose p { color: rgb(255 255 255 / 92%); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { order: -1; } }

/* ---------- Financiamiento: 3 pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 28px; background: var(--soft); border-radius: var(--r-m); }
.steps li::before { display: block; margin-bottom: 8px; color: var(--red); content: counter(step); counter-increment: step; font-size: 2.6rem; font-weight: 750; line-height: 1; }
.steps h3 { margin-bottom: 8px; font-size: 1.2rem; color: var(--blue); }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Valores / sellos ---------- */
.values { display: grid; gap: 40px; }
.values h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--blue); }
.seal { width: min(100%, 640px); height: auto; margin: 0 auto 32px; }
.cert-copy { max-width: 780px; margin: 0 auto; text-align: center; color: #2a2c33; font-size: 1.05rem; }

/* ---------- Formulario ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 88px); align-items: start; }
.form-intro h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.form-intro p { font-size: 1.08rem; color: rgb(255 255 255 / 90%); }
.form-card { padding: clamp(24px, 4vw, 40px); background: #fff; color: var(--ink); border-radius: var(--r-l); }
.band-blue .form-card { box-shadow: 0 24px 60px rgb(3 20 50 / 30%); }
.est-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 650; color: #23252c; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; color: var(--ink); background: var(--soft); border: 0; border-radius: var(--r-s);
}
.field select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23073d8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-color: var(--blue); outline-offset: 1px; background-color: #fff; box-shadow: 0 0 0 3px var(--soft-blue); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: grid; gap: 12px; }
.form-actions .button { width: 100%; }
.form-status { min-height: 24px; margin: 0; font-weight: 650; }
.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--danger); }
.form-alt { margin: 18px 0 0; color: rgb(255 255 255 / 92%); font-size: 1rem; }
.form-alt a { font-weight: 650; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .est-form { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(24px, 4vw, 40px); text-align: center; }
.page-hero h1 { margin-bottom: 16px; color: var(--blue); font-size: clamp(2rem, 4.6vw, 3.4rem); }
.page-hero p { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }
.page-hero .cta-row { margin-top: 28px; }
.crumbs { margin-bottom: 16px; font-size: .9rem; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--blue); }
.crumbs a:hover { text-decoration: underline; }

/* Tarjetas de servicios */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.svc-card { display: flex; flex-direction: column; overflow: hidden; background: var(--soft); border-radius: var(--r-m); }
.svc-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 26px 28px 30px; }
.svc-body h2 { margin: 0; font-size: 1.5rem; color: var(--blue); }
.svc-body p { margin: 0; color: #2a2c33; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc-more { color: var(--blue); font-weight: 650; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.svc-more:hover { color: var(--red); }
.svc-body .button { align-self: flex-start; margin-top: auto; }
.svc-body .svc-more { align-self: flex-start; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; gap: 20px; } .svc-body { padding: 22px 22px 26px; } }

/* Página de servicio */
.svc-page .split-media img { aspect-ratio: auto; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); }
.area-note { margin-top: 28px; padding: 22px 26px; color: #1d2a44; background: var(--soft-blue); border-radius: var(--r-m); font-size: 1rem; }
.area-note strong { color: var(--blue); }
.others { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.others a { display: inline-flex; padding: 10px 18px; color: var(--blue); background: var(--soft-blue); border-radius: 999px; font-weight: 600; text-decoration: none; }
.others a:hover { color: #fff; background: var(--blue); }

/* Galería */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 36px; padding: 0; }
.filter { padding: 10px 20px; color: var(--blue); background: var(--soft-blue); border: 0; border-radius: 999px; font-weight: 650; cursor: pointer; transition: background .18s ease, color .18s ease; }
.filter:hover { background: #d5e1f4; }
.filter[aria-pressed="true"] { color: #fff; background: var(--blue); }
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.gallery-item { display: block; width: 100%; margin: 0 0 16px; padding: 0; overflow: hidden; background: var(--soft); border: 0; border-radius: var(--r-s); cursor: zoom-in; break-inside: avoid; }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: auto; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-count { margin: 0 0 20px; text-align: center; color: var(--muted); font-size: .95rem; }
@media (max-width: 620px) { .gallery-grid { columns: 2 140px; column-gap: 10px; } .gallery-item { margin-bottom: 10px; } .filter { padding: 9px 16px; } }

.lightbox { width: min(96vw, 1180px); max-width: 1180px; height: min(92vh, 920px); max-height: 92vh; padding: 0; overflow: hidden; color: #fff; background: #07090d; border: 0; border-radius: var(--r-s); }
.lightbox::backdrop { background: rgb(2 8 20 / 86%); }
.lightbox-frame { position: relative; display: grid; width: 100%; height: 100%; place-items: center; }
.lightbox-image { max-width: 100%; max-height: calc(100% - 56px); object-fit: contain; touch-action: pan-y; }
.lightbox-caption { position: absolute; right: 70px; bottom: 12px; left: 16px; margin: 0; font-size: .92rem; color: rgb(255 255 255 / 86%); }
.lightbox-count { position: absolute; right: 16px; bottom: 12px; margin: 0; font-size: .92rem; color: rgb(255 255 255 / 70%); }
.lightbox-control { position: absolute; z-index: 2; display: grid; width: 46px; height: 46px; padding: 0; color: #fff; background: rgb(255 255 255 / 14%); border: 0; border-radius: 50%; cursor: pointer; place-items: center; }
.lightbox-control:hover { background: rgb(255 255 255 / 28%); }
.lightbox-control svg { width: 24px; height: 24px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { top: 50%; left: 14px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 14px; transform: translateY(-50%); }
@media (max-width: 620px) { .lightbox-control { width: 42px; height: 42px; } .lightbox { height: 86vh; } }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 88px); align-items: start; }
.contact-copy h1 { color: var(--blue); font-size: clamp(2rem, 4.6vw, 3.3rem); }
.contact-copy > p { color: #2a2c33; font-size: 1.08rem; }
.contact-list { display: grid; gap: 22px; margin: 32px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { flex: none; width: 26px; height: 26px; margin-top: 3px; color: var(--blue); }
.contact-list h2 { margin: 0 0 4px; font-size: 1.1rem; }
.contact-list p { margin: 0 0 2px; color: #2a2c33; }
.contact-list a { text-underline-offset: 3px; }
.contact-form-card { background: var(--soft); }
.contact-form-card .field input, .contact-form-card .field select, .contact-form-card .field textarea { background: #fff; }
.contact-form-card h2 { margin-bottom: 20px; font-size: 1.5rem; color: var(--blue); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { padding-block: 56px 40px; background: var(--soft); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-top h2 { margin-bottom: 12px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-top p, .footer-top li { margin: 0 0 6px; font-size: .98rem; color: #2a2c33; }
.footer-top ul { margin: 0; padding: 0; list-style: none; }
.footer-top a { text-underline-offset: 3px; }
.footer-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.footer-copy { margin: 0; font-size: .92rem; }
.footer-credit { display: inline-flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .84rem; text-decoration: none; }
.footer-credit:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-credit img { display: inline-block; width: auto; height: 1.3em; max-width: none; vertical-align: middle; border: 0; background: none; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 24px; } .footer-inner { display: grid; gap: 12px; } }

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

/* utilidades */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cta-gap { margin-top: 28px; }
.filters { list-style: none; }
.page-hero.svc-page { text-align: left; padding-bottom: 8px; }
.page-hero.svc-page .container > p:not(.crumbs) { margin-left: 0; max-width: 760px; }
.page-hero.svc-page h1 { max-width: 900px; }
.band.svc-page { padding-top: clamp(32px, 5vw, 56px); }
.page-hero.svc-page .crumbs { max-width: none; margin: 0 0 16px; font-size: .9rem; }
