/* css/site.css — certificagestionactiva100.com — prefijo: x18286 — layout: editorial */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;600;700&family=IBM+Plex+Sans:wght@300;400;500&display=swap');

/* ─── Variables ─────────────────────────────── */
.x18286-root {
  --x18286-a: #dfca5f;
  --x18286-d: #001023;
  --x18286-l: #fcfbf2;
  --x18286-m: #e7d787;
  --x18286-ff-display: 'Lexend', serif;
  --x18286-ff-body: 'IBM Plex Sans', sans-serif;
  --x18286-radius: 8px;
  --x18286-shadow: 0 4px 24px rgba(0,0,0,.12);
  --x18286-transition: .25s ease;
}

/* ─── Reset base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; font-size:16px; }
body.x18286-root {
  font-family: var(--x18286-ff-body);
  color: var(--x18286-d);
  background: #fff;
  line-height: 1.7;
}
img { max-width:100%; height:auto; display:block; }
a { color: var(--x18286-a); text-decoration:none; }
a:hover { text-decoration:underline; }
h1,h2,h3,h4 {
  font-family: var(--x18286-ff-display);
  line-height:1.2;
  color: var(--x18286-d);
}

/* ─── Utilities ─────────────────────────────── */
.x18286-wrap  { max-width:1160px; margin:0 auto; padding:0 24px; }
.x18286-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.x18286-grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.x18286-grid4 { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.x18286-tag   { display:inline-block; background:var(--x18286-l); color:var(--x18286-a);
  font-size:.8rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  padding:4px 12px; border-radius:20px; margin-bottom:16px; }
.x18286-btn   { display:inline-block; background:var(--x18286-a); color:#fff;
  font-family:var(--x18286-ff-body); font-weight:600; font-size:.95rem;
  padding:13px 28px; border-radius:var(--x18286-radius); border:none; cursor:pointer;
  transition:var(--x18286-transition); }
.x18286-btn:hover { opacity:.88; text-decoration:none; }
.x18286-btn--sec { background:transparent; border:2px solid var(--x18286-a); color:var(--x18286-a); }
.x18286-btn--sec:hover { background:var(--x18286-a); color:#fff; }

/* ─── Disclaimer legal ─────────────────────────── */
.x18286-disclaimer {
  background: var(--x18286-l);
  border-left: 4px solid var(--x18286-a);
  padding: 14px 24px;
  font-size: .9rem;
  color: var(--x18286-d);
}
.x18286-disclaimer strong { color: var(--x18286-a); }

/* ─── Header ─────────────────────────────────── */
.x18286-header {
  position:sticky; top:0; z-index:100;
  background:#fff; border-bottom:1px solid #faf7e7;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.x18286-header__in {
  display:flex; align-items:center; justify-content:space-between;
  max-width:1160px; margin:0 auto; padding:0 24px; height:68px;
}
.x18286-brand { display:flex; align-items:center; gap:10px; font-weight:700;
  font-family:var(--x18286-ff-display); font-size:1.1rem; color:var(--x18286-d); }
.x18286-brand img, .x18286-brand svg { width:38px; height:38px; }
.x18286-nav { display:flex; gap:4px; }
.x18286-nav a { padding:8px 14px; border-radius:6px; font-size:.9rem; color:var(--x18286-d);
  font-weight:500; transition:var(--x18286-transition); }
.x18286-nav a:hover, .x18286-nav a[aria-current] { background:var(--x18286-l); color:var(--x18286-a); text-decoration:none; }
.x18286-cta-nav { background:var(--x18286-a); color:#fff!important; padding:9px 18px!important;
  border-radius:var(--x18286-radius)!important; font-weight:600!important; }
.x18286-cta-nav:hover { opacity:.85!important; background:var(--x18286-a)!important; }
.x18286-burger { display:none; background:none; border:none; cursor:pointer; padding:8px; }
.x18286-burger span { display:block; width:24px; height:2px; background:var(--x18286-d); margin:5px 0; }

/* ─── Hero (layout: editorial) ──────────────────── */
.x18286-hero { padding:60px 0; background:#fff; border-bottom:1px solid #f9f4df; }
.x18286-hero__grid { display:grid; grid-template-columns:2fr 1fr; gap:48px; align-items:center; }
.x18286-hero__label { font-size:.75rem; text-transform:uppercase; letter-spacing:.14em; color:var(--x18286-a); font-weight:700; margin-bottom:12px; }
.x18286-hero h1 { font-size:clamp(2.2rem,4vw,3.5rem); margin-bottom:20px; line-height:1.1; }
.x18286-hero__aside { background:var(--x18286-l); border-radius:12px; padding:28px; }
.x18286-hero__aside h3 { font-size:1rem; margin-bottom:10px; color:var(--x18286-a); }

/* ─── Secciones genéricas ─────────────────────── */
.x18286-sec { padding: 80px 0; }
.x18286-sec--alt { background: var(--x18286-l); }
.x18286-sec--dark { background: var(--x18286-d); color:#fff; }
.x18286-sec--dark h2 { color:#fff; }
.x18286-sec-title { font-size:clamp(1.5rem,3vw,2.2rem); margin-bottom:16px; }
.x18286-sec-lead { font-size:1.05rem; opacity:.8; max-width:600px; margin-bottom:40px; }

/* ─── Cards de servicio ───────────────────────── */
.x18286-card {
  background:#fff; border-radius:12px;
  box-shadow: var(--x18286-shadow); padding:28px;
  border-top: 4px solid var(--x18286-a);
  transition: transform var(--x18286-transition);
}
.x18286-card:hover { transform:translateY(-4px); }
.x18286-card__icon { font-size:2rem; margin-bottom:14px; }
.x18286-card h3 { font-size:1.1rem; margin-bottom:10px; }

/* ─── Proceso steps ────────────────────────────── */
.x18286-steps { list-style:none; counter-reset:step; }
.x18286-steps li { counter-increment:step; display:grid;
  grid-template-columns:56px 1fr; gap:20px; align-items:start;
  padding:24px 0; border-bottom:1px solid #faf7e7; }
.x18286-steps li:last-child { border-bottom:none; }
.x18286-steps li::before { content:counter(step); width:44px; height:44px;
  background:var(--x18286-a); color:#fff; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-family:var(--x18286-ff-display); font-size:1.1rem; }
.x18286-steps li h3 { margin-bottom:6px; font-size:1rem; }

/* ─── FAQ ──────────────────────────────────────── */
.x18286-faq { max-width:800px; margin:0 auto; }
.x18286-faq details { border-bottom:1px solid #f9f4df;
  padding:18px 0; }
.x18286-faq summary { font-weight:600; cursor:pointer; list-style:none;
  display:flex; justify-content:space-between; align-items:center; font-size:1rem; }
.x18286-faq summary::after { content:'+'; font-size:1.4rem; color:var(--x18286-a);
  transition:transform var(--x18286-transition); }
.x18286-faq details[open] summary::after { content:'−'; }
.x18286-faq details p { margin-top:12px; opacity:.85; }

/* ─── Blog cards ───────────────────────────────── */
.x18286-blog-card { border-radius:12px; overflow:hidden; box-shadow:var(--x18286-shadow);
  background:#fff; }
.x18286-blog-card img { width:100%; height:180px; object-fit:cover; }
.x18286-blog-card__body { padding:20px; }
.x18286-blog-card h3 { font-size:1rem; margin-bottom:8px; }
.x18286-blog-card p { font-size:.9rem; opacity:.8; }
.x18286-blog-card a { display:inline-block; margin-top:12px; font-size:.85rem;
  font-weight:600; color:var(--x18286-a); }

/* ─── Contacto / Formulario ───────────────────── */
.x18286-form { max-width:640px; margin:0 auto; }
.x18286-field { margin-bottom:20px; }
.x18286-field label { display:block; font-weight:600; font-size:.9rem; margin-bottom:6px; }
.x18286-field input, .x18286-field textarea, .x18286-field select {
  width:100%; border:1px solid #f5efcf;
  border-radius:var(--x18286-radius); padding:12px 14px; font-size:1rem;
  font-family:var(--x18286-ff-body); color:var(--x18286-d);
  transition: border-color var(--x18286-transition);
}
.x18286-field input:focus, .x18286-field textarea:focus {
  outline:none; border-color:var(--x18286-a); box-shadow:0 0 0 3px #f5efcf; }
.x18286-field textarea { resize:vertical; min-height:120px; }

/* ─── Chat widget ──────────────────────────────── */
.x18286-chat-btn {
  position:fixed; bottom:28px; right:28px; z-index:200;
  width:58px; height:58px; border-radius:50%;
  background:var(--x18286-a); color:#fff; border:none; cursor:pointer;
  font-size:1.6rem; box-shadow:0 4px 20px rgba(0,0,0,.25);
  display:flex; align-items:center; justify-content:center;
  transition: transform var(--x18286-transition);
}
.x18286-chat-btn:hover { transform:scale(1.08); }
.x18286-chat-box {
  position:fixed; bottom:98px; right:28px; z-index:199; width:330px;
  background:#fff; border-radius:16px; box-shadow:0 8px 40px rgba(0,0,0,.18);
  display:none; flex-direction:column; overflow:hidden;
}
.x18286-chat-box.open { display:flex; }
.x18286-chat-head { background:var(--x18286-a); color:#fff; padding:16px 20px;
  font-weight:700; display:flex; justify-content:space-between; align-items:center; }
.x18286-chat-body { padding:16px; max-height:260px; overflow-y:auto; display:flex;
  flex-direction:column; gap:10px; }
.x18286-chat-msg { background:var(--x18286-l); border-radius:10px; padding:10px 14px;
  font-size:.9rem; max-width:85%; }
.x18286-chat-msg.user { align-self:flex-end; background:var(--x18286-a); color:#fff; }
.x18286-chat-foot { padding:12px; border-top:1px solid #faf7e7;
  display:flex; gap:8px; }
.x18286-chat-foot input { flex:1; border:1px solid #f5efcf;
  border-radius:8px; padding:8px 12px; font-size:.9rem; }
.x18286-chat-foot button { background:var(--x18286-a); color:#fff; border:none;
  border-radius:8px; padding:8px 14px; cursor:pointer; font-weight:600; }

/* ─── Cookies banner ─────────────────────────── */
.x18286-cookies-banner {
  position:fixed; bottom:0; left:0; right:0; z-index:300;
  background:var(--x18286-d); color:#fff; padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.x18286-cookies-banner p { font-size:.88rem; margin:0; flex:1; min-width:200px; }
.x18286-cookies-banner a { color:var(--x18286-l); }
.x18286-cookies-banner button { background:var(--x18286-a); color:#fff; border:none;
  border-radius:6px; padding:9px 18px; cursor:pointer; font-weight:600; font-size:.9rem; }

/* ─── Footer ─────────────────────────────────── */
.x18286-footer {
  background:var(--x18286-d); color:rgba(255,255,255,.8);
  padding:60px 0 30px;
}
.x18286-footer__grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.x18286-footer__brand { font-family:var(--x18286-ff-display); font-size:1.1rem; color:#fff;
  margin-bottom:12px; }
.x18286-footer h4 { color:rgba(255,255,255,.6); font-size:.78rem; text-transform:uppercase;
  letter-spacing:.1em; margin-bottom:14px; font-family:var(--x18286-ff-body); font-weight:600; }
.x18286-footer ul { list-style:none; }
.x18286-footer li { margin-bottom:8px; }
.x18286-footer a { color:rgba(255,255,255,.75); font-size:.9rem; }
.x18286-footer a:hover { color:#fff; }
.x18286-footer__bottom { border-top:1px solid rgba(255,255,255,.12); padding-top:24px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size:.83rem; color:rgba(255,255,255,.55); }

/* ─── Responsive ─────────────────────────────── */
@media (max-width:991.98px) {
  .x18286-grid2 { grid-template-columns:1fr; }
  .x18286-grid3 { grid-template-columns:1fr 1fr; }
  .x18286-grid4 { grid-template-columns:1fr 1fr; }
  .x18286-footer__grid { grid-template-columns:1fr 1fr; }
  .x18286-nav { display:none; }
  .x18286-nav.open { display:flex; flex-direction:column; position:absolute;
    top:68px; left:0; right:0; background:#fff; padding:12px 0;
    border-bottom:1px solid #f9f4df; box-shadow:0 8px 20px rgba(0,0,0,.1); }
  .x18286-burger { display:block; }
  .x18286-hero__grid { grid-template-columns:1fr!important; }
  .x18286-hero__img { order:-1; }
  .x18286-chat-box { width:calc(100vw - 40px); right:20px; }
}
@media (max-width:575.98px) {
  .x18286-grid3 { grid-template-columns:1fr; }
  .x18286-grid4 { grid-template-columns:1fr; }
  .x18286-footer__grid { grid-template-columns:1fr; }
  .x18286-hero { padding:60px 0!important; }
  .x18286-sec { padding:56px 0; }
}
