/* ============================================================
   ecuadorfreelance.com — Sistema visual (v2, dirección de arte)
   Marca: petróleo/teal (confianza) + coral (acción).
   Fraunces (display) + Inter (texto). Luz cálida, humana, pro.
   ============================================================ */
:root {
  /* Neutros (70%): blanco y gris muy claro con leve matiz azul */
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --ink: #171a26;
  --ink-soft: #525670;
  --ink-muted: #676d82; /* AA sobre fondo claro (contraste ~5:1) */
  --line: #e3e9f2;
  --hover: #eef2f9;

  /* Marca azul (identidad, 20%) */
  --brand: #0051ff;
  --brand-ink: #0041c2;
  --brand-soft: #dce7ff;
  --accent: var(--brand);          /* compat con páginas existentes */
  --accent-ink: var(--brand-ink);
  --accent-soft: var(--brand-soft);

  /* Azul (identidad secundaria) */
  --blue: #2563eb;
  --blue-ink: #1d4ed8;
  --blue-soft: #e3ecfd;

  /* Acento verde lima (10%) — destacados e indicadores; texto oscuro para contraste */
  --lime: #a3e635;
  --lime-mid: #84cc16;
  --lime-ink: #4d7c0f;
  --lime-soft: #eefbd0;

  /* Acción principal = azul (texto blanco, accesible WCAG AA) */
  --cta: #0051ff;
  --cta-ink: #0041c2;
  --cta-soft: #dce7ff;

  /* Semánticos */
  --pro: #4d7c0f;
  --pro-soft: #eefbd0;
  --gold: #0051ff;

  --shadow-sm: 0 1px 2px rgba(23,24,29,.05);
  --shadow: 0 2px 6px rgba(23,24,29,.05), 0 14px 34px -18px rgba(23,24,29,.22);
  --shadow-lg: 0 30px 70px -30px rgba(15,125,117,.35);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --bad: #c0392b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  /* Degradado de marca azul → blanco en la parte superior, IGUAL en todas las pantallas
     (empieza bajo el nav translúcido). Única definición: misma intensidad y largo en todo el sitio. */
  background-color: var(--bg);
  background-image: linear-gradient(180deg,
      color-mix(in srgb, var(--brand) 34%, #fff) 0,
      color-mix(in srgb, var(--brand) 20%, #fff) 300px,
      color-mix(in srgb, var(--brand) 8%, #fff) 620px,
      var(--bg) 920px);
  background-repeat: no-repeat;
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s3); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-block; font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; }

/* Campos de formulario: solo el recuadro del texto en blanco puro (sin tocar el fondo). */
body .campo input, body .campo select, body .campo textarea,
body input[type="text"], body input[type="email"], body input[type="password"],
body input[type="tel"], body input[type="search"], body input[type="number"], body input[type="url"] {
  background: #ffffff;
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-family: inherit; font-weight: 600; font-size: .97rem;
  cursor: pointer; min-height: 48px; line-height: 1.1;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s, color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--cta); border-color: var(--cta); color: #fff; box-shadow: 0 10px 24px -12px var(--cta); }
.btn--accent:hover { background: var(--cta-ink); border-color: var(--cta-ink); box-shadow: 0 16px 30px -12px var(--cta); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--hover); border-color: var(--ink-muted); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 9px 18px; min-height: 40px; font-size: .88rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); max-width: var(--container); margin: 0 auto; padding: 13px var(--s3); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.nav-brand .dot { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--blue)); display: inline-grid; place-items: center; box-shadow: 0 6px 16px -6px var(--brand); position: relative; flex: none; }
.nav-brand .dot::after { content: ""; width: 11px; height: 11px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

/* Marca centrada arriba (logo oficial EF) */
.nav--center .nav-inner { flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; padding: 14px var(--s3) 11px; }
.brandmark { display: block; line-height: 0; }
.brand-logo { height: 101px; width: auto; display: block; max-width: 100%; }
.nav--center .nav-links { justify-content: center; flex-wrap: wrap; gap: 4px; }
.nav--center .nav-toggle { position: absolute; right: var(--s3); top: 32px; }
@media (max-width: 860px) { .brand-logo { height: 54px; } }
.nav-links { display: flex; align-items: center; gap: 3px; }
.nav-links a { padding: 9px 13px; border-radius: 9px; font-size: .93rem; color: var(--ink-soft); font-weight: 500; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--hover); color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; position: relative; }
.nav-links a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--brand); }
/* El botón "Publica tu perfil" no lleva subrayado aunque esté activo. */
.nav-links a.btn--accent.active::after { display: none; }
.nav-links a.btn--accent { color: #fff; }
.nav-links a.btn--accent:hover { background: #fff; color: var(--brand); border-color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }
/* Buscador del encabezado (ícono de lupa junto a «Inicio») */
.nav-search-btn { background: none; border: 0; cursor: pointer; color: var(--ink-soft); padding: 8px 11px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.nav-search-btn:hover { background: var(--hover); color: var(--ink); }
.nav-search-btn svg { width: 20px; height: 20px; display: block; }
.nav-search-bar { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 12px var(--s3); display: none; z-index: 60; }
.nav-search-bar.open { display: block; }
.nav-search-bar form { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; }
.nav-search-bar input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .95rem; background: var(--bg); color: var(--ink); }
.nav-search-bar input:focus { outline: 2px solid var(--brand-soft, #e8f0ff); border-color: var(--brand); }
.nav-search-bar button { padding: 11px 20px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap; }

/* ---------- Hero ---------- */
/* Franja con degradado azul de marca → blanco, desde debajo del nav hasta «Freelancers destacados».
   Envuelve el hero + el primer banner; suave, sin bloque sólido. */
/* El degradado ahora vive en `body` (idéntico en todas las pantallas);
   .hero-grad solo conserva el espaciado con «Freelancers destacados». */
.hero-grad + section { padding-top: 0 !important; }
/* Banda «Nos renovamos»: espaciado equidistante. Arriba el hero ya aporta ~72px,
   así que sumamos 24px para igualar los 96px que la sección siguiente aporta abajo. */
#bloqueNosRenovamos { padding-top: 24px !important; padding-bottom: 0 !important; }
.hero { position: relative; padding: var(--s5) 0 var(--s5); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 55% at 88% 2%, var(--brand-soft), transparent 60%),
    radial-gradient(40% 45% at 72% 60%, var(--lime-soft), transparent 60%),
    radial-gradient(45% 45% at 4% 0%, var(--blue-soft), transparent 55%); }
/* Textura de puntos de marca (sutil, concentrada a la derecha) */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(var(--line) 1.1px, transparent 1.2px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(65% 60% at 74% 32%, #000, transparent 72%);
  mask-image: radial-gradient(65% 60% at 74% 32%, #000, transparent 72%); }
.hero .eyebrow { margin-bottom: 16px; }
.hero h1 { margin-bottom: 18px; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Chips "Popular:" bajo el buscador */
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .86rem; }
.hero-popular .lbl { color: var(--ink-muted); font-weight: 600; }
.hero-popular a { padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft); font-weight: 500; transition: border-color .15s, color .15s, background .15s; }
.hero-popular a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* Panel visual del hero (composición moderna, sin foto) */
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-visual .panel { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1.02;
  border-radius: 28px; background: linear-gradient(150deg, var(--brand), var(--blue));
  box-shadow: 0 40px 80px -36px rgba(109,40,217,.55); overflow: hidden; }
.hero-visual .panel::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: var(--lime); opacity: .9; bottom: -54px; right: -40px; filter: blur(2px); }
.hero-visual .panel::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.3px); background-size: 22px 22px; opacity: .5; }
.hero-visual .panel img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 38% center; display: block; }
.hero-visual .mono { position: absolute; top: 40px; left: 40px; right: 40px; display: grid; gap: 12px; }
.hero-visual .mono .line { height: 13px; border-radius: 7px; background: rgba(255,255,255,.3); }
.hero-visual .mono .line.s { width: 55%; } .hero-visual .mono .line.m { width: 80%; }
.hero-card { position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 16px; display: flex; align-items: center; gap: 11px; z-index: 2; animation: flotar 6s ease-in-out infinite; }
.hero-card .hc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.hero-card .hc-t { font-weight: 700; font-size: .9rem; line-height: 1.1; }
.hero-card .hc-s { font-size: .76rem; color: var(--ink-muted); }
.hero-card.c1 { top: 26px; right: -6px; } .hero-card.c1 .hc-ic { background: var(--brand); }
.hero-card.c2 { bottom: 34px; left: -14px; animation-delay: -3s; } .hero-card.c2 .hc-ic { background: var(--lime-ink); }
.hero-card.c3 { bottom: 120px; right: -18px; animation-delay: -1.5s; } .hero-card.c3 .hc-ic { background: var(--blue); }

/* Buscador protagonista del hero */
.hero-search { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px; max-width: 560px; box-shadow: var(--shadow); margin-top: 6px; }
.hero-search select, .hero-search input { border: 0; background: none; font: inherit; padding: 10px 14px; flex: 1; min-width: 0; color: var(--ink); }
.hero-search select { border-right: 1px solid var(--line); max-width: 42%; }
.hero-search input:focus, .hero-search select:focus { outline: none; }
.hero-search button { flex: none; }

/* Estadísticas (ícono + número + etiqueta) */
.stats { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.stat { display: flex; align-items: center; gap: 11px; }
.st-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); }
.st-ic.lime { background: var(--lime-soft); color: var(--lime-ink); }
.st-ic.blue { background: var(--blue-soft); color: var(--blue); }
.stat b { display: block; font-family: var(--serif); font-size: 1.85rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat span { font-size: .84rem; color: var(--ink-muted); }

@keyframes flotar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Secciones ---------- */
.section { padding: var(--s6) 0; }
.section--soft { background: var(--surface-2); }
.section--ink { background: var(--ink); color: #fff; }
.section-header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.section-header p { color: var(--ink-soft); margin: 10px 0 0; }
.section--ink .section-header p { color: rgba(255,255,255,.7); }

/* Tarjetas de valor */
.value-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); }
.value-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.value-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--brand); opacity: 0; transition: opacity .2s; }
.value-card:nth-child(2)::before { background: var(--blue); } .value-card:nth-child(3)::before { background: var(--lime-mid); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card:hover::before { opacity: 1; }
.value-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--brand-soft); margin-bottom: 14px; }
.value-card:nth-child(2) .ic { background: var(--blue-soft); }
.value-card:nth-child(3) .ic { background: var(--lime-soft); }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Categorías (mosaico vertical: ícono arriba, etiqueta abajo) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s, transform .18s, box-shadow .18s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; transition: background .18s, color .18s; }
.cat-card:nth-child(3n+2) .ic { background: var(--lime-soft); color: var(--lime-ink); }
.cat-card:nth-child(3n) .ic { background: var(--blue-soft); color: var(--blue); }
.cat-card:hover .ic { background: var(--brand); color: #fff; }
.cat-card:nth-child(3n+2):hover .ic { background: var(--lime-ink); }
.cat-card:nth-child(3n):hover .ic { background: var(--blue); }
.cat-card .nm { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.cat-card .ct { font-size: .76rem; color: var(--ink-muted); }

/* Cómo funciona (4 pasos con ícono circular) */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); position: relative; }
.pasos::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 0; }
.paso { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.paso-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 14px; box-shadow: 0 10px 22px -10px rgba(26,23,38,.4); }
.paso-ic.v { background: var(--brand); } .paso-ic.b { background: var(--blue); }
.paso-ic.l { background: var(--lime-ink); }
.paso-n { position: absolute; top: -6px; left: 50%; margin-left: 14px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .74rem; font-weight: 700; display: grid; place-items: center; }
.paso h3 { font-size: 1.05rem; margin-bottom: 6px; }
.paso p { font-size: .88rem; color: var(--ink-soft); margin: 0; max-width: 24ch; }

