/* ==========================================================================
   NEXOCOLONIA - SECCIÓN COMUNIDAD REDISEÑADA (GALERÍA EDITORIAL PREMIUM)
   Identidad Visual: Azul Marino (#071a37), Verde (#10b981), Rojo (#dc2626)
   Arquitectura: 2 Columnas Verticales + 1 Columna Horizontal (Proporción 100% Real)
   ========================================================================== */

:root {
  --com-navy: #071a37;
  --com-navy-dark: #031024;
  --com-navy-deep: #00122e;
  --com-green: #0d7a46;
  --com-green-bright: #10b981;
  --com-green-light: #eaf5ee;
  --com-red: #dc2626;
  --com-red-bright: #ef4444;
  --com-red-light: #fef2f2;
  --com-gold: #cb9b51;
  --com-text-main: #0f172a;
  --com-text-muted: #64748b;
  --com-bg-card: #ffffff;
  --com-border: #e2e8f0;
  --com-radius: 12px;
  --com-radius-lg: 16px;
  --com-shadow-sm: 0 3px 10px rgba(7, 26, 55, 0.05);
  --com-shadow-md: 0 8px 24px rgba(7, 26, 55, 0.08);
  --com-shadow-hover: 0 16px 36px rgba(7, 26, 55, 0.14);
}

/* --------------------------------------------------------------------------
   1. HERO EDITORIAL DE COMUNIDAD
   -------------------------------------------------------------------------- */
.comunidad-hero-section {
  position: relative;
  background: linear-gradient(135deg, #031024 0%, #071e3d 50%, #041427 100%);
  color: #ffffff;
  padding: 3.25rem 0 2.75rem 0;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--com-green-bright) 0%, var(--com-gold) 50%, var(--com-red-bright) 100%) 1;
  box-shadow: 0 10px 30px rgba(0, 15, 35, 0.35);
  margin-bottom: 2rem;
  overflow: hidden;
}

.comunidad-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(16, 185, 129, 0.12), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(220, 38, 38, 0.10), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(203, 155, 81, 0.06), transparent 60%);
  pointer-events: none;
}

.comunidad-hero-inner {
  position: relative;
  z-index: 2;
}

.comunidad-hero-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comunidad-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.comunidad-kicker-badge span.dot {
  width: 7px;
  height: 7px;
  background: var(--com-green-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--com-green-bright);
  animation: comPulse 2.2s infinite ease-in-out;
}

@keyframes comPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.comunidad-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: #ffffff;
}

.comunidad-hero-subtitle {
  color: #cbd5e1;
  font-size: 15.5px;
  margin: 0;
  max-width: 760px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   2. ACCESO COMPACTO AL FORO (HORIZONTAL & ELEGANTE)
   -------------------------------------------------------------------------- */
.comunidad-forum-compact-banner {
  background: linear-gradient(135deg, #071a37 0%, #00122e 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--com-green-bright);
  border-radius: var(--com-radius);
  box-shadow: var(--com-shadow-md);
  margin-bottom: 2.25rem;
  padding: 1.15rem 1.5rem;
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.comunidad-forum-compact-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--com-shadow-hover);
}

.comunidad-forum-compact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.comunidad-forum-compact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.comunidad-forum-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comunidad-forum-icon {
  font-size: 1.25rem;
}

.comunidad-forum-title {
  font-size: 1.15rem;
  font-weight: 850;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.comunidad-forum-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.comunidad-forum-live-badge span.dot-red {
  width: 6px;
  height: 6px;
  background: var(--com-red-bright);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--com-red-bright);
}

.comunidad-forum-tagline {
  color: #cbd5e1;
  font-size: 13.5px;
  margin: 0;
  line-height: 1.4;
}

.comunidad-forum-compact-action {
  flex-shrink: 0;
}

.comunidad-forum-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--com-green-bright);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.comunidad-forum-btn-cta:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. ARQUITECTURA DE GALERÍA (3 COLUMNAS DESKTOP: V | V | H)
   -------------------------------------------------------------------------- */
.comunidad-gallery-container {
  margin-bottom: 3.5rem;
}

.comunidad-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1.75rem;
  align-items: start;
}

.comunidad-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comunidad-column-header {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--com-border);
}

.comunidad-column-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--com-green);
}

