/* ============================================
   Impacto Merch — impactomerch.com.ar
   Paleta y tipografías según Brandbook (Dic 2025)
   ============================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --dark: #130811;      /* Black Purple */
  --green: #193a2e;     /* Gable Green */
  --mint: #a7d97a;      /* Mint Green */
  --yellow: #f2e864;    /* Portica */
  --linen: #f7f1e8;     /* White Linen */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --container: 1140px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--dark);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--yellow); color: var(--dark); }
.btn--primary:hover { background: var(--mint); }

.btn--dark { background: var(--green); color: var(--linen); }
.btn--dark:hover { background: var(--dark); }

.btn--ghost { border-color: var(--linen); color: var(--linen); background: transparent; }
.btn--ghost:hover { background: var(--linen); color: var(--green); }

/* ---------- Aviso de mantenimiento (solo lo ve un admin) ---------- */

.maint-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yellow);
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 10px 20px;
  border-bottom: 2px solid var(--dark);
}

.maint-bar a {
  color: var(--dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* El header pegajoso baja para no taparse con la barra. */
.maint-bar ~ .header { top: 41px; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--linen) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 8, 17, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.header__logo svg { height: 44px; width: auto; color: var(--green); }

.nav { display: flex; align-items: center; gap: 28px; }

.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
}
.nav a:not(.btn):hover { opacity: 1; color: var(--green); }

.nav .btn { padding: 0.6em 1.4em; font-size: 0.9rem; }

/* Sesion iniciada: el enlace de ingreso pasa a ser el acceso a la cuenta */
.nav a.nav__account {
  color: var(--green);
  opacity: 1;
  font-weight: 700;
}

.nav__logout {
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nav__logout:hover { opacity: 1; }

.nav__toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  background: var(--green);
  color: var(--linen);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-block: 96px 110px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero p {
  font-size: 1.15rem;
  max-width: 46ch;
  opacity: 0.92;
  margin-bottom: 34px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__art { position: relative; }

/* foto recortada con la forma de bandera del isotipo */
.hero__art img {
  width: 100%;
  height: auto;
  clip-path: polygon(0% 0%, 73.3% 0%, 100% 29%, 100% 100%, 23.3% 100%, 20% 96.5%, 20% 29.1%, 0% 7.2%);
}

/* bandera decorativa de fondo, eco del isotipo */
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -30%;
  width: 55%;
  height: 160%;
  background: color-mix(in srgb, var(--mint) 12%, transparent);
  clip-path: polygon(0 0, 100% 18%, 100% 100%, 18% 82%, 18% 22%);
  pointer-events: none;
}

/* ---------- Cinta CHECKED PACKED READY ---------- */

.ticker {
  background: var(--dark);
  color: var(--linen);
  overflow: hidden;
  padding-block: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  gap: 3em;
  animation: ticker 22s linear infinite;
}

.ticker span::after {
  content: "·";
  margin-left: 3em;
  color: var(--mint);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Secciones ---------- */

.section { padding-block: 90px; }

.section__head { max-width: 640px; margin-bottom: 54px; }

.section__head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.section__head p { opacity: 0.8; }

/* ---------- Servicios ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid rgba(19, 8, 17, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(25, 58, 46, 0.12);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card__icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.2rem; margin-bottom: 10px; }

.card p { font-size: 0.95rem; opacity: 0.75; }

/* ---------- Split (imagen + texto) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split__img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.split h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.split > div > p { opacity: 0.8; margin-bottom: 22px; }

.checklist { list-style: none; display: grid; gap: 12px; }

.checklist li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 1rem;
}

.checklist li::before {
  content: "✓";
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green);
  background: var(--mint);
  border-radius: 6px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  transform: translateY(2px);
}

/* ---------- Productos (chips) ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(25, 58, 46, 0.22);
  color: var(--green);
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }

.faq details {
  background: #fff;
  border: 1px solid rgba(19, 8, 17, 0.08);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin-top: 12px; opacity: 0.8; font-size: 0.98rem; }

/* ---------- Proceso ---------- */

.process { background: #fff; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--linen);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--green);
  background: var(--yellow);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.35rem; margin-bottom: 10px; }

.step p { font-size: 0.97rem; opacity: 0.78; }

.step__tag {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Por qué / Nosotros ---------- */

.why {
  background: var(--green);
  color: var(--linen);
}

.why .section__head h2 em { font-style: normal; color: var(--mint); }

.why__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.why__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.why__item {
  border: 1px solid color-mix(in srgb, var(--linen) 22%, transparent);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.why__item h3 {
  color: var(--yellow);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.why__item p { font-size: 0.95rem; opacity: 0.85; }

/* ---------- CTA final ---------- */

.cta {
  background: var(--yellow);
  color: var(--dark);
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 100%);
  padding-block: 110px 90px;
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 16ch; }

.cta p { margin-top: 12px; max-width: 44ch; opacity: 0.8; }

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  color: var(--linen);
  padding-block: 64px 40px;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 48px;
}

.footer__brand svg { height: 56px; width: auto; color: var(--mint); margin-bottom: 16px; }

.footer__brand p { font-size: 0.95rem; opacity: 0.7; max-width: 34ch; }

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.footer ul { list-style: none; display: grid; gap: 8px; }

.footer a { text-decoration: none; opacity: 0.85; font-size: 0.97rem; }
.footer a:hover { opacity: 1; color: var(--mint); }

.footer__bottom {
  border-top: 1px solid rgba(247, 241, 232, 0.14);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; padding-block: 72px 84px; }
  .hero__art { display: none; }
  .split, .why__layout { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__img { order: -1; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.is-open {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--linen);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(19, 8, 17, 0.08);
  }
  .nav__toggle {
    display: grid;
    place-items: center;
    background: none;
    border: none;
    color: var(--green);
    cursor: pointer;
  }
  .cards, .why__grid, .steps { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
}
