/* Sección Aprende: portada de artículos y lectura. Estilo Apple: blanco, gris #f5f5f7, azul #0071e3. */

/* --- Portada de la sección --- */
.ap-hub-head{padding:76px 0 34px;max-width:860px;margin-right:auto!important;margin-left:0!important}
.ap-hub-head h1{font-size:56px;line-height:1.06;letter-spacing:-.022em;font-weight:600;margin:10px 0 18px}
.ap-hub-head .intro{font-size:19px;line-height:1.5;color:#424245;max-width:620px}

/* Tarjetas al estilo Newsroom: la foto llena la tarjeta y el título va encima, sobre un
   degradado oscuro. La categoría va en una píldora de color para distinguir los temas. */
.ap-hub-list{padding-bottom:56px;display:grid;gap:24px}
.ap-card{position:relative;display:block;overflow:hidden;border-radius:24px;background:#1d1d1f;color:#fff;text-decoration:none;
  aspect-ratio:4/3;isolation:isolate;transition:transform .3s ease,box-shadow .3s ease}
.ap-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,.18)}
.ap-card-img{position:absolute;inset:0;z-index:-2}
.ap-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease}
.ap-card:hover .ap-card-img img{transform:scale(1.04)}
.ap-card::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(to top,rgba(0,0,0,.82) 0%,rgba(0,0,0,.55) 30%,rgba(0,0,0,.08) 62%,rgba(0,0,0,0) 100%)}
.ap-card-txt{position:absolute;left:0;right:0;bottom:0;padding:26px 28px 28px}
.ap-card-tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#fff;
  background:#0071e3;border-radius:999px;padding:4px 10px 3px;margin-bottom:12px}
