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

:root {
  --black: #0d0d0d;
  --off-white: #f5f2ed;
  --warm-gray: #b8b4ac;
  --accent: #c8a96e;
  --accent-dark: #a8874a;
  --dark-surface: #161612;
  --mid-surface: #1e1e18;
  --border: rgba(200, 169, 110, 0.2);
  --text-muted: #7a766e;
  --font-display: 'Cormorant Garamond', serif;
  --font-sans: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  cursor: default;
}

/* ── CURSOR ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.3s;
  mix-blend-mode: difference;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(13,13,13,0.95) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-image {
  display: block;
  max-height: 2.5rem;
  width: auto;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--warm-gray);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--black);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 3rem 5rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--off-white);
  margin-bottom: 2rem;
}

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

.hero-sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--warm-gray);
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s;
}

.btn-ghost::after {
  content: '→';
  transition: transform 0.3s;
}

.btn-ghost:hover { color: var(--off-white); }
.btn-ghost:hover::after { transform: translateX(4px); }

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-visual::after {
  display: none;
}

.iso-scene {
  display: none;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.whatsapp-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  animation: pulse-line 2s infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 1; width: 40px; }
  50% { opacity: 0.4; width: 20px; }
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  text-transform: uppercase;
}

/* ── SECTION COMMON ── */
section { padding: 7rem 3rem; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--off-white);
  margin-bottom: 1.5rem;
}

.section-title em { font-style: italic; color: var(--accent); }

/* ── SERVICES ── */
.services { background: var(--mid-surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 4rem;
  border: 1px solid var(--border);
}

.service-card {
  background: var(--dark-surface);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  cursor: pointer;
}

.service-card:hover { background: #1a1a14; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.service-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.service-arrow {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
  font-size: 1.2rem;
}

.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ── PROCESS ── */
.process { background: var(--black); position: relative; }

.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}

.process-desc {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.9;
  align-self: end;
}

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

.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0%, var(--border) 100%);
}

.process-step { padding: 0 2rem; position: relative; }

.step-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 2rem;
  position: relative;
}

.step-dot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 50%;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 0.75rem;
}

.step-text { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }

/* ── PROJECTS ── */
.projects { background: var(--dark-surface); }

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.projects-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(200,169,110,0.3);
  padding-bottom: 0.2rem;
  text-transform: uppercase;
  transition: border-color 0.3s;
}

.projects-link:hover { border-color: var(--accent); }

.projects-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 320px 240px;
  gap: 1px;
  background: var(--border);
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--mid-surface);
}

.project-card:first-child { grid-row: 1 / 3; }

.project-bg { position: absolute; inset: 0; transition: transform 0.6s ease; }
.project-card:hover .project-bg { transform: scale(1.04); }

.p1 .project-bg { background: linear-gradient(135deg, #1a1a14 0%, #2a2a1e 40%, #1a160e 100%); }
.p2 .project-bg { background: linear-gradient(135deg, #16161a 0%, #1e1e24 100%); }
.p3 .project-bg { background: linear-gradient(135deg, #141616 0%, #1c2020 100%); }
.p4 .project-bg { background: linear-gradient(135deg, #161412 0%, #201e18 100%); }
.p5 .project-bg { background: linear-gradient(135deg, #121416 0%, #181c20 100%); }

.project-pattern { position: absolute; inset: 0; opacity: 0.15; }

.project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 50%);
  transition: opacity 0.4s;
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.3) 100%);
}

.project-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; }

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--off-white);
  line-height: 1.2;
}

.project-card:first-child .project-name { font-size: 2.4rem; }

.project-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--warm-gray);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.project-card:hover .project-meta { opacity: 1; transform: translateY(0); }

/* ── WHY NODO ── */
.why {
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.why-visual {
  background: var(--mid-surface);
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-visual-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.why-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) saturate(1);
  z-index: 1;
}

.why-visual-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.why-visual-inner svg {
  position: relative;
  z-index: 2;
}

.why-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.why-content {
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefits { margin-top: 3rem; display: flex; flex-direction: column; gap: 2rem; }

.benefit { display: flex; gap: 1.5rem; align-items: flex-start; }

.benefit-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(200,169,110,0.2);
  line-height: 1;
  min-width: 2.5rem;
  margin-top: -0.5rem;
}

.benefit-text h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--off-white);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.benefit-text p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }

/* ── TESTIMONIAL ── */
.testimonial {
  background: var(--accent);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 20rem;
  color: rgba(0,0,0,0.08);
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--black);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(13,13,13,0.6);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ── CONTACT ── */
.contact {
  background: var(--dark-surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.contact-info {
  padding: 6rem 4rem;
  background: var(--mid-surface);
  border-right: 1px solid var(--border);
}

.contact-form { padding: 6rem 4rem; background: var(--dark-surface); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.contact-detail:last-of-type { border-bottom: none; }

.contact-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.contact-value { font-size: 0.9rem; color: var(--off-white); }

.form-group { margin-bottom: 1.5rem; }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--off-white);
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-select option { background: var(--dark-surface); }
.form-textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo-image {
  display: block;
  max-height: 2rem;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.footer-links { display: flex; gap: 2rem; list-style: none; }

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 1rem; }

.social-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}

.social-icon:hover { border-color: var(--accent); color: var(--accent); }

/* ── ANIMATE ON SCROLL ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .stats-bar { grid-template-columns: 2fr 2fr; padding: 2rem 1.5rem; }
  section { padding: 5rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-header { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .projects-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .project-card:first-child { grid-row: auto; }
  .why { grid-template-columns: 1fr; }
  .why-visual { min-height: 300px; }
  .contact { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 2rem; text-align: center; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
