@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-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 {
  color-scheme: dark;
  --bg: #111112;
  --paper: #efeee9;
  --muted: #b6b6af;
  --accent: #e9ff4c;
  --border: #353535;
  --header-height: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--bg); color: var(--paper); font: 400 1rem/1.6 Manrope, Arial, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 800; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.site-wrap { width: min(90%, 1440px); margin-inline: auto; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 5; padding: .6rem 1rem; background: var(--accent); color: var(--bg); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.site-header { position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .site-wrap { min-height: calc(var(--header-height) - 1px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-mark { font-weight: 800; font-style: italic; font-size: 30px; letter-spacing: -.085em; text-decoration: none; }
.site-mark span, .site-nav [aria-current] { color: var(--accent); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 2.3vw, 34px); }
.site-nav a { text-decoration: none; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:not(.site-contact-link):hover { color: var(--accent); }
.site-menu { display: none; width: 44px; height: 44px; padding: 0; border: 0; color: var(--paper); background: transparent; cursor: pointer; font-size: 25px; }
.site-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 2rem;
  padding: .65rem 1.15rem;
  color: var(--bg);
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.site-contact-link:hover { background: var(--paper); }
.site-contact-link:focus-visible { outline-color: var(--paper); }

.service-hero { display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, .74fr); align-items: center; gap: clamp(22px, 5vw, 90px); padding-block: clamp(48px, 8vw, 132px); }
.service-kicker { color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.service-hero h1 {
  margin-block: 24px;
  font-size: clamp(3.25rem, 7.3vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.085em;
  overflow-wrap: anywhere;
}
.service-hero h1 em, .service-section h2 em { display: block; color: var(--accent); font-style: normal; }
.service-lead { max-width: 50ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.25rem); }
.service-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; margin-top: 24px; font-weight: 800; }
.service-link:hover { color: var(--accent); }
.service-hero-mat {
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.6vw, 40px);
  border: 1px solid var(--border);
  background: #212120;
}
.service-hero-mat img { width: min(100%, 320px); height: auto; aspect-ratio: 17 / 22; object-fit: contain; }
.service-hero-art figcaption { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.service-hero-photo { padding: clamp(8px, 1.45vw, 22px); }
.service-hero-mat.service-hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% center; }
.service-hero-photo.service-hero-photo-portrait img { aspect-ratio: 4 / 5; object-position: center 43%; }
.service-art-talent {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.1;
  overflow: hidden;
  background: var(--paper);
}
.service-art-talent span {
  position: absolute;
  bottom: -13%;
  width: 39%;
  height: 54%;
  border-radius: 54% 54% 0 0;
  background: var(--bg);
}
.service-art-talent span::before {
  position: absolute;
  bottom: 100%;
  left: 19%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: inherit;
  content: "";
}
.service-art-talent span:nth-child(1) { left: 4%; transform: rotate(-12deg); }
.service-art-talent span:nth-child(2) { right: 4%; transform: rotate(12deg); }
.service-art-talent span:nth-child(3) { left: 30.5%; height: 61%; background: var(--accent); }

.service-section { padding-block: clamp(62px, 8vw, 126px); }
.service-section.site-wrap { border-top: 1px solid var(--border); }
.service-section h2 {
  font-size: clamp(2.85rem, 7vw, 7rem);
  line-height: .96;
  letter-spacing: -.078em;
  overflow-wrap: anywhere;
}
.service-areas { margin-top: clamp(32px, 5vw, 70px); }
.service-areas article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: start;
  gap: 24px;
  padding-block: clamp(20px, 3vw, 42px);
  border-top: 1px solid var(--border);
}
.service-areas article:last-child { border-bottom: 1px solid var(--border); }
.service-areas h3 { font-size: clamp(1.45rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.service-areas p, .service-process p, .service-intro, .service-contact p:not(.service-kicker) { color: var(--muted); }

.service-work { background: var(--paper); color: var(--bg); color-scheme: light; }
.service-work h2 em { color: inherit; }
.service-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px) 18px; margin-top: clamp(30px, 5vw, 70px); }
.service-work-item { display: block; grid-column: span 3; min-width: 0; text-decoration: none; }
.service-work-wide { grid-column: 1 / -1; }
.service-work-narrow { grid-column: span 2; }
.service-work-editorial { grid-column: span 4; }
.service-work-frame {
  display: grid;
  place-items: center;
  height: clamp(280px, 37vw, 460px);
  padding: clamp(12px, 2vw, 24px);
  background: #e0ded5;
}
.service-work-wide .service-work-frame { height: clamp(220px, 41vw, 500px); }
.service-work-frame img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.service-work-info { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-top: 13px; }
.service-work-info h3 { font-size: clamp(1.2rem, 2.5vw, 2rem); line-height: 1.15; letter-spacing: -.042em; }
.service-work-info p { margin-top: 5px; color: #494943; font-size: .82rem; }
.service-work-info > span { font-size: 1.3rem; transition: transform .2s; }
.service-work-item:hover h3 { text-decoration: underline; text-underline-offset: .17em; }
.service-work-item:hover .service-work-info > span { transform: translate(.16em, -.16em); }

.service-intro { margin-top: 24px; max-width: 48ch; }
.service-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.service-process article { border-top: 1px solid var(--border); padding-top: 18px; }
.service-process h3 { margin-bottom: 8px; font-size: 1.4rem; letter-spacing: -.035em; }
.service-contact { background: #1c1d1d; }
.service-contact .site-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); gap: clamp(24px, 6vw, 84px); align-items: end; }
.service-contact h2 { margin-top: 12px; }
.service-contact .site-contact-link { margin-block: 22px 8px; }
.service-contact .service-demo { font-size: .8rem; }

html:has(.service-viewer[open]) { overflow: hidden; scrollbar-gutter: stable; }
.service-viewer {
  width: min(92%, 1120px);
  max-height: 94dvh;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--bg);
  color-scheme: light;
  overscroll-behavior: contain;
}
.service-viewer::backdrop { background: rgba(17, 17, 18, .88); }
.service-viewer-inner { padding: clamp(12px, 2.4vw, 30px); }
.service-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.service-viewer-title { font-size: clamp(1.15rem, 2.8vw, 1.9rem); font-weight: 800; line-height: 1.15; }
.service-viewer-close { flex: 0 0 44px; height: 44px; border: 0; color: var(--paper); background: var(--bg); cursor: pointer; font-size: 1.55rem; }
.service-viewer-close:focus-visible { outline-color: var(--bg); }
.service-viewer img { width: 100%; height: min(71dvh, 720px); object-fit: contain; }

