/* Sección independiente: reutiliza tipografía, reset y colores globales.
   Flexbox distribuye seis pasos en escritorio, tres en tablet y dos en móvil. */
.community-steps { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3rem, 5vw, 5.5rem) 0; background: radial-gradient(ellipse at 0 15%, #075aa3, transparent 60%), linear-gradient(115deg, #073d73, #032653 80%, #063c80); color: var(--color-white); }
/* Aros decorativos sin interferir con el contenido ni capturar clics. */
.community-steps::before, .community-steps::after { content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.community-steps::before { width: 42rem; height: 42rem; right: -29rem; top: -8rem; border: 9rem solid #0962cf30; }
.community-steps::after { width: 21rem; height: 21rem; left: -14rem; bottom: -12rem; background: #0877e32b; }
.community-steps__container { width: var(--container-width-fluid); max-width: 110rem; margin-inline: auto; }
.community-steps__header { text-align: center; margin-bottom: clamp(2.8rem, 4vw, 4.5rem); }
.community-steps__accent { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.6rem; }
.community-steps__accent::before, .community-steps__accent::after { content: ''; width: 2.3rem; height: .4rem; border-radius: 1rem; background: #118bff; }
.community-steps__accent::after { background: #4599d6; }
.community-steps__title { font-size: clamp(1.65rem, 2.8vw, 3rem); font-weight: 400; line-height: 1.2; letter-spacing: -.035em; }
.community-steps__title strong { display: block; color: var(--color-primary); font-size: 1.23em; font-weight: 800; }
.community-steps__description { margin-top: 1rem; font-size: clamp(.95rem, 1.2vw, 1.25rem); color: #b4cce7; line-height: 1.5; }
.community-steps__list { display: flex; flex-wrap: wrap; gap: 2rem 2%; list-style: none; }
.community-step { position: relative; flex: 0 0 15%; min-width: 0; text-align: center; }
.community-step__visual { position: relative; display: flex; align-items: center; justify-content: center; width: 85%; max-width: 12rem; aspect-ratio: 1; margin-inline: auto; border: .0625rem solid #258fe74d; border-radius: 50%; background: linear-gradient(145deg, #238ffb26, #0049950a); box-shadow: inset 0 .1rem 1.5rem #2271e21a; }
.community-step__number { position: absolute; z-index: 1; left: 6%; top: -8%; width: 32%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #22baff, #0876ff); color: white; font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 800; }
.community-step__illustration { width: 85%; height: auto; overflow: visible; filter: drop-shadow(0 .35rem .3rem #001d6955); }
/* Conectores punteados entre ilustraciones; se ocultan al final de cada fila. */
.community-step:not(:last-child)::after { content: ''; position: absolute; top: 36%; left: 96%; width: 22%; border-top: .2rem dotted #62baff; transform: rotate(-23deg); }
.community-step:nth-child(even)::after { transform: rotate(23deg); }
.community-step__title { margin-top: .6rem; font-size: clamp(1rem, 1.5vw, 1.65rem); line-height: 1.25; font-weight: 400; letter-spacing: -.03em; }
.community-step__title strong { display: block; font-weight: 800; }
.community-step__title::after { content: ''; display: block; width: 3rem; height: .35rem; margin: 1rem auto 0; border-radius: 1rem; background: #63c2ff; }
/* JS activa solo la animación: el contenido sigue visible sin JavaScript. */
.community-step.is-visible { animation: community-step-enter .55s ease both; animation-delay: var(--step-delay, 0ms); }
@keyframes community-step-enter { from { opacity: .4; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 62rem) { .community-step { flex-basis: 32%; } .community-step:nth-child(3n)::after { display: none; } .community-step__title { font-size: 1.25rem; } }
@media (max-width: 40rem) { .community-steps__list { column-gap: 8%; row-gap: 2.5rem; } .community-step { flex-basis: 46%; } .community-step:nth-child(3n)::after { display: block; } .community-step:nth-child(2n)::after { display: none; } .community-step__title { font-size: 1.1rem; } .community-steps__break { display: none; } }
@media (prefers-reduced-motion: reduce) { .community-step.is-visible { animation: none; } }
