/* ─────────────────────────────────────────
   novify.css — Estilos compartidos
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

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

:root {
  --bg:     #F0EBE1;
  --bg2:    #E6E0D6;
  --ink:    #111111;
  --ink2:   #1e1e1e;
  --muted:  #888070;
  --border: rgba(0,0,0,0.08);
  --radius: 18px;
  --pad:    48px;
  --padm:   22px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', sans-serif; overflow-x: hidden; }
body.locked { overflow: hidden; position: fixed; width: 100%; }

/* ─── EM UNDERLINE ─── */
em { font-style: normal; color: var(--ink); background: linear-gradient(var(--ink),var(--ink)) no-repeat left bottom; background-size: 0% 9px; padding-bottom: 3px; transition: background-size .75s cubic-bezier(.16,1,.3,1); }
em.play { background-size: 100% 9px; }
.em-light em { background-image: linear-gradient(var(--bg),var(--bg)); color: var(--bg); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  background: rgba(240,235,225,.84);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 18px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--bg); padding: 10px 22px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, transform .15s; }
.nav-cta:hover { background: var(--ink2); transform: scale(1.03); }

/* ─── HAMBURGER ─── */
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 32px; height: 32px; padding: 3px; background: none; border: none; cursor: pointer; }
.nav-burger span { display: block; height: 1.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; transform-origin: center; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mob-menu {
  display: none; position: fixed; inset: 0; z-index: 10001;
  background: var(--bg);
  flex-direction: column; justify-content: center;
  padding: 80px var(--padm) 48px;
  opacity: 0; pointer-events: none;
  transition: opacity .32s ease;
}
.mob-menu.open { opacity: 1; pointer-events: all; }

/* Close button inside the menu */
.mob-close {
  position: absolute; top: 18px; right: var(--padm);
  height: 40px; background: rgba(0,0,0,.07); border: 1px solid var(--border);
  border-radius: 100px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 0 12px;
}
.mob-close-x {
  position: relative; width: 16px; height: 16px; flex-shrink: 0;
}
.mob-close-x span {
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
}
.mob-close-x span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.mob-close-x span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }
.mob-close-label {
  font-size: 13px; font-weight: 600; font-family: inherit; color: var(--ink); line-height: 1;
}

