/* ============================================================
   Comunidad de Solteros - Estilos página pública
   ============================================================ */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: #111;
    color: #fff;
    overflow-x: hidden;
}

.bg-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 28px 16px 48px;
}

.bg-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.75) 100%);
    z-index: 0;
}

.contenedor {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- Logo / cabecera ---------- */
.logo-box {
    text-align: center;
    margin-bottom: 22px;
}

.logo-box img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    display: inline-block;
}

.logo-box .pais {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    color: #f5f5f5;
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

.logo-box .eslogan {
    margin: 10px auto 0;
    max-width: 320px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,.85);
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* Texto invisible en pantalla pero visible para buscadores (SEO) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Carrusel de eventos ---------- */
.eventos-carrusel {
    margin-bottom: 26px;
}

.eventos-titulo {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 10px 4px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

.eventos-wrap {
    position: relative;
}

.eventos-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.eventos-scroll::-webkit-scrollbar { height: 6px; }
.eventos-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 10px; }

/* Flechas del carrusel: solo se muestran en PC/laptop (con mouse) */
.eventos-flecha {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .eventos-flecha {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,.5);
        background: rgba(0,0,0,.55);
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        z-index: 5;
        transition: background .25s ease, transform .25s ease;
    }
    .eventos-flecha:hover {
        background: rgba(0,0,0,.8);
        transform: translateY(-50%) scale(1.08);
    }
    .eventos-flecha.prev { left: -8px; }
    .eventos-flecha.next { right: -8px; }
}

@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
    .eventos-flecha.prev { left: -22px; }
    .eventos-flecha.next { right: -22px; }
}

.evento-card {
    position: relative;
    flex: 0 0 auto;
    width: 68vw;
    max-width: 260px;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 10px 22px rgba(0,0,0,.45);
    background: #222;
    aspect-ratio: 3 / 4;
    border: 4px solid #fff;
}

.evento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.evento-card:active img { transform: scale(1.03); }

.evento-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 12px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 100%);
}

.evento-overlay .titulo {
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
    line-height: 1.2;
}

.evento-overlay .cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: #062b13;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
}

.evento-overlay .fecha-linea {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #ffd9e6;
    margin: -2px 0 8px;
    letter-spacing: .3px;
}

.calendario-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 46px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,.4);
    text-align: center;
    font-family: inherit;
    line-height: 1;
    z-index: 2;
}

.calendario-badge .mes {
    display: block;
    background: #F0507A;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 3px 0;
    text-transform: uppercase;
}

.calendario-badge .dia {
    display: block;
    color: #222;
    font-size: 18px;
    font-weight: 800;
    padding: 4px 0 5px;
}

