/* Brújula Tech — hoja de estilos principal */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1b1f24;
  --ink-2: #4a5158;
  --ink-3: #7a828b;
  --line: #e4e6e3;
  --brand: #0f4c5c;
  --brand-2: #1a7f8e;
  --accent: #e36414;
  --accent-soft: #fdeee2;
  --ok: #2e7d32;
  --radius: 12px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); margin-bottom: .6rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--brand); text-decoration: none; }
.nav .btn { padding: .55rem 1rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; cursor: pointer; font: inherit; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff !important;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer; font-family: inherit; transition: background .15s, transform .15s;
}
.btn:hover { background: #0b3a47; text-decoration: none; transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--brand) !important; border: 1.5px solid var(--brand); }
.btn.secondary:hover { background: #eef5f6; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #c9560f; }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15,76,92,.06);
}
.hero-card ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); }
.hero-card li { margin-bottom: .5rem; }

/* Sections */
section { padding: 3.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 40rem; color: var(--ink-2); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.06); transform: translateY(-2px); }
.card h3 a { color: var(--ink); }
.card .meta { font-size: .82rem; color: var(--ink-3); display: flex; gap: .6rem; align-items: center; }
.tag { display: inline-block; background: #eef5f6; color: var(--brand); border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 600; }
.tag.accent { background: var(--accent-soft); color: #9e4507; }
.card .excerpt { color: var(--ink-2); flex: 1; }
.card .more { font-weight: 600; }
.card-illus { height: 150px; border-radius: 10px; margin-bottom: .4rem; display: grid; place-items: center; }
.illus-1 { background: linear-gradient(135deg,#0f4c5c,#1a7f8e); }
.illus-2 { background: linear-gradient(135deg,#e36414,#f2a154); }
.illus-3 { background: linear-gradient(135deg,#3d405b,#6d6f95); }
.card-illus svg { width: 64px; height: 64px; }

/* Featured */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.featured-illus { background: linear-gradient(135deg,#0f4c5c 0%,#1a7f8e 60%,#7fc8d2 100%); display: grid; place-items: center; min-height: 300px; padding: 2rem; }
.featured-illus svg { width: 180px; height: 180px; }
.featured-body { padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: 1.7rem; }

/* Services */
.services { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--bg); }
.service .icon { width: 44px; height: 44px; border-radius: 10px; background: #eef5f6; color: var(--brand); display: grid; place-items: center; margin-bottom: .9rem; }
.service ul { padding-left: 1.1rem; margin: .5rem 0 0; color: var(--ink-2); font-size: .95rem; }

/* Article */
.article-header { padding: 3rem 0 1.5rem; }
.article-header .meta { color: var(--ink-3); font-size: .9rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.article-body { font-size: 1.08rem; }
.article-body h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.article-body h3 { margin-top: 1.6rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote { margin: 1.6rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--brand-2); background: #eef5f6; border-radius: 0 10px 10px 0; color: var(--ink-2); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.article-body th { background: #f2f4f2; }
.table-wrap { overflow-x: auto; }
.callout { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 2rem 0; }
.callout strong { color: var(--brand); }
.author-box { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.3rem 0; margin: 2.5rem 0; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.avatar.alt { background: var(--accent); }
.avatar.alt2 { background: #3d405b; }
.related h2 { font-size: 1.4rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.5rem 0 2rem; }
.toc strong { display: block; margin-bottom: .5rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .25rem; }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; border-radius: 16px; padding: 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .actions { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }
.cta-band .btn { background: #fff; color: var(--brand) !important; }
.cta-band .btn:hover { background: #eef5f6; }

/* Form */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid #cfd4d1; border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: var(--brand-2); }
.field textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { width: auto; margin-top: .3rem; flex-shrink: 0; }
.form-note { font-size: .82rem; color: var(--ink-3); margin-top: 1rem; }
.form-success { display: none; background: #edf7ee; border: 1px solid #bfe3c2; color: #1e5b23; border-radius: 10px; padding: 1rem 1.2rem; margin-top: 1rem; }
.form-error { display: none; background: #fdecec; border: 1px solid #f3b9b9; color: #8a1f1f; border-radius: 10px; padding: .8rem 1rem; margin-top: 1rem; font-size: .9rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-info { display: grid; gap: 1rem; }
.contact-info .item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info .item .ico { width: 40px; height: 40px; border-radius: 10px; background: #eef5f6; color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .item strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: .1rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.member .avatar { width: 72px; height: 72px; margin: 0 auto 1rem; font-size: 1.3rem; }
.member .role { color: var(--brand-2); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.member p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* Values / about */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.5rem; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.value h3 { font-size: 1.05rem; }
.value p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Legal pages */
.legal { padding: 3rem 0 4rem; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.3rem; }
.legal .updated { color: var(--ink-3); font-size: .9rem; margin-bottom: 2rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .35rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.legal th { background: #f2f4f2; }
.legal-nav { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.legal-nav a { font-size: .85rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--surface); }
.legal-nav a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.legal-nav a:hover { text-decoration: none; border-color: var(--brand-2); }
.id-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1rem 0 1.5rem; font-size: .95rem; }
.id-block dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; }
.id-block dt { font-weight: 600; color: var(--ink-2); }
.id-block dd { margin: 0; }

/* Footer */
.site-footer { background: #14262d; color: #c9d3d6; padding: 3.5rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: #c9d3d6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .95rem; }
.site-footer .logo { color: #fff; margin-bottom: .8rem; }
.site-footer .brand-desc { font-size: .92rem; color: #9fb0b5; max-width: 22rem; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .4rem .2rem; align-items: center; justify-content: center; margin: 2.5rem 0 1rem; font-size: .9rem; }
.footer-legal-links .sep { color: #5f7278; padding: 0 .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem; font-size: .82rem; color: #8ea0a6; text-align: center; }
.footer-bottom p { margin: .3rem 0; }
.company-line { font-size: .85rem; color: #9fb0b5; line-height: 1.5; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.14); display: none; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 900px; margin-inline: auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--ink-2); flex: 1 1 380px; }
.cookie-banner .actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: .6rem 1.1rem; font-size: .88rem; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--ink-3); margin-bottom: .8rem; }
.breadcrumb a { color: var(--ink-3); }

/* Disclaimer */
.disclaimer { font-size: .85rem; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .featured, .form-wrap, .cta-band { grid-template-columns: 1fr; }
  .grid-3, .team-grid, .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line); gap: .9rem; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .grid-3, .grid-2, .team-grid, .values, .footer-grid, .row-2 { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
  .featured-body, .cta-band, .form-card { padding: 1.5rem; }
  .id-block dl { grid-template-columns: 1fr; }
}

/* Firma del autor */
.author-box { align-items: flex-start; }
.author-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #eef5f6; }
.author-box .by { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .2rem; }
.author-box .name { font-size: 1.1rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: .1rem; }
.author-box .role { font-size: .88rem; color: var(--brand-2); font-weight: 600; margin-bottom: .5rem; }
.author-box .bio { font-size: .95rem; color: var(--ink-2); margin: 0; }
.article-body .lead-p { font-size: 1.18rem; color: var(--ink-2); }
.member .member-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; border: 3px solid #eef5f6; }
