/* ─────────────────────────────────────────
   IMPULSO CREATIVO STUDIO — Base & Global
   ───────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #FFFFFF;
  color: var(--rocio);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
strong { font-weight: 600; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: var(--space-sm);
  background: var(--esmeralda); color: #FFFFFF;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; z-index: 9999;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

/* ── Layout ── */
.wrapper {
  width: 100%; max-width: var(--max-width);
  margin-inline: auto; padding-inline: var(--gutter);
}

/* ── Labels / tags ── */
.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--esmeralda);
}

/* ── Headings ── */
.h-display {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--rocio);
  text-wrap: balance;
  font-optical-sizing: auto;
}
.h-display em { font-style: italic; font-weight: 700; color: var(--esmeralda); }

.h-section {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--rocio);
  text-wrap: balance;
  font-optical-sizing: auto;
}
.h-section em { font-style: italic; color: var(--esmeralda); }

.h-card {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--rocio);
  text-wrap: balance;
}

/* ── Body text ── */
.body-text {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--rocio-dim);
  line-height: 1.78;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ── Divider ── */
.divider { width: 100%; height: 1px; background: var(--borde); }

/* ═══════════════════════════════════════
   BOTONES
═══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--esmeralda);
  color: #FFFFFF;
  border: 1.5px solid var(--esmeralda);
}
.btn-primary:hover {
  background: var(--esmeralda-hover);
  border-color: var(--esmeralda-hover);
}

.btn-outline {
  background: transparent;
  color: var(--rocio);
  border: 1.5px solid var(--rocio);
}
.btn-outline:hover {
  background: var(--rocio);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--esmeralda);
  border: none;
  padding-inline: 0;
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
}
.btn-ghost:hover { color: var(--esmeralda-hover); gap: 12px; }
.btn-ghost::after { content: "→"; transition: transform var(--dur) var(--ease); }

/* ═══════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #FFFFFF;
  border-bottom: 1px solid var(--borde);
  transition: padding var(--dur) var(--ease);
  padding: 18px 0;
}
.site-header.scrolled {
  padding: 12px 0;
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 54px; width: auto; display: block; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--rocio-dim);
  letter-spacing: 0.3px;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--rocio);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 22px;
  background: transparent !important;
  border: 1.5px solid var(--rocio);
  border-radius: var(--radius-sm);
  color: var(--rocio) !important;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.3px;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease) !important;
}
.nav-cta:hover {
  background: var(--rocio) !important;
  color: #FFFFFF !important;
}
/* anular el underline animado en el CTA */
.nav-cta::after { display: none !important; }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--rocio); border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: #0F1210;
  border-top: 1px solid #2A3028;
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--space-md);
}

.footer-brand .nav-logo-img {
  height: 72px;
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 500;
  color: rgba(248,248,248,0.42);
  max-width: 300px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--esmeralda);
  margin-bottom: 20px;
  opacity: 1;
}

.footer-links-list {
  display: flex; flex-direction: column; gap: 13px;
}
.footer-links-list a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(248,248,248,0.42);
  transition: color var(--dur-fast) var(--ease),
              padding-left var(--dur-fast) var(--ease);
}
.footer-links-list a:hover {
  color: #F2F5EE;
  padding-left: 4px;
}

.footer-social {
  display: flex; flex-direction: column; gap: 13px;
}
.footer-social a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(248,248,248,0.42);
  display: flex; align-items: center; gap: 10px;
  transition: color var(--dur-fast) var(--ease);
}
.footer-social a svg {
  width: 14px; height: 14px; flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--dur-fast) var(--ease);
}
.footer-social a:hover { color: #F2F5EE; }
.footer-social a:hover svg { opacity: 1; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-sm); flex-wrap: wrap;
}
.footer-copy {
  font-size: var(--text-xs);
  color: rgba(248,248,248,0.22);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   WHATSAPP FLOTANTE
═══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 300;
  width: 56px; height: 56px;
  background: var(--esmeralda);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(61,140,106,0.3);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(61,140,106,0.45);
}
.whatsapp-float svg { width: 28px; height: 28px; flex-shrink: 0; }

.whatsapp-float::before {
  content: "Escribinos";
  position: absolute; right: 68px;
  background: #0F1210;
  color: #F2F5EE;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: all var(--dur) var(--ease);
}
.whatsapp-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.card {
  background: var(--musgo-card);
  border: 0.5px solid var(--borde);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--esmeralda);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════
   ANIMACIONES ON SCROLL
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   PLACEHOLDER IMAGES
═══════════════════════════════════════ */
.img-placeholder {
  background: var(--musgo-card);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder::after {
  content: "IMAGEN PRÓXIMAMENTE";
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--salvia);
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   MOBILE NAV OVERLAY
═══════════════════════════════════════ */
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0; top: 68px;
    background: #FFFFFF;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    border-top: 1px solid var(--borde);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; color: var(--rocio); }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: flex; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .whatsapp-float::before { display: none; }
}
