/* ============================================================
   DEMENTES PUBLICIDAD — styles.css
   Paleta: Negro profundo + Verde neón lima
   v=20260628
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg:         #0a0c09;
  --bg-2:       #0f1210;
  --bg-3:       #141a12;
  --bg-card:    #111410;
  --bg-green:   #0d1a09;
  --ink:        #f0f4ee;
  --ink-soft:   #9aad90;
  --ink-mute:   #506048;
  --accent:     #5be014;
  --accent-2:   #78f030;
  --accent-dark:#3d9a0a;
  --accent-glow:rgba(91, 224, 20, 0.22);
  --green-bg:   rgba(91, 224, 20, 0.08);
  --line:       rgba(91, 224, 20, 0.1);
  --line-dark:  rgba(240, 244, 238, 0.07);
  --white:      #ffffff;

  --nav-h:     68px;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ── Kicker label ───────────────────────────────────────────── */
.kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Accent text ─────────────────────────────────────────────── */
.accent { color: var(--accent); }

/* ── Divider line ─────────────────────────────────────────────── */
.divider {
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-block: 0.6rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 3.5rem);
}
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

/* ── Reveal ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }   /* MANDATORY safety */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-green {
  background: var(--accent);
  color: #0a0c09;
}
@media (hover: hover) {
  .btn-green:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
  }
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
@media (hover: hover) {
  .btn-outline:hover {
    background: var(--accent);
    color: #0a0c09;
    transform: translateY(-2px);
  }
}

.btn-ghost {
  border: 1px solid var(--line-dark);
  color: var(--ink-soft);
}
@media (hover: hover) {
  .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
}

.btn-wa {
  background: #25d366;
  color: #fff;
}
@media (hover: hover) {
  .btn-wa:hover {
    background: #1ebe5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  }
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(10, 12, 9, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

@media (max-width: 920px) { .nav-links { display: none; } }

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0; right: 100%;
  height: 1.5px;
  background: var(--accent);
  transition: right 0.3s var(--ease-out);
}
@media (hover: hover) {
  .nav-links a:hover { color: var(--accent); }
  .nav-links a:hover::after { right: 0; }
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta { padding: 0.5rem 1.1rem; font-size: 0.72rem; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
@media (max-width: 920px) { .nav-burger { display: flex; } }

.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10, 12, 9, 0.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  transform: translateY(-110%);
  transition: transform 0.38s var(--ease-out);
  z-index: 99;
  border-bottom: 1px solid var(--line);
}
.nav-mobile.is-open { transform: translateY(0); }

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border: none; }
@media (hover: hover) { .nav-mobile a:hover { color: var(--accent); } }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.35;
  filter: saturate(0.5) contrast(1.05);
}

/* Dark gradient overlay — bottom-heavy */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,12,9,0.55) 0%, rgba(10,12,9,0.2) 40%, rgba(10,12,9,0.75) 80%, rgba(10,12,9,0.98) 100%),
    linear-gradient(90deg, rgba(10,12,9,0.8) 0%, transparent 60%);
}

/* Mouse-reactive green glow */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle 700px at var(--mx, 35%) var(--my, 50%),
    rgba(91,224,20,0.09) 0%, transparent 65%);
  pointer-events: none;
  transition: background 0.12s ease;
}

/* Grain */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.028;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
  width: 100%;
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* Left text column */
.hero-text {}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s var(--ease-out) forwards;
}
.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.45s var(--ease-out) forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.75s var(--ease-out) forwards;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fadeIn 1s 1s var(--ease-out) forwards;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.2rem;
}

/* Right image/mascot column */
.hero-mascot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mascot img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 6px;
  opacity: 0;
  animation: fadeIn 1s 0.6s var(--ease-out) forwards;
  box-shadow: 0 0 80px rgba(91,224,20,0.12), 0 20px 60px rgba(0,0,0,0.5);
}

.hero-mascot-badge {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  background: var(--accent);
  color: #0a0c09;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
  opacity: 0;
  animation: fadeIn 0.8s 1.2s var(--ease-out) forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.hero-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll-text {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ── Trust bar ───────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-2);
  border-block: 1px solid var(--line-dark);
  padding-block: 1.5rem;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 720px) {
  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
}

.trust-bar-text strong {
  color: var(--accent);
}

.trust-bar-text {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.trust-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  border-left: 1px solid var(--line-dark);
}

@media (max-width: 720px) { .trust-stat { border: none; justify-content: center; } }

.trust-stat-icon { font-size: 1.5rem; }

