/* Categorías de encuestas: tamaños independientes de los iconos del tema. */
.wrapperEncuestas { padding: 7em 24px 4em; }
.wrapperEncuestas .container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0; }
.wrapperEncuestas .row { margin: 0; }
.wrapperEncuestas .row > div { width: 100%; padding: 0; }
.wrapperEncuestas header.major { margin: 0; }
.encuestas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; list-style: none; margin: 0; padding: 0; }
.encuestas-grid > li { min-width: 0; padding: 0; }
.encuesta-card { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; height: 100%; padding: 16px 8px; margin: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: none; color: #fff; font: inherit; letter-spacing: normal; text-transform: none; white-space: normal; line-height: 1.5; cursor: pointer; }
.encuesta-card:hover, .encuesta-card:active { background: rgba(255,255,255,.07) !important; box-shadow: none; }
.encuesta-card:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.encuesta-logo { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 150px; height: 150px; }
.encuesta-logo::before { content: ''; position: absolute; width: 104px; height: 104px; transform: rotate(45deg); border: 1px solid rgba(255,255,255,.45); border-radius: 5px; background: #004f46; }
.encuesta-logo img { position: relative; display: block; width: 64px; height: 88px; object-fit: contain; filter: brightness(0) invert(1); }
.encuesta-title { display: block; width: 100%; max-width: 230px; min-height: 3em; font-size: 18px; font-weight: 600; line-height: 1.5; text-align: center; overflow-wrap: normal; }
@media (max-width: 900px) { .encuestas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 480px) { .wrapperEncuestas { padding: 5em 16px 3em; } .encuestas-grid { gap: 18px 8px; } .encuesta-card { padding: 10px 4px; gap: 14px; } .encuesta-logo { width: 112px; height: 112px; } .encuesta-logo::before { width: 78px; height: 78px; } .encuesta-logo img { width: 48px; height: 66px; } .encuesta-title { font-size: 15px; min-height: 4.5em; } }
@media (max-width: 320px) { .encuestas-grid { grid-template-columns: minmax(0, 1fr); } }

.encuesta-logo { position: relative; }
.encuesta-card-buenos-aires .encuesta-logo img { width: 54px; height: 76px; }
.encuestas-modal { color: #263b3a; letter-spacing: normal; }
.encuestas-modal .modal-dialog { width: calc(100% - 32px); max-width: 980px; margin: 64px auto 24px; }
.encuestas-modal .modal-content { overflow: hidden; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 20px 80px rgba(0,0,0,.3); }
.encuestas-modal .modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 28px; border-bottom: 1px solid #dce5e3; background: #f2f7f5; }
.encuestas-modal .encuestas-modal-eyebrow { margin: 0 0 6px; color: #4b6b65; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.encuestas-modal .modal-title { margin: 0; background: none; color: #004f46; font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.encuestas-modal .close { float: none; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #e2ece8; box-shadow: none; color: #004f46; opacity: 1; font-size: 28px; font-weight: 400; text-shadow: none; line-height: 1; }
.encuestas-modal .modal-body { padding: 28px; background: #fff; max-height: 65vh; overflow-y: auto; }
.encuestas-publicaciones { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.encuesta-publicacion { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid #dce5e3; border-radius: 10px; background: #fff; }
.encuesta-publicacion time { color: #526f68; font-size: 13px; font-variant-numeric: tabular-nums; }
.encuesta-publicacion h3 { margin: 12px 0; color: #203d37; font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.encuesta-publicacion p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; max-height: 8em; overflow: hidden; margin: 0 0 24px; color: #52645f; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.encuestas-modal .encuesta-ver { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; padding: 10px 16px; margin-top: auto; border: 0; border-radius: 6px; background: #00584d; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: normal; }
.encuestas-modal .encuesta-ver:hover { background: #007064; color: #fff; }
.encuestas-modal .modal-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 28px; border-top: 1px solid #dce5e3; background: #f7f9f8; }
.encuestas-modal .modal-footer::before, .encuestas-modal .modal-footer::after { display: none; }
.encuestas-modal .encuestas-cerrar { height: auto; min-height: 42px; padding: 10px 18px; margin: 0; border: 1px solid #9fb8b0; border-radius: 6px; background: #fff; box-shadow: none; color: #31594e; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: normal; text-transform: none; }
.encuestas-modal a:focus-visible, .encuestas-modal button:focus-visible { outline: 3px solid #299f8c; outline-offset: 3px; }
.encuestas-vacio { grid-column: 1 / -1; margin: 0; padding: 24px 0; color: #52645f; }
@media (max-width: 700px) { .encuestas-publicaciones { grid-template-columns: minmax(0,1fr); } .encuestas-modal .modal-dialog { margin-top: 20px; } .encuestas-modal .modal-header, .encuestas-modal .modal-body { padding: 20px; } .encuestas-modal .modal-title { font-size: 22px; } .encuestas-modal .modal-footer { padding: 16px 20px; } .encuesta-publicacion { padding: 18px; } }
@media (max-width: 480px) { .encuesta-card-buenos-aires .encuesta-logo img { width: 40px; height: 56px; } }
.encuestas-modal .modal-header > div { flex: 1; min-width: 0; text-align: left; }
.encuestas-modal .modal-header .modal-title { padding: 0; text-align: left; }

/* Cierre sin sombras, con contraste y foco por teclado. */
.encuestas-modal .modal-header .close,
.encuestas-modal .modal-header .close:hover,
.encuestas-modal .modal-header .close:focus,
.encuestas-modal .modal-header .close:active {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none;
  opacity: 1;
  background: transparent !important;
  color: #31594e;
  border-radius: 8px;
}
.encuestas-modal .modal-header .close:hover { background: #e2ece8 !important; color: #004f46; }
.encuestas-modal .modal-header .close svg { display: block; flex-shrink: 0; pointer-events: none; }

.encuesta-logo .encuesta-simbolo { position: relative; display: block; width: 68px; height: 68px; color: #fff; flex-shrink: 0; }
@media (max-width: 480px) { .encuesta-logo .encuesta-simbolo { width: 50px; height: 50px; } }
