
/* APRODAP v174 · Orientación de memoria */
.ap-v174-memory-entry{margin-top:22px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:20px 22px;border:1px solid #cce8e4;border-radius:24px;background:linear-gradient(135deg,#f0fdfa 0%,#f7fffe 58%,#eef8ff 100%);box-shadow:0 14px 34px rgba(15,118,110,.08)}
.ap-v174-memory-icon{width:62px;height:62px;border-radius:20px;display:grid;place-items:center;background:#0f766e;color:#fff;font-size:1.65rem;box-shadow:0 10px 22px rgba(15,118,110,.2)}
.ap-v174-memory-copy>span,.ap-v174-memory-kicker,.ap-v174-memory-result-kicker{display:block;color:#0f766e;font-size:.72rem;font-weight:900;letter-spacing:.09em}
.ap-v174-memory-copy h3{margin:.2rem 0 .3rem;color:#17365d;font-size:1.25rem;font-weight:900}
.ap-v174-memory-copy p{margin:0;color:#536779}
.ap-v174-memory-copy small{display:block;margin-top:7px;color:#667b88}
.ap-v174-memory-open{border:0;border-radius:999px;padding:.75rem 1rem;background:#0f766e;color:#fff;font-weight:850;white-space:nowrap;box-shadow:0 8px 18px rgba(15,118,110,.18)}
.ap-v174-memory-modal .modal-content{border:0;border-radius:28px;overflow:hidden;box-shadow:0 30px 90px rgba(15,23,42,.25)}
.ap-v174-memory-modal .modal-header{align-items:flex-start;padding:22px 24px 18px;border-bottom:1px solid #dcefea;background:linear-gradient(135deg,#ecfdf5,#effaff)}
.ap-v174-memory-modal .modal-title{margin:.18rem 0 .2rem;color:#17365d;font-weight:900}
.ap-v174-memory-modal .modal-header p{margin:0;color:#617386}
.ap-v174-memory-modal .modal-body{padding:22px 24px 24px}
.ap-v174-memory-alert,.ap-v174-memory-official,.ap-v174-memory-urgent,.ap-v174-memory-source{display:flex;gap:12px;align-items:flex-start;border-radius:17px;padding:13px 14px}
.ap-v174-memory-alert{margin-bottom:18px;background:#f7fbff;border:1px solid #dcecf8;color:#41576b}
.ap-v174-memory-alert>i{color:#0e7490;font-size:1.2rem}
.ap-v174-memory-alert span{display:block;margin-top:2px;font-size:.86rem}
.ap-v174-memory-step{display:none}.ap-v174-memory-step.is-active{display:block}
.ap-v174-memory-choice-title{text-align:center;color:#17365d;font-size:1.05rem;font-weight:900;margin:6px 0 13px}
.ap-v174-memory-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ap-v174-memory-choice-grid button{display:grid;grid-template-columns:auto 1fr;gap:2px 11px;text-align:left;padding:17px;border:1px solid #d7e7e5;border-radius:18px;background:#fff;color:#17365d}
.ap-v174-memory-choice-grid button>i{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#e8f8f5;color:#0f766e;font-size:1.2rem}
.ap-v174-memory-choice-grid button strong{font-size:1rem}.ap-v174-memory-choice-grid button span{color:#687c8d;font-size:.85rem}
.ap-v174-memory-official{margin-top:14px;background:#fffbeb;border:1px solid #fde7a7;color:#655629}
.ap-v174-memory-official>i{color:#b7791f;font-size:1.15rem}.ap-v174-memory-official p{margin:0;font-size:.86rem}
.ap-v174-memory-progress{display:flex;align-items:center;gap:12px;margin-bottom:18px;color:#64748b;font-size:.8rem;font-weight:800}
.ap-v174-memory-progress>div{height:7px;flex:1;overflow:hidden;border-radius:99px;background:#e5efee}.ap-v174-memory-progress i{display:block;height:100%;width:14%;border-radius:inherit;background:#0f766e;transition:width .2s ease}
.ap-v174-memory-question{text-align:center;max-width:610px;margin:0 auto 18px}.ap-v174-memory-question h3{margin:.3rem 0 .35rem;color:#17365d;font-size:1.35rem;font-weight:900}.ap-v174-memory-question p{margin:0;color:#687c8d;font-size:.9rem}
.ap-v174-memory-answer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ap-v174-memory-answer-grid button{padding:15px 10px;border:1px solid #d5e6e4;border-radius:16px;background:#fff;color:#17365d;font-weight:850}.ap-v174-memory-answer-grid button i{display:block;margin-bottom:5px;color:#0f766e;font-size:1.3rem}
.ap-v174-memory-back{margin-top:12px;border:0;background:transparent;color:#64748b;font-weight:800}
.ap-v174-memory-step[data-v174-step="result"]{text-align:center}.ap-v174-memory-result-icon{width:62px;height:62px;margin:2px auto 10px;border-radius:20px;display:grid;place-items:center;background:#e8f8f5;color:#0f766e;font-size:1.6rem}.ap-v174-memory-step[data-v174-step="result"] h3{color:#17365d;font-weight:900}.ap-v174-memory-step[data-v174-step="result"]>p{max-width:600px;margin:0 auto;color:#5e7182}
.ap-v174-memory-result-note{max-width:620px;margin:14px auto;padding:12px 14px;border-radius:15px;background:#f7fafc;color:#4b6174;font-size:.88rem}
.ap-v174-memory-result-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.ap-v174-memory-result-actions a,.ap-v174-memory-result-actions button{border-radius:999px;padding:.7rem .95rem;font-weight:850;text-decoration:none}.ap-v174-memory-cesfam{background:#0f766e;color:#fff}.ap-v174-memory-result-actions button{border:1px solid #b9d9d5;background:#fff;color:#0f766e}
.ap-v174-memory-urgent{margin-top:18px;background:#fff7ed;border:1px solid #fed7aa;color:#7c4a1d}.ap-v174-memory-urgent>i{color:#c2410c}.ap-v174-memory-urgent p{margin:0;font-size:.84rem}
.ap-v174-memory-source{margin-top:10px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;color:#526779}.ap-v174-memory-source>i{color:#0f766e}.ap-v174-memory-source div{flex:1}.ap-v174-memory-source span{display:block;font-size:.78rem}.ap-v174-memory-source a{color:#0f766e;font-size:.8rem;font-weight:850;text-decoration:none}
@media(max-width:767.98px){.ap-v174-memory-entry{grid-template-columns:auto 1fr;padding:16px}.ap-v174-memory-icon{width:52px;height:52px;border-radius:17px}.ap-v174-memory-open{grid-column:1/-1;width:100%}.ap-v174-memory-modal .modal-dialog{margin:0;min-height:100%}.ap-v174-memory-modal .modal-content{min-height:100vh;border-radius:0}.ap-v174-memory-modal .modal-body{padding:17px}.ap-v174-memory-choice-grid{grid-template-columns:1fr}.ap-v174-memory-answer-grid{grid-template-columns:1fr}.ap-v174-memory-answer-grid button{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px}.ap-v174-memory-answer-grid button i{display:inline;margin:0}.ap-v174-memory-source{align-items:flex-start;flex-wrap:wrap}.ap-v174-memory-source a{width:100%;padding-left:28px}}

/* APRODAP v248 · ajuste visual de la tarjeta de memoria SOLO en teléfono.
   Conserva íntegramente el modal y la lógica v174. */
@media(max-width:767.98px){
  #programas-salud .ap-v296-orientation-grid .ap-v174-memory-entry{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
    gap:10px!important;
    align-items:start!important;
    min-height:0!important;
    padding:18px!important;
    border-radius:22px;
  }
  #programas-salud .ap-v296-orientation-grid .ap-v174-memory-icon{
    grid-row:auto!important;
    width:48px;
    height:48px;
    border-radius:15px;
    font-size:1.3rem;
    margin:0 0 2px;
  }
  #programas-salud .ap-v296-orientation-grid .ap-v174-memory-copy{
    min-width:0;
  }
  #programas-salud .ap-v296-orientation-grid .ap-v174-memory-copy>span{
    font-size:.68rem;
    line-height:1.35;
    letter-spacing:.075em;
  }
  #programas-salud .ap-v296-orientation-grid .ap-v174-memory-copy h3{
    margin:.35rem 0 .4rem;
    font-size:1.35rem;
    line-height:1.08;
  }
  #programas-salud .ap-v296-orientation-grid .ap-v174-memory-copy p{
    font-size:.93rem;
    line-height:1.5;
  }
  #programas-salud .ap-v296-orientation-grid .ap-v174-memory-copy small{
    margin-top:9px;
    font-size:.78rem;
    line-height:1.45;
  }
  #programas-salud .ap-v296-orientation-grid .ap-v174-memory-open{
    grid-column:auto!important;
    justify-self:stretch!important;
    width:100%!important;
    min-height:48px;
    margin-top:4px!important;
    white-space:normal;
    line-height:1.2;
  }
}