@media (max-width: 950px) {
  .site-header .site-wrap { flex-wrap: wrap; column-gap: 16px; row-gap: 0; }
  .site-nav { width: 100%; padding-block: 12px 20px; }
  .site-header.has-menu .site-menu { display: block; }
  .site-header.has-menu .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 5% 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
  }
  .site-header.has-menu .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; align-items: center; min-height: 32px; }
  .site-nav .site-contact-link { align-self: start; min-height: 44px; }
}
@media (max-width: 950px) and (scripting: enabled) {
  .site-header:not(.has-menu) .site-nav { display: none; }
}
@media (max-width: 768px) {
  .service-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .service-hero h1 { font-size: clamp(3.15rem, 10vw, 6.15rem); }
  .service-hero-mat img { width: min(60vw, 320px); }
}
@media (max-width: 600px) {
  .site-wrap { width: calc(100% - 44px); }
  .service-hero-mat img { width: min(60vw, 240px); }
  .service-areas article, .service-contact .site-wrap, .service-process { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service-gallery { grid-template-columns: minmax(0, 1fr); }
  .service-gallery .service-work-item { grid-column: auto; }
  .service-work-frame { height: clamp(265px, 94vw, 440px); }
  .service-work-wide .service-work-frame, .service-work-editorial .service-work-frame { height: clamp(205px, 57vw, 320px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-work-info > span { transition: none; }
  .service-work-item:hover .service-work-info > span { transform: none; }
}

/* Bloques de texto de cada servicio (partials/content/blocks.php) */
.service-copy h2 { font-size: clamp(1.9rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.06em; }
.service-copy .service-intro { max-width: 62ch; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.service-copy-label { margin-top: 34px; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.035em; }
.service-list, .service-steps { margin: 26px 0 0; padding: 0; list-style: none; }
.service-copy-label + .service-list { margin-top: 14px; }
.service-list li { padding-block: 16px; border-top: 1px solid var(--border); color: var(--muted); }
.service-list li:last-child { border-bottom: 1px solid var(--border); }
.service-list strong, .service-steps strong { color: var(--paper); }
.service-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-steps li { padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); }
.service-steps strong { display: block; margin-bottom: 8px; font-size: 1.4rem; letter-spacing: -.035em; }
.service-faq { margin-top: 26px; }
.service-faq-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: start;
  gap: 24px;
  padding-block: clamp(18px, 2.5vw, 32px);
  border-top: 1px solid var(--border);
}
.service-faq-item:last-child { border-bottom: 1px solid var(--border); }
.service-faq h3 { font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: -.035em; }
.service-faq p { color: var(--muted); }
.service-closing { margin-top: 32px; color: var(--accent); font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 768px) {
  .service-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .service-faq-item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* Desarrollo web (pages/desarrollo-web.php) */
.dev-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dev-hero h1 { font-size: clamp(2.9rem, 6vw, 6.4rem); text-wrap: balance; }
.dev-hero-art { position: relative; display: block; aspect-ratio: 1.1; padding: 0; overflow: hidden; background: var(--paper); border: 0; }
.dev-win { position: absolute; inset: 14% 12%; overflow: hidden; border-radius: 10px; background: var(--bg); }
.dev-win-bar { display: flex; align-items: center; gap: 2.4%; height: 11%; padding-left: 5%; background: #212120; }
.dev-win-bar i { display: block; width: 3.3%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); opacity: .7; }
.dev-win-block, .dev-win-line { position: absolute; border-radius: 4px; background: #353535; }
.dev-win-hero { left: 6%; right: 6%; top: 17%; height: 30%; background: var(--accent); }
.dev-win-a { left: 6%; top: 53%; width: 41%; height: 19%; }
.dev-win-b { right: 6%; top: 53%; width: 41%; height: 19%; }
.dev-win-line { left: 6%; top: 79%; width: 88%; height: 3.2%; border-radius: 99px; }
.dev-win-line-2 { top: 86%; width: 62%; }
.dev-win-line-3 { top: 93%; width: 75%; }

.dev-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: clamp(30px, 5vw, 60px) 0 0; padding: 0; list-style: none; }
.dev-steps li { padding-top: 18px; border-top: 1px solid var(--border); }
.dev-step-number { display: block; margin-bottom: 10px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.dev-steps h3 { margin-bottom: 8px; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.035em; }
.dev-steps p { color: var(--muted); }
.service-process { margin-top: clamp(30px, 5vw, 60px); }
.service-process h3 { line-height: 1.15; }

.dev-projects-intro { max-width: 52ch; margin-top: 22px; color: #494943; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.service-work h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); }
.dev-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3.4vw, 46px) clamp(18px, 2.4vw, 32px); margin-top: clamp(30px, 5vw, 64px); }
.dev-card { display: flex; flex-direction: column; min-width: 0; }
.dev-card-frame { padding: clamp(8px, 1.2vw, 14px); background: #e0ded5; }
.dev-card-frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: #fff; }
.dev-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 16px; }
.dev-tag { margin-bottom: 10px; padding: .2rem .65rem; border-radius: 2rem; color: var(--accent); background: var(--bg); font-size: .7rem; font-weight: 800; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
.dev-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.12; letter-spacing: -.04em; }
.dev-card-body > p:not(.dev-tag) { margin-top: 8px; color: #494943; font-size: .95rem; }
.dev-card-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: auto; padding-top: 14px; font-weight: 800; }
.dev-card-link:hover { text-decoration-thickness: 2px; }

@media (max-width: 950px) {
  .dev-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .dev-steps, .dev-cards { grid-template-columns: minmax(0, 1fr); }
  .dev-hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .dev-hero-art { aspect-ratio: 1.5; }
  .dev-win { inset: 12% 10%; }
}
