/* ============ CUAK! — estilos base ============ */

@font-face {
  font-family: "Fivo Black";
  src: url("assets/fonts/FivoSans-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Fivo Medium";
  src: url("assets/fonts/FivoSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --cream: #f5f3ea;
  --neon: #ddDC00;
  --gray: #8a8a86;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: "Fivo Medium", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fivo Black", "Fivo Medium", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
  position: relative;
}

.eyebrow {
  font-family: "Fivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 3px;
  background: var(--neon);
  display: inline-block;
}
section.on-black .eyebrow { color: var(--white); }
section.on-black .eyebrow::before { background: var(--neon); }
section.on-neon .eyebrow::before { background: var(--black); }
.hero .eyebrow { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Fivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 4px 5px 0 var(--black); }
.btn.btn-neon { background: var(--neon); color: var(--black); border-color: var(--black); }
.btn.btn-neon:hover { box-shadow: 4px 5px 0 var(--black); }
section.on-black .btn.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
section.on-black .btn.btn-outline:hover { background: var(--white); color: var(--black); box-shadow: 4px 5px 0 var(--neon); }

/* ---------- texture ---------- */
.texture {
  background-image:
    radial-gradient(rgba(10,10,10,0.07) 1px, transparent 1px);
  background-size: 16px 16px;
}
.on-black.texture {
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 16px 16px;
}

.watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
  filter: grayscale(1) brightness(0);
}
section.on-black .watermark { opacity: 0.08; filter: grayscale(1) brightness(3); }
.wrap > * { position: relative; z-index: 1; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,243,234,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--black);
  border-radius: 12px;
  padding: 0.5rem 1rem;
}
.logo-mark {
  height: 38px;
  width: auto;
  display: block;
  transform-origin: 50% 65%;
  animation: quack-shake 10s ease infinite;
}
.logo-word {
  height: 24px;
  width: auto;
  display: block;
  animation: write-in 10s steps(28, end) infinite;
}
@keyframes quack-shake {
  0%, 1% { transform: rotate(0deg) scale(1); }
  2.4% { transform: rotate(-10deg) scale(1.04); }
  3.8% { transform: rotate(8deg) scale(1.02); }
  5.2% { transform: rotate(-5deg) scale(1.01); }
  6.6% { transform: rotate(2deg) scale(1); }
  8%, 100% { transform: rotate(0deg) scale(1); }
}
@keyframes write-in {
  0%, 4.5% { clip-path: inset(0 100% 0 0); }
  13.5%, 100% { clip-path: inset(0 0% 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark, .logo-word { animation: none !important; clip-path: none !important; }
}
nav.main-nav { display: flex; align-items: center; gap: 2rem; }
nav.main-nav a {
  text-decoration: none;
  font-family: "Fivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
nav.main-nav a:not(.btn) { position: relative; }
nav.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--black);
  transition: width 0.2s ease;
}
nav.main-nav a:not(.btn):hover::after { width: 100%; }
.nav-links { display: flex; gap: 1.75rem; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .logo-mark { height: 30px; }
  .logo-word { height: 19px; }
  .logo-badge { padding: 0.4rem 0.8rem; }
}

/* ---------- generic section spacing ---------- */
section { padding: clamp(3.5rem, 9vw, 7rem) 0; position: relative; overflow: hidden; }
section.on-black { background: var(--black); color: var(--white); }
section.on-neon { background: var(--neon); color: var(--black); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { animation: fade-up 0.6s ease both; }
.reveal-stagger.in-view > *:nth-child(1) { animation-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: 0.14s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: 0.2s; }
.reveal-stagger.in-view > *:nth-child(5) { animation-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(6) { animation-delay: 0.32s; }
.reveal-stagger.in-view > *:nth-child(7) { animation-delay: 0.38s; }
.reveal-stagger.in-view > *:nth-child(8) { animation-delay: 0.44s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: translateY(0);} }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .float, .pulse-glow { animation: none !important; }
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(4rem, 10vw, 6.5rem);
  padding-bottom: clamp(4.5rem, 11vw, 7.5rem);
  background: #0a0a0a url("assets/img/hero-escaleras.jpg") center 30% / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,6,5,0.94) 0%, rgba(6,6,5,0.82) 38%, rgba(6,6,5,0.55) 68%, rgba(6,6,5,0.35) 100%);
  z-index: 0;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  max-width: 19ch;
  color: var(--white);
}
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 46ch;
  margin-top: 1.6rem;
  color: #d8d8d3;
}
.hero .cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero .isotipo {
  position: absolute;
  right: clamp(20px, 6vw, 90px);
  top: clamp(20px, 8vw, 70px);
  width: min(26vw, 300px);
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
@media (max-width: 900px) {
  .hero .isotipo { display: none; }
}

/* ---------- impact banner ---------- */
section.impact-banner {
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
  background: #0a0a0a url("assets/img/mall-vacio.jpg") center / cover no-repeat;
}
.impact-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6,6,5,0.82);
  z-index: 0;
}
.impact-banner p {
  font-family: "Fivo Black";
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  max-width: 22ch;
  margin: 0 auto;
}
.impact-banner .accent { color: var(--neon); }