/* ---------- Tarjetas de grupos ---------- */
.grupo-card {
    background: #fff;
    color: #222;
    border-radius: 16px;
    padding: 16px 16px 14px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    border: 2px solid var(--color, #6C2BD9);
}

.grupo-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.grupo-icono {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color, #6C2BD9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.grupo-info { flex: 1; min-width: 0; }

.grupo-info .nombre {
    display: block;
    font-weight: 800;
    font-size: 16px;
    color: var(--color, #6C2BD9);
    letter-spacing: .3px;
    line-height: 1.2;
    word-break: break-word;
}

.grupo-info .horario {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    letter-spacing: .5px;
    margin-top: 4px;
}

.grupo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--color, #6C2BD9);
    color: #fff;
    font-weight: 800;
    letter-spacing: .5px;
    text-decoration: none;
    font-size: 14px;
}

.grupo-btn svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- Botón flotante whatsapp de contacto ---------- */
.wtp-directo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 260px;
    margin: 10px auto 0;
    background: rgba(0,0,0,.55);
    border: 2px solid #25D366;
    border-radius: 40px;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .5px;
}

.wtp-directo svg { width: 22px; height: 22px; fill: #25D366; }

/* ---------- Testimonios ---------- */
.testimonios-titulo {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 32px 0 14px;
}

.testimonios-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonio-card {
    background: #fff;
    color: #222;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.3);
}

.testimonio-cabecera {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.testimonio-foto {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: #eee;
}

.testimonio-inicial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6C2BD9, #F0507A);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

.testimonio-datos {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.testimonio-nombre {
    font-weight: 700;
    font-size: 14px;
}

.testimonio-ig {
    font-size: 12px;
    color: #6C2BD9;
    text-decoration: none;
    font-weight: 600;
}

.testimonio-texto {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

@media (min-width: 700px) {
    .testimonios-lista {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .testimonio-card {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 220px;
    }
}

/* ---------- Galería de viajes ---------- */
.galeria-titulo {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 32px 0 14px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.galeria-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #222;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galeria-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding-left: 2px;
}

.galeria-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 6px 8px 5px;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%);
    line-height: 1.2;
}

/* ---------- Redes sociales ---------- */
.redes-sociales {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 22px auto 0;
}

.red-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.red-btn svg { width: 21px; height: 21px; fill: #fff; }

.red-btn:hover {
    transform: translateY(-3px);
}

.red-btn.ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.red-btn.tiktok:hover { background: #000; border-color: #25F4EE; }
.red-btn.fb:hover { background: #1877F2; border-color: transparent; }

.footer-nota {
    text-align: center;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 11px;
    color: rgba(255,255,255,.55);
}

.footer-nota a { color: rgba(255,255,255,.75); }

/* ---------- Escritorio ---------- */
@media (min-width: 640px) {
    .contenedor { max-width: 560px; }
    .logo-box img { width: 220px; height: 220px; }
    .evento-card { max-width: 300px; }
}

/* ---------- Movimiento/transiciones solo en PC (con mouse) ---------- */
@media (hover: hover) and (pointer: fine) {

    /* Flyers de eventos: se levantan y hacen zoom suave al pasar el mouse */
    .evento-card {
        transition: transform .35s ease, box-shadow .35s ease;
    }
    .evento-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 18px 34px rgba(0,0,0,.55);
    }
    .evento-card:hover img {
        transform: scale(1.08);
    }
    .evento-card img {
        transition: transform .5s ease;
    }
    .evento-overlay {
        transition: background .35s ease;
    }

    /* Tarjetas de grupos: leve elevación al pasar el mouse */
    .grupo-card {
        transition: transform .3s ease, box-shadow .3s ease;
    }
    .grupo-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(0,0,0,.4);
    }

    /* Tarjetas de testimonios: leve elevación al pasar el mouse */
    .testimonio-card {
        transition: transform .3s ease, box-shadow .3s ease;
    }
    .testimonio-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(0,0,0,.35);
    }

    /* Galería: zoom suave al pasar el mouse */
    .galeria-item img {
        transition: transform .4s ease;
    }
    .galeria-item:hover img {
        transform: scale(1.08);
    }

    /* Botones: efecto de brillo/zoom al pasar el mouse */
    .grupo-btn, .wtp-directo {
        transition: transform .2s ease, filter .2s ease;
    }
    .grupo-btn:hover, .wtp-directo:hover {
        transform: translateY(-2px) scale(1.02);
        filter: brightness(1.08);
    }

    /* Logo: pequeño respiro al pasar el mouse */
    .logo-box img {
        transition: transform .3s ease;
    }
    .logo-box img:hover {
        transform: scale(1.05);
    }
}

/* Entrada suave de las tarjetas al cargar la página, solo en PC */
@media (min-width: 900px) {
    .evento-card, .grupo-card {
        animation: aparecer .6s ease both;
    }
    .evento-card:nth-child(2) { animation-delay: .08s; }
    .evento-card:nth-child(3) { animation-delay: .16s; }
    .evento-card:nth-child(4) { animation-delay: .24s; }

    @keyframes aparecer {
        from { opacity: 0; transform: translateY(18px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}