/* Tarjetas de freelancer */
.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s2); }
.free-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .18s, box-shadow .18s, transform .18s; display: flex; flex-direction: column; min-height: 212px; color: inherit; }
.free-foot { margin-top: auto; padding-top: 10px; }
.free-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.free-card.pro { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: linear-gradient(180deg, #f3f8fd, var(--surface)); }
.free-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; font-family: var(--serif); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.free-card .nm { font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-line { display: flex; align-items: center; min-width: 0; }
.nm-line .nm { min-width: 0; }
.verif-check { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 700; margin-left: 4px; flex: none; }
.free-card .role { font-size: .82rem; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.free-head > div { min-width: 0; }
.badge { font-size: .66rem; font-weight: 700; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }
.badge.pro { background: linear-gradient(135deg, var(--brand), var(--blue)); color: #fff; }
.badge.empresa { background: linear-gradient(135deg, var(--brand-ink, #0041c2), #1a1d2e); color: #fff; }
.badge.gratis { background: var(--hover); color: var(--ink-muted); }
.free-meta { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.free-locked { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--ink-muted); }

/* Banda CTA de conversión */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--blue)); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; width: 280px; height: 280px; background: radial-gradient(circle, var(--lime), transparent 68%); opacity: .55; top: -90px; right: -70px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto 12px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 auto 24px; }
.cta-band .btn--accent { background: var(--lime); border-color: var(--lime); color: var(--ink); box-shadow: 0 12px 28px -10px rgba(163,230,53,.6); }
.cta-band .btn--accent:hover { background: var(--lime-mid); border-color: var(--lime-mid); }

/* Teaser de planes */
.planes-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); align-items: start; }
.plan-box.empresa { border: 2px solid var(--brand-ink, #0041c2); position: relative; background: linear-gradient(180deg, #eef4fd, #fff); }
.plan-box.empresa::before { content: "Empresas / Agencias"; position: absolute; top: -12px; left: 30px; background: var(--brand-ink, #0041c2); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }
.plan-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: var(--surface); }
.plan-box.pro { border: 2px solid var(--brand); position: relative; background: linear-gradient(180deg, #f3f8fd, #fff); }
.plan-box.pro::before { content: "Recomendado"; position: absolute; top: -12px; left: 30px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }
.plan-box h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan-box .price { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; }
.plan-box .price small { font-size: .9rem; color: var(--ink-muted); font-family: var(--sans); font-weight: 400; }
.plan-box ul { list-style: none; padding: 0; margin: 16px 0; font-size: .93rem; color: var(--ink-soft); }
.plan-box li { padding: 6px 0 6px 26px; position: relative; }
.plan-box li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* ---------- Micro-interacciones y estados vacíos (pulido) ---------- */
.proj { transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, border-color .18s; }
.proj:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.chip { transition: background .15s, color .15s; }
/* Enlaces de texto con subrayado suave al pasar */
.lead a, p a:not(.btn) { transition: color .15s; }

/* Estado vacío reutilizable: ícono + título + texto + acción */
.estado-vacio { text-align: center; padding: var(--s5) var(--s3); color: var(--ink-muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.estado-vacio .ev-ic { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }
.estado-vacio h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin: 0 0 6px; font-weight: 600; }
.estado-vacio p { margin: 0 auto; max-width: 44ch; }
.estado-vacio .btn { margin-top: 16px; }

/* ---------- Footer (azul, texto claro) ---------- */
.footer { background: linear-gradient(135deg, #22252c, #15171c); color: rgba(255,255,255,.85); padding: var(--s5) 0 var(--s3); }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer-brand .dot { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.18); display: inline-grid; place-items: center; }
.footer-brand .dot::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); }
/* El SVG del footer tiene ~30% de espacio en blanco arriba; lo subimos para que el
   borde superior VISIBLE del logo quede alineado con la línea de los títulos del footer. */
.footer-logo { height: 72px; width: auto; display: block; margin-top: -14px; }
.footer p { color: rgba(255,255,255,.75); max-width: 34ch; font-size: .92rem; margin-top: 12px; }
.footer-cols { display: flex; gap: var(--s5); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6); margin: 0 0 12px; }
.footer-col a { display: block; color: rgba(255,255,255,.88); font-size: .92rem; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.22); margin-top: var(--s4); padding-top: var(--s3); font-size: .82rem; color: rgba(255,255,255,.72); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
/* En pantallas pequeñas y medianas, todo el footer va centrado */
@media (max-width: 860px) {
  .footer-top { justify-content: center; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer p { max-width: none; margin-left: auto; margin-right: auto; }
  .footer-cols { justify-content: center; gap: var(--s4) var(--s5); }
  .footer-col { text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Paginación ---------- */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: var(--s4); }
.pagination button { min-width: 42px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; font-family: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; font-variant-numeric: tabular-nums; }
.pagination button:hover:not(:disabled) { border-color: var(--brand); }
.pagination button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .dots { color: var(--ink-muted); padding: 0 4px; }

/* Chips de filtros activos */
.chips-activos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s2); align-items: center; }
.chip-f { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 999px; padding: 5px 10px; font-size: .82rem; font-weight: 500; }
.chip-f button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; }
.chip-limpiar { background: none; border: 0; color: var(--ink-muted); font-size: .82rem; cursor: pointer; text-decoration: underline; }
.dir-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s2); }
.dir-toolbar .orden { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-muted); }
.dir-toolbar select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: .88rem; background: var(--surface); }

/* Banda de confianza */
.trust-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s4); box-shadow: var(--shadow-sm); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .tic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.trust-item:nth-child(2) .tic { background: var(--lime-soft); color: var(--lime-ink); }
.trust-item:nth-child(3) .tic { background: var(--blue-soft); color: var(--blue); }
.trust-item:nth-child(4) .tic { background: var(--brand-soft); color: var(--brand); }
.trust-item h4 { margin: 0 0 3px; font-family: var(--sans); font-size: .96rem; }
.trust-item p { margin: 0; font-size: .85rem; color: var(--ink-soft); }

/* Iconos de los pasos */
.step-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); color: #fff; margin-bottom: 4px; }

/* Pictogramas */
.value-card .ic { color: var(--brand); }
.value-card:nth-child(2) .ic { color: var(--blue); }
.value-card:nth-child(3) .ic { color: var(--lime-ink); }
.ic svg { display: block; }
.free-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-muted); margin-top: 8px; }
.free-rating-n { color: var(--ink-muted); font-size: .76rem; }
.hero-search button svg { margin-right: 2px; }

