/* ===================================================================
   Donprint · estilos compartidos de las páginas de servicio
   Tema claro, azul de marca. Acompaña a servicios.js
=================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #0b63e5;
  --blue-d:  #0846a8;
  --blue-l:  #4f93ff;
  --green:   #16a34a;
  --green-l: #22c55e;
  --bg:      #ffffff;
  --bg2:     #f3f7ff;
  --bg3:     #e9f1ff;
  --ink:     #0c1830;
  --ink2:    #2a3a55;
  --muted:   #5b6b85;
  --line:    #dde6f4;
  --shadow:  0 18px 50px -22px rgba(11,99,229,0.30);
  --shadow-sm: 0 8px 26px -16px rgba(12,24,48,0.35);
  --radius:  18px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 5%; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; font-weight: 700; font-size: 1rem; line-height: 1; padding: 1rem 1.7rem; border-radius: 999px; cursor: pointer; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -12px rgba(11,99,229,0.65); }
.btn-primary:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 14px 30px -12px rgba(22,163,74,0.6); }
.btn-green:hover { background: #15863f; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { font-size: 1.08rem; padding: 1.15rem 2rem; }

/* Navbar */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(12,24,48,0.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; }
.logo svg { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.96rem; font-weight: 600; color: var(--ink2); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }
.has-drop { position: relative; }
.drop-toggle { display: inline-flex; align-items: center; gap: 0.32rem; cursor: pointer; }
.drop-toggle .caret { font-size: 0.62rem; transition: transform .25s; }
.drop-menu { position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 0.5rem; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; display: grid; gap: 0.1rem; z-index: 1001; }
.drop-menu a { padding: 0.62rem 0.9rem; border-radius: 9px; font-size: 0.92rem; font-weight: 600; color: var(--ink2); }
.drop-menu a:hover { background: var(--bg2); color: var(--blue); }
.has-drop::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
.has-drop:hover .drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-drop:hover .drop-toggle .caret { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.s-hero { padding: 150px 0 70px; background: radial-gradient(1100px 520px at 80% -8%, rgba(79,147,255,0.20), transparent 60%), linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%); }
.crumb { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; }
.crumb a:hover { color: var(--blue); }
.s-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.s-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
.s-hero h1 .hl { color: var(--blue); }
.s-hero .lead { font-size: 1.14rem; color: var(--muted); margin: 1.3rem 0 2rem; max-width: 540px; }
.s-hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.s-hero-ico { display: flex; align-items: center; justify-content: center; }
.s-hero-ico .disc { width: clamp(180px, 26vw, 260px); height: clamp(180px, 26vw, 260px); border-radius: 32px; background: linear-gradient(150deg, var(--blue), var(--blue-l)); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.s-hero-ico svg { width: 46%; height: 46%; color: #fff; }

/* Sections */
.s-sec { padding: 80px 0; }
.s-sec.alt { background: var(--bg2); }
.eyebrow { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.7rem; }
.s-sec h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.14; }
.s-sec .sub { font-size: 1.08rem; color: var(--muted); max-width: 640px; margin-top: 0.9rem; }
.head-center { text-align: center; }
.head-center .sub { margin-left: auto; margin-right: auto; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(11,99,229,0.4); }
.feature .ico { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--bg3); color: var(--blue); margin-bottom: 1rem; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 0.45rem; }
.feature p { font-size: 0.96rem; color: var(--muted); }

