/* =============================================================
   BLUR MEDIA — style.css
   1. Fonts
   2. Tokens
   3. Reset & base
   4. Utilities
   5. Typography
   6. Components (btn, tag, pill, nav)
   7. Sections
   8. Effects
   9. Responsive
   10. Reduced motion
   ============================================================= */

/* =============================================================
   1. Fonts (self-hosted, licensed — Blur Media brand kit)
   ============================================================= */
@font-face {
  font-family: 'Helvetica Neue Blur';
  src: url('../fonts/helvetica-neue-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue Blur';
  src: url('../fonts/helvetica-neue-bold-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* =============================================================
   2. Tokens
   ============================================================= */
:root {
  --carbon: #1c1c1a;
  --gray: #565656;
  --cloud: #efefef;
  --white: #ffffff;
  --black: #000000;
  --lima: #d8ff5d;
  --sky: #64c5fa;

  --bg: var(--cloud);
  --text: var(--carbon);
  --text-muted: var(--gray);

  --display: 'Helvetica Neue Blur', 'Helvetica Neue', Arial, sans-serif;
  --wordmark: 'Helvetica Neue Blur', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --gutter: 1.25rem;
  --container: 1240px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 72px;
}

/* =============================================================
   3. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.01em; }
::selection { background: var(--lima); color: var(--carbon); }

:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   4. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--dark { background: var(--carbon); color: var(--white); }
.section--cloud { background: var(--cloud); color: var(--carbon); }
.section--white { background: var(--white); color: var(--carbon); }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--lima); color: var(--carbon);
  z-index: 9999; border-radius: 8px; font-weight: 700;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.lima { color: var(--lima); }
.sky { color: var(--sky); }

/* =============================================================
   5. Typography
   ============================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--mono), monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section--dark .eyebrow { color: #9c9c98; }
.eyebrow::before { content: '['; }
.eyebrow::after { content: ']'; }

.h-display {
  font-family: var(--display);
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -0.03em;
}
.h-xl { font-size: clamp(2.6rem, 7.4vw, 6.2rem); }
.h-lg { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.wordmark {
  font-family: var(--wordmark);
  font-weight: 700;
  font-style: italic;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
}
.section--dark .lede { color: #b9b9b5; }
.lede--spaced { margin-top: 1.2rem; }
.mt-lg { margin-top: 2.6rem; }
.h-normal-case { text-transform: none; }

/* =============================================================
   6. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  text-align: center;
  transition: transform .35s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out);
}
.btn--lima {
  background: var(--lima);
  color: var(--carbon);
}
.btn--lima:hover { transform: translateY(-2px) scale(1.02); }
.btn--outline {
  border: 1.5px solid currentColor;
  color: inherit;
}
.btn--outline:hover { background: var(--carbon); color: var(--white); border-color: var(--carbon); }
.section--dark .btn--outline:hover { background: var(--white); color: var(--carbon); border-color: var(--white); }
.btn--sm { padding: .7rem 1.2rem; font-size: .85rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Pills (sub-services, brochure motif) */
.pill {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  opacity: .92;
}

/* Doc-id tag (brochure "[COMMERCIAL PROPOSAL]" motif) */
.doc-tag {
  font-family: var(--mono), monospace;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.section--dark .doc-tag { color: #8e8e8a; }

/* =============================================================
   Header / Nav
   ============================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(28, 28, 26, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .3s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(28, 28, 26, 0.96); }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; }
.brand img { height: 22px; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
  font-size: .92rem;
  font-weight: 500;
  color: #d8d8d6;
}
.nav-links a { position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--lima);
  transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 480;
  background: var(--carbon);
  padding: 2rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav a {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
}
.mobile-nav .btn { align-self: flex-start; margin-top: .5rem; }

/* =============================================================
   7. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--carbon);
  color: var(--white);
  padding-top: calc(var(--nav-h) + 2rem);
  position: relative;
  overflow: clip;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% -20% -10%;
  background:
    radial-gradient(38% 45% at 82% 18%, rgba(216,255,93,0.16), transparent 70%),
    radial-gradient(32% 40% at 8% 78%, rgba(100,197,250,0.14), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero h1 { max-width: 15ch; }
.hero h1 .line { display: block; }
.hero__lede { margin-top: 1.8rem; }
.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* --- Servicios --- */
.services-head { max-width: 60ch; }

/* Quick-jump nav, brochure "Conocé nuestros servicios" motif */
.service-index {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.service-index__item {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  width: fit-content;
  transition: gap .25s var(--ease-out), color .25s var(--ease-out);
}
.service-index__item svg { width: 1.6em; height: auto; flex: none; }
.service-index__item:hover { gap: 1.2rem; color: var(--sky); }

.service {
  margin-top: 3.5rem;
  display: grid;
  border-radius: 0;
  overflow: clip;
}
.service__panel {
  padding: clamp(2.2rem, 4vw, 3.5rem);
  position: relative;
}
.service__panel--dark {
  background: var(--carbon);
  color: var(--white);
}
.service__panel--light {
  background: var(--cloud);
  color: var(--carbon);
}
.service__id { margin-bottom: 1.6rem; }
.service__title { margin-bottom: 1.1rem; }
.service__desc { font-size: 1.05rem; }
.section--dark .service__desc,
.service__panel--dark .service__desc { color: #cfcfcb; }
.service__anchor {
  margin-top: 1.6rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.service__actions { margin-top: 2.2rem; }
.service__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.service__pills .pill { color: var(--carbon); }

/* --- Proceso --- */
.process__grid {
  margin-top: 3.2rem;
  display: grid;
  gap: 1.6rem;
}
.process__step {
  padding: 1.8rem;
  border: 1px solid rgba(28,28,26,0.12);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.process__step:hover { transform: translateY(-4px); border-color: var(--carbon); }
.process__num {
  font-family: var(--mono), monospace;
  font-size: .85rem;
  color: var(--sky);
  margin-bottom: 1rem;
  display: block;
}
.process__step h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.process__step p { color: var(--text-muted); font-size: .95rem; }

/* --- Contacto --- */
.contact {
  display: grid;
  border-radius: 0;
  overflow: clip;
}
.contact__intro {
  padding: clamp(2.2rem, 4vw, 3.5rem);
  background: var(--carbon);
  color: var(--white);
  position: relative;
  overflow: clip;
}
.contact__logo { display: block; height: 22px; width: auto; margin-bottom: clamp(2rem, 6vw, 3.4rem); }
.contact__headline { margin-bottom: 1.4rem; }
.contact__lede { color: #e4e4e1; margin-top: 0; }
.contact__lede strong { color: var(--white); font-weight: 700; }
.contact__channels { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact__channel {
  display: flex; align-items: center; gap: .9rem;
  font-weight: 600;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color .25s var(--ease-out), gap .25s var(--ease-out);
}
.contact__channel:hover { color: var(--lima); gap: 1.15rem; }
.contact__channel svg { width: 1.3em; height: 1.3em; flex: none; }

.contact__form-wrap { padding: clamp(2.2rem, 4vw, 3.5rem); background: var(--cloud); }
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--carbon);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid rgba(28,28,26,0.18);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .95rem;
  transition: border-color .2s var(--ease-out);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--carbon); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-grid-2 { display: grid; gap: 1.2rem; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.form-msg { font-size: .88rem; font-weight: 600; }
.form-msg[data-state="ok"] { color: #2f7a3d; }
.form-msg[data-state="error"] { color: #c23b3b; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--carbon); color: #d8d8d6; padding-block: 3.5rem 2rem; }
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand img { height: 20px; }
.footer__brand p { margin-top: .9rem; color: #9c9c98; max-width: 34ch; font-size: .92rem; }
.footer__cols { display: grid; gap: 2rem; }
.footer__col h4 {
  font-family: var(--mono), monospace;
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8e8e8a;
  margin-bottom: 1rem;
}
.footer__col a, .footer__col span { display: block; font-size: .92rem; margin-bottom: .7rem; color: #d8d8d6; }
.footer__col a:hover { color: var(--lima); }
.footer__bottom {
  padding-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .8rem;
  color: #77776f;
}
.footer__bottom a { color: #9c9c98; }
.footer__bottom a:hover { color: var(--lima); }

/* =============================================================
   Floating WhatsApp
   ============================================================= */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 400;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transform: scale(0);
  transition: transform .35s var(--ease-soft);
}
.whatsapp-float.is-visible { transform: scale(1); }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* =============================================================
   8. Effects — reveal on scroll
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* =============================================================
   9. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .service-index { flex-direction: row; flex-wrap: wrap; column-gap: 3rem; }
}

@media (min-width: 960px) {
  :root { --gutter: 2rem; }
  .nav-links { display: flex; }
  .nav-toggle, .mobile-nav { display: none; }
  .header-cta { display: inline-flex; }

  .service { grid-template-columns: 0.85fr 1.15fr; }
  .service:nth-of-type(even) { direction: rtl; }
  .service:nth-of-type(even) .service__panel { direction: ltr; }

  .process__grid { grid-template-columns: repeat(4, 1fr); }

  .contact { grid-template-columns: 0.9fr 1.1fr; }

  .footer__top { flex-direction: row; justify-content: space-between; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); flex: 1; margin-left: 4rem; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1280px) {
  .hero h1 { max-width: 17ch; }
}

/* =============================================================
   10. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
}
