/* Narcafro — sitio corporativo. Sin dependencias. Tema oscuro por defecto; claro si el sistema lo pide. */
:root {
  --bg: #0a0f0d;
  --bg-2: #0e1512;
  --surface: #111a16;
  --surface-2: #16221c;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9f1ec;
  --muted: #9bb0a5;
  --brand: #3ddc97;
  --brand-ink: #062015;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --c-fillot: #3ddc97;
  --c-hanny: #ff8a5b;
  --c-lunot: #8b97ff;
  --c-cocina: #ffc857;
  --c-tools: #4cc9f0;
  --radius: 18px;
  --maxw: 1120px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f8f6;
    --bg-2: #ecf2ee;
    --surface: #ffffff;
    --surface-2: #f2f6f3;
    --line: rgba(10, 30, 20, 0.11);
    --text: #0e1a14;
    --muted: #4f6257;
    --brand: #0f7a4a;
    --brand-ink: #ffffff;
    --shadow: 0 20px 40px -24px rgba(10, 40, 25, 0.35);
    --c-fillot: #0f7a4a;
    --c-hanny: #d9531e;
    --c-lunot: #4a56d6;
    --c-cocina: #b07a00;
    --c-tools: #0b7ea8;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Accesibilidad */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink);
  padding: 8px 14px; border-radius: 8px; font-weight: 600; z-index: 100;
}
.skip:focus { left: 12px; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 0.95rem; padding: 8px 12px; border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav .cta { color: var(--brand-ink); background: var(--brand); font-weight: 600; }
.nav .cta:hover { color: var(--brand-ink); background: var(--brand); filter: brightness(1.08); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 80px; isolation: isolate;
  background:
    radial-gradient(60% 55% at 78% 8%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(45% 45% at 8% 92%, color-mix(in srgb, var(--c-lunot) 16%, transparent), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 6px 13px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.3rem); line-height: 1.04; letter-spacing: -0.035em; margin: 22px 0 20px; font-weight: 750; max-width: 15ch; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--brand), var(--c-lunot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 58ch; margin: 0 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); transition: transform 0.15s, filter 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 17px; height: 17px; }

/* Secciones */
section { padding: 84px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.kicker { color: var(--brand); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.09em; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.028em; line-height: 1.12; margin: 10px 0 14px; font-weight: 720; }
.section-head p { color: var(--muted); margin: 0; }

/* Productos */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.card {
  --accent: var(--brand);
  position: relative; display: flex; flex-direction: column; text-decoration: none; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); opacity: 0.85;
}
.card::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.card .icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Fillot enseña su logo real en vez del icono de línea */
.card .icon.logo { background: none; border: 0; box-shadow: 0 8px 22px rgba(47, 91, 234, 0.35); }
.card .icon.logo img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.card h3 { margin: 0 0 4px; font-size: 1.4rem; letter-spacing: -0.02em; }
.card .tag { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0 0 22px; font-size: 0.98rem; flex: 1; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.92rem; font-weight: 600; }
.badge { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg-2); }
.card .go { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.card .go svg { width: 16px; height: 16px; transition: transform 0.2s; }
.card:hover .go svg { transform: translateX(4px); }
.c-fillot { --accent: var(--c-fillot); }
.c-hanny { --accent: var(--c-hanny); }
.c-lunot { --accent: var(--c-lunot); }
.c-cocina { --accent: var(--c-cocina); }
.c-tools { --accent: var(--c-tools); }
.grid .card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Enfoque */
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.principles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.principle { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.principle .n { font-size: 0.85rem; font-weight: 700; color: var(--brand); letter-spacing: 0.06em; }
.principle h3 { margin: 8px 0 8px; font-size: 1.15rem; letter-spacing: -0.015em; }
.principle p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Contacto */
.contact {
  display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: 26px; border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%),
    var(--surface);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .contact { grid-template-columns: 1.4fr 1fr; } }
.contact h2 { margin-top: 0; }
.contact p { color: var(--muted); margin: 0; }
.contact .actions { justify-content: flex-start; }
@media (min-width: 820px) { .contact .actions { justify-content: flex-end; } }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.disclaimer { width: 100%; font-size: 0.82rem; opacity: 0.85; max-width: 90ch; }

/* Páginas legales */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: none; margin-top: 0; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); }
.legal .draft { border: 1px solid #d9a441; background: color-mix(in srgb, #d9a441 14%, transparent); color: var(--text); padding: 14px 18px; border-radius: 12px; margin-bottom: 28px; font-size: 0.95rem; }

/* Entrada suave (respeta reduce motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .wrap > *:nth-child(2) { animation-delay: 0.08s; }
  .hero .wrap > *:nth-child(3) { animation-delay: 0.16s; }
  .hero .wrap > *:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  section { padding: 60px 0; }
  .nav a:not(.cta) { display: none; }
}