.comunidad-column-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--com-green-bright);
}

.comunidad-column-pill.pill-horizontal {
  color: var(--com-navy);
}

.comunidad-column-pill.pill-horizontal::before {
  background: var(--com-navy);
}

.comunidad-column-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* --------------------------------------------------------------------------
   4. TARJETA DE AFICHE / PUBLICACIÓN (100% PROPORCIÓN ORIGINAL)
   Estructura estricta: IMAGEN COMPLETA -> TÍTULO (Sin datos de autor)
   -------------------------------------------------------------------------- */
.comunidad-poster-card {
  background: var(--com-bg-card);
  border: 1px solid var(--com-border);
  border-radius: var(--com-radius);
  overflow: hidden;
  box-shadow: var(--com-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
}

.comunidad-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--com-shadow-hover);
  border-color: rgba(16, 185, 129, 0.4);
}

.comunidad-poster-media-link {
  display: block;
  text-decoration: none;
  background: #f8fafc;
  overflow: hidden;
}

.comunidad-poster-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  overflow: hidden;
}

/* IMAGEN CON PROPORCIÓN ORIGINAL INTACTA - NUNCA OBJECT-FIT FILL NI RECORTE */
.comunidad-poster-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 900px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.comunidad-poster-card:hover .comunidad-poster-img {
  transform: scale(1.02);
}

.comunidad-poster-info {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.comunidad-poster-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--com-navy);
  margin: 0;
}

.comunidad-poster-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.comunidad-poster-title a:hover {
  color: var(--com-green);
}

.comunidad-poster-meta {
  display: flex;
  align-items: center;
  font-size: 11.5px;
  color: var(--com-text-muted);
}

/* --------------------------------------------------------------------------
   5. BLOQUE SECUNDARIO DE TEXTOS / COMUNICADOS SIN IMAGEN
   -------------------------------------------------------------------------- */
.comunidad-text-stream {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--com-border);
}

.comunidad-text-stream-header {
  margin-bottom: 1.5rem;
}

.comunidad-section-pill {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--com-green);
}

.comunidad-text-stream-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--com-navy);
  margin: 0.25rem 0 0 0;
}

.comunidad-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.comunidad-text-box {
  background: var(--com-bg-card);
  border: 1px solid var(--com-border);
  border-left: 4px solid var(--com-green);
  border-radius: var(--com-radius);
  padding: 1.25rem;
  box-shadow: var(--com-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comunidad-text-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--com-shadow-md);
  border-left-color: var(--com-green-bright);
}

.comunidad-text-box-date {
  font-size: 11.5px;
  color: var(--com-text-muted);
}

.comunidad-text-box-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--com-navy);
  margin: 0;
}

.comunidad-text-box-title a {
  color: inherit;
  text-decoration: none;
}

.comunidad-text-box-title a:hover {
  color: var(--com-green);
}

.comunidad-text-box-excerpt {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.comunidad-text-box-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--com-green);
  text-decoration: none;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   6. PAGINACIÓN
   -------------------------------------------------------------------------- */
.comunidad-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2.5rem;
}

.comunidad-page-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--com-navy);
  text-decoration: none;
  font-weight: 750;
  font-size: 13px;
  transition: all 0.2s ease;
}

.comunidad-page-btn:hover {
  background: var(--com-green-light);
  border-color: var(--com-green);
  color: var(--com-green);
}

.comunidad-page-indicator {
  padding: 8px 14px;
  font-weight: 750;
  font-size: 13px;
  color: var(--com-text-muted);
}

/* --------------------------------------------------------------------------
   7. ESTADO VACÍO (EMPTY STATE)
   -------------------------------------------------------------------------- */
.comunidad-empty-state {
  text-align: center;
  padding: 4.5rem 2rem;
  background: #ffffff;
  border-radius: var(--com-radius-lg);
  border: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.comunidad-empty-icon {
  font-size: 3.25rem;
  margin-bottom: 0.25rem;
}

.comunidad-empty-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 850;
  color: var(--com-navy);
  margin: 0;
}

.comunidad-empty-desc {
  color: var(--com-text-muted);
  font-size: 14px;
  max-width: 480px;
  margin: 0 0 1rem 0;
  line-height: 1.55;
}

