/* Centro de vista: estilos nuevos y preferencias exclusivamente <=767.98px. */
.apvc{--vc-bg:#fffaf2;--vc-card:#fffdf8;--vc-text:#183f38;--vc-muted:#586c62;--vc-edge:#e4e7db;--vc-accent:#17695e;--vc-soft:#e9f4ed;border:0;padding:0;color:var(--vc-text);background:var(--vc-bg);width:min(100% - 20px,540px);max-height:94dvh;border-radius:26px;box-shadow:0 24px 90px #062b4340}
.apvc:not([open]){display:none}
.apvc[open]{display:flex;flex-direction:column}
.apvc::backdrop{background:#071c2bbc;backdrop-filter:blur(3px)}
.apvc[data-theme="dark"]{--vc-bg:#0c1c25;--vc-card:#152b36;--vc-text:#edf6f4;--vc-muted:#b8cec7;--vc-edge:#34505a;--vc-accent:#65dfca;--vc-soft:#1c3d42;color-scheme:dark}
.apvc[data-contrast="true"]{--vc-muted:var(--vc-text);--vc-edge:var(--vc-text)}
.apvc-header{display:flex;align-items:flex-start;gap:14px;padding:23px 20px 19px;background:var(--vc-soft);border-bottom:1px solid var(--vc-edge);flex:0 0 auto}
.apvc-header>div{flex:1;min-width:0}.apvc-eyebrow{font-size:.7rem;font-weight:800;letter-spacing:.08em;color:var(--vc-accent)}
.apvc-header h2{font-size:1.65rem;font-weight:850;line-height:1.18;letter-spacing:-.035em;margin:8px 0;color:var(--vc-text)}
.apvc-header p{font-size:.98rem;line-height:1.45;margin:0;color:var(--vc-muted)}
.apvc button,.apvc select,.apvc input{font:inherit}
.apvc button:focus-visible,.apvc summary:focus-visible,.apvc select:focus-visible,.apvc input:focus-visible{outline:3px solid #dbaa3a;outline-offset:3px}
.apvc-header>button{flex-shrink:0;border:1px solid var(--vc-edge);border-radius:50%;width:44px;height:44px;background:var(--vc-card);color:var(--vc-text)}
.apvc-body{overflow-y:auto;overscroll-behavior:contain;padding:16px;min-height:0;flex:1}
.apvc-preview{padding:17px;border-radius:19px;border:1px solid var(--vc-edge);background:var(--vc-soft);margin-bottom:16px}
.apvc-preview>small{font-size:.67rem;letter-spacing:.06em;font-weight:800;color:var(--vc-muted)}
.apvc-preview h3{font-size:var(--preview-title,1.12rem);line-height:1.35;margin:13px 0;color:var(--vc-text);font-weight:800}
.apvc-preview h3 i{color:var(--vc-accent);margin-right:7px}
.apvc-preview p{font-size:var(--preview-text,1rem);line-height:var(--preview-leading,1.5);margin:0;color:var(--vc-text)}
.apvc-section{border:1px solid var(--vc-edge);border-radius:18px;background:var(--vc-card);margin-bottom:12px}
.apvc-section summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:64px;padding:16px;cursor:pointer}
.apvc-section summary::-webkit-details-marker{display:none}.apvc-section summary>i:first-child{font-size:1.3rem;color:var(--vc-accent)}
.apvc-section summary>strong{flex:1;font-size:1.05rem;line-height:1.4}.apvc-section[open] summary>i:last-child{transform:rotate(180deg)}
.apvc-section-body{padding:0 16px 16px;border-top:1px solid var(--vc-edge)}
.apvc-section-body>p{font-size:.96rem;color:var(--vc-muted);line-height:1.5;margin:13px 0}
.apvc-field{display:grid;gap:7px;margin:16px 0;font-size:.96rem;font-weight:650}
.apvc-field select{width:100%;min-width:0;min-height:48px;padding:11px 12px;border:1px solid var(--vc-edge);border-radius:12px;background:var(--vc-bg);color:var(--vc-text);font-weight:500}
.apvc-check{display:flex;align-items:flex-start;gap:12px;margin:17px 0;padding:12px;border-radius:13px;background:var(--vc-bg);cursor:pointer}
.apvc-check input{accent-color:var(--vc-accent);width:25px;height:25px;flex:0 0 25px;margin:3px 0 0}
.apvc-check strong{display:block;font-size:.97rem;line-height:1.4}.apvc-check small{display:block;margin-top:5px;font-size:.86rem;line-height:1.5;color:var(--vc-muted)}
.apvc-action,.apvc-profiles button,.apvc-section-reset,.apvc-reset-all{min-height:46px;border:1px solid var(--vc-edge);border-radius:12px;padding:11px;background:var(--vc-bg);color:var(--vc-accent);font-weight:700;margin:8px 0;width:100%}
.apvc-action:disabled{opacity:.5}.apvc-section-reset{font-size:.86rem;border:0;background:transparent;text-decoration:underline}
.apvc-toolbar-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;background:var(--vc-bg);border:1px solid var(--vc-edge);border-radius:18px;padding:12px 5px}
.apvc-toolbar-preview>span{display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;color:var(--vc-text);min-width:0}.apvc-toolbar-preview i{font-size:1.3rem}.apvc-toolbar-preview small{font-size:.65rem;overflow-wrap:anywhere}.apvc-toolbar-preview .is-center{color:var(--vc-accent)}
.apvc-profiles{display:flex;gap:8px;flex-wrap:wrap}.apvc-profiles button{flex:1;min-width:100px;font-size:.85rem;width:auto}
.apvc-import{display:grid;gap:9px;font-size:.95rem;font-weight:700;margin:12px 0}.apvc-import input{font-size:.82rem;max-width:100%;color:var(--vc-muted)}
.apvc-footer{flex:0 0 auto;background:var(--vc-card);border-top:1px solid var(--vc-edge);padding:14px 16px max(14px,env(safe-area-inset-bottom))}
.apvc-footer>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.apvc-footer button{min-height:49px;border:1.5px solid var(--vc-accent);border-radius:14px;background:var(--vc-card);color:var(--vc-accent);font-weight:750}
.apvc-footer #apvcSave{background:#17695e;color:white;border-color:#17695e}.apvc[data-theme="dark"] #apvcSave{background:#51cbb6;color:#072d2b;border-color:#51cbb6}
.apvc-footer>small{display:block;text-align:center;color:var(--vc-muted);font-size:.77rem;margin-top:9px}
#apvcStatus:not(:empty){padding:12px;border-radius:12px;background:var(--vc-soft);color:var(--vc-text);font-size:.95rem;line-height:1.5}
.apvc-feedback{position:fixed;bottom:100px;left:16px;right:16px;z-index:2147483647;background:#174f44;color:#fff;border:1px solid #86c9ac;padding:15px;border-radius:15px;box-shadow:0 7px 25px #0003;font-size:1rem;line-height:1.5}
.apvc-feedback[hidden]{display:none}
@media(max-width:767.98px){
body.apvc-open{overflow:hidden!important}
body.apvc-open :is(.aprodap-mobile-toolbar,#aprodapSidePanelWrapper,.ap-u25-urgent-fab,#aprodap-chatbot-react-root){visibility:hidden!important;pointer-events:none!important}
body.apvc-toolbar-scrolled .aprodap-mobile-toolbar{transform:translateY(150%)!important;pointer-events:none}
html[data-ap-view-labels="no"] .aprodap-mobile-toolbar>a>span:last-child{display:none!important}
html[data-ap-view-assistant="false"] #aprodap-chatbot-react-root,html[data-ap-view-urgent="false"] .ap-u25-urgent-fab,html[data-ap-view-side="false"] #aprodapSidePanelWrapper{display:none!important}
html[data-ap-view-columns="one"] #apMobileServices{grid-template-columns:minmax(0,1fr)!important}
html[data-ap-view-columns="two"] #apMobileServices{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-ap-view-columns="two"] #apMobileServices .ap-m-service{flex-direction:column!important;align-items:center!important;text-align:center!important;padding:18px 10px 15px!important}
html[data-ap-view-columns="two"] #apMobileServices .ap-m-service strong{overflow-wrap:anywhere;max-width:100%}
html[data-ap-view-cardspace="wide"] #apMobileServices{gap:22px!important}
html[data-ap-view-icons="large"] #apMobileServices .ap-m-service-icon{font-size:2.5rem!important}
html[data-ap-view-icons="large"] #apMobileServices .ap-m-service-icon img{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important}
html:is([data-ap-view-titles="large"],[data-ap-view-titles="extra"]) .ap-v147-acc-head strong{font-size:var(--apvc-title-size)!important;line-height:1.35!important;white-space:normal!important}
html:is([data-ap-view-text="large"],[data-ap-view-text="extra"]) main :is(.ap-v147-acc-inner p,.ap-v147-acc-inner li,.ap-v147-acc-inner label,.ap-v147-acc-inner .accordion-body,.ap-v147-acc-inner .ap-aps-section-intro),html:is([data-ap-view-text="large"],[data-ap-view-text="extra"]) :is(.modal-body p,.modal-body li,.modal-body label){font-size:var(--apvc-text-size)!important;overflow-wrap:anywhere}
html:is([data-ap-view-spacing="relaxed"],[data-ap-view-spacing="wide"]) main :is(p,li),html:is([data-ap-view-spacing="relaxed"],[data-ap-view-spacing="wide"]) .modal-body :is(p,li){line-height:var(--apvc-leading)!important}
html[data-ap-view-font="simple"] :is(main,.modal,.apvc){font-family:Arial,sans-serif!important}
html[data-ap-view-font="system"] :is(main,.modal,.apvc){font-family:system-ui,-apple-system,sans-serif!important}
html[data-ap-view-buttons="true"] main :is(.ap-v147-acc-head,.btn,.ap-m-service,.ap-m-settings-button),html[data-ap-view-buttons="true"] .modal :is(.btn,select,input:not([type="checkbox"]):not([type="radio"])){min-height:52px!important;white-space:normal}
html[data-ap-view-motion="true"] :is(main,.aprodap-mobile-toolbar,.modal,.apvc),html[data-ap-view-motion="true"] :is(main,.aprodap-mobile-toolbar,.modal,.apvc) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-ap-view-palette="warm"]{--apvc-highlight:#98621f;--apvc-highlight-soft:#fff2de}
html[data-ap-view-palette="blue"]{--apvc-highlight:#075985;--apvc-highlight-soft:#e7f3fb}
html:is([data-ap-view-palette="warm"],[data-ap-view-palette="blue"]) :is(.ap-v147-acc-head,.ap-order-open){border-color:var(--apvc-highlight)!important}
html:is([data-ap-view-palette="warm"],[data-ap-view-palette="blue"]) :is(.ap-v147-acc-icon,.ap-m-service-icon){color:var(--apvc-highlight)!important;background:var(--apvc-highlight-soft)!important}
html[data-ap-view-theme="light"]{--apvc-page:#f7f8f4;--apvc-surface:#fff;--apvc-ink:#183b39;--apvc-secondary:#536c68;--apvc-border:#cedbd5}
html[data-ap-view-theme="dark"]{--apvc-page:#0c1c25;--apvc-surface:#162c37;--apvc-ink:#edf5f4;--apvc-secondary:#c2d7d1;--apvc-border:#37535e}
html:is([data-ap-view-theme="light"],[data-ap-view-theme="dark"]) body{background:var(--apvc-page)!important;color:var(--apvc-ink)!important}
html:is([data-ap-view-theme="light"],[data-ap-view-theme="dark"]) :is(main,.ap-aps-section,.ap-v147-acc-inner,.ap-m-home,.ap-m-smart-hero,.aprodap-footer){background:var(--apvc-page)!important;color:var(--apvc-ink)!important}
html:is([data-ap-view-theme="light"],[data-ap-view-theme="dark"]) :is(.ap-v147-acc,.ap-v147-acc-head,.ap-m-service-wrap,.ap-m-service,.ap-m-favorites,.ap-m-search-box,.aprodap-mobile-toolbar,.ap-aps-service-card,.ap-aps-education-card,.ap-v232-program-card,.ap-v72-link-card,.ap-idpc-card,.ap-v127-card,.ap-v272-panel,.ap-community-card,.ap-community-services,.ap-m-settings-modal .modal-body,.ap-m-settings-modal .modal-footer,.modal-content,.modal-header,.modal-body,.modal-footer,.ap-order-row,.ap-order-note){background:var(--apvc-surface)!important;color:var(--apvc-ink)!important;border-color:var(--apvc-border)!important}
html:is([data-ap-view-theme="light"],[data-ap-view-theme="dark"]) main :is(h1,h2,h3,h4,h5,p,label,.ap-v147-acc-copy strong,.ap-m-service strong,.ap-community-copy strong,.ap-aps-service-card strong,.ap-v72-link-card strong){color:var(--apvc-ink)!important}
html:is([data-ap-view-theme="light"],[data-ap-view-theme="dark"]) :is(.ap-v147-acc-copy small,.ap-m-external,.ap-m-service small,.ap-community-copy p,.aprodap-footer p){color:var(--apvc-secondary)!important}
html:is([data-ap-view-theme="light"],[data-ap-view-theme="dark"]) :is(.aprodap-mobile-toolbar>a,.aprodap-mobile-toolbar__brand,.modal-content h2,.modal-content h3,.modal-content p,.modal-content label,.ap-order-labels strong){color:var(--apvc-ink)!important}
html[data-ap-view-theme="dark"] :is(.ap-m-search-box input,.modal input:not([type="checkbox"]):not([type="radio"]),.modal select,.modal textarea){background:#0d202a!important;color:#edf5f4!important;border-color:#507078!important}
html[data-ap-view-theme="dark"] :is(.modal .btn-close){filter:invert(1) grayscale(1)}
html[data-ap-view-theme="dark"] .ap-v147-acc-icon{background:#224651!important;color:#85e2d2!important}
html[data-ap-view-theme="dark"] .ap-order-arrows button{background:#143b3d;color:#8de4d5;border-color:#67968b}
html[data-ap-view-theme="dark"] .ap-order-labels small{color:#c2d7d1}
html[data-ap-view-contrast="true"] :is(.ap-v147-acc-head,.ap-m-service-wrap,.ap-m-search-box){border-width:2px!important;border-color:#17695e!important}
html[data-ap-view-theme="dark"][data-ap-view-contrast="true"] :is(.ap-v147-acc-head,.ap-m-service-wrap,.ap-m-search-box){border-color:#abeedf!important}
html[data-ap-view-contrast="true"] main :is(.ap-v147-acc-copy small,.ap-m-external){font-weight:700!important}
}
@media(max-width:767.98px){
html[data-ap-view-theme="dark"] :is(.ap-aps-section-intro,.ap-aps-section-copy,.ap-v148-mobile-index strong,.ap-v148-mobile-index span,.ap-v232-program-card strong,.ap-aps-education-card strong,.ap-idpc-card strong,.ap-community-group){color:var(--apvc-ink)!important}
html[data-ap-view-theme="dark"] :is(.ap-u159-triage__panel,.ap-u159-triage__video-card,.aprodap-access-card,.ap-u5-card){background:var(--apvc-surface)!important;border-color:var(--apvc-border)!important}
html[data-ap-view-theme="dark"] :is(.aprodap-access-card strong,.ap-u5-card h3,.ap-u159-triage__panel p,.ap-aps-education-card p){color:var(--apvc-ink)!important}
html:is([data-ap-view-text="large"],[data-ap-view-text="extra"]) .ap-v147-acc-inner :is(.ap-aps-service-card strong,.ap-v232-program-card strong,.ap-community-copy strong,.ap-aps-education-card strong){font-size:var(--apvc-text-size)!important;line-height:1.4!important}
}
@media(max-width:360px){.apvc{width:100%;max-height:100dvh;border-radius:0}.apvc-header{padding:17px 14px}.apvc-header h2{font-size:1.45rem}.apvc-body{padding:12px}}

/* v2: solo presentación del centro, sin cambios en la página configurada. */
.apvc{width:min(calc(100% - 16px),540px);max-height:96dvh;border-radius:25px}
.apvc-header{background:var(--vc-card);padding:18px 18px 16px;border-bottom:0;gap:10px}
.apvc-brand{display:flex;align-items:center;gap:9px;margin-bottom:16px}
.apvc-brand>img{width:38px;height:38px;object-fit:contain}
.apvc-brand>span{display:grid;gap:1px}
.apvc-brand strong{font-size:1rem;font-weight:850;letter-spacing:.02em;color:var(--vc-text)}
.apvc-brand small{font-size:.75rem;color:var(--vc-muted)}
.apvc-header h2{font-size:1.48rem;line-height:1.25;letter-spacing:-.035em;margin:0 0 7px;max-width:100%}
.apvc-header p{font-size:.92rem;line-height:1.4}
.apvc-header>button{width:42px;height:42px;margin-top:0}
.apvc-body{padding:4px 15px 15px}
.apvc-preview{background:var(--vc-soft);padding:14px;border-radius:19px;margin-bottom:14px;box-shadow:0 4px 12px #163a3205}
.apvc-preview>small{font-size:.66rem;letter-spacing:.025em;text-transform:none}
.apvc-preview-sample{background:var(--vc-card);border-radius:14px;padding:13px;margin-top:10px;box-shadow:0 3px 10px #163a320a}
.apvc-preview h3{display:flex;align-items:center;gap:9px;margin:0 0 8px;line-height:1.3;font-size:var(--preview-title,1.12rem)}
.apvc-preview h3>span{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:12px;background:var(--vc-soft);color:var(--vc-accent)}
.apvc-preview h3>span i{margin:0;font-size:1.2rem}.apvc-preview h3 .apvc-sample-chevron{margin-left:auto;font-size:.8rem;color:var(--vc-muted)}
.apvc-preview-sample p{padding-left:44px;font-size:var(--preview-text,1rem)}
.apvc-section{border-radius:16px;margin-bottom:10px;background:var(--vc-card);box-shadow:0 2px 9px #173a3303}
.apvc-section summary{padding:13px 14px;min-height:66px;gap:12px}
.apvc-section summary>i:first-child{display:grid;place-items:center;flex:0 0 30px;width:30px;font-size:1.3rem}
.apvc-summary-copy{display:grid;gap:3px;flex:1;min-width:0}
.apvc-summary-copy strong{font-size:1rem;font-weight:800;line-height:1.25;color:var(--vc-text)}
.apvc-summary-copy small{font-size:.8rem;line-height:1.35;font-weight:400;color:var(--vc-muted)}
.apvc-section summary>i:last-child{font-size:.8rem;color:var(--vc-muted)}
.apvc-section-body{padding:0 13px 13px}
.apvc-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 14px}
.apvc-choices button{border:1px solid var(--vc-edge);border-radius:11px;padding:10px 4px;min-height:46px;background:var(--vc-bg);color:var(--vc-text);font-size:.83rem;font-weight:650;line-height:1.25;overflow-wrap:anywhere}
.apvc-choices button[aria-pressed="true"],.apvc-current-mode[aria-pressed="true"]{border:2px solid var(--vc-accent);background:var(--vc-soft);color:var(--vc-accent);box-shadow:0 2px 8px #17695e0c}
.apvc-choices-mode{gap:8px;margin-top:0;margin-bottom:8px}
.apvc-choices-mode button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:85px;font-size:.88rem;border-radius:13px}
.apvc-choices-mode i{font-size:1.55rem}.apvc-choices-mode [data-apvc-value="light"] i{color:#eea21a}
.apvc-current-mode{width:100%;min-height:44px;border:1px solid var(--vc-edge);border-radius:10px;background:var(--vc-card);color:var(--vc-muted);font-size:.8rem;padding:9px}
.apvc-field:has(select[hidden]){margin-bottom:8px}
.apvc-field select[hidden]{display:none!important}
.apvc-toolbar-preview{border-radius:16px;padding:15px 7px;gap:5px;box-shadow:0 3px 12px #123a3308}
.apvc-toolbar-preview .is-center{background:var(--vc-accent);color:var(--vc-bg);border-radius:16px;padding:8px 3px;margin-top:-7px;margin-bottom:-7px}
.apvc-toolbar-preview .is-center i{font-size:1.55rem}
.apvc-profiles-title{font-weight:750;color:var(--vc-text)!important}.apvc-profiles-title i{margin-right:7px;color:var(--vc-accent)}
.apvc-footer{padding:12px 15px max(12px,env(safe-area-inset-bottom));box-shadow:0 -4px 15px #123b3205}
.apvc-footer button{font-size:1rem;min-height:48px;border-radius:13px}
.apvc-footer #apvcSave{background:linear-gradient(130deg,#17695e,#218778);box-shadow:0 4px 12px #17695e18}
.apvc[data-theme="dark"] .apvc-footer #apvcSave{background:linear-gradient(130deg,#42c5b3,#65dfca);color:#092e2a}
@media(max-width:360px){.apvc{width:100%;max-height:100dvh;border-radius:0}.apvc-header h2{font-size:1.35rem}.apvc-body{padding:4px 12px 12px}.apvc-choices button{font-size:.78rem}.apvc-preview-sample p{padding-left:0}.apvc-summary-copy small{font-size:.77rem}}

/* v3: altura explícita para que el cuerpo flex no colapse en Safari/iPhone. */
@media(max-width:767.98px){
#apViewCenter.apvc[open]{position:fixed;inset:0;margin:auto;display:flex;flex-direction:column;box-sizing:border-box;width:calc(100% - 16px);max-width:540px;height:calc(100vh - 24px);max-height:calc(100vh - 24px);min-height:0;overflow:hidden}
@supports(height:100dvh){#apViewCenter.apvc[open]{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}}
#apViewCenter>.apvc-header,#apViewCenter>.apvc-footer{flex:0 0 auto}
#apViewCenter>.apvc-body{flex:1 1 0%;height:0;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:24px}
}
@media(max-width:767.98px) and (max-height:500px){
#apViewCenter .apvc-header{padding:10px 14px}
#apViewCenter .apvc-brand{margin-bottom:7px}
#apViewCenter .apvc-brand>img{width:28px;height:28px}
#apViewCenter .apvc-header h2{font-size:1.15rem;margin-bottom:3px}
#apViewCenter .apvc-header p{font-size:.8rem}
#apViewCenter .apvc-footer{padding:8px 12px}
#apViewCenter .apvc-footer>small{margin-top:5px;font-size:.7rem}
}
