/* ==========================================================================
   ESTILO PORTAL PARTICIPA + BURBUJAS INTENSAS (PUNTO MEDIO)
   ========================================================================== */

.hero-participa {
    /* TUS COLORES DE IDENTIDAD */
    --orange: #FF9F43;
    --green: #28C76F;
    --pink: #df1783;
    --blue: #0b3b60;
    --text-main: #1e293b;
    --grad: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    
    padding-block: 60px 40px;
    padding-inline: 20px;
    background: var(--grad);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

/* --- TUS BURBUJAS (MÁS INTENSAS) --- */
.hero-participa::before,
.hero-participa::after,
.hero-participa .hero__inner::before {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(35px); /* Un poquito menos de blur para que se note más la forma */
    opacity: 0.85;       /* Subimos de 0.6 a 0.85 */
    z-index: 0;
}

/* Burbuja A (Azul) - Subimos de 0.15 a 0.30 */
.hero-participa::before {
    width: 38vmin; height: 38vmin;
    left: 6%; top: 6%;
    background: radial-gradient(circle, rgba(11,59,96,0.30) 0 60%, transparent 62%);
    animation: bubbleA 3s ease-in-out infinite alternate;
}

/* Burbuja B (Rosa/Red) - Subimos de 0.15 a 0.30 */
.hero-participa::after {
    width: 32vmin; height: 32vmin;
    right: 8%; top: 10%;
    background: radial-gradient(circle, rgba(223, 23, 131, 0.30) 0 60%, transparent 62%);
    animation: bubbleB 6s ease-in-out infinite alternate;
}

/* Burbuja C (Verde) - Subimos de 0.15 a 0.30 */
.hero-participa .hero__inner::before {
    content: "";
    position: absolute;
    width: 26vmin; height: 26vmin;
    left: 48%; bottom: -10%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,160,132,0.30) 0 60%, transparent 62%);
    animation: bubbleC 7s ease-in-out infinite alternate;
    z-index: -1;
}

/* MARCA DE AGUA (El escudo) */
.hero-participa .hero__inner::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -30%;
    width: 400px;
    height: 400px;
    background-image: url("https://participa.sanjuandelrio.gob.mx/assets/img/heraldica-corta.png");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    transform: rotate(-10deg);
    z-index: -1;
    pointer-events: none;
}

/* --- CONTENIDO --- */
.hero-participa .hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PILDORITA BRAND */
.hero-participa .brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    width: fit-content;
}

.hero-participa .brand__dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.hero-participa .brand__dot:nth-of-type(1) { background: var(--orange); }
.hero-participa .brand__dot:nth-of-type(2) { background: var(--green); }
.hero-participa .brand__dot:nth-of-type(3) { background: var(--pink); }
.hero-participa .brand__dot:nth-of-type(4) { background: var(--blue); }

.hero-participa .brand span {
    font-size: 0.85rem; font-weight: 700; color: var(--text-main); text-transform: uppercase;
}

/* TÍTULO */
.hero-participa h1 {
    font-size: clamp(28px, 5vw, 3.5rem);
    font-weight: 850;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.04em;
    max-width: 850px;
}

/* BUSCADOR */
.hero-participa .search { width: 100%; max-width: 750px; }

.hero-participa .searchbar {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.hero-participa .search__box {
    flex: 1; border: none; padding: 15px 20px; font-size: 1.1rem; outline: none; background: transparent;
}

.hero-participa .search__btn {
    background: #1e293b; color: white; border: none; padding: 14px 30px;
    border-radius: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px;
}

/* CHIPS */
.hero-participa .chips { margin-top: 30px; display: flex; gap: 12px; justify-content: center; }
.hero-participa .chip {
    padding: 10px 24px; border-radius: 100px; background: white; font-weight: 600;
    color: #64748b; box-shadow: 0 4px 10px rgba(0,0,0,0.03); cursor: pointer;
}
.hero-participa .chip.active { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }

/* TUS ANIMACIONES ORIGINALES */
@keyframes bubbleA { to { transform: translate(17vmin, 7vmin) scale(1.1); } }
@keyframes bubbleB { to { transform: translate(15vmin, 10vmin) scale(1.05); } }
@keyframes bubbleC { to { transform: translate(13vmin, 10vmin) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
    .hero-participa::before, .hero-participa::after, .hero-participa .hero__inner::before { animation: none !important; }
}

/* ==========================================================================
   SECCIÓN: KIOSCO DIGITAL (REDISEÑO PRO)
   ========================================================================== */

.kiosco-social {
    padding: 100px 20px;
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.kiosco-social__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* --- Título con estilo --- */
.kiosco-social__text h2 {
    font-size: 2.8rem;
    font-weight: 850;
    color: #1e293b;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.kiosco-social__text p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* --- Grid mejorado --- */
.kiosco-social__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* --- Tarjeta Estilo Premium --- */
.kiosco-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #ffffff;
    border-radius: 24px; /* Más redondeado como el buscador */
    text-decoration: none;
    border: 2px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-align: left;
}

/* Efecto al pasar el mouse */
.kiosco-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--social-color);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* --- El Icono (Ahora sí se va a ver) --- */
.kiosco-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc; /* Fondo gris claro inicial */
    color: var(--social-color);
    border-radius: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.kiosco-card__icon svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

/* Animación del icono en hover */
.kiosco-card:hover .kiosco-card__icon {
    background: var(--social-color);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.kiosco-card:hover .kiosco-card__icon svg {
    transform: scale(1.2) rotate(-8deg);
}

/* --- Texto de la Tarjeta --- */
.kiosco-card__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden; /* Para que no se salga el texto largo */
}

.kiosco-card__label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #94a3b8;
    transition: color 0.3s;
}

.kiosco-card:hover .kiosco-card__label {
    color: var(--social-color);
}

.kiosco-card__user {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Pone "..." si el texto es muy largo */
}

/* Específico para el correo para que no se vea feo */
.kiosco-card[style*="#003876"] .kiosco-card__user {
    font-size: 0.95rem; /* Un pelín más chico para que quepa el correo */
}

/* Responsivo */
@media (max-width: 768px) {
    .kiosco-social__text h2 { font-size: 2.2rem; }
    .kiosco-social__grid { grid-template-columns: 1fr; }
    .kiosco-card { padding: 25px; }
}