/* Aviso de estructura (temporal) */
.aviso-dev { background: #fff8e1; border-bottom: 1px solid #f0d000; text-align: center; font-size: .82rem; padding: 6px; color: #6b5900; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-card { animation: none; } .btn:hover { transform: none; } }

/* ---------- Espacios de publicidad ---------- */
.ad-zone { margin: 14px 0; }                     /* para .ad-zone que es div (p. ej. /proyectos) */
section.ad-zone { padding: 40px 0; margin: 0; }  /* espacio SIMÉTRICO arriba y abajo del anuncio */
/* La sección vecina NO aporta su padding junto al anuncio → el hueco queda equidistante */
section:not(.dir-banner):has(+ section.ad-zone) { padding-bottom: 0 !important; }
section.ad-zone + section { padding-top: 0 !important; }
/* Si la zona de anuncios está OCULTA/vacía (banners.js le pone display:none), el hueco
   no debe colapsar a 0: restauramos un espacio uniforme entre las dos secciones. */
section.ad-zone[style*="none"] + section { padding-top: 56px !important; }
.ad-slot { display: block; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; text-decoration: none;
  display: flex; align-items: center; justify-content: center; color: var(--ink-muted); position: relative; }
.ad-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-slot.vacio { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--bg) 12px, var(--bg) 24px); }
.ad-slot .ad-ph { font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; font-weight: 600; opacity: .7; text-align: center; padding: 10px; }
.ad-slot--grande { min-height: 160px; }
.ad-slot--peq { min-height: 140px; }
.ad-smalls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ad-group .ad-slot--grande { margin-bottom: 20px; }  /* separa el grande de los dos pequeños de abajo */
.ad-tag { position: absolute; top: 6px; left: 8px; font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); opacity: .6; }
@media (max-width: 560px) { .ad-smalls { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pasos { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s3); }
  .pasos::before { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--s3) 16px; gap: 2px; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .planes-teaser { grid-template-columns: 1fr; }
  .stats { gap: var(--s3); }
  .hero-search { flex-wrap: wrap; border-radius: 20px; max-width: 100%; box-sizing: border-box; }
  .hero-search select { max-width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-search input { width: 100%; flex: 1 1 60%; }
  .hero-search button { flex: 1 1 100%; justify-content: center; }
  .hero .container { grid-template-columns: 1fr !important; }
  .hero .container > * { min-width: 0; }
  .hero-visual { margin: 12px auto 0; width: 100%; max-width: 440px; min-height: 0; }
}
@media (max-width: 420px) {
  .hero-card .hc-s { display: none; }
  .hero-card { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .pasos { grid-template-columns: 1fr; }
}
