/* IANISTON — ianiston.es
   Static site. No build, no dependencies. Navy + gold theme. */

:root {
  --navy: #03071d;
  --navy-2: #0a1030;
  --navy-3: #0f1530;
  --gold: #dfb010;
  --yellow: #f5d20b;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --muted-2: rgba(255, 255, 255, 0.5);
  --card: #0f1530;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4 { font-family: "Poppins", "Segoe UI", sans-serif; font-weight: 600; margin: 0; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
p { margin: 0 0 1rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(3, 7, 29, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 0.94rem; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }
.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 10px; width: 42px; height: 38px; cursor: pointer; color: var(--white);
  font-size: 1.1rem; align-items: center; justify-content: center;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--navy-2); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 70vh; overflow: auto; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--yellow)); color: var(--navy); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(223, 176, 16, .35); }
.btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: var(--white); }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-disabled { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .5); cursor: not-allowed; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 86px; text-align: center; position: relative; overflow: hidden; }
.hero.compact { padding: 72px 0 52px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 500px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(223, 176, 16, .2), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(245, 210, 11, .12); color: var(--yellow);
  font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 860px; margin: 0 auto 18px; }
.hero h1 .accent, .accent {
  background: linear-gradient(135deg, var(--gold), var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { max-width: 640px; margin: 0 auto 34px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--navy-2); }
section.tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 210, 11, .35); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(223, 176, 16, .25), rgba(245, 210, 11, .1));
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.35rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card a.more { display: inline-block; margin-top: 14px; color: var(--yellow); font-size: .9rem; font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 18px; }
.stat .n { font-family: "Poppins", sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--yellow); }
.stat .l { color: var(--muted); font-size: .88rem; }

/* ---------- Tool cards (Utilidades Free) ---------- */
.tool-card {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  margin-bottom: 18px; transition: border-color .2s ease, transform .2s ease;
}
.tool-card:hover { border-color: rgba(245, 210, 11, .35); transform: translateY(-3px); }
@media (max-width: 680px) { .tool-card { grid-template-columns: 1fr; text-align: center; } .tool-card .tool-icon { margin: 0 auto; } }
.tool-icon {
  width: 68px; height: 68px; border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), var(--yellow));
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: var(--navy);
}
.tool-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tool-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(245, 210, 11, .15); color: var(--yellow);
  margin-left: 8px; vertical-align: middle;
}
.badge.soon { background: rgba(255,255,255,.1); color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 54px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--yellow)); color: var(--navy);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Specs / definition table ---------- */
.specs {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.specs .row { display: grid; grid-template-columns: 230px 1fr; background: var(--card); padding: 15px 22px; gap: 16px; }
@media (max-width: 640px) { .specs .row { grid-template-columns: 1fr; gap: 4px; } }
.specs dt { color: var(--muted-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.specs dd { margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0a1030, #171f45); border: 1px solid var(--border);
  border-radius: 24px; padding: 52px; text-align: center;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Prose (articles, legal) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; color: var(--white); }
.prose p, .prose li { color: rgba(255, 255, 255, .78); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--white); }
.prose a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.prose .lead { font-size: 1.12rem; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--navy-3); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: var(--card);
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
.member { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.member .avatar {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--gold), var(--yellow)); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.4rem;
}
.member h3 { font-size: 1.08rem; }
.member .role { color: var(--yellow); font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.member p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
.case { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.case .kpi { font-family: "Poppins", sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--yellow); }
.case h3 { font-size: 1.05rem; margin: 4px 0 8px; }
.case p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Pill list ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pills li { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .88rem; color: var(--muted-2); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--yellow); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--navy); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  color: var(--white); font: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid rgba(245, 210, 11, .4); }
.form-note { font-size: .82rem; color: var(--muted-2); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 56px 0 30px; color: var(--muted-2); font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.foot-grid a { display: block; padding: 4px 0; color: var(--muted-2); }
.foot-grid a:hover { color: var(--yellow); }
.foot-brand img { height: 32px; margin-bottom: 12px; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto;
  background: var(--navy-3); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.cookie p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 260px; }
.cookie .btn { padding: 9px 18px; font-size: .85rem; }
.cookie[hidden] { display: none; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.check { list-style: none; padding: 0; margin: 0 0 1rem; }
.check li { padding-left: 26px; position: relative; margin-bottom: .5rem; color: var(--muted); }
.check li::before { content: "\2713"; position: absolute; left: 0; color: var(--yellow); font-weight: 700; }