.comunidad-btn-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  background: #071a37 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 14px rgba(7, 26, 55, 0.18) !important;
  transition: all 0.2s ease !important;
}

.comunidad-btn-back:hover,
.comunidad-btn-back:focus-visible {
  background: #0874d1 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(8, 116, 209, 0.28) !important;
}

/* --------------------------------------------------------------------------
   8. VISTA INDIVIDUAL /comunidad/nombre (ESTRUCTURA ESTRICTA)
   Título -> Imagen Grande Completa -> Contenido Completo (Cero Autor)
   -------------------------------------------------------------------------- */
.comunidad-single-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem 1.25rem;
}

.comunidad-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.comunidad-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--com-green);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.comunidad-back-link:hover {
  color: #0b5e36;
  transform: translateX(-3px);
}

.comunidad-badge-pill {
  background: var(--com-green-light);
  color: var(--com-green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid rgba(13, 122, 70, 0.25);
}

.comunidad-single-article {
  background: #ffffff;
  border: 1px solid var(--com-border);
  border-radius: var(--com-radius-lg);
  box-shadow: var(--com-shadow-md);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
}

/* 1. TÍTULO */
.comunidad-single-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comunidad-single-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.22;
  color: var(--com-navy);
  margin: 0;
  letter-spacing: -0.01em;
}

.comunidad-single-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--com-text-muted);
}

.comunidad-single-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #475569;
  margin: 0.5rem 0 0 0;
}

/* 2. IMAGEN GRANDE COMPLETA (SIN RECORTE) */
.comunidad-single-figure {
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comunidad-single-image-wrapper {
  width: 100%;
  background: #f8fafc;
  border-radius: var(--com-radius);
  overflow: hidden;
  border: 1px solid var(--com-border);
  box-shadow: var(--com-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comunidad-single-full-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 1200px;
}

.comunidad-single-caption {
  font-size: 12.5px;
  color: var(--com-text-muted);
  margin-top: 0.65rem;
  text-align: center;
  font-style: italic;
}

/* 3. NOTICIA / CONTENIDO COMPLETO */
.comunidad-single-content-body {
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comunidad-content-p {
  margin: 0;
}

.comunidad-content-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 850;
  color: var(--com-navy);
  margin: 1.25rem 0 0.5rem 0;
}

.comunidad-content-h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--com-navy);
  margin: 1rem 0 0.25rem 0;
}

