/* ============================================================
   MultiServices & Solutions J&L — shared styles
   Palette: ink / plaster / walnut / painter's-tape blue
   Type:    Anton (display) + Archivo (body)
   ============================================================ */

:root {
  --ink: #211e1a;
  --paper: #faf8f4;
  --wood: #8a5a33;
  --tape: #d97757;
  --tape-dark: #b85c3d;
  --line: #e3ddd2;
  --muted: #6e675e;
  --white: #ffffff;
  --radius: 10px;
  --container: 1120px;
  --shadow: 0 12px 32px rgba(33, 30, 26, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
}

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

a { color: inherit; }

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

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: "Anton", "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: 0.03em; }

p.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }

/* ---------- Signature: painter's-tape label ---------- */
.tape {
  display: inline-block;
  background: var(--tape);
  color: var(--white);
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 16px;
  transform: rotate(-1.6deg);
  position: relative;
  margin-bottom: 20px;
}
.tape::before, .tape::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 7px;
  background: inherit;
  opacity: 0.55;
}
.tape::before { left: -7px; clip-path: polygon(100% 0, 0 12%, 55% 30%, 10% 55%, 60% 75%, 0 100%, 100% 100%); }
.tape::after  { right: -7px; clip-path: polygon(0 0, 100% 10%, 40% 32%, 95% 56%, 35% 78%, 100% 100%, 0 100%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand span {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--tape); }

.dropdown { position: relative; }
.dropdown > button {
  background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.92rem;
  color: var(--ink); padding: 6px 0;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; gap: 5px;
}
.dropdown > button:hover { border-color: var(--tape); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px;
  display: none;
  flex-direction: column;
}
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--paper); color: var(--tape-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { background: var(--tape); border-color: var(--tape); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.blue { background: var(--tape); border-color: var(--tape); }
.btn.blue:hover { background: var(--tape-dark); border-color: var(--tape-dark); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p { margin: 20px 0 30px; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-badge small { display: block; font-weight: 500; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 14px; }

.band { background: var(--ink); color: var(--paper); }
.band .tape { transform: rotate(1.4deg); }

/* ---------- Service cards (material samples) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .swatch { height: 10px; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px 22px 26px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 0.95rem; }
.card-body .more { margin-top: 14px; font-weight: 700; color: var(--tape-dark); font-size: 0.9rem; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.split-copy p { margin: 16px 0 24px; color: var(--muted); }
.checklist { list-style: none; margin: 20px 0 28px; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; font-weight: 500; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  background: var(--tape);
  border-radius: 4px;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 18%, 84% 4%, 40% 68%);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
  background: var(--white);
}
.gallery-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 18, 15, 0.9);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: var(--radius); }
.lightbox button {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: rgba(250, 248, 244, 0.75); max-width: 52ch; margin: 0 auto 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 18px;
}
.contact-card a.big {
  font-family: "Anton", sans-serif;
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--tape-dark);
  word-break: break-all;
}
.contact-card small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  font-size: 1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: rgba(250, 248, 244, 0.8); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand img { height: 56px; margin-bottom: 14px; }
.footer-brand p { color: rgba(250, 248, 244, 0.65); font-size: 0.92rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(250, 248, 244, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(250, 248, 244, 0.6);
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(250, 248, 244, 0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--paper);
  font-weight: 700;
  font-size: 0.8rem;
  transition: background 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--tape); border-color: var(--tape); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 64px 0 40px; }
.page-hero p { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 73px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .dropdown-menu {
    position: static; transform: none;
    box-shadow: none; border: none;
    padding: 4px 0 0 14px;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

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

/* ---------- Product grids (landscape) ---------- */
.gallery-grid.wide { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.wide img { aspect-ratio: 16 / 10; }
@media (max-width: 900px) {
  .gallery-grid.wide { grid-template-columns: 1fr; }
}

/* ---------- Logo chip (logo blanco sobre fondo oscuro) ---------- */
.brand img {
  background: var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  height: 46px;
}
.site-footer .footer-brand img { background: none; padding: 0; border-radius: 0; }

/* ---------- Botón compacto en el nav ---------- */
.nav-links .btn {
  padding: 9px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
  transform: none;
}
.nav-links .btn:hover { transform: none; }

/* ---------- Toggle de idioma ---------- */
.lang-toggle {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 12px;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--tape); color: var(--tape-dark); }

/* ---------- Imágenes ampliables ---------- */
img.zoomable { cursor: zoom-in; transition: opacity 0.2s; }
img.zoomable:hover { opacity: 0.92; }
