/* ============================================================
   Work Apparel — Landing Bajío (Querétaro / Guanajuato)
   Static CSS, mobile-first, no dependencies.
   ============================================================ */

:root {
  /* Brand — pulled from logo-workapparel.png (#ef5151) */
  --red: #ef5151;
  --red-dark: #d63d3d;
  --red-darker: #b52f2f;

  --ink: #1a1d24;
  --ink-2: #262a34;
  --steel: #5b6472;
  --steel-light: #88909b;

  --bg: #faf9f7;
  --bg-alt: #f2efeb;
  --white: #ffffff;

  --amber: #e8a13c;

  --border: #e7e3dd;

  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 3px rgba(26, 29, 36, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 29, 36, 0.10);
  --shadow-lg: 0 16px 40px rgba(26, 29, 36, 0.18);

  --container: 1160px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 200; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--red-dark); box-shadow: var(--shadow-md); }

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { background: var(--ink-2); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn--outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--whatsapp {
  background: #22c35e;
  color: #fff;
}
.btn--whatsapp:hover { background: #1ea952; }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }

.section-pad { padding: 64px 0; }
@media (min-width: 900px) { .section-pad { padding: 96px 0; } }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

h2.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-intro {
  color: var(--steel);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.site-logo img { height: 34px; width: auto; }
@media (min-width: 640px) { .site-logo img { height: 40px; } }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.header-phone .icon { color: var(--red); }
@media (min-width: 560px) { .header-phone { display: inline-flex; } }

.header-cta { padding: 11px 18px; font-size: 0.9rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding-bottom: 76px;
}

.hero__inner {
  padding-top: 44px;
  display: grid;
  gap: 44px;
}
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 64px;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb3b3;
  margin-bottom: 18px;
}
.hero__eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__subhead {
  color: #cbd0d8;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero__qualify {
  color: #9aa2ad;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.hero__qualify span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: var(--red);
}

/* --- Hero visual: real product photography, collage layout --- */
.hero__visual { position: relative; }

.hero-collage {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "main sub1"
    "sub2 sub3";
}
@media (min-width: 760px) {
  .hero-collage {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
      "main sub1"
      "main sub2"
      "main sub3";
    gap: 14px;
    /* Definite height so the 1fr row tracks (and the row-spanning main
       photo) size against a real pixel value instead of auto/content
       sizing. Derived from the column split (1.3fr:1fr) so the 3 stacked
       sub photos land ~square: height = 3 * sub-column-width + 2 * gap. */
    aspect-ratio: 1 / 1.31;
  }
}

.hero-collage figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 1 / 1;
}
@media (min-width: 760px) {
  /* Collage now has a definite height, so every photo can simply stretch
     to fill its grid cell exactly — no per-figure aspect-ratio fighting
     the grid's own sizing, no gaps. */
  .hero-collage figure { aspect-ratio: auto; }
}

.hero-collage__main { grid-area: main; }
.hero-collage__sub1 { grid-area: sub1; }
.hero-collage__sub2 { grid-area: sub2; }
.hero-collage__sub3 { grid-area: sub3; }

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-collage figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 11, 14, 0.72) 0%, rgba(10, 11, 14, 0.05) 55%, transparent 75%);
}

.hero-collage figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  z-index: 1;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.hero-collage__badge {
  position: absolute;
  top: -14px;
  left: 18px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Credibility bar
   ============================================================ */
.credibility {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.credibility__inner {
  padding: 30px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 720px) {
  .credibility__inner { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat .icon {
  width: 30px; height: 30px;
  color: var(--red);
  flex-shrink: 0;
}
.stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}
.stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--steel);
  font-weight: 600;
}

/* ============================================================
   Primary product focus — real photography
   ============================================================ */
.focus { background: var(--bg); }

.product-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-card__link {
  font-weight: 700;
  color: var(--red-dark);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card__link .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.product-card__link:hover .icon { transform: translateX(3px); }

/* ============================================================
   Secondary catalog — real photography, lighter treatment
   ============================================================ */
.catalog { background: var(--bg-alt); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }

.catalog-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.catalog-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.catalog-item__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-alt);
}
.catalog-item__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.94);
  transition: transform .35s ease;
}
.catalog-item:hover .catalog-item__media img { transform: scale(1.05); }

.catalog-item span {
  display: block;
  padding: 10px 8px 2px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.catalog-item p {
  padding: 0 10px 12px;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--steel);
}

.catalog-cta {
  margin-top: 26px;
  text-align: center;
}
.catalog-cta a {
  font-weight: 700;
  color: var(--red-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.catalog-cta .icon { width: 16px; height: 16px; }

/* ============================================================
   Process ("Por qué Work Apparel")
   ============================================================ */
.process { background: var(--ink); color: #fff; }
.process .section-head h2 { color: #fff; }

.process-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }

.process-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.process-step__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.process-step p {
  color: #b8bdc6;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ============================================================
   Cobertura Bajío
   ============================================================ */
.coverage { background: var(--bg); }

.coverage__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .coverage__grid { grid-template-columns: 1fr 0.85fr; }
}

.coverage__body p {
  color: var(--steel);
  font-size: 1.02rem;
  line-height: 1.7;
}

.coverage-map {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.coverage-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.coverage-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ============================================================
   Form
   ============================================================ */
.form-section { background: var(--ink); color: #fff; }
.form-section .section-head h2 { color: #fff; }
.form-section .section-intro { color: #b8bdc6; }

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
}
@media (min-width: 640px) { .form-card { padding: 36px; } }

/* Modifier for standalone pages (gracias.html) where .form-card isn't
   sitting under a left-aligned headline — index.html's #contacto stays
   untouched since it never gets this class. */
.form-card--centered {
  margin: 0 auto;
}

.form-reassure {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--steel);
  text-align: center;
}

/* --------------------------------------------------------------
   Wufoo embed — the form fields/inputs themselves live inside a
   cross-origin nodo5.wufoo.com <iframe>, so only the container can
   be styled from here (border-radius, spacing). Matching #EF5151
   and the page's type inside the form itself has to happen in
   Wufoo's own Theme Designer, not in this stylesheet.
   -------------------------------------------------------------- */
.wufoo-embed { line-height: 0; }
.wufoo-embed iframe,
.wufoo-embed .wufoo-form-container {
  display: block;
  width: 100% !important;
  border: none;
  border-radius: var(--radius-sm);
}

/* Confirmation state — used on gracias.html after a successful Wufoo submit */
.form-success {
  display: none;
  text-align: center;
  padding: 24px 8px;
}
.form-success.is-visible { display: block; }
.form-success .icon {
  width: 52px; height: 52px;
  color: #1e9e56;
  margin: 0 auto 16px;
}
.form-success h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.form-success p { color: var(--steel); font-size: 0.96rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #12141a; color: #9aa2ad; }
.site-footer__inner { padding: 40px 0 28px; }

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 640px) {
  .site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
}

.site-footer__logo img {
  height: 30px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.95;
  filter: brightness(1.05);
}

.site-footer__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
}
.site-footer__contact .icon { color: var(--red); width: 18px; height: 18px; }

.site-footer__bottom {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #22c35e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(34, 195, 94, 0.45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; stroke: none; fill: currentColor; }

.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c35e;
  opacity: 0.55;
  animation: wa-pulse 2.2s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float__pulse { animation: none; display: none; }
}
