/* ==========================================================================
   Grupo3 Impresores — Shared design system
   Brand orange #fe5000 · Dark #1d1d1b · Light gray #f3f3f4 · Muted #a7a9ac
   Font: Inter. Reference layout width: 1280px.
   ========================================================================== */

:root {
  --orange: #fe5000;
  --orange-dark: #e04800;
  --ink: #1d1d1b;
  --ink-soft: #474744;
  --gray-100: #f3f3f4;
  --gray-300: #a7a9ac;
  --white: #ffffff;
  --border-light: rgba(167, 169, 172, 0.2);
  --border-dark: rgba(255, 255, 255, 0.05);
  --shadow-btn: 0 2px 3.5px -2px rgba(0, 0, 0, .1), 0 4px 5.25px -1px rgba(0, 0, 0, .1);
  --maxw: 1440px;
  --pad-x: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* Fluid 100%-wide canvas; inner .container/.nav/.footer__grid cap content at --maxw. */
.page {
  width: 100%;
  overflow-x: hidden;
}

/* Inner content wrapper for full-bleed sections */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 32px;
  border-radius: 0;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .4);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .1);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- Eyebrow / section heading helpers ---------- */
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.preheader {
  background: var(--ink);
  color: var(--gray-300);
}

.preheader__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.preheader__contact {
  display: flex;
  align-items: center;
  gap: 28px;
}

.preheader__contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  white-space: nowrap;
}

.preheader__contact a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preheader__contact a:hover {
  color: var(--orange);
}

.preheader__contact svg {
  flex: none;
  color: var(--orange);
}

.preheader__social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.preheader__social a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.preheader__social a:hover {
  background: var(--orange);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10.5px);
  -webkit-backdrop-filter: blur(10.5px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  position: relative;
  height: 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 51px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  line-height: 1.5;
}

.nav__link:hover {
  color: var(--orange);
}

.nav__link.is-active {
  color: var(--orange);
  font-weight: 600;
  border-bottom-color: var(--orange);
}

.nav__cta {
  margin-left: 8px;
}

/* Hamburger toggle — hidden on desktop, shown below the nav breakpoint */
.nav__toggle-input {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--gray-300);
  border-top: 1px solid var(--border-dark);
  padding: 80px 0 40px;
}

.footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 252px 252px 252px 252px;
  justify-content: space-between;
  gap: 48px;
}

.footer__brand img {
  height: 51px;
  width: auto;
  margin-bottom: 24px;
}

.footer__about {
  font-size: 14px;
  line-height: 1.625;
  color: var(--gray-300);
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer__social a:hover {
  background: var(--orange);
}

.footer__title {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.footer__list li {
  margin-bottom: 16px;
  font-size: 14px;
}

.footer__list a:hover {
  color: var(--white);
}

.footer__contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer__contact svg {
  flex: none;
  margin-top: 2px;
  color: var(--orange);
}

.footer__contact a:hover {
  color: var(--orange);
}

.footer__news p {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.footer__news .field {
  display: flex;
  margin-bottom: 8px;
}

.footer__news input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255, 255, 255, .05);
  border: none;
  color: var(--white);
  padding: 13px 12px;
  font-family: inherit;
  font-size: 13px;
}

.footer__news input::placeholder {
  color: var(--gray-300);
}

.footer__news .field button {
  background: var(--orange);
  color: #fff;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.footer__bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding: 32px var(--pad-x) 0;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__bottom p {
  font-size: 12px;
  line-height: 1.33;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 12px;
}

.footer__legal a:hover {
  color: var(--white);
}

/* ==========================================================================
   Form feedback (ver js/include-partials.js + php/enviar.php)
   ========================================================================== */
.form-feedback {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-size: 14px;
}

.form-feedback--ok {
  background: rgba(30, 140, 70, .1);
  color: #1e8c46;
}

.form-feedback--error {
  background: rgba(224, 72, 0, .1);
  color: var(--orange-dark);
}

/* Honeypot anti-spam: campo invisible para humanos, visible para bots (ver php/enviar.php) */
.hp-field {
  position: absolute;
  left: -9999px;
}

/* ==========================================================================
   Responsive — header & footer
   ========================================================================== */

/* With email + phones + WhatsApp the bar no longer fits alongside the
   address on mid-size viewports; the address drops first. */
@media (max-width: 1150px) {
  .preheader__contact li.preheader__address {
    display: none;
  }
}

/* Tighten the shared side gutter on narrower viewports (cascades to every
   section that uses var(--pad-x): .nav, .container, .footer__grid, etc.) */
@media (max-width: 900px) {
  :root {
    --pad-x: 32px;
  }
}

@media (max-width: 480px) {
  :root {
    --pad-x: 20px;
  }

  .nav__logo img {
    height: 32px;
  }

  .nav__cta {
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .preheader {
    display: none;
  }

  .nav {
    gap: 12px;
  }

  .nav__logo img {
    height: 40px;
  }

  .nav__toggle {
    display: flex;
    order: 2;
  }

  .nav__cta {
    margin-left: auto;
    order: 1;
  }

  .nav__links {
    order: 3;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .15);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .nav__toggle-input:checked~.nav__links {
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav__link {
    display: block;
    padding: 16px var(--pad-x);
    border-bottom: 1px solid var(--border-light);
  }
}

@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 5.25px -4px rgba(0, 0, 0, .1), 0 10px 13.125px -3px rgba(0, 0, 0, .1);
}

.whatsapp-fab:hover {
  background: #1da851;
}