/* Blog — listado */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.6rem; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(11,99,229,0.4); }
.post-card .ph { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(150deg, var(--blue), var(--blue-l)); }
.post-card .ph.g2 { background: linear-gradient(150deg, #0846a8, #4f93ff); }
.post-card .ph.g3 { background: linear-gradient(150deg, var(--green), var(--green-l)); }
.post-card .ph svg { width: 54px; height: 54px; opacity: .92; }
.post-card .body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.25; margin-bottom: .5rem; color: var(--ink); }
.post-card p { font-size: .94rem; color: var(--muted); flex: 1; }
.post-card .more { margin-top: 1rem; font-size: .86rem; font-weight: 800; color: var(--blue); }

/* Blog — artículo */
.article { max-width: 760px; margin: 0 auto; }
.article .lead { font-size: 1.18rem; color: var(--ink2); font-weight: 500; margin-bottom: 0.5rem; }
.article p { font-size: 1.05rem; color: var(--ink2); margin: 1rem 0; }
.article h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 2.1rem 0 .6rem; }
.article h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 1.5rem 0 .4rem; }
.article ul, .article ol { margin: 1rem 0 1rem 1.3rem; }
.article li { margin: .45rem 0; color: var(--ink2); font-size: 1.02rem; }
.article a.inline { color: var(--blue); font-weight: 700; text-decoration: underline; }
.article strong { color: var(--ink); }
.article .cta-inline { background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 1.2rem 1.4rem; margin: 1.9rem 0; }
.article .cta-inline b { color: var(--ink); }
.article .cta-inline a { color: var(--blue); font-weight: 800; }
.related { max-width: 760px; margin: 2.6rem auto 0; }
.related h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--ink); }
.related a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--line); color: var(--ink2); font-weight: 600; }
.related a:hover { color: var(--blue); }

/* Two-column text + list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .checks { list-style: none; display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.split .checks li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; color: var(--ink2); }
.split .checks .ck { color: var(--green); font-weight: 900; flex-shrink: 0; }
.split p { color: var(--muted); font-size: 1.02rem; }
.split-panel { background: linear-gradient(150deg, var(--blue-d), var(--blue)); color: #fff; border-radius: 22px; padding: 2.4rem; }
.split-panel h3 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.split-panel .metric { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.split-panel .metric:last-child { border-bottom: 0; }
.split-panel .metric b { font-size: 1.6rem; font-weight: 900; }
.split-panel .metric span { color: rgba(255,255,255,0.85); font-size: 0.94rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; }
.step .num { font-size: 2.6rem; font-weight: 900; color: var(--bg3); line-height: 1; }
.step h3 { font-size: 1.12rem; margin: 0.5rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* FAQ */
.faq { max-width: 820px; margin: 2.6rem auto 0; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 0.9rem; background: #fff; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: rgba(11,99,229,0.4); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.faq-q .plus { color: var(--blue); font-size: 1.5rem; line-height: 1; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--blue-d), var(--blue)); border-radius: 28px; padding: 3rem; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; position: relative; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0.8rem auto 1.8rem; max-width: 560px; position: relative; }
.cta-band .btns { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-band .btn-white { background: #fff; color: var(--blue-d); }
.cta-band .btn-white:hover { transform: translateY(-2px); background: #f0f5ff; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn-outline:hover { border-color: #fff; transform: translateY(-2px); }

/* Footer */
footer { background: #0a1426; color: rgba(255,255,255,0.72); padding: 3rem 0 2rem; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid .logo svg { height: 44px; }
footer p { font-size: 0.92rem; margin-top: 0.9rem; max-width: 320px; }
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
footer ul { list-style: none; display: grid; gap: 0.55rem; }
footer ul a { font-size: 0.92rem; transition: color .2s; }
footer ul a:hover { color: var(--blue-l); }
.socials { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.socials a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .25s, transform .2s, border-color .25s; }
.socials a:hover { transform: translateY(-3px); }
.socials a.fb:hover { background: #1877F2; border-color: #1877F2; }
.socials a.ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; }

/* WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 998; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Responsive */
@media (max-width: 940px) {
  .s-hero-grid { grid-template-columns: 1fr; }
  .s-hero-ico { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1150px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.mobile { display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 76px; left: 0; right: 0; background: #fff; padding: 1.4rem 5%; gap: 1.2rem; box-shadow: 0 20px 40px -20px rgba(12,24,48,0.5); border-bottom: 1px solid var(--line); max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-links.mobile .has-drop { width: 100%; }
  .nav-links.mobile .has-drop::after { display: none; }
  .nav-links.mobile .drop-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0.5rem 0 0 0.9rem; min-width: 0; display: none; gap: 0.3rem; }
  .nav-links.mobile .has-drop.open .drop-menu { display: grid; }
  .nav-links.mobile .has-drop.open .drop-toggle .caret { transform: rotate(180deg); }
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2.2rem 1.5rem; }
  .s-hero { padding: 130px 0 60px; }
}
@media (max-width: 480px) {
  .nav-cta .btn-primary { display: none; }
  .logo svg { height: 40px; }
}
