:root{
  --teal:#0ea5b7; --blue:#0b63b6; --ink:#12232e; --muted:#5b6b73;
  --bg:#f6fafb; --card:#fff; --line:#e6eef0; --radius:16px;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);background:var(--bg);line-height:1.6}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
main{min-height:60vh}

/* Header */
.site-header{display:flex;align-items:center;justify-content:space-between;
  padding:1rem clamp(1rem,4vw,3rem);background:#fff;border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:10}
.brand{font-weight:800;font-size:1.25rem;color:var(--ink)}
.brand .logo{font-size:1.3rem}
.site-header nav{display:flex;gap:1.1rem;align-items:center;flex-wrap:wrap}
.site-header nav a{color:var(--ink);font-weight:600;font-size:.95rem}
.lang-switch{border:1px solid var(--line);border-radius:20px;padding:.2rem .6rem;font-size:.8rem!important}

/* Hero */
.hero{background:linear-gradient(135deg,var(--teal),var(--blue));color:#fff;
  padding:clamp(3rem,8vw,6rem) 1rem;text-align:center}
.hero h1{font-size:clamp(2.2rem,6vw,3.4rem);margin:0}
.hero .tagline{font-size:clamp(1.1rem,3vw,1.5rem);font-weight:600;margin:.4rem 0 1rem}
.hero-sub{max-width:640px;margin:0 auto 1.6rem;opacity:.95}
.hero-cta .btn{font-size:1.05rem}

/* Botones */
.btn{display:inline-block;padding:.8rem 1.4rem;border-radius:30px;font-weight:700;cursor:pointer}
.btn-primary{background:#fff;color:var(--blue)}
.btn-primary:hover{text-decoration:none;opacity:.92}
.btn-outline{border:2px solid var(--blue);color:var(--blue)}
.btn-outline:hover{text-decoration:none;background:var(--blue);color:#fff}
.btn-disabled{background:rgba(255,255,255,.25);color:#fff;border:1px solid rgba(255,255,255,.5)}

/* Secciones */
.section{max-width:1040px;margin:0 auto;padding:clamp(2.5rem,6vw,4rem) clamp(1rem,4vw,2rem)}
.section h2{font-size:clamp(1.6rem,4vw,2.2rem);text-align:center;margin:0 0 .3rem}
.section-sub{text-align:center;color:var(--muted);margin:0 0 2rem}
.center{text-align:center;margin-top:1.5rem}
.muted{color:var(--muted)}

/* Grid tarjetas */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.2rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.4rem;transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(11,99,182,.08)}
.card-icon{font-size:2rem}
.card h3{margin:.5rem 0 .3rem}
.card p{color:var(--muted);margin:0}
.article-card{display:block;color:var(--ink)}
.article-card:hover{text-decoration:none}
.article-card .link{color:var(--blue);font-weight:700;display:inline-block;margin-top:.6rem}
.tag{display:inline-block;background:#e8f6f8;color:var(--teal);font-size:.75rem;font-weight:700;
  padding:.2rem .6rem;border-radius:20px;margin-bottom:.4rem}

/* Capturas de la app */
.shots-section{background:linear-gradient(180deg,#eef7f9,transparent)}
.shots-row{display:flex;gap:1.6rem;overflow-x:auto;padding:.5rem .2rem 1.4rem;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.shots-row::-webkit-scrollbar{height:8px}
.shots-row::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}
.shot{margin:0;flex:0 0 auto;width:230px;scroll-snap-align:center;text-align:center}
.phone{background:#0d1b24;border-radius:30px;padding:8px;box-shadow:0 14px 34px rgba(11,99,182,.18);
  border:1px solid #0d1b24}
.phone img{display:block;width:100%;height:auto;border-radius:22px}
.shot figcaption{margin-top:.8rem;color:var(--muted);font-size:.9rem;font-weight:600;line-height:1.35}
@media(min-width:900px){
  .shots-row{justify-content:center;flex-wrap:wrap;overflow:visible}
  .shot{width:220px}
}

/* Banda CTA */
.cta-band{background:linear-gradient(135deg,var(--teal),var(--blue));color:#fff;border-radius:var(--radius);
  text-align:center;padding:2.5rem 1.5rem;margin-top:2rem}
.cta-band h2{color:#fff}
.cta-band p{max-width:560px;margin:0 auto 1.4rem;opacity:.95}

/* Artículo / prosa */
.article,.prose{max-width:760px}
.crumbs{font-size:.85rem;color:var(--muted);margin:0 0 .8rem}
.crumbs a{color:var(--muted)}
.article-meta{font-size:.9rem;margin:.2rem 0 1.4rem}
.article-body{font-size:1.05rem}
.article-body h2,.prose h2{margin-top:2rem;font-size:1.5rem;line-height:1.25}
.article-body h3{margin-top:1.4rem;font-size:1.2rem}
.article-body p{margin:.7rem 0}
.article-body img{max-width:100%;border-radius:12px}
.article-body ul,.article-body ol,.prose ul{padding-left:1.3rem}
.article-body li{margin:.3rem 0}
.article-body code{background:#eef3f5;padding:.1rem .35rem;border-radius:5px}
.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:.5rem .7rem;text-align:left}
.article-body th{background:#eef7f9}
.article-body blockquote{margin:1.2rem 0;padding:.6rem 1rem;border-left:4px solid var(--teal);
  background:#f2f7f8;border-radius:0 8px 8px 0;color:var(--ink)}
hr{border:none;border-top:1px solid var(--line);margin:2.2rem 0}

/* FAQ */
.faq{max-width:760px;margin-top:2.4rem}
.faq>h2{font-size:1.5rem;margin-bottom:1rem}
.faq-item{border:1px solid var(--line);border-radius:12px;margin-bottom:.7rem;background:var(--card);overflow:hidden}
.faq-item summary{cursor:pointer;padding:1rem 1.2rem;font-weight:700;list-style:none;position:relative;
  padding-right:2.4rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";position:absolute;right:1.2rem;top:50%;transform:translateY(-50%);
  font-size:1.3rem;color:var(--teal);font-weight:700}
.faq-item[open] summary::after{content:"–"}
.faq-answer{padding:0 1.2rem 1rem;color:var(--muted)}
.faq-answer p{margin:.2rem 0}

/* Relacionados */
.related{margin-top:2.6rem}
.related>h2{font-size:1.5rem;text-align:center;margin-bottom:1.2rem}

/* Footer */
.site-footer{background:#0d1b24;color:#cdd8dd;text-align:center;padding:2rem 1rem;margin-top:3rem}
.site-footer a{color:#8fd3de}
.footer-links{display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap;margin-bottom:.6rem}

/* Admin */
.admin-wrap{max-width:820px;margin:2rem auto;padding:0 1rem}
.admin-wrap label{display:block;font-weight:600;margin:.8rem 0 .2rem}
.admin-wrap input[type=text],.admin-wrap input[type=password],.admin-wrap textarea,.admin-wrap select{
  width:100%;padding:.6rem;border:1px solid var(--line);border-radius:8px;font:inherit}
.admin-wrap textarea{min-height:220px}
.admin-wrap .row{display:flex;gap:1rem;flex-wrap:wrap}
.admin-wrap .row>div{flex:1;min-width:180px}
table{width:100%;border-collapse:collapse}
table th,table td{text-align:left;padding:.5rem;border-bottom:1px solid var(--line)}

/* Editor WYSIWYG */
.wysiwyg{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.wysiwyg-toolbar{display:flex;flex-wrap:wrap;gap:.25rem;padding:.4rem;background:#f2f7f8;border-bottom:1px solid var(--line)}
.wysiwyg-toolbar button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:.32rem .55rem;
  font-size:.85rem;line-height:1;cursor:pointer;color:var(--ink)}
.wysiwyg-toolbar button:hover{background:var(--teal);color:#fff;border-color:var(--teal)}
.wysiwyg-toolbar button.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.wysiwyg-toolbar .wysiwyg-right{margin-left:auto}
.wysiwyg-area{min-height:260px;padding:.9rem 1rem;outline:none;line-height:1.6}
.wysiwyg-area:focus{box-shadow:inset 0 0 0 2px rgba(14,165,183,.25)}
.wysiwyg-area h2{margin:1.1rem 0 .4rem;font-size:1.3rem}
.wysiwyg-area h3{margin:1rem 0 .3rem;font-size:1.1rem}
.wysiwyg-area img{max-width:100%;border-radius:10px;display:block;margin:.6rem 0}
.wysiwyg-area:empty::before,.wysiwyg-area p:only-child:empty::before{content:"Escribe aquí el artículo…";color:#9aa8ad}
.wysiwyg-source{display:none;width:100%;min-height:260px;border:none;padding:.9rem 1rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem;line-height:1.5;resize:vertical}
.wysiwyg-status{margin:.3rem 0 0;padding:0 .4rem .3rem;font-size:.85rem;color:var(--teal);min-height:1.1rem}
