/* AyudaGlobal 2.12.37 · comunidad unificada PC / móvil. Solo selectores de secciones internas.
   Sin librerías, fuentes remotas o peticiones de datos. Compatible con CSS anteriores. */
:root{--ag37-ink:#17344b;--ag37-muted:#506978;--ag37-line:#dbe7e9;--ag37-paper:#f8fafb;--ag37-white:#fff;--ag37-accent:#166178;--ag37-shadow:0 12px 34px rgba(21,57,77,.075)}
:where(.testimony-zone,.testimony-detail,.ag-profile,.ag-chat-section,.ag-chat-guide-section,.ag-ideas-hero,.ag-my-community-hero){overflow-wrap:break-word}
:where(.testimony-zone,.testimony-detail,.ag-profile,.ag-chat-section) :where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #bb842e;outline-offset:3px}
:where(.testimony-zone,.testimony-detail,.ag-profile,.ag-chat-section) :where(button,input,select,textarea){font:inherit}
:where(.testimony-zone,.testimony-detail,.ag-profile,.ag-chat-section) :where(input,select,textarea){max-width:100%;min-width:0}
/* Testimonios: filtros y tarjetas consistentes, contraste y respiración visual. */
.page-hero{background:#143d54;color:#fff;padding:clamp(30px,4vw,58px) 0}
.page-hero :is(h1,p){color:#fff;opacity:1;text-shadow:none}
.page-hero h1{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.025em;line-height:1.15;text-wrap:balance}
.page-hero .btn-primary{background:#fff;color:#123d5a;border:1px solid #fff}
.page-hero .btn-primary:is(:hover,:focus-visible){background:#eaf3ff;color:#0b3a55}
.page-hero a:not(.btn){color:#eff8ff;text-underline-offset:3px}
.page-hero .btn-secondary{color:#fff;border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.08)}
.page-hero .btn-secondary:is(:hover,:focus-visible){background:rgba(255,255,255,.2);color:#fff}
.page-hero :where(a,button):focus-visible{outline:3px solid #ffd98c;outline-offset:3px}
.ag-community-shortcuts{background:#fff;border-bottom:1px solid var(--ag37-line)}
.ag-community-shortcuts .container{display:flex;gap:8px;align-items:center;overflow-x:auto;scrollbar-width:thin;padding-block:10px}
.ag-community-shortcuts a{padding:10px 15px;min-height:42px;display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;text-decoration:none;color:#23526a;font-weight:650;font-size:.92rem}
.ag-community-shortcuts a[aria-current=page],.ag-community-shortcuts a:hover{background:#e8f2f3;color:#11435a}
.ag-community-back{padding-block:16px 0}
.ag-community-back a{display:inline-flex;align-items:center;min-height:44px;color:#155b73;font-weight:700;text-decoration:none}
.testimony-zone{background:var(--ag37-paper)}
.testimony-zone .feed-container,.testimony-detail .feed-container{width:min(100%,900px);margin-inline:auto}
.testimony-zone .community-filters{background:#fff;border:1px solid var(--ag37-line);border-radius:20px;padding:clamp(16px,2.5vw,24px);box-shadow:var(--ag37-shadow);gap:12px}
.testimony-zone .community-filters :where(input,select){min-height:46px;border:1px solid #b7cbd2;border-radius:10px;padding:10px 12px;background:#fff;color:#193d50}
.testimony-zone .community-filters label{color:#274c61;font-weight:700}
.testimony-zone .feed-head{margin-block:27px 15px}
.testimony-zone .feed-head h2{color:var(--ag37-ink);letter-spacing:-.015em}
.testimony-zone .testimony-feed{display:grid;gap:18px}
.testimony-zone .post-card,.testimony-detail .post-card{border-radius:20px;background:#fff;border:1px solid var(--ag37-line);box-shadow:var(--ag37-shadow);padding:clamp(18px,2.6vw,28px);min-width:0}
.testimony-zone .post-author,.testimony-detail .post-author{display:flex;gap:12px;align-items:center}
.testimony-zone .post-body h2 a,.testimony-detail .post-body h1{color:#153b52;overflow-wrap:anywhere}
.testimony-zone .post-body p,.testimony-detail .testimony-text{color:#354e5d;line-height:1.74}
.testimony-zone .post-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-top:1px solid #e6edef;padding-top:16px}
.testimony-zone .post-actions a,.testimony-detail .community-primary-actions :where(a,button){min-height:42px;display:inline-flex;align-items:center;justify-content:center}
.testimony-zone .read-more{margin-left:auto;font-weight:750;color:#125d73}
.testimony-detail{background:var(--ag37-paper)}
.testimony-detail .post-full{margin-bottom:22px}
.testimony-detail .big-reactions{display:flex;flex-wrap:wrap;gap:9px}
.testimony-detail .reaction-btn{min-height:44px;border-radius:12px}
.testimony-detail .testimony-text{font-size:clamp(1rem,1.25vw,1.1rem)}
/* Chat: marco escritorio y accesibilidad, preservando el chat dinámico ya instalado. */
.ag-chat-section{background:var(--ag37-paper)}
.ag-chat-section .ag-chat-container,.ag-chat-guide-section .ag-chat-container{max-width:1020px}
.ag-chat-heading{background:#143d54;color:#fff;border-radius:17px;padding:16px 22px;margin-bottom:14px;box-shadow:0 7px 20px rgba(21,57,77,.08)}
.ag-community-eyebrow{display:block;color:#d9eefa;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:800;margin-bottom:6px}
.ag-chat-heading h1{color:#fff;font-family:Georgia,'Times New Roman',serif;letter-spacing:-.02em}
.ag-chat-heading p{color:#fff;opacity:1}
.ag-chat-section .ag-chat-shell{border:1px solid #d7e5e8;border-radius:20px;box-shadow:var(--ag37-shadow);background:#fff}
.ag-chat-section .ag-chat-bar{padding:13px 18px}
.ag-chat-section .ag-chat-messages{background:#fbfdfd}
.ag-chat-section .ag-chat-form{gap:10px}
.ag-chat-section .ag-chat-form textarea{min-width:0;font-size:16px;border-color:#aabfc9;border-radius:12px}
.ag-chat-section .ag-chat-form button{min-height:44px}
.ag-chat-guide-section .ag-chat-guide{border:1px solid #d7e5e8;box-shadow:0 7px 20px rgba(20,57,77,.04)}
/* Perfil: módulos uniformes, sin modificar sus datos, comentarios, paginación o formularios. */
.ag-profile{background:var(--ag37-paper)}
.ag-profile .ag-profile-wrap{max-width:1120px}
.ag-profile .ag-profile-cover{border-radius:22px;box-shadow:var(--ag37-shadow);overflow:hidden}
.ag-profile .ag-profile-cover h1{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.02em;overflow-wrap:anywhere}
.ag-profile .ag-profile-section{background:#fff;border:1px solid var(--ag37-line);box-shadow:var(--ag37-shadow);border-radius:20px;padding:clamp(16px,2.5vw,26px);margin-block:19px}
.ag-profile .ag-profile-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;border-bottom:1px solid #e7eff0;padding-bottom:12px;margin-bottom:17px}
.ag-profile .ag-profile-heading h2{color:#173a53;letter-spacing:-.015em;margin:0}
.ag-profile .ag-profile-testimonies article,.ag-profile .ag-profile-gallery article,.ag-profile .ag-profile-comments article{border:1px solid #e0e9ed;border-radius:14px;background:#fcfdfd;padding:14px;min-width:0}
.ag-profile .ag-profile-gallery img{max-width:100%;object-fit:cover}
.ag-profile .ag-profile-comment-form textarea{width:100%;min-height:96px;border-radius:12px;border:1px solid #b7cbd2}
.ag-profile .ag-profile-pages{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;padding:16px 0 3px}
.ag-profile .ag-profile-pages a{min-height:42px;display:inline-flex;align-items:center;text-decoration:none}
/* Ideas y Mi comunidad: listados y formularios de lectura sencilla. */
.idea-layout{gap:clamp(18px,2.5vw,32px)}
.idea-layout .form-card,.idea-layout .idea-card,.idea-layout .community-filters{border-radius:18px;border:1px solid var(--ag37-line);background:#fff;box-shadow:0 6px 22px rgba(21,57,77,.055)}
.idea-layout .form-card,.idea-layout .idea-card{padding:clamp(17px,2.2vw,24px)}
.idea-layout .idea-card h3{color:#173d54;overflow-wrap:anywhere}
.idea-layout .idea-card p{line-height:1.65}
.idea-layout :where(input,select,textarea){max-width:100%;min-width:0}
.idea-layout .field select{display:block;width:100%;min-height:48px;padding:10px 12px;border:1px solid #b7cbd2;border-radius:12px;background:#fff;color:#193d50;font:inherit}
.idea-layout .field select:focus-visible{outline:3px solid #bb842e;outline-offset:2px}
.idea-layout .idea-actions{display:flex;gap:10px;flex-wrap:wrap}
.community-follow-card{border-radius:14px;border:1px solid #dce7e9;background:#fff;min-width:0}
.community-follow-card :where(strong,small){overflow-wrap:anywhere}
/* Tamaños y safe areas: chat compatible con dock móvil sin tapar envío ni historial. */
@media(min-width:768px){.ag-chat-section .ag-chat-shell{overflow:hidden}.testimony-zone .community-filters{display:flex;flex-wrap:wrap;align-items:end}.testimony-zone .community-filters>div{flex:1 1 230px}}
@media(max-width:767px){
 .page-hero{padding:24px 0}
 .ag-community-shortcuts .container{padding-inline:12px}
 .ag-community-shortcuts a{font-size:.85rem;padding:8px 11px}
 .testimony-zone,.testimony-detail,.ag-profile{padding-block:18px}
 .testimony-zone .container,.testimony-detail .container,.ag-profile .container{padding-inline:12px}
 .testimony-zone .community-filters{display:grid;grid-template-columns:minmax(0,1fr);padding:15px}
 .testimony-zone .community-filters>*{width:100%;min-width:0}
 .testimony-zone .community-filters .btn{min-height:45px}
 .testimony-zone .post-card,.testimony-detail .post-card{border-radius:15px;padding:15px}
 .testimony-zone .post-actions{gap:5px 12px}
 .testimony-zone .read-more{margin-left:0;width:100%;text-align:center;justify-content:center;border-radius:10px;background:#e9f3f5}
 .ag-chat-section .ag-chat-heading{padding:10px 14px 9px!important;border-radius:0!important;margin-bottom:0!important}
 .ag-chat-section .ag-chat-shell{border-radius:0!important;border-inline:0!important;box-shadow:none!important;min-height:0!important;height:calc(100dvh - var(--ag-chat-top,155px) - var(--ag37-dock,72px) - env(safe-area-inset-bottom,0px))!important;max-height:none!important}
 .ag-chat-section .ag-chat-messages{min-height:0!important;overscroll-behavior-y:contain}
 .ag-chat-section .ag-chat-form{padding-bottom:8px!important}
 .ag-chat-section .ag-chat-help{font-size:.72rem!important;line-height:1.35!important}
 .ag-chat-guide-section .ag-chat-container{padding-inline:12px!important}
 .ag-profile .ag-profile-section{padding:15px;border-radius:15px}
 .ag-profile .ag-profile-heading{display:block}
 .ag-profile .ag-profile-heading h2{margin-bottom:5px}
 .ag-profile .ag-profile-testimonies,.ag-profile .ag-profile-gallery{grid-template-columns:minmax(0,1fr)}
 .idea-layout{display:grid;grid-template-columns:minmax(0,1fr)}
 .idea-layout .community-filters{display:grid;grid-template-columns:minmax(0,1fr)}
 .idea-layout .form-card,.idea-layout .idea-card{padding:15px}
 .community-follow-card{padding:14px}
}
@media(max-width:380px){.ag-chat-section .ag-chat-shell{height:calc(100dvh - var(--ag-chat-top,155px) - 76px - env(safe-area-inset-bottom,0px))!important}.testimony-zone .post-author,.testimony-detail .post-author{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.ag-community-shortcuts *, .testimony-zone *, .ag-profile *{transition:none!important;scroll-behavior:auto!important}}
@media print{.ag-community-shortcuts,.ag-chat-form,.ag-profile-comment-form,.testimony-zone .community-filters{display:none!important}.testimony-zone .post-card,.testimony-detail .post-card,.ag-profile .ag-profile-section{box-shadow:none!important}}

/* 2.12.38: mejoras de los formularios de cuenta y accesibilidad, integradas en la hoja de comunidad. */
.ag-account-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ag-account-form-grid .field{min-width:0}
.ag-account-help{font-size:.94rem;color:#344f60;line-height:1.6}
.ag-account-action-list{display:flex;flex-wrap:wrap;gap:12px;margin-block:20px}
.ag-account-action-list .btn{min-height:44px}
.ag-account-form :where(input,select,textarea){max-width:100%;min-width:0}
.ag-account-form :where(input,select,textarea):focus-visible{outline:3px solid #bb842e;outline-offset:2px}
.ag-account-form .btn-primary{min-height:46px}
.ag-notification-unread{border-left:4px solid #136983;background:#eef8f9;padding:12px;border-radius:9px}
@media(max-width:680px){.ag-account-form-grid{grid-template-columns:minmax(0,1fr)}.ag-account-action-list{flex-direction:column}.ag-account-action-list .btn{width:100%}}