.trust-stat-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.trust-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Clients ticker ──────────────────────────────────────────── */
.clients-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--line-dark);
  padding-block: 1rem;
  overflow: hidden;
}
.clients-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
.clients-item {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.clients-item::after { content: "◆"; color: var(--accent); font-size: 0.35rem; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.clients-item img {
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.7) opacity(0.7);
  transition: filter 0.25s;
}
@media (hover: hover) { .clients-item:hover img { filter: grayscale(0) brightness(1) opacity(1); } }

/* ── Services section ────────────────────────────────────────── */
.services {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(91,224,20,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.services-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.services-header .kicker { display: block; margin-bottom: 0.4rem; }
.services-header .divider { margin-inline: auto; }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-sub {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* Services 4-col grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .services-grid { grid-template-columns: 1fr; } }

/* Capabilities — only 4 cards, cleaner as a fixed 2x2 grid */
.capabilities .services-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 540px) { .capabilities .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  padding: 1.75rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
@media (hover: hover) {
  .service-card:hover { background: var(--bg-3); }
  .service-card:hover::after { transform: scaleX(1); }
  .service-card:hover .service-icon { color: var(--accent-2); transform: scale(1.12); }
}
.service-icon {
  font-size: 1.4rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
  transition: transform 0.25s, color 0.25s;
}
.service-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.service-desc {
  font-size: 0.76rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── About / Quiénes somos ───────────────────────────────────── */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 3rem; } }

.about-img-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-img-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
@media (hover: hover) { .about-img-wrap:hover img { transform: scale(1.04); } }

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91,224,20,0.06), transparent);
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  background: rgba(10,12,9,0.9);
  border: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.about-badge-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.about-badge-text {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.2rem;
}

.about-text .section-title { margin-block: 0.5rem 1rem; }

.about-philosophy {
  background: var(--green-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin-block: 1.5rem;
}
.about-philosophy-main {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.about-philosophy-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.about-value {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  transition: border-color 0.2s;
}
@media (hover: hover) { .about-value:hover { border-color: var(--line); } }
.about-value-icon { color: var(--accent); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.about-value-title { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.1rem; }
.about-value-desc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.5; }

/* ── Projects ────────────────────────────────────────────────── */
.projects { background: var(--bg-2); }

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .projects-header { flex-direction: column; align-items: flex-start; } }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 30px;
  grid-auto-flow: dense;
  gap: 1.25rem;
}
@media (max-width: 960px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  cursor: pointer;
  grid-row: span 5; /* ~230px, landscape photos */
}
.project-card:nth-child(1) { grid-column: span 2; grid-row: span 7; /* ~330px, featured card */ }
@media (max-width: 960px) { .project-card:nth-child(1) { grid-column: span 1; } }

/* Portrait-oriented source photos: give the CARD itself a taller,
   vertical shape instead of letterboxing the photo inside a wide one. */
.project-card.is-portrait { grid-row: span 10; /* ~480px */ }
.project-card:nth-child(1).is-portrait { grid-row: span 14; /* ~680px */ }

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-card);
  transition: transform 0.55s var(--ease-out), filter 0.4s;
}

@media (hover: hover) {
  .project-card:hover .project-img { transform: scale(1.05); filter: saturate(1.1); }
  .project-card:hover .project-overlay { opacity: 1; }
  .project-card:hover .project-arrow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,12,9,0.88) 100%);
  opacity: 0.65;
  transition: opacity 0.35s;
}

