/* Blog: listado, tarjetas y nota. Comparte la paleta y el material de las placas del resto del sitio. */
.am-blog,.am-post{max-width:1240px;margin:0 auto;padding:clamp(112px,12vw,164px) clamp(24px,5vw,72px) clamp(72px,9vw,128px);box-sizing:border-box;color:#111113}
.am-blog-head{max-width:860px}
.am-blog-title{margin:0;font-size:clamp(40px,6vw,78px);font-weight:600;line-height:1;letter-spacing:-.04em;text-wrap:balance}
.am-blog-lede{max-width:48ch;margin:clamp(16px,2vw,26px) 0 0;color:#5f5e68;font-size:clamp(17px,1.5vw,21px);line-height:1.45;text-wrap:pretty}
.am-blog-cats{display:flex;flex-wrap:wrap;gap:8px;margin-top:clamp(22px,3vw,34px)}
.am-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(22px,3vw,40px) clamp(18px,2.4vw,32px);margin-top:clamp(34px,5vw,64px)}
.am-blog-empty{margin-top:48px;color:#5f5e68;font-size:18px}

/* Tarjeta */
.am-post-card{display:flex;flex-direction:column;gap:16px;color:inherit;text-decoration:none}
.am-post-card-media{display:block;aspect-ratio:16/9;overflow:hidden;border:1px solid rgba(17,17,19,.07);border-radius:24px;background:linear-gradient(150deg,#fcfcfd,#e8e8ef);box-shadow:inset 0 1px 0 #fff}
.am-post-card-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.am-post-card-ph{display:grid;place-items:center;width:100%;height:100%;background:radial-gradient(circle at 30% 20%,#d9d8ff,#eeeef5 60%);color:#5552ff;font-size:64px;font-weight:600;letter-spacing:-.04em}
.am-post-card-body{display:flex;flex-direction:column;gap:8px;padding:0 4px}
.am-post-card-cat{align-self:flex-start;padding:4px 11px;border-radius:999px;background:#ecebff;color:#4745d6;font-size:12px;font-weight:500}
.am-post-card-title{font-size:clamp(20px,1.8vw,24px);font-weight:600;line-height:1.2;letter-spacing:-.025em;text-wrap:balance;transition:color .2s ease}
.am-post-card-excerpt{color:#5f5e68;font-size:15px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.am-post-card-meta{color:#8a8993;font-size:13px}
@media(hover:hover){.am-post-card:hover .am-post-card-media img{transform:scale(1.04)}.am-post-card:hover .am-post-card-title{color:#5552ff}}
.am-post-card:focus-visible{outline:2px solid #5552ff;outline-offset:6px;border-radius:24px}
.am-post-card.is-featured{grid-column:span 2;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:center;gap:clamp(20px,3vw,40px)}
.am-post-card.is-featured .am-post-card-media{aspect-ratio:16/9}
.am-post-card.is-featured .am-post-card-title{font-size:clamp(26px,3vw,40px);line-height:1.08;letter-spacing:-.035em}
.am-post-card.is-featured .am-post-card-excerpt{font-size:16.5px;-webkit-line-clamp:4}
.am-blog-pagination{margin-top:clamp(36px,5vw,64px)}
.am-blog-pagination ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.am-blog-pagination a,.am-blog-pagination span{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid rgba(17,17,19,.1);border-radius:999px;background:#fff;color:#111113;font-size:14px;text-decoration:none}
.am-blog-pagination .current{border-color:#111113;background:#111113;color:#fff}

/* Nota */
.am-post-head{max-width:1100px}
.am-post-back{display:inline-block;margin-bottom:clamp(18px,2.4vw,30px);color:#6b6a73;font-size:14px;text-decoration:none;transition:color .2s ease}
.am-post-back:hover{color:#5552ff}
.am-post-title{max-width:20em;margin:0;font-size:clamp(34px,4.8vw,62px);font-weight:600;line-height:1.04;letter-spacing:-.04em;text-wrap:balance}
.am-post-lede{max-width:62ch;margin:clamp(16px,2vw,24px) 0 0;color:#5f5e68;font-size:clamp(18px,1.6vw,22px);line-height:1.45;text-wrap:pretty}
.am-post-author{color:inherit;text-decoration:underline;text-underline-offset:3px}
.am-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:clamp(20px,2.6vw,30px) 0 0;color:#6b6a73;font-size:14px}
.am-post-chip{padding:4px 11px;border-radius:999px;background:#ecebff;color:#4745d6;font-size:12px;font-weight:500;text-decoration:none}
.am-post-cover{margin:clamp(28px,4vw,52px) 0 0;overflow:hidden;border:1px solid rgba(17,17,19,.07);border-radius:clamp(20px,2.6vw,32px);background:linear-gradient(150deg,#fcfcfd,#e8e8ef)}
.am-post-cover img{display:block;width:100%;height:auto;max-height:620px;object-fit:cover}
.am-post-layout{display:grid;grid-template-columns:minmax(0,230px) minmax(0,720px);gap:clamp(32px,6vw,88px);margin-top:clamp(36px,5vw,64px);align-items:start}
.am-post-layout.no-toc{grid-template-columns:minmax(0,720px)}
.am-post-toc{position:sticky;top:112px}
.am-post-toc ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px;border-left:1px solid rgba(17,17,19,.1)}
.am-post-toc a{display:block;padding:7px 0 7px 16px;margin-left:-1px;border-left:2px solid transparent;color:#6b6a73;font-size:14px;line-height:1.35;text-decoration:none;transition:color .2s ease,border-color .2s ease}
.am-post-toc a:hover{border-left-color:#5552ff;color:#111113}
.am-post-body{min-width:0;color:#2f2e35;font-size:clamp(17px,1.35vw,18.5px);line-height:1.75}
.am-post-body>*:first-child{margin-top:0}
.am-post-body p{margin:0 0 1.15em;text-wrap:pretty}
.am-post-body h2{margin:2.1em 0 .6em;color:#111113;font-size:clamp(25px,2.6vw,33px);font-weight:600;line-height:1.14;letter-spacing:-.03em;text-wrap:balance;scroll-margin-top:110px}
.am-post-body h3{margin:1.7em 0 .5em;color:#111113;font-size:clamp(20px,1.9vw,24px);font-weight:600;line-height:1.2;letter-spacing:-.02em}
.am-post-body a{color:#5552ff;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.am-post-body a:hover{text-decoration-thickness:2px}
.am-post-body strong{color:#111113;font-weight:600}
.am-post-body ul,.am-post-body ol{margin:0 0 1.2em;padding-left:1.35em}
.am-post-body li{margin:0 0 .55em;padding-left:.2em}
.am-post-body li::marker{color:#5552ff}
.am-post-body blockquote{margin:1.6em 0;padding:18px 22px;border:1px solid rgba(17,17,19,.08);border-radius:20px;background:linear-gradient(150deg,#fcfcfd,#ececf2);box-shadow:inset 0 1px 0 #fff;color:#111113;font-size:1.06em;line-height:1.55}
.am-post-body blockquote p:last-child{margin:0}
.am-post-body img{max-width:100%;height:auto;border-radius:20px}
.am-post-body figure{margin:1.8em 0}
.am-post-body figcaption{margin-top:10px;color:#8a8993;font-size:14px;text-align:center}
.am-post-body table{width:100%;margin:1.6em 0;border-collapse:collapse;font-size:.92em}
.am-post-body th{padding:12px 14px;background:#f3f3f8;text-align:left}
.am-post-body td{padding:12px 14px;border-top:1px solid rgba(17,17,19,.08)}
.am-post-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:clamp(48px,7vw,96px) 0 0;padding:clamp(22px,3vw,34px) clamp(22px,3.4vw,44px);border:1px solid rgba(17,17,19,.08);border-radius:28px;background:linear-gradient(150deg,#fcfcfd 0%,#e8e8ef 100%);box-shadow:inset 0 1px 0 #fff,0 18px 40px -24px rgba(42,37,68,.4)}
.am-post-cta h2{margin:0 0 6px;font-size:clamp(22px,2.4vw,30px);font-weight:600;letter-spacing:-.03em;line-height:1.1;text-wrap:balance}
.am-post-cta p{margin:0;color:#5f5e68;font-size:16px;line-height:1.5}
.am-post-related{margin-top:clamp(56px,8vw,110px)}
.am-post-related>h2{margin:0;font-size:clamp(26px,3vw,38px);font-weight:600;letter-spacing:-.035em}
@media(max-width:1000px){
  .am-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .am-post-layout{grid-template-columns:minmax(0,1fr)}
  .am-post-toc{display:none}
}
@media(max-width:700px){
  .am-blog-grid{grid-template-columns:1fr}
  .am-post-card.is-featured{grid-column:auto;display:flex}
  .am-post-cta{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){.am-post-card-media img{transition:none}}

/* Compartir la nota */
.am-post-share{margin-top:clamp(36px,5vw,64px);max-width:720px}
.am-post-share h2{margin:0 0 14px;color:#6b6a73;font-size:14px;font-weight:500}
.am-post-share-row{display:flex;flex-wrap:wrap;gap:10px}
.am-post-share-btn{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 18px 0 14px;border:1px solid rgba(17,17,19,.1);border-radius:999px;background:linear-gradient(150deg,#fcfcfd,#ececf2);box-shadow:inset 0 1px 0 #fff;color:#111113;font:500 14px/1 inherit;font-family:inherit;text-decoration:none;cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .16s ease}
.am-post-share-btn svg{width:18px;height:18px;flex:none}
.am-post-share-btn:active{transform:scale(.97)}
.am-post-share-btn:focus-visible{outline:2px solid #5552ff;outline-offset:3px}
.am-post-share-btn.is-done{border-color:#5552ff;background:#5552ff;color:#fff}
@media(hover:hover){.am-post-share-btn:hover{border-color:#111113;background:#111113;color:#fff}}
@media(max-width:560px){.am-post-share-btn{flex:1 1 calc(50% - 10px);justify-content:center}}

/* Preguntas frecuentes: acordeón nativo (details). Todo el texto está en la página, así que Google y las IAs lo leen aunque esté plegado. */
.am-post-body .am-faq{display:flex;flex-direction:column;gap:10px;margin:1.2em 0 1.6em}
.am-post-body details{border:1px solid rgba(17,17,19,.09);border-radius:20px;background:linear-gradient(150deg,#fcfcfd,#f1f1f6);box-shadow:inset 0 1px 0 #fff;transition:border-color .2s ease,background-color .2s ease}
.am-post-body details[open]{border-color:rgba(85,82,255,.35);background:#fff}
.am-post-body summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;color:#111113;font-weight:600;font-size:1.02em;line-height:1.35;cursor:pointer;list-style:none}
.am-post-body summary::-webkit-details-marker{display:none}
.am-post-body summary::after{content:"";flex:none;width:10px;height:10px;margin-right:4px;border-right:2px solid #5552ff;border-bottom:2px solid #5552ff;transform:rotate(45deg) translate(-2px,-2px);transition:transform .25s ease}
.am-post-body details[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
.am-post-body summary:focus-visible{outline:2px solid #5552ff;outline-offset:3px;border-radius:20px}
.am-post-body details>*:not(summary){margin:0 20px 18px}
.am-post-body details>*:not(summary)+*:not(summary){margin-top:-6px}