.mob-nav { display: flex; flex-direction: column; }
.mob-link {
  font-size: clamp(2.6rem,12vw,5rem); font-weight: 900;
  letter-spacing: -2px; line-height: 1.18;
  color: var(--ink); text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: left;
  width: 100%;
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s ease, transform .4s ease, color .15s;
  border-bottom: 1px solid var(--border); padding: 12px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.mob-link:first-child { border-top: 1px solid var(--border); }
.mob-menu.open .mob-link           { opacity: 1; transform: translateY(0); }
.mob-menu.open .mob-link:nth-child(1) { transition-delay: .06s; }
.mob-menu.open .mob-link:nth-child(2) { transition-delay: .12s; }
.mob-menu.open .mob-link:nth-child(4) { transition-delay: .18s; }
.mob-menu.open .mob-link:nth-child(5) { transition-delay: .24s; }
.mob-link:hover { color: var(--muted); }

/* Servicios toggle arrow */
.mob-toggle-arrow {
  font-size: 22px; font-weight: 300; line-height: 1;
  transition: transform .3s ease; display: block;
}
.mob-link.open .mob-toggle-arrow { transform: rotate(180deg); }

/* Services submenu */
.mob-submenu {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.mob-submenu.open { max-height: 500px; }
.mob-sub-link {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  padding: 10px 0 10px 4px;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mob-sub-link:hover { color: var(--ink); }

.mob-bottom { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; opacity: 0; transform: translateY(12px); transition: opacity .4s .32s ease, transform .4s .32s ease; }
.mob-menu.open .mob-bottom { opacity: 1; transform: translateY(0); }
.mob-cta { background: var(--ink); color: var(--bg); padding: 15px 30px; border-radius: 100px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .2s; }
.mob-cta:hover { background: #333; }
.mob-email { font-size: 13px; color: var(--muted); text-decoration: none; }

/* ─── LABELS ─── */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.section-label-light { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(240,235,225,.4); margin-bottom: 12px; display: block; }

/* ─── BUTTONS ─── */
.btn-primary { background: var(--ink); color: var(--bg); padding: 15px 32px; border-radius: 100px; font-size: 15px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; transition: background .2s, transform .15s; }
.btn-primary:hover { background: #333; transform: scale(1.03); }
.btn-ghost { color: var(--ink); padding: 15px 32px; border-radius: 100px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1.5px solid rgba(0,0,0,.18); display: inline-flex; align-items: center; transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: rgba(0,0,0,.4); background: rgba(0,0,0,.04); }
.btn-outline-light { display: inline-flex; align-items: center; gap: 8px; color: var(--bg); padding: 14px 28px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1.5px solid rgba(240,235,225,.22); transition: border-color .2s, background .2s; }
.btn-outline-light:hover { border-color: rgba(240,235,225,.55); background: rgba(240,235,225,.07); }
.btn-accent { background: var(--bg); color: var(--ink); padding: 17px 38px; border-radius: 100px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; transition: transform .15s, background .2s; }
.btn-accent:hover { background: #ddd8ce; transform: scale(1.03); }

/* ─── PAGE HERO (páginas de servicio) ─── */
.page-hero { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; padding: 140px var(--pad) 80px; position: relative; border-bottom: 1px solid var(--border); }
.page-hero-back { font-size: 13px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; opacity: 0; animation: fadeUp .6s .1s forwards; transition: color .2s; }
.page-hero-back:hover { color: var(--ink); }
.page-hero-label { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; opacity: 0; animation: fadeUp .6s .2s forwards; }
.page-hero-title { font-size: clamp(44px,6.5vw,96px); font-weight: 900; line-height: 1; letter-spacing: clamp(-1.5px,-.25vw,-3px); max-width: 860px; opacity: 0; animation: fadeUp .7s .35s forwards; }
.page-hero-sub { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 500px; line-height: 1.65; opacity: 0; animation: fadeUp .7s .5s forwards; }
.page-hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp .7s .65s forwards; }

/* ─── FEATURE GRID ─── */
.features-section { padding: 90px var(--pad); }
.section-intro { margin-bottom: 52px; }
.section-title { font-size: clamp(28px,3.5vw,48px); font-weight: 900; letter-spacing: -1.8px; line-height: 1.05; }
.section-desc { margin-top: 16px; font-size: 16px; color: var(--muted); max-width: 460px; line-height: 1.65; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.feature-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; transition: border-color .2s, transform .2s; }
.feature-card:hover { border-color: rgba(0,0,0,.2); transform: translateY(-2px); }
.feature-icon { width: 46px; height: 46px; background: rgba(0,0,0,.06); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 21px; height: 21px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-name { font-size: 16px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
.feature-text { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── DARK SECTION ─── */
.dark-section { background: var(--ink); color: var(--bg); padding: 90px var(--pad); }
.dark-section .section-label { color: rgba(240,235,225,.4); }
.dark-title { font-size: clamp(28px,3.8vw,52px); font-weight: 900; letter-spacing: -2px; line-height: 1.05; color: var(--bg); margin-bottom: 16px; }
.dark-sub { font-size: 16px; color: rgba(240,235,225,.5); line-height: 1.65; max-width: 480px; margin-bottom: 36px; }
.dark-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 52px; }
.dark-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 24px 22px; }
.dark-item-name { font-size: 15px; font-weight: 700; color: var(--bg); margin-bottom: 6px; }
.dark-item-text { font-size: 13px; color: rgba(240,235,225,.45); line-height: 1.6; }

/* ─── PROCESS STEPS ─── */
.steps-section { padding: 90px var(--pad); border-top: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 52px; }
.step-item { padding: 28px 26px; border-left: 1px solid var(--border); }
.step-item:first-child { border-left: none; }
.step-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--muted); margin-bottom: 16px; }
.step-title { font-size: 17px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 10px; }
.step-text { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── CTA SECTION ─── */
.cta-section { margin: 0 var(--pad) 90px; background: var(--ink); border-radius: 22px; padding: 72px 64px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-left { max-width: 500px; }
.cta-label { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(240,235,225,.35); margin-bottom: 14px; }
.cta-title { font-size: clamp(26px,3.5vw,52px); font-weight: 900; letter-spacing: -2px; color: var(--bg); line-height: 1.05; }
.cta-sub { margin-top: 14px; font-size: 15px; color: rgba(240,235,225,.45); }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 36px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo { font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink  { 0%,80%,100% { opacity:.3; transform:scale(.8); } 40% { opacity:1; transform:scale(1); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  :root { --pad: var(--padm); }
  nav { padding: 16px var(--padm); }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mob-menu { display: flex; }
  .page-hero { padding: 110px var(--padm) 56px; min-height: auto; }
  .features-section, .dark-section, .steps-section { padding: 64px var(--padm); }
  .features-grid, .dark-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-item { border-top: 1px solid var(--border); }
  .step-item:nth-child(1), .step-item:nth-child(2) { border-top: none; }
  .step-item:nth-child(odd) { border-left: none; }
  .cta-section { margin: 0 var(--padm) 64px; padding: 48px 28px; flex-direction: column; align-items: flex-start; }
  footer { padding: 28px var(--padm); flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 500px) {
  .page-hero-title { letter-spacing: -1.5px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-item { border-left: none !important; border-top: 1px solid var(--border) !important; }
  .step-item:first-child { border-top: none !important; }
}
