/* ═══════════════════════════════════════════
   wmk3.com — CSS
   Paleta: negro puro, blancos y grises
   Tipografía: Inter
═══════════════════════════════════════════ */

:root {
  --black:      #111012;
  --surface:    #0a0a0a;
  --surface2:   #111111;
  --border:     #1e1e1e;
  --border2:    #2a2a2a;
  --text:       #ededed;
  --muted:      #666666;
  --hint:       #3a3a3a;
  --green:      #22c55e;
  --radius:     8px;
  --radius-lg:  12px;
  --max-w:      900px;
  --nav-h:      56px;
  --transition: 0.18s ease;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.btn-primary:hover { background: #ddd; }
.btn-primary:active { background: #bbb; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border2);
  color: #aaa;
  background: transparent;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: #666; color: #fff; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  transition: background var(--transition);
}
.nav.scrolled { background: rgba(0, 0, 0, 0.97); }

.nav-brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.nav-brand span { color: var(--muted); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }

.nav-cta { font-size: 13px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── NAV DRAWER (mobile) ─── */
.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(0,0,0,0.97);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 190;
  backdrop-filter: blur(16px);
}
.nav-drawer[hidden] { display: none; }
.drawer-link { font-size: 15px; color: var(--muted); transition: color var(--transition); }
.drawer-link:hover { color: #fff; }
.drawer-cta { margin-top: 0.5rem; align-self: flex-start; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 80px) 2rem 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.055) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 20px;
}
.hero-muted { color: var(--muted); }

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 1.5rem;
}
.stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── SECTION BASE ─── */
.section-divider { height: 1px; background: var(--border); }

.section { padding: 88px 2rem; }

.container { max-width: var(--max-w); margin: 0 auto; }

.eyebrow {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 10px;
}
.section-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ─── STEPS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.step-card {
  background: var(--surface);
  padding: 32px 24px;
}
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.step-icon {
  width: 40px;
  height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.step-connector {
  font-size: 14px;
  color: var(--hint);
}
.step-name {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 8px;
}
.step-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── SERVICIOS ─── */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.serv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}
.serv-card:hover { border-color: var(--border2); }
.serv-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.serv-ico {
  width: 36px;
  height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.serv-title {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
}
.serv-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.serv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--muted);
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.plan-featured {
  border-color: rgba(255,255,255,0.35);
  background: var(--surface2);
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 13px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-amount {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}
.price-currency {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.plan-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.plan-feats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.plan-feats li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.plan-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}
.plan-feats .feat-dim { color: var(--hint); }
.plan-feats .feat-dim::before { color: var(--hint); content: '—'; }

.plan-cta {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border2);
  color: #aaa;
  transition: border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.plan-cta:hover { border-color: #666; color: #fff; }
.plan-cta-featured {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.plan-cta-featured:hover { background: #ddd; color: #000; border-color: #ddd; }

.pricing-note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.link-muted { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-muted:hover { color: #fff; }

/* ─── PORTFOLIO ─── */
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.port-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.port-item:hover { border-color: #555; transform: translateY(-2px); }
.port-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border-bottom: 1px solid var(--border);
}
.port-t1 { background: linear-gradient(135deg, #0d1117, #161b22); }
.port-t2 { background: linear-gradient(135deg, #0a0a0a, #1a1020); }
.port-t3 { background: linear-gradient(135deg, #080c0a, #0f1a12); }
.port-t4 { background: linear-gradient(135deg, #0c0a08, #1a1208); }
.port-t5 { background: linear-gradient(135deg, #080a10, #0f1220); }
.port-t6 { background: linear-gradient(135deg, #100808, #1a0d0d); }
.port-info { padding: 14px 16px; }
.port-name {
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 3px;
}
.port-rubro { font-size: 11px; color: var(--muted); }

/* ─── TESTIMONIOS ─── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testi-text {
  font-size: 13px;
  color: #ccc;
  line-height: 1.75;
  margin-bottom: 18px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 600; color: #ddd; }
.testi-biz { font-size: 11px; color: var(--muted); }

/* ─── CONTACTO ─── */
.contact-center { text-align: center; }
.contact-center-desc {
  text-align: center;
  max-width: 380px;
  margin: 0 auto 36px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.contact-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 40px 10px 40px;
  max-width: 580px;
  margin: 0 auto;
}
.contact-methods {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.contact-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 13px;
  color: #ccc;
  transition: border-color var(--transition), color var(--transition);
}
.contact-pill:hover { border-color: #555; color: #fff; }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; color: var(--muted); font-weight: 500; }
.form-group input,
.form-group textarea {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #e0e0e0;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--hint); }
.form-group input:focus,
.form-group textarea:focus { border-color: #555; }
.form-group input.error,
.form-group textarea.error { border-color: #c0392b; }
.form-submit { margin-top: 4px; justify-content: center; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tagline { font-size: 12px; color: var(--hint); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: #444; transition: color var(--transition); }
.footer-links a:hover { color: var(--muted); }
.footer-copy { font-size: 12px; color: var(--hint); }
.brand-muted { color: var(--muted); }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .serv-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-wrap { padding: 24px 20px; }
  .hero-stats { flex-direction: column; gap: 1.5rem; padding-top: 32px; }
  .stat-divider { width: 40px; height: 1px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 1.25rem; }
}

@media (max-width: 480px) {
  .port-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .hero { padding-top: calc(var(--nav-h) + 50px); padding-bottom: 50px; min-height: auto; }
}


.input-error {
  border-color: #B23B2E !important;
}

.field-error {
  display: block;
  font-size: 12px;
  color: #B23B2E;
  margin-top: 4px;
  font-weight: 500;
}

/* ─── PLANES: features colapsables ─── */

/* Las features extra están ocultas por defecto */
.feat-extra {
  display: none;
}

/* Cuando el plan está abierto, se muestran con animación */
.plan.open .feat-extra {
  display: list-item;
  animation: featIn 0.2s ease forwards;
}

@keyframes featIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Botón "Ver todo el plan" */
.plan-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 0 6px;
  margin-bottom: 12px;
  text-align: center;
  transition: color 0.18s ease;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.plan-toggle:hover { color: #fff; }

/* En el plan destacado el botón va en blanco */
.plan-featured .plan-toggle { color: rgba(255,255,255,0.5); }
.plan-featured .plan-toggle:hover { color: #fff; }