/* Artículos del blog y página del blog. Usa inicio.css (ix-*) y pauta.css (pa-*) y agrega la lectura (ar-*) y el listado (bl-*). */

/* ── Portada del artículo ── */
.ar-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 5vw; align-items: center; padding: 140px 4vw 80px; overflow: hidden; isolation: isolate;
  background: radial-gradient(55% 70% at 85% 40%, rgba(201,168,76,.14), transparent 70%), #0A0A0A; }
.ar-cat { display: inline-block; margin-bottom: 22px; padding: 7px 14px; border-radius: 999px; background: #C9A84C; color: #0A0A0A; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.ar-hero h1 { margin: 0; font: 700 clamp(36px, 4.6vw, 70px)/1.04 'Playfair Display', serif; color: #F4EFE3; }
.ar-hero h1 em { color: #C9A84C; }
.ar-deck { margin: 24px 0 30px; max-width: 32em; font-size: 19px; line-height: 1.6; color: rgba(244,239,227,.72); }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; color: rgba(244,239,227,.6); }
.ar-meta img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 2px #C9A84C; }
.ar-meta b { color: #F4EFE3; font-weight: 600; }
.ar-autor { display: flex; align-items: center; gap: 12px; }
.ar-portada { position: relative; }
.ar-portada .lc-portada { aspect-ratio: 2 / 1; border-radius: 22px; box-shadow: 0 50px 90px rgba(0,0,0,.5); transform: rotate(2deg); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ar-portada:hover .lc-portada { transform: none; }

/* ── Cuerpo con índice fijo ── */
.ar-cuerpo { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: center; gap: 70px; padding: 90px 4vw 100px; background: #F4EFE3; color: #1D1C1A; }
.ar-indice { position: sticky; top: 130px; align-self: start; font-size: 14px; }
.ar-indice b { display: block; margin-bottom: 14px; font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase; color: #8F7430; }
.ar-indice-lista { position: relative; }
.ar-indice ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid rgba(10,10,10,.1); }
.ar-indice li { margin: 0 0 12px; }
.ar-indice a { color: #6b6a64; text-decoration: none; line-height: 1.4; transition: color .3s; display: block; }
.ar-indice a:hover, .ar-indice a.ar-on { color: #0A0A0A; font-weight: 600; }
.ar-indice-barra { position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: #C9A84C; transform: scaleY(var(--p, 0)); transform-origin: top; }
.ar-compartir { display: flex; gap: 8px; margin-top: 30px; }
.ar-compartir a, .ar-compartir button { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: #0A0A0A; color: #F4EFE3;
  font: 600 12.5px 'DM Sans', sans-serif; text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.ar-compartir a:hover, .ar-compartir button:hover { background: #C9A84C; color: #0A0A0A; }

.ar-texto { font-size: 19px; line-height: 1.78; }
.ar-texto > p { margin: 0 0 24px; }
.ar-texto > p:first-of-type::first-letter { float: left; margin: 8px 12px 0 0; font: 700 74px/.8 'Playfair Display', serif; color: #8F7430; }
.ar-texto h2 { position: relative; margin: 70px 0 20px; font: 700 clamp(28px, 3vw, 40px)/1.15 'Playfair Display', serif; color: #0A0A0A; scroll-margin-top: 130px; }
.ar-texto h2 .ar-n { display: block; margin-bottom: 6px; font-size: 15px; font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: 3px; color: #C9A84C; }
.ar-texto h3 { margin: 40px 0 12px; font: 700 23px/1.25 'Playfair Display', serif; color: #0A0A0A; }
.ar-texto ul, .ar-texto ol.ar-lista { margin: 0 0 26px; padding-left: 0; list-style: none; }
.ar-texto ul li, .ar-texto ol.ar-lista li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ar-texto ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: #C9A84C; }
.ar-texto strong { color: #0A0A0A; }

/* Enlaces sutiles dentro del texto */
.ar-texto a:not(.ix-btn), .ar-respuesta a { color: #0A0A0A; font-weight: 600; text-decoration: none; background: linear-gradient(#C9A84C, #C9A84C) 0 100% / 100% 2px no-repeat; transition: background-size .35s, color .35s; padding: 0 1px; }
.ar-texto a:not(.ix-btn):hover, .ar-respuesta a:hover { background-size: 100% 100%; color: #0A0A0A; }

/* Resaltado que se dibuja al leer */
.ar-texto mark { background: linear-gradient(rgba(201,168,76,.45), rgba(201,168,76,.45)) 0 85% / 0% 40% no-repeat; color: inherit; transition: background-size 1.1s cubic-bezier(.7,0,.2,1); }
.ar-texto mark.ar-ve { background-size: 100% 40%; }

/* Respuesta corta */
.ar-respuesta { margin: 0 0 40px; padding: 28px 30px; border-radius: 18px; background: #0A0A0A; color: #F4EFE3; font-size: 18px; line-height: 1.7; }
.ar-respuesta b:first-child { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: #C9A84C; }
.ar-respuesta a { color: #F4EFE3; }
.ar-respuesta a:hover { color: #0A0A0A; }

/* Qué hacer */
.ar-accion { position: relative; margin: 6px 0 30px; padding: 22px 24px 22px 64px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(10,10,10,.06), inset 4px 0 0 #C9A84C; font-size: 17px; line-height: 1.65; }
.ar-accion::before { content: ""; position: absolute; left: 22px; top: 24px; width: 26px; height: 26px; border-radius: 50%; background: #C9A84C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230A0A0A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ar-accion b { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8F7430; margin-bottom: 4px; }

/* Cita destacada */
.ar-cita { margin: 50px 0; padding: 0 0 0 28px; border-left: 3px solid #C9A84C; font: italic 700 clamp(24px, 2.6vw, 32px)/1.35 'Playfair Display', serif; color: #0A0A0A; }

/* Tarjeta de servicio dentro del artículo */
.ar-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 30px; margin: 56px 0; padding: 34px; border-radius: 22px; background: #0A0A0A; color: #F4EFE3; overflow: hidden; position: relative; isolation: isolate; }
.ar-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,.35), transparent 70%); z-index: -1; animation: pa-flotar 6s ease-in-out infinite; }
.ar-cta small { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #C9A84C; }
.ar-cta b { display: block; font: 700 26px/1.2 'Playfair Display', serif; }
.ar-cta p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: rgba(244,239,227,.7); }

/* Comparación */
.ar-tabla { width: 100%; margin: 10px 0 36px; border-collapse: separate; border-spacing: 0; font-size: 16px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(10,10,10,.06); }
.ar-tabla th { padding: 16px 18px; text-align: left; font: 700 18px 'Playfair Display', serif; background: #0A0A0A; color: #F4EFE3; }
.ar-tabla th:last-child { background: #C9A84C; color: #0A0A0A; }
.ar-tabla td { padding: 14px 18px; background: #fff; border-top: 1px solid rgba(10,10,10,.07); line-height: 1.5; vertical-align: top; }
.ar-tabla td:last-child { background: #FFFBEF; font-weight: 600; }
.ar-tabla tr { opacity: 0; transform: translateX(-20px); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.ar-tabla.ar-ve tr { opacity: 1; transform: none; }
.ar-tabla.ar-ve tr:nth-child(2) { transition-delay: .1s; } .ar-tabla.ar-ve tr:nth-child(3) { transition-delay: .2s; } .ar-tabla.ar-ve tr:nth-child(4) { transition-delay: .3s; }
.ar-tabla.ar-ve tr:nth-child(5) { transition-delay: .4s; } .ar-tabla.ar-ve tr:nth-child(6) { transition-delay: .5s; }

/* Preguntas */
.ar-faq details { border-bottom: 1px solid rgba(10,10,10,.18); }
.ar-faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 50px 22px 0; font: 700 21px/1.3 'Playfair Display', serif; color: #0A0A0A; }
.ar-faq summary::-webkit-details-marker { display: none; }
.ar-faq summary::before, .ar-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: #8F7430; transition: transform .4s; }
.ar-faq summary::after { transform: rotate(90deg); }
.ar-faq details[open] summary::after { transform: rotate(0); }
.ar-faq details p { margin: 0 0 22px; font-size: 17px; }
.ar-faq details[open] > p { animation: pa-abrir .5s ease; }

/* Autora */
.ar-firma { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 60px; padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 20px 50px rgba(10,10,10,.06); }
.ar-firma img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.ar-firma b { font: 700 21px 'Playfair Display', serif; }
.ar-firma p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: #3B3A36; }

/* ── Página del blog ── */
.bl-hero { padding: 150px 4vw 70px; background: radial-gradient(55% 70% at 85% 30%, rgba(201,168,76,.14), transparent 70%), #0A0A0A; }
.bl-hero .ix-mega { max-width: 12em; }
.bl-hero p { margin: 26px 0 0; max-width: 34em; font-size: 18px; line-height: 1.7; color: rgba(244,239,227,.7); }
.bl-lista { padding: 30px 4vw 130px; background: #0A0A0A; }
.bl-art { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4vw; align-items: center; padding: 50px 0; border-top: 1px solid rgba(201,168,76,.22); color: #F4EFE3; text-decoration: none; }
.bl-art:nth-child(even) .bl-art-vis { order: 2; }
.bl-art .lc-portada { aspect-ratio: 2 / 1; border-radius: 20px; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.bl-art:hover .lc-portada { transform: scale(1.03) rotate(-1deg); }
.bl-art small { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #C9A84C; }
.bl-art h2 { margin: 0 0 16px; font: 700 clamp(28px, 3.2vw, 46px)/1.1 'Playfair Display', serif; transition: color .3s; }
.bl-art:hover h2 { color: #C9A84C; }
.bl-art p { margin: 0 0 24px; font-size: 17px; line-height: 1.7; color: rgba(244,239,227,.68); }
.bl-art span { display: inline-flex; gap: 10px; font-weight: 600; border-bottom: 2px solid #C9A84C; padding-bottom: 3px; }
.bl-art span::after { content: "→"; transition: transform .3s; }
.bl-art:hover span::after { transform: translateX(6px); }
.bl-art .bl-meta { margin-left: 14px; font-size: 13px; color: rgba(244,239,227,.45); border: 0; }
.bl-art .bl-meta::after { content: none; }

@media (max-width: 980px) {
  .ar-hero, .bl-art { grid-template-columns: minmax(0, 1fr); }
  .ar-hero { padding-top: 120px; }
  .ar-portada { max-width: 460px; }
  .ar-cuerpo { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 50px; }
  .ar-indice { position: static; margin-bottom: 36px; padding: 20px; border-radius: 16px; background: #fff; }
  .ar-texto { font-size: 18px; }
  .ar-cta { grid-template-columns: minmax(0, 1fr); padding: 26px; }
  .ar-tabla { font-size: 14px; } .ar-tabla th, .ar-tabla td { padding: 12px; }
  .bl-art:nth-child(even) .bl-art-vis { order: 0; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1px) {
  .ar-texto mark { background-size: 100% 40%; transition: none; } .ar-tabla tr { opacity: 1; transform: none; transition: none; }
}

/* Cierre del blog */
.bl-cierre { padding: 120px 4vw; background: #C9A84C; color: #0A0A0A; text-align: center; }
.bl-cierre .ix-mega { max-width: 13em; margin: 0 auto 40px; font-size: clamp(38px, 5vw, 80px); }
.bl-cierre .ix-acciones { justify-content: center; }
.bl-cierre .ix-btn-oro { background: #0A0A0A; color: #F4EFE3; }
.bl-cierre .ix-btn-linea { color: #0A0A0A; box-shadow: inset 0 0 0 1px #0A0A0A; }
.ar-hero-legal { grid-template-columns: minmax(0, 1fr); padding-bottom: 60px; }
.ar-hero-legal h1 { max-width: 14em; }