.comunidad-content-list {
  margin: 0.5rem 0 0.5rem 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.comunidad-single-footer {
  border-top: 1px solid var(--com-border);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comunidad-share-cluster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.comunidad-share-label {
  font-size: 13px;
  font-weight: 750;
  color: var(--com-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comunidad-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comunidad-share-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--com-navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.comunidad-share-btn.btn-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.comunidad-share-btn.btn-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.comunidad-share-btn.btn-x:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.comunidad-share-btn.btn-copy:hover {
  background: var(--com-navy);
  border-color: var(--com-navy);
  color: #ffffff;
}

.comunidad-bottom-nav {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS (DESKTOP -> TABLET -> MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .comunidad-gallery-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
  }
  .comunidad-column-horizontal {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .comunidad-hero-section {
    padding: 2.25rem 0 1.75rem 0;
  }
  .comunidad-forum-compact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .comunidad-forum-compact-action {
    width: 100%;
  }
  .comunidad-forum-btn-cta {
    width: 100%;
    justify-content: center;
  }
  .comunidad-gallery-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .comunidad-column-horizontal {
    grid-column: span 1;
  }
  .comunidad-single-article {
    padding: 1.5rem 1.25rem;
  }
  .comunidad-single-title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .comunidad-kicker-badge span.dot {
    animation: none;
  }
  .comunidad-poster-img,
  .comunidad-poster-card,
  .comunidad-forum-compact-banner {
    transition: none !important;
  }
}

/* Hero Comunidad 2026. */
.comunidad-hero-section {
  isolation: isolate;
  display: flex;
  min-height: clamp(245px, 24vw, 280px);
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  background: #031126;
  box-shadow: none;
}

.comunidad-hero-image,
.comunidad-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.comunidad-hero-image {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: center 48%;
}

.comunidad-hero-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(3, 14, 31, .95) 0%, rgba(3, 14, 31, .78) 39%, rgba(3, 14, 31, .2) 73%, rgba(3, 14, 31, .08) 100%);
}

.comunidad-hero-section .comunidad-hero-inner {
  display: flex;
  align-items: center;
  padding-block: 1.2rem 1.45rem;
}

.comunidad-hero-glass {
  width: min(680px, 69%);
  padding: clamp(.9rem, 1.8vw, 1.2rem);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(5, 21, 44, .61);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px) saturate(112%);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
}

.comunidad-hero-section .comunidad-kicker-badge {
  margin: 0 0 .4rem;
}

.public-page--comunidad .comunidad-hero-section .comunidad-hero-title {
  max-width: 100%;
  margin: 0 0 .4rem;
  color: #fff;
  font: 800 clamp(2rem, 4vw, 3.2rem)/1 var(--serif, "Libre Franklin", serif);
  letter-spacing: 0;
}

.public-page--comunidad .comunidad-hero-section .comunidad-hero-subtitle {
  max-width: 590px;
  margin: 0;
  color: #d9e5ef;
  font-size: clamp(.78rem, 1.15vw, .9rem);
  line-height: 1.45;
}

.comunidad-hero-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  margin-top: .65rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.comunidad-hero-action-row > span {
  max-width: 330px;
  color: #bed0de;
  font-size: .68rem;
  line-height: 1.4;
}

.comunidad-hero-action-row > a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 35px;
  padding: .4rem .6rem;
  border: 1px solid rgba(139, 217, 185, .42);
  border-radius: 6px;
  background: rgba(18, 130, 87, .86);
  color: #fff;
  font-size: .66rem;
  font-weight: 850;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.comunidad-hero-action-row > a:hover,
.comunidad-hero-action-row > a:focus-visible {
  background: #0d714a;
  transform: translateY(-1px);
}

.comunidad-hero-action-row > a b {
  color: #c9f3e2;
  font-size: .85rem;
}

.comunidad-hero-action-row > a small {
  padding-left: .4rem;
  border-left: 1px solid rgba(255, 255, 255, .25);
  color: #e6f5ee;
  font-size: .58rem;
}

.comunidad-hero-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr .28fr;
  height: 4px;
}

.comunidad-hero-accent span:nth-child(1) { background: #0875d1; }
.comunidad-hero-accent span:nth-child(2) { background: #128257; }
.comunidad-hero-accent span:nth-child(3) { background: #ca3346; }
.comunidad-hero-accent span:nth-child(4) { background: #b89043; }

@media (max-width: 720px) {
  .comunidad-hero-section {
    min-height: 280px;
    align-items: end;
  }

  .comunidad-hero-image {
    object-position: 66% center;
  }

  .comunidad-hero-shade {
    background: linear-gradient(180deg, rgba(3, 14, 31, .12) 8%, rgba(3, 14, 31, .58) 44%, rgba(3, 14, 31, .96) 100%);
  }

  .comunidad-hero-section .comunidad-hero-inner {
    align-items: end;
    padding-block: 2rem .9rem;
  }

  .comunidad-hero-glass {
    width: 100%;
    padding: .75rem .85rem;
    background: rgba(4, 19, 40, .72);
  }

  .public-page--comunidad .comunidad-hero-section .comunidad-hero-title {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .public-page--comunidad .comunidad-hero-section .comunidad-hero-subtitle {
    font-size: .7rem;
    line-height: 1.35;
  }

  .comunidad-hero-action-row {
    gap: .5rem;
    margin-top: .5rem;
    padding-top: .5rem;
  }

  .comunidad-hero-action-row > span {
    display: none;
  }

  .comunidad-hero-action-row > a {
    width: 100%;
    justify-content: center;
  }
}

/* Encuestas banner button */
.comunidad-surveys-banner__actions a,
.comunidad-surveys-btn {
  background: #ffffff !important;
  color: #0b3974 !important;
  padding: .65rem 1.25rem !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 850 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  transition: transform .2s ease, background .2s ease, color .2s ease !important;
}

.comunidad-surveys-banner__actions a span,
.comunidad-surveys-btn span {
  color: #0b3974 !important;
}

.comunidad-surveys-banner__actions a:hover,
.comunidad-surveys-btn:hover {
  transform: translateY(-2px) !important;
  background: #f0f7ff !important;
  color: #042147 !important;
}
