/* =============================================
   NODO DIGITAL — styles.css  (v2 — minimal)
   ============================================= */

:root {
  --bg:       #111816;
  --bg2:      #161e1a;
  --verde:    #a8d5b5;
  --verde2:   #2D5C4A;
  --blanco:   #f0f5f2;
  --gris:     #6b8078;
  --gris2:    #2a3830;
  --linea:    rgba(168,213,181,0.1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --max:      1200px;
  --px:       clamp(1.5rem, 5vw, 5rem);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--blanco);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ── UTILS ── */
.label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--verde);
  display: block;
  margin-bottom: 1rem;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--verde);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #c8ecd3;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168,213,181,0.2);
}
.btn-primary.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gris);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.25s;
  padding-bottom: 1px;
}
.btn-ghost:hover {
  color: var(--blanco);
  border-bottom-color: var(--verde);
}

/* ── FIELDS ── */
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--linea);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(168,213,181,0.35);
  background: rgba(168,213,181,0.03);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}

/* =============================================
   NAV
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--px);
  background: rgba(17,24,22,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--linea);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blanco);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--gris);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--blanco); }

.nav-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--verde);
  text-decoration: none;
  border: 1px solid rgba(168,213,181,0.25);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  transition: all 0.25s;
  letter-spacing: 0.01em;
}
.nav-cta:hover {
  background: rgba(168,213,181,0.08);
  border-color: var(--verde);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--blanco);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: rgba(17,24,22,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--linea);
  flex-direction: column;
  padding: 1.2rem var(--px);
  gap: 0;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--gris);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--linea);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--verde); }

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem var(--px) 5rem;
  position: relative;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,92,74,0.25) 0%, transparent 65%);
  top: -100px; right: -150px;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 2rem;
  animation: fadeUp 0.9s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
  max-width: 700px;
  animation: fadeUp 0.9s 0.1s ease both;
}
.hero-title em {
  font-style: italic;
  color: var(--verde);
}

.hero-desc {
  font-size: 1rem;
  color: var(--gris);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--linea);
  animation: fadeUp 0.9s 0.4s ease both;
  width: fit-content;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 2.5rem 0 0;
}
.stat:first-child { padding-left: 0; }
.stat-n {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1;
}
.stat-l {
  font-size: 0.72rem;
  color: var(--gris);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--linea);
  margin: 0 2.5rem 0 0;
}

/* =============================================
   SERVICIOS
   ============================================= */
#servicios {
  padding: 8rem var(--px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-desc {
  color: var(--gris);
  font-size: 0.95rem;
  margin-top: 0.8rem;
  max-width: 440px;
}

/* Lista de servicios — estilo editorial */
.svc-list { display: flex; flex-direction: column; }

.svc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--linea);
  transition: background 0.2s;
}
.svc-row:first-child { border-top: 1px solid var(--linea); }

.svc-row:hover { background: rgba(168,213,181,0.02); }

.svc-left {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}

.svc-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--verde);
  opacity: 0.6;
  min-width: 24px;
  margin-top: 0.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.svc-left h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.svc-left p {
  font-size: 0.85rem;
  color: var(--gris);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 0.8rem;
}

.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.svc-chips span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--verde);
  border: 1px solid rgba(168,213,181,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.svc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 140px;
  padding-top: 0.2rem;
}
.svc-desde {
  font-size: 0.7rem;
  color: var(--gris);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.svc-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--verde);
  line-height: 1;
}
.svc-cop {
  font-size: 0.72rem;
  color: var(--gris);
  margin-top: 0.2rem;
}

/* =============================================
   PROCESO
   ============================================= */
#proceso {
  padding: 8rem var(--px);
  background: var(--bg2);
}
#proceso .section-header,
#proceso .proceso-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--linea);
  border-radius: 16px;
  overflow: hidden;
}

.proceso-item {
  padding: 2.2rem 2rem;
  border-right: 1px solid var(--linea);
  transition: background 0.3s;
}
.proceso-item:last-child { border-right: none; }
.proceso-item:hover { background: rgba(168,213,181,0.03); }

.proceso-n {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(168,213,181,0.15);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.proceso-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.proceso-item p {
  font-size: 0.83rem;
  color: var(--gris);
  line-height: 1.6;
}

/* =============================================
   COTIZADOR
   ============================================= */
#cotizador {
  padding: 8rem var(--px);
  max-width: var(--max);
  margin: 0 auto;
}

.cot-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

.cot-form { display: flex; flex-direction: column; gap: 2.5rem; }

.cot-block {}