/* ---------- quienes somos ---------- */
section.somos-photo {
  background:
    linear-gradient(90deg, var(--cream) 0%, var(--cream) 40%, rgba(245,243,234,0.88) 52%, rgba(245,243,234,0) 72%),
    url("assets/img/quienes-somos-full.jpg") right center / cover no-repeat,
    var(--cream);
  padding: clamp(4rem, 11vw, 8rem) 0;
}
.somos-copy { max-width: 42ch; }
.somos-copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 16ch; }
.somos-copy .body-copy { margin-top: 1.5rem; font-size: 1.05rem; }
@media (max-width: 900px) {
  section.somos-photo {
    background:
      linear-gradient(180deg, var(--cream) 0%, var(--cream) 55%, rgba(245,243,234,0.85) 68%, rgba(245,243,234,0.3) 85%),
      url("assets/img/quienes-somos-full.jpg") 75% center / cover no-repeat,
      var(--cream);
  }
  .somos-copy { max-width: 100%; }
}
.pull-quote {
  margin-top: 1.8rem;
  font-family: "Fivo Black";
  text-transform: uppercase;
  font-size: 1.15rem;
  border-left: 4px solid var(--neon);
  padding-left: 1rem;
}

/* ---------- fotos ---------- */
.photo-ph {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
  border: 2px solid var(--black);
}
.photo-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.photo-strip .photo-ph { min-height: 220px; aspect-ratio: 4 / 3; }
@media (max-width: 800px) { .photo-strip { grid-template-columns: 1fr; } }

/* ---------- servicios ---------- */
.services-intro { max-width: 52ch; color: var(--gray); margin-top: 1rem; }
.services-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-top: 3rem; font-family: "Fivo Black"; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.services-grid .card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.services-grid .card:hover { transform: translateY(-4px); box-shadow: 5px 6px 0 var(--black); }
.services-grid .card .icon { width: 46px; height: 46px; color: var(--black); }
.services-grid .card .icon svg { width: 100%; height: 100%; }
.services-grid .card h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  margin-top: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-family: "Fivo Black";
}
.services-grid.complement .card { background: var(--black); color: var(--white); border-color: var(--black); }
.services-grid.complement .card .icon { color: var(--neon); }
.services-grid.complement .card:hover { box-shadow: 5px 6px 0 var(--neon); }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- proceso (visual flow) ---------- */
.process-flow {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process-flow::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--neon) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; padding: 0 0.6rem; text-align: center; }
.process-step .dot {
  width: 70px; height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--neon);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fivo Black";
  font-size: 1.3rem;
  border: 3px solid var(--black);
}
.process-step .icon { width: 22px; height: 22px; }
.process-step h3 { font-size: 1rem; margin-top: 1.1rem; text-transform: none; }
.process-step p { margin: 0.35rem 0 0; color: #b8b8b3; font-size: 0.9rem; }
@media (max-width: 900px) {
  .process-flow { grid-template-columns: 1fr; gap: 2rem; }
  .process-flow::before { display: none; }
}

/* ---------- diferenciacion (impactante) ---------- */
.quote-block { text-align: center; }
.quote-block .q1 { font-size: clamp(1.3rem, 3vw, 1.8rem); color: #8a8a86; text-decoration: line-through; text-decoration-color: rgba(221,220,0,0.6); text-decoration-thickness: 3px; }
.quote-block .q2 {
  font-family: "Fivo Black";
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  color: var(--neon);
  margin-top: 0.4rem;
  line-height: 0.98;
}
.pulse-glow { animation: pulse-glow 2.6s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 0px rgba(221,220,0,0); }
  50% { text-shadow: 0 0 28px rgba(221,220,0,0.55); }
}

/* ---------- partners ---------- */
.partners-note { color: var(--gray); font-size: 0.9rem; margin-top: 0.6rem; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}
.partner-tile {
  aspect-ratio: 3 / 2;
  border: 2px dashed rgba(0,0,0,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  background: rgba(255,255,255,0.5);
}
.partner-tile span {
  font-family: "Fivo Black";
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #56564f;
}
.partner-tile:has(img) {
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--white);
  padding: 1rem;
}
.partner-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap);
  align-items: end;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-list a { text-decoration: none; font-size: 1.1rem; }
.contact-list .label { font-family: "Fivo Black"; color: var(--black); opacity: 0.55; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 0.2rem; }

/* ---------- footer ---------- */
footer {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 0;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .closing {
  font-family: "Fivo Black";
  text-transform: uppercase;
  font-size: 1.05rem;
}
footer .fine {
  color: #8a8a86;
  font-size: 0.8rem;
}
