/* ==========================================================
   Unasota Studio — estilos
   Colores y tipografía en un solo sitio para cambiarlos fácil.
   ========================================================== */
:root {
  --navy: #043454;
  --ink: #191919;
  --grey: #999999;
  --line: #e6e6e6;
  --soft: #f4f4f4;
  --white: #ffffff;
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --text: 800px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 700; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--grey); transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.logo img { width: 110px; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--navy);
}
.menu-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 720px) {
  .site-header .inner { flex-direction: row-reverse; padding: 12px 16px; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; font-size: 15px; border-top: 1px solid var(--line); }
}

/* ---------- Estructura general ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 56px 24px 40px; }
@media (max-width: 720px) { main { padding: 36px 16px 32px; } }

.page-title, .section-title {
  text-align: center; text-transform: uppercase;
  font-size: 25px; line-height: 1.15; font-weight: 700; color: var(--navy);
  margin: 0 auto 32px; max-width: 700px;
}
.page-title { margin-bottom: 40px; }
.section-title { margin-top: 80px; }
.section-title .heavy { font-weight: 800; }
.section-title .light { font-weight: 500; }
@media (max-width: 720px) {
  .page-title, .section-title { font-size: 21px; }
  .section-title { margin-top: 56px; }
}

.text {
  max-width: var(--text); margin: 0 auto 32px;
  text-align: center; font-size: 14px; line-height: 1.6;
}
.text p { margin: 0 0 1.1em; }
.text p:last-child { margin-bottom: 0; }
.text.narrow { max-width: 600px; }
.text.left { text-align: left; }
.text h3 {
  font-size: 15px; font-weight: 800; text-transform: uppercase;
  margin: 0 0 6px; color: var(--navy);
}
.text .lead { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.text .lead-big { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.text .price { font-size: 18px; font-weight: 700; }

/* ---------- Botones ---------- */
.btn-wrap { text-align: center; margin: 8px 0 40px; }
.btn {
  display: inline-block; padding: 0 26px;
  background: var(--navy); color: var(--white);
  font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 42px;
  text-decoration: none; text-transform: uppercase;
  border: 2px solid var(--navy); border-radius: 100px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--white); color: var(--navy); }
.btn.outline { background: var(--white); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Imágenes ---------- */
.figure { margin: 0 auto 32px; }
.figure img { margin: 0 auto; }
.w30 { max-width: 30%; } .w43 { max-width: 43%; } .w60 { max-width: 60%; }
.w67 { max-width: 67%; } .w70 { max-width: 70%; } .w80 { max-width: 80%; } .w85 { max-width: 85%; }
@media (max-width: 720px) {
  .w30 { max-width: 70%; } .w43 { max-width: 80%; }
  .w60, .w67, .w70, .w80, .w85 { max-width: 100%; }
}

/* Fila de imágenes con la misma altura (cada hijo lleva flex = ancho/alto) */
.row { display: flex; gap: 12px; margin: 0 auto 28px; }
.row > * { min-width: 0; }
.row img { width: 100%; height: auto; }
@media (max-width: 560px) { .row.stack { flex-direction: column; } .row.stack > * { flex: none !important; } }

/* Galería tipo mosaico */
.masonry { columns: 3 260px; column-gap: 12px; margin: 0 auto 32px; }
.masonry a { display: block; margin-bottom: 12px; break-inside: avoid; }

/* Inicio: foto + presentación */
.intro { display: flex; gap: 48px; align-items: center; margin: 40px auto 0; }
.intro .photo { flex: 2; }
.intro .text { flex: 3; margin: 0; }
@media (max-width: 720px) {
  .intro { flex-direction: column; gap: 28px; }
  .intro .photo { max-width: 80%; }
}

/* ---------- Portadas (Servicios / Tienda) ---------- */
.covers { display: flex; flex-direction: column; gap: 14px; }
.cover {
  display: grid; grid-template-columns: 2fr 1fr;
  background: var(--soft); text-decoration: none; overflow: hidden;
}
.cover:nth-child(even) { grid-template-columns: 1fr 2fr; }
.cover:nth-child(even) .cover-img { order: 2; }
.cover-img { overflow: hidden; aspect-ratio: 4 / 3; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cover:hover .cover-img img { transform: scale(1.04); }
.cover-title {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; font-size: 17px; font-weight: 600; text-transform: uppercase; color: var(--navy);
}
@media (max-width: 720px) {
  .cover, .cover:nth-child(even) { grid-template-columns: 1fr; }
  .cover:nth-child(even) .cover-img { order: 0; }
  .cover-title { padding: 18px; }
}

/* ---------- Láminas ---------- */
.prints { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 8px; }
.print figcaption {
  text-align: center; text-transform: uppercase; font-weight: 700; font-size: 13px; margin-top: 12px;
}
@media (max-width: 560px) { .prints { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */
.form { max-width: 520px; margin: 40px auto 0; }
.form label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.form input, .form textarea {
  width: 100%; margin-bottom: 22px; padding: 10px 12px;
  font-family: var(--font); font-size: 14px; color: var(--ink);
  border: 1px solid #d9d9d9; border-radius: 3px; background: var(--white);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); }
.form textarea { min-height: 140px; resize: vertical; }
.form .actions { text-align: center; }
.form .hp { display: none; }
.form-status { text-align: center; font-size: 14px; margin-top: 18px; min-height: 1.4em; }
.form-status.ok { font-weight: 700; }
.form-status.error { color: #b3261e; }

/* ---------- Pie y botón subir ---------- */
.site-footer {
  text-align: center; color: var(--grey); font-size: 13px;
  padding: 80px 16px 56px;
}
.site-footer a { color: var(--grey); text-decoration: none; }
.site-footer a:hover { color: var(--navy); }
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(4, 52, 84, .12); color: var(--navy);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Visor de imágenes ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.96);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; cursor: pointer; color: var(--navy);
  font-size: 34px; line-height: 1; padding: 12px;
}
.lightbox .close { top: 8px; right: 12px; }
.lightbox .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 8px; top: 50%; transform: translateY(-50%); }
[data-zoom] { cursor: zoom-in; }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