.cot-step {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

/* Service selector */
.svc-sel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--linea);
  border-radius: 12px;
  overflow: hidden;
}

.sel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--linea);
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.sel-item:last-child { border-bottom: none; }
.sel-item:hover { background: rgba(168,213,181,0.03); }
.sel-item.on { background: rgba(168,213,181,0.05); }

.sel-check {
  width: 16px; height: 16px;
  border: 1.5px solid var(--gris2);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}
.sel-item.on .sel-check {
  background: var(--verde);
  border-color: var(--verde);
}
.sel-check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.15s;
}
.sel-item.on .sel-check::after { opacity: 1; }

.sel-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sel-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blanco);
}
.sel-price {
  font-size: 0.78rem;
  color: var(--verde);
  font-weight: 500;
}

/* Addons */
.add-sel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.add-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--gris);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.add-item span { color: var(--verde); margin-left: auto; font-size: 0.75rem; }
.add-item:hover { border-color: rgba(168,213,181,0.25); color: var(--blanco); }
.add-item.on { border-color: rgba(168,213,181,0.35); color: var(--blanco); background: rgba(168,213,181,0.04); }

.add-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--gris);
  flex-shrink: 0;
  transition: all 0.2s;
}
.add-item.on .add-dot { background: var(--verde); border-color: var(--verde); }

/* RESUMEN */
.cot-resumen { position: sticky; top: 5.5rem; }

.res-box {
  border: 1px solid var(--linea);
  border-radius: 16px;
  padding: 1.8rem;
  background: rgba(45,92,74,0.06);
}

.res-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

#res-lista { min-height: 60px; }

.res-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(168,213,181,0.06);
  font-size: 0.82rem;
}
.res-line .n { color: var(--gris); flex: 1; }
.res-line .p { color: var(--verde); font-weight: 500; white-space: nowrap; }

.res-empty {
  font-size: 0.82rem;
  color: var(--gris);
  line-height: 1.7;
  padding: 0.5rem 0;
}

.res-total-wrap { margin-top: 1rem; }
.res-divider { height: 1px; background: var(--linea); margin-bottom: 1rem; }

.res-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.res-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gris);
}
.res-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--verde);
  line-height: 1;
}
.res-sub {
  font-size: 0.72rem;
  color: var(--gris);
  text-align: right;
  margin-top: 0.2rem;
}

.res-nota {
  font-size: 0.72rem;
  color: var(--gris);
  margin-top: 1rem;
  line-height: 1.5;
  opacity: 0.7;
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.4rem;
  padding: 0.85rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.2);
}
.btn-wa.off {
  background: rgba(255,255,255,0.04);
  color: var(--gris);
  cursor: default;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* =============================================
   CONTACTO
   ============================================= */
#contacto {
  padding: 8rem var(--px);
  background: var(--bg2);
}

.contacto-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contacto-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.8rem;
}
.contacto-left > p {
  color: var(--gris);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.contact-links { display: flex; flex-direction: column; gap: 0; }

.c-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--linea);
  transition: all 0.2s;
  color: var(--blanco);
}
.c-link:first-child { border-top: 1px solid var(--linea); }
.c-link:hover { padding-left: 0.4rem; }

.c-icon {
  font-size: 0.9rem;
  color: var(--verde);
  transition: transform 0.2s;
}
.c-link:hover .c-icon { transform: translate(2px,-2px); }

.c-name {
  display: block;
  font-size: 0.8rem;
  color: var(--gris);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.c-val {
  display: block;
  font-size: 0.9rem;
  color: var(--blanco);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  padding: 2rem var(--px);
  border-top: 1px solid var(--linea);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gris);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blanco);
  text-decoration: none;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .cot-wrap { grid-template-columns: 1fr; }
  .cot-resumen { position: static; }
  .proceso-grid { grid-template-columns: 1fr 1fr; }
  .proceso-item:nth-child(2) { border-right: none; }
  .proceso-item:nth-child(3) { border-top: 1px solid var(--linea); }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .contacto-inner { grid-template-columns: 1fr; gap: 3rem; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-right { align-items: flex-start; flex-direction: row; gap: 0.5rem; align-items: baseline; }
}

@media (max-width: 600px) {
  .proceso-grid { grid-template-columns: 1fr; }
  .proceso-item { border-right: none !important; border-top: 1px solid var(--linea); }
  .proceso-item:first-child { border-top: none; }
  .add-sel { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-sep { display: none; }
  footer { flex-direction: column; gap: 0.8rem; text-align: center; }
}