/* masquemaquillaje.com — web estática. Sin dependencias. */
/* Tipografía Josefin Sans (licencia SIL OFL), servida desde la propia web */
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/josefin-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/josefin-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #212529;
  --ink-soft: #5b6066;
  --paper: #f4f3f1;
  --card: #ffffff;
  --bar: #1b1e21;
  --bar-text: #d9d8d6;
  --accent: #79074a;
  --accent-on-dark: #d77bb0;
  --line: #dcdad6;
  --bar-h: 76px;
  --font: "Josefin Sans", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: var(--bar-h);
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 300 18px/1.7 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Barra inferior ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px 0 0;
  background: var(--bar); color: var(--bar-text);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400;
}
.bar a { color: inherit; text-decoration: none; }
.bar a:hover { color: #fff; }
.menu-btn {
  align-self: stretch; display: flex; align-items: center; gap: 14px;
  padding: 0 22px; background: #fff; color: var(--ink) !important;
  font-weight: 600; letter-spacing: .18em; border: 0; cursor: pointer;
}
.menu-btn:hover { background: var(--accent); color: #fff !important; }
.menu-btn svg { width: 22px; height: 22px; }
.bar__logo img { width: 170px; height: auto; }
.bar__spacer { flex: 1; }
.bar__legal { text-align: right; line-height: 1.5; opacity: .8; }
.bar__legal a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.lang { display: flex; gap: 2px; font-weight: 600; }
.lang a, .lang span { padding: 6px 8px; }
.lang [aria-current] { color: #fff; border-bottom: 2px solid var(--accent-on-dark); }

/* ---------- Menú a pantalla completa ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 70px 24px 40px; overflow: auto;
  background: rgba(22, 24, 27, .97); color: #fff;
}
.overlay:target, .overlay.is-open { display: flex; }
.overlay__close {
  position: absolute; top: 18px; right: 20px; width: 48px; height: 48px;
  display: grid; place-items: center; color: #fff; text-decoration: none; font-size: 34px; line-height: 1;
}
.overlay nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.overlay nav > ul > li { margin: 6px 0; }
.overlay nav a {
  display: inline-block; padding: 8px 14px; color: #fff; text-decoration: none;
  font-size: clamp(22px, 4.2vh, 34px); font-weight: 300; letter-spacing: .22em; text-transform: uppercase;
}
.overlay nav a:hover, .overlay nav a[aria-current] { color: var(--accent-on-dark); }
.overlay nav ul ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.overlay nav ul ul a { font-size: 14px; letter-spacing: .2em; opacity: .75; padding: 4px 10px; }
.overlay__foot { margin-top: 34px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; text-align: center; }
.overlay__foot a { color: #fff; }

/* ---------- Inicio: pase de fotos ---------- */
.slides { position: fixed; inset: 0 0 var(--bar-h) 0; background: #111; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; overflow: hidden; }
.slide.is-active { opacity: 1; }
.slide img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.slide .slide__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(30px) brightness(.55); }
.slide--contain img { object-fit: contain; }
.dots { position: fixed; right: 22px; bottom: calc(var(--bar-h) + 18px); z-index: 5; display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: transparent; cursor: pointer; }
.dots button[aria-current="true"] { background: #fff; }

/* ---------- Trabajos: tres paneles ---------- */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); min-height: calc(100vh - var(--bar-h)); background: #111; }
.panel { position: relative; display: block; overflow: hidden; min-height: 240px; color: #fff; text-decoration: none; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s; opacity: .8; }
.panel:hover img, .panel:focus-visible img { transform: scale(1.05); opacity: 1; }
.panel span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 28px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  font-size: 22px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; text-align: center;
}

/* ---------- Cabecera de sección ---------- */
.head { padding: 56px 24px 26px; text-align: center; }
.head h1, .article h1 {
  margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 300; letter-spacing: .2em; text-transform: uppercase; line-height: 1.25;
}
.head h1::after, .article h1::after { content: ""; display: block; width: 56px; height: 2px; margin: 18px auto 0; background: var(--accent); }
.head p { margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.crumbs { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Galerías ---------- */
.gallery { columns: 4 260px; column-gap: 10px; padding: 0 10px 40px; max-width: 1900px; margin: 0 auto; }
.gallery a { display: block; margin: 0 0 10px; break-inside: avoid; overflow: hidden; background: #ddd; }
.gallery img { width: 100%; transition: transform .6s ease, filter .3s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); filter: brightness(1.06); }
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.subnav a { color: var(--ink-soft); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a[aria-current] { color: var(--ink); border-color: var(--accent); }

.lightbox { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(12, 13, 15, .96); }
.lightbox.is-open { display: block; }
.lightbox img { position: absolute; inset: 56px 64px; width: calc(100% - 128px); height: calc(100% - 112px); object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 40px/1 var(--font); width: 56px; height: 56px; }
.lightbox button:hover { color: var(--accent-on-dark); }
.lightbox .lb-close { top: 6px; right: 8px; }
.lightbox .lb-prev { left: 4px; top: calc(50% - 28px); }
.lightbox .lb-next { right: 4px; top: calc(50% - 28px); }
.lightbox .lb-count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #bbb; font-size: 13px; letter-spacing: .2em; }

/* ---------- Páginas de texto ---------- */
.split { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); }
.split__media { position: sticky; top: 0; height: calc(100vh - var(--bar-h)); background: #111; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: 64px clamp(24px, 6vw, 90px) 70px; }
.article { max-width: 760px; margin: 0 auto; }
.split .article { margin: 0; }
.single { padding: 56px 24px 70px; }
.article h1 { text-align: left; margin-bottom: 30px; }
.article h1::after { margin-left: 0; }
.prose { overflow-wrap: break-word; }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { margin: 1.8em 0 .6em; font-weight: 600; letter-spacing: .06em; line-height: 1.3; }
.prose h2 { font-size: 24px; } .prose h3 { font-size: 20px; } .prose h4 { font-size: 18px; }
.prose strong, .prose b { font-weight: 600; }
.prose img { margin: 1.4em auto; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose--list p { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; max-width: 1280px; margin: 0 auto; padding: 0 24px 70px; }
.post { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); }
.post__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post time, .article time { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.post h2 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.35; letter-spacing: .03em; }
.post h2 a { color: var(--ink); text-decoration: none; }
.post h2 a:hover { color: var(--accent); }
.post p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.post .more { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.hero { max-width: 1100px; margin: 0 auto; }
.hero img { width: 100%; max-height: 62vh; object-fit: cover; }
.article--post { padding: 44px 24px 70px; }
.article--post h1 { letter-spacing: .08em; text-transform: none; font-size: clamp(26px, 3.6vw, 38px); margin: 10px 0 30px; }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.pager a { max-width: 46%; text-decoration: none; }
.pager a:last-child { text-align: right; margin-left: auto; }
.pager small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.contact { max-width: 680px; margin: 0 auto; padding: 70px 24px 80px; text-align: center; }
.contact__logo { width: min(420px, 80%); margin: 0 auto 30px; }
.contact h1 { margin: 0 0 22px; font-size: 14px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin: 26px 0 8px; padding: 18px 30px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 400; letter-spacing: .08em; font-size: 18px;
  overflow-wrap: anywhere;
}
.btn:hover { background: var(--ink); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.contact .social { justify-content: center; margin-top: 30px; }
.contact .social a { width: auto; height: auto; padding: 10px 18px; gap: 10px; border-radius: 0; border-color: var(--line); color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; }
.contact .social a:hover { color: #fff; }
.note { margin-top: 34px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 1000px) {
  .bar__legal { display: none; }
  .split { display: block; }
  .split__media { position: static; height: 46vh; min-height: 260px; }
  .split__body { padding: 40px 24px 60px; }
  .split .article { margin: 0 auto; }
}
@media (max-width: 760px) {
  :root { --bar-h: 62px; }
  body { font-size: 17px; }
  .bar { gap: 12px; padding-right: 12px; }
  .menu-btn { padding: 0 16px; }
  .menu-btn span { display: none; }
  .bar__logo img { width: 132px; }
  .bar .social { display: none; }
  .panels { grid-template-columns: 1fr; }
  .panel { min-height: 32vh; }
  .gallery { columns: 2 140px; column-gap: 6px; padding: 0 6px 30px; }
  .gallery a { margin-bottom: 6px; }
  .head { padding-top: 40px; }
  .lightbox img { inset: 56px 8px 50px; width: calc(100% - 16px); height: calc(100% - 106px); }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 0; }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
  .pager a:last-child { text-align: left; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .bar, .overlay, .dots { display: none !important; }
  body { padding: 0; background: #fff; }
}