.ap-tag-clientes{background:#0071e3}
.ap-tag-numeros{background:#248a3d}
.ap-tag-ia{background:#8944ab}
.ap-card h2{font-size:24px;line-height:1.18;letter-spacing:-.015em;font-weight:600;margin:0 0 12px;color:#fff;text-wrap:balance}
.ap-card-meta{display:block;font-size:14px;font-weight:500;color:rgba(255,255,255,.85)}

/* La nota más reciente ocupa todo el ancho. */
.ap-card-lead{aspect-ratio:2/1}
.ap-card-lead .ap-card-txt{padding:40px 44px 40px;max-width:860px}
.ap-card-lead h2{font-size:40px;line-height:1.1;letter-spacing:-.022em}
.ap-card-lead .ap-card-meta{font-size:15px}
.ap-hub-rest{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}

@media (max-width:899px){
  .ap-card-lead{aspect-ratio:4/3}
  .ap-card-lead h2{font-size:30px}
  .ap-card-lead .ap-card-txt{padding:30px 30px 32px}
}
@media (max-width:767px){
  .ap-hub-rest{grid-template-columns:1fr}
  .ap-card,.ap-card-lead{aspect-ratio:4/5;border-radius:20px}
  .ap-card h2,.ap-card-lead h2{font-size:24px}
  .ap-card-txt,.ap-card-lead .ap-card-txt{padding:22px 22px 24px}
}

/* --- Artículo --- */
.ap-head{padding:70px 0 26px;max-width:720px;margin-right:auto!important;margin-left:0!important}
.ap-head .eyebrow a{color:inherit;text-decoration:none}
.ap-head .eyebrow a:hover{text-decoration:underline}
.ap-head h1{font-size:54px;line-height:1.06;letter-spacing:-.022em;font-weight:600;margin:10px 0 16px}
.ap-head .intro{font-size:21px;line-height:1.45;color:#424245;margin:0 0 18px}
.ap-meta{font-size:13.5px;color:#6e6e73;margin:0}

.ap-body{max-width:720px;padding-bottom:30px;margin-right:auto!important;margin-left:0!important}
.ap-body p{font-size:18px;line-height:1.62;color:#1d1d1f;margin:0 0 20px}
.ap-body h2{font-size:30px;line-height:1.18;letter-spacing:-.018em;font-weight:600;margin:46px 0 18px}
.ap-body h3{font-size:17px;line-height:1.3;font-weight:600;margin:0 0 6px}
.ap-body sup a{color:#0071e3;text-decoration:none;font-size:12px;padding:0 1px}
.ap-body b{font-weight:600}

/* Los tres pasos del cálculo */
.ap-nums{display:grid;gap:14px;margin:28px 0 34px}
.ap-nums>div{background:#f5f5f7;border-radius:16px;padding:22px 24px}
.ap-nums p{font-size:15.5px;line-height:1.5;color:#424245;margin:0}
.ap-n{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#0071e3;color:#fff;font-size:13px;font-weight:600;margin-bottom:12px}

/* Tabla de costos */
.ap-table{width:100%;border-collapse:collapse;margin:8px 0 30px;font-size:16.5px}
.ap-table td{padding:13px 2px;border-bottom:1px solid #e3e3e6;color:#1d1d1f}
.ap-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ap-table .ap-total td{font-weight:600;border-bottom:none;border-top:2px solid #1d1d1f;padding-top:14px}

/* Fórmula destacada */
.ap-formula{background:#f5f5f7;border-radius:14px;padding:20px 24px;font-size:19px!important;text-align:center;margin:4px 0 24px!important;font-variant-numeric:tabular-nums}

.ap-list,.ap-steps{list-style:none;padding:0;margin:0 0 26px;display:grid;gap:16px}
.ap-list li,.ap-steps li{font-size:17px;line-height:1.6;color:#1d1d1f;padding-left:20px;position:relative}
.ap-list li::before{content:"";position:absolute;left:0;top:11px;width:7px;height:7px;border-radius:50%;background:#0071e3}
.ap-steps{counter-reset:s}
.ap-steps li{padding-left:34px;counter-increment:s}
.ap-steps li::before{content:counter(s);position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:50%;background:#1d1d1f;color:#fff;font-size:12.5px;font-weight:600;display:flex;align-items:center;justify-content:center}

/* Llamada a la acción dentro del artículo */
.ap-cta{background:#f5f5f7;border-radius:22px;padding:40px 36px;margin:50px 0 44px;text-align:center}
.ap-cta h2{margin:8px 0 12px!important;font-size:28px!important}
.ap-cta p{font-size:16.5px;color:#424245;max-width:460px;margin:0 auto 22px}
.ap-cta .actions{display:flex;flex-direction:column;align-items:center;gap:12px}

/* Fuentes */
.ap-sources{border-top:1px solid #e3e3e6;padding-top:28px;margin-bottom:60px}
.ap-sources h2{font-size:19px!important;margin:0 0 16px!important}
.ap-sources ol{margin:0 0 18px;padding-left:20px;display:grid;gap:12px}
.ap-sources li{font-size:14.5px;line-height:1.55;color:#424245}
.ap-sources a{color:#0066cc}
.ap-note{font-size:13px!important;color:#6e6e73;margin:0!important}

@media (max-width:1023px){
  .ap-hub-head,.ap-head{padding-top:54px}
  .ap-hub-head h1,.ap-head h1{font-size:38px}
  .ap-head .intro{font-size:19px}
}
@media (max-width:640px){
  .ap-hub-head h1,.ap-head h1{font-size:33px}
  .ap-hub-head .intro,.ap-head .intro{font-size:17.5px}
  .ap-body p{font-size:17px}
  .ap-body h2{font-size:25px;margin-top:38px}
  .ap-card{padding:26px 22px 24px}
  .ap-card h2{font-size:22px}
  .ap-cta{padding:32px 22px;border-radius:18px}
  .ap-cta h2{font-size:24px!important}
  .ap-formula{font-size:17px!important;padding:18px 16px}
  .ap-table{font-size:15.5px}
}

/* Mismo ancho y mismo borde izquierdo para el titular y el cuerpo del artículo. */
.ap-head,.ap-body,.ap-hub-head{box-sizing:border-box;max-width:800px!important;padding-left:40px!important;padding-right:40px!important;margin-left:0!important;margin-right:auto!important}
.ap-head h1,.ap-hub-head h1,.ap-head .intro,.ap-hub-head .intro{max-width:none!important}
@media (max-width:640px){
  .ap-head,.ap-body,.ap-hub-head{padding-left:24px!important;padding-right:24px!important}
}

/* --- Imágenes y gráficos dentro del artículo --- */
.ap-figure{margin:0 0 30px}
.ap-figure img{width:100%;height:auto;display:block;border-radius:16px;background:#f5f5f7}
.ap-figure figcaption,.ap-chart figcaption{font-size:13.5px;line-height:1.5;color:#6e6e73;margin-top:10px}

/* Gráficos: SVG propio, sin librerías, para que expliquen el número del que habla el texto. */
.ap-chart{margin:4px 0 32px;background:#f5f5f7;border-radius:18px;padding:26px 24px 20px}
.ap-chart svg{width:100%;height:auto;display:block}
.ap-chart .ap-chart-title{font-size:15px;font-weight:600;color:#1d1d1f;margin:0 0 16px}
.ap-chart figcaption{margin-top:14px}
.ap-c-grid{stroke:#d9d9de;stroke-width:1}
.ap-c-axis{stroke:#86868b;stroke-width:1}
.ap-c-label{font:500 13px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;fill:#6e6e73}
.ap-c-value{font:600 14px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;fill:#1d1d1f}
.ap-c-key{font:600 13px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}

@media (max-width:640px){
  .ap-chart{padding:20px 14px 16px;border-radius:14px}
  .ap-c-label{font-size:22px}
  .ap-c-value{font-size:24px}
  .ap-c-key{font-size:21px}
  .ap-figure img{border-radius:12px}
}

/* Leyenda fuera del SVG: así no se encima cuando el gráfico se achica en celular. */
.ap-legend{list-style:none;display:flex;flex-wrap:wrap;gap:8px 20px;margin:14px 0 0;padding:0}
.ap-legend li{display:flex;align-items:center;gap:7px;font-size:13.5px;font-weight:500;color:#424245}
.ap-legend i{width:16px;height:3px;border-radius:2px;flex:none}
.ap-legend .ap-dash{background:repeating-linear-gradient(90deg,#86868b 0 5px,transparent 5px 9px)}
@media (max-width:640px){.ap-c-hide-s{display:none}}

/* Crédito de la foto: discreto, del mismo gris que la leyenda. */
.ap-figure figcaption a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.ap-figure figcaption a:hover{color:#1d1d1f}
