/* EcuaPrint - hoja de estilos */
:root {
  --azul: #1a8fd6;
  --magenta: #e6007e;
  --amarillo: #ffd200;
  --verde: #1fa64a;
  --negro: #111111;
  --texto: #222427;
  --gris: #5d6268;
  --fondo: #ffffff;
  --fondo-alt: #f5f6f8;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .10);
  --wa: #25d366;
  --wa-oscuro: #1ea952;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip {
  position: absolute; left: -9999px; top: 8px; background: var(--negro); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: var(--wa-oscuro); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: #fff; color: var(--negro); }
.btn-outline { color: var(--azul); border-color: var(--azul); background: transparent; }
.btn-outline:hover { background: var(--azul); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .92rem; box-shadow: none; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 12px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); transition: box-shadow .2s;
}
.top.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 150px; height: auto; }
.menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.menu-btn span { display: block; height: 3px; background: var(--negro); border-radius: 3px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu {
  position: absolute; top: 68px; left: 0; right: 0; background: #fff;
  display: none; flex-direction: column; padding: 8px 16px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
}
.menu.is-open { display: flex; }
.menu a { text-decoration: none; padding: 14px 4px; border-bottom: 1px solid #eee; font-weight: 600; }
.menu a.btn { border: 0; margin-top: 14px; justify-content: center; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .menu {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 26px; padding: 0;
    box-shadow: none; background: none;
  }
  .menu a { border: 0; padding: 6px 0; font-weight: 600; font-size: .98rem; position: relative; }
  .menu a:not(.btn)::after {
    content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0; background: var(--magenta); transition: width .2s;
  }
  .menu a:not(.btn):hover::after { width: 100%; }
  .menu a.btn { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: var(--negro);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,12,20,.88) 0%, rgba(10,12,20,.65) 55%, rgba(10,12,20,.35) 100%);
}
.hero-content { position: relative; padding-top: 70px; padding-bottom: 110px; }
.eyebrow {
  display: inline-block; margin: 0 0 16px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--amarillo);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.3rem); line-height: 1.05; margin: 0 0 18px; font-weight: 900; letter-spacing: -.02em;
  max-width: 14ch; text-transform: uppercase;
}
.hero .accent { color: var(--amarillo); }
.hero .lead { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 56ch; color: #e9edf3; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stripes {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12px; display: flex; z-index: 2;
}
.stripes span { flex: 1; }
.stripes span:nth-child(1) { background: var(--azul); }
.stripes span:nth-child(2) { background: var(--magenta); }
.stripes span:nth-child(3) { background: var(--amarillo); }
.stripes span:nth-child(4) { background: var(--verde); }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--fondo-alt); }
.title {
  font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  line-height: 1.1; margin: 0 0 14px; text-align: center; color: var(--negro);
}
.title span { color: var(--magenta); }
.title.left { text-align: left; }
.intro { max-width: 760px; margin: 0 auto 40px; text-align: center; color: var(--gris); font-size: 1.05rem; }
.intro.left { text-align: left; margin-left: 0; }

/* Quiénes somos */
.cards3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card {
  border-radius: var(--radio); padding: 28px 26px; color: #fff; box-shadow: var(--sombra);
}
.card h3 { margin: 0 0 10px; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.card p { margin: 0; line-height: 1.6; }
.card-blue { background: var(--azul); }
.card-magenta { background: var(--magenta); }
.card-yellow { background: var(--amarillo); color: var(--negro); }

.facts {
  list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr);
}
.facts li {
  background: var(--fondo-alt); border-radius: var(--radio); padding: 18px 14px; text-align: center;
}
.facts strong { display: block; font-size: 1.5rem; font-weight: 900; color: var(--negro); }
.facts span { font-size: .9rem; color: var(--gris); }

@media (min-width: 900px) {
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
}

/* Servicios */
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
.service {
  display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: var(--radio);
  padding: 22px 22px 20px; text-decoration: none; border-left: 6px solid var(--azul); box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .18s, box-shadow .18s;
}
.service:nth-child(4n+1) { border-left-color: var(--azul); }
.service:nth-child(4n+2) { border-left-color: var(--magenta); }
.service:nth-child(4n+3) { border-left-color: var(--amarillo); }
.service:nth-child(4n+4) { border-left-color: var(--verde); }
.service:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.service h3 { margin: 0; font-size: 1.12rem; color: var(--negro); text-transform: uppercase; letter-spacing: .01em; }
.service p { margin: 0; color: var(--gris); font-size: .95rem; }
.service-link { margin-top: 6px; font-weight: 700; color: var(--magenta); font-size: .95rem; }

@media (min-width: 620px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.chip {
  border: 2px solid var(--negro); background: #fff; color: var(--negro); padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s;
}
.chip:hover { background: var(--amarillo); }
.chip.is-on { background: var(--negro); color: #fff; }

/* Galería */
.gallery {
  display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr);
}
.tile {
  position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: #e9ecef; aspect-ratio: 4 / 3; box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.06); }
.tile .tag {
  position: absolute; left: 10px; bottom: 10px; background: rgba(17,17,17,.82); color: #fff; font-size: .78rem;
  font-weight: 700; padding: 5px 10px; border-radius: 999px; max-width: calc(100% - 20px); text-align: left;
}
.gallery-empty { text-align: center; color: var(--gris); }

@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,9,12,.94);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #cfd4dc; margin-top: 12px; font-size: .95rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lb-close { top: 14px; right: 14px; font-size: 2rem; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--magenta); }
@media (min-width: 700px) { .lb-prev { left: 24px; } .lb-next { right: 24px; } }

/* Banda CTA */
.cta-band {
  background: var(--negro); color: #fff; position: relative; overflow: hidden; padding: 56px 0;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 10px;
}
.cta-band::before { left: 0; background: linear-gradient(var(--azul), var(--magenta), var(--amarillo), var(--verde)); }
.cta-band::after { right: 0; background: linear-gradient(var(--verde), var(--amarillo), var(--magenta), var(--azul)); }
.cta-band-inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; text-transform: uppercase; }
.cta-band p { margin: 0; color: #d7dce3; max-width: 52ch; }
@media (min-width: 800px) {
  .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Contacto */
.contact-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--negro); font-size: .95rem; }
.contact-list a { color: var(--azul); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: .85rem; background: var(--negro);
}
.ico-wa { background: var(--wa); }
.ico-tel { background: var(--azul); }
.ico-mail { background: var(--magenta); }
.ico-ig { background: #c13584; }
.ico-pin { background: var(--amarillo); color: var(--negro); font-size: 1.1rem; }
.contact-box {
  background: var(--fondo-alt); border-radius: 20px; padding: 30px 26px; border-top: 6px solid var(--magenta);
  align-self: start;
}
.contact-box h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; color: var(--negro); }
.contact-box p { margin: 0; color: var(--gris); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }

/* Footer */
.footer { background: #0c0c0e; color: #c9ced6; padding: 34px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer img { width: 130px; height: auto; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer p { margin: 0; font-size: .92rem; }
.social { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.social a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.social a:hover { color: var(--amarillo); }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Iconos de redes y correo (sección VISITANOS) */
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.social-icons a { display: inline-block; line-height: 0; transition: transform .2s; }
.social-icons a:hover, .social-icons a:focus-visible { transform: translateY(-3px); }
.social-icons img { width: 44px; height: 44px; display: block; }

/* Nuestros clientes (logos) */
.clientes-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.clientes-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
@media (min-width: 600px) { .clientes-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .clientes-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .clientes-grid { grid-template-columns: repeat(6, 1fr); } }