.project-arrow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0c09;
  font-size: 1.1rem;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
}
.project-cat {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.project-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.project-client {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

/* ── Philosophy (ADN AMP) section ─────────────────────────────── */
.philosophy {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: "";
  position: absolute;
  right: -15%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,224,20,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 900px) { .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; } }

.philosophy-text .section-title { margin-block: 0.5rem 1rem; }

.philosophy-headline {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-block: 0.5rem 1rem;
}
.philosophy-headline span { color: var(--accent); }

.philosophy-checks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-block: 1.5rem 2rem;
}
.philosophy-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.philosophy-check::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.philosophy-image {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.philosophy-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.philosophy-image-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: #0a0c09;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Process ─────────────────────────────────────────────────── */
.process { background: var(--bg-2); }

.process-header {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 4rem;
}
.process-header .divider { margin-inline: auto; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

@media (max-width: 760px) { .process-steps { grid-template-columns: 1fr; gap: 1.25rem; } }

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  position: relative;
  transition: border-color 0.25s;
}
@media (hover: hover) { .process-step:hover { border-color: var(--line); } }

.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.process-step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.process-step-desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.process-step-icon {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem;
  opacity: 0.4;
}

/* ── Clients logos ───────────────────────────────────────────── */
.clients-section { background: var(--bg); }

.clients-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.clients-section-header .divider { margin-inline: auto; }

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.client-logo-card {
  background: var(--bg-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 1.1rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}
@media (hover: hover) {
  .client-logo-card:hover { border-color: var(--line); color: var(--accent); }
}

.client-logo-card.has-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
}
.client-logo-card img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8) opacity(0.75);
  transition: filter 0.25s;
}
@media (hover: hover) {
  .client-logo-card.has-logo:hover img { filter: grayscale(0) brightness(1) opacity(1); }
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials { background: var(--bg-2); }

.testimonials-header {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.testimonials-header .divider { margin-inline: auto; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 1.75rem;
  position: relative;
}
.testimonial-card::before {
  content: """;
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.3;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.testimonial-role {
  font-size: 0.72rem;
  color: var(--ink-mute);
  margin-top: 0.1rem;
}
.testimonial-rating {
  color: #f5b301;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { background: var(--bg); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: flex-start;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.faq-side .section-title { margin-block: 0.5rem 1rem; }

.faq-list {
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item:last-child { border: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-card);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.faq-q:hover { background: var(--bg-3); color: var(--accent); }
.faq-item.is-open .faq-q { color: var(--accent); background: var(--bg-3); }

.faq-icon {
  flex-shrink: 0;
  width: 1.2rem; height: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent);
  transition: transform 0.3s, background 0.3s;
}
.faq-item.is-open .faq-icon {
  background: var(--accent);
  color: #0a0c09;
  transform: rotate(45deg);
}

.faq-a {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.7;
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease-out), padding 0.38s;
}
.faq-item.is-open .faq-a { max-height: 400px; padding: 0.9rem 1.4rem 1.4rem; }

/* ── Quote form ──────────────────────────────────────────────── */
.quote { background: var(--bg-2); position: relative; overflow: hidden; }

.quote::before {
  content: "";
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(91,224,20,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: flex-start;
}
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; gap: 3rem; } }

.quote-text .section-title { margin-block: 0.5rem 1rem; }

.quote-perks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-block: 1.25rem 1.75rem;
}
.quote-perk {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.quote-perk::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.quote-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 4px;
  padding: 0.9rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #25d366;
  transition: background 0.2s;
  text-decoration: none;
}
@media (hover: hover) { .quote-wa-link:hover { background: rgba(37, 211, 102, 0.2); } }

/* Form */
.form {
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 2.25rem;
}
@media (max-width: 540px) { .form { padding: 1.4rem; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 580px) { .form-grid { grid-template-columns: 1fr; } }

.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.87rem;
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-mute); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23506048' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
.form-select option { background: var(--bg-2); }

.form-textarea { resize: vertical; min-height: 110px; }

.form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #25d366;
  font-weight: 600;
}
.form-success.is-shown { display: flex; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: flex-start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-info .section-title { margin-block: 0.5rem 1.5rem; }

.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-item-icon { color: var(--accent); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.contact-item-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.2rem;
}
.contact-item-value { font-size: 0.875rem; color: var(--ink); font-weight: 500; }
.contact-item-value a { color: inherit; transition: color 0.2s; }
@media (hover: hover) { .contact-item-value a:hover { color: var(--accent); } }

.contact-social { display: flex; gap: 0.6rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
@media (hover: hover) {
  .social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--green-bg); }
}

.contact-map {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  height: 400px;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-dark);
  padding-block: 3.5rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px)  { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }

.footer-logo-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.footer-logo-name span { color: var(--accent); }
.footer-desc {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.65;
  max-width: 28ch;
  margin-block: 0.75rem 1.25rem;
}

.footer-col-title {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.79rem; color: var(--ink-soft); transition: color 0.2s; }
@media (hover: hover) { .footer-links a:hover { color: var(--accent); } }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-contact-list li {
  font-size: 0.77rem;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer-contact-list a { color: inherit; transition: color 0.2s; }
@media (hover: hover) { .footer-contact-list a:hover { color: var(--accent); } }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.7rem; color: var(--ink-mute); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.7rem; color: var(--ink-mute); transition: color 0.2s; }
@media (hover: hover) { .footer-legal a:hover { color: var(--ink-soft); } }

/* ── WhatsApp floating btn ───────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  text-decoration: none;
}
@media (hover: hover) {
  .wa-btn:hover { transform: scale(1.09); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
}
.wa-btn svg { width: 28px; height: 28px; fill: #fff; }

.wa-tooltip {
  background: var(--bg-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: none; }

/* ── Utility ─────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.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;
}

/* ── Legal pages (privacidad / términos) ────────────────────── */
.legal-hero {
  padding-block: clamp(6rem, 12vw, 8rem) 2rem;
  background: var(--bg);
}
.legal-hero .kicker { margin-bottom: 1rem; }
.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.legal-hero p { color: var(--ink-soft); font-size: 0.95rem; }
.legal-content {
  max-width: 72ch;
  margin-inline: auto;
  padding-block: 2rem 6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}
.legal-content h2 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content strong { color: var(--ink); }
