/* Etiquetas flotantes de acceso rápido SIEMPRE centradas horizontalmente */
.etiquetas-flotantes {
    position: fixed;
    top: 100px;
    right: 20px;
    left: auto;
    transform: none;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-end;
}
.etiqueta-flotante {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #111;
    text-decoration: none;
    padding: 10px 16px 10px 12px;
    border-radius: 24px;
    box-shadow: 0 2px 8px #b82929;
    min-width: 44px;
    transition: all 0.2s;
    overflow: hidden;
    width: 44px;
}
.etiqueta-flotante:hover {
    width: auto;
}
.etiqueta-flotante i {
    font-size: 1.4rem;
}
.etiqueta-txt {
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: 6px;
    font-weight: 600;
}
.etiqueta-flotante:hover .etiqueta-txt {
    opacity: 1;
}
.etiqueta-admin {
    position: fixed;
    bottom: 18px;
    left: 18px;
    right: auto;
    z-index: 10000;
    width: 44px;
    max-width: 44px;
    padding-right: 14px;
    border-radius: 0 24px 24px 24px;
    justify-content: flex-start;
    white-space: nowrap;
    box-sizing: border-box;
}
.etiqueta-admin:hover,
.etiqueta-admin:focus-visible {
    width: max-content;
    max-width: calc(100vw - 36px);
}
.etiqueta-admin:focus-visible .etiqueta-txt {
    opacity: 1;
}

.geo-debug-panel {
    width: min(1100px, 92vw);
    margin: 32px auto 0 auto;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(184, 41, 41, 0.18);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.geo-debug-titulo {
    margin: 0 0 14px 0;
    font-size: 1.15rem;
    color: #7c1212;
    text-align: center;
}

.geo-debug-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.geo-debug-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
}

.geo-debug-item span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

.geo-debug-item strong {
    font-size: 0.93rem;
    color: #111;
    word-break: break-word;
}

.cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.2);
    z-index: 99998;
}

@media (max-width: 900px) {
    .geo-debug-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .geo-debug-grid {
        grid-template-columns: 1fr;
    }
}
body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            background: linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)), url('../logos/index.jpg') no-repeat center center fixed;
            background-size: cover;
            position: relative;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
.hero-inicio {
            padding-top: 24px;
        }
        /*
        ACCESIBILIDAD: Sugerencias de contraste para cumplir WCAG AA
        - El texto blanco (#fff) sobre fondo rojo oscuro (#8b0000, #b82929, #dd1515) tiene buen contraste.
        - El texto gris claro sobre fondo blanco o viceversa puede no ser suficiente. Usar #222 o #111 para texto principal sobre blanco.
        - Para botones claros, usar texto #222 o #b82929 sobre fondo #fff o #e0e0e0.
        - Verificar contraste con herramientas como https://webaim.org/resources/contrastchecker/
        */
        .logo-container {
            margin-top: 60px;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
        }
        .logoFormulario {
            width: 180px;
            height: auto;
            animation: logoPulse 2.5s infinite alternate;
        }
        @keyframes logoPulse {
            0% { filter: drop-shadow(0 0 0 #dd1515); transform: scale(1); }
            100% { filter: drop-shadow(0 0 20px #dd1515); transform: scale(1.08); }
        }
        .psoe-sonseca {
            margin-top: 108px;
            display: flex;
            align-items: baseline;
            gap: 18px;
            justify-content: center;
            font-size: 2.2rem;
            color: #fff;
            text-shadow: 0 2px 16px rgba(221,21,21,0.35), 0 0 4px rgba(248, 5, 5, 0.7);
            animation: psoeSonsecaShadow 2.5s infinite alternate;
            font-weight: 700;
            text-align: center;
            z-index: 2;
        }
        .psoe-grande {
            font-size: calc(2.2rem + 20px);
            color: inherit;
            font-weight: inherit;
            letter-spacing: 2px;
            line-height: 1;
            text-shadow: inherit;
        }
        .sonseca-pequeno {
            font-size: inherit;
            color: inherit;
            font-weight: inherit;
            letter-spacing: 1px;
            margin-bottom: 8px;
            text-shadow: inherit;
        }
        .slogan {
            margin: 40px auto 0 auto;
            font-size: 2.2rem;
            color: #fff; /* Suficiente contraste sobre fondo oscuro */
            text-shadow: 0 2px 12px #8b0000, 0 0 2px #fff;
            font-weight: 700;
            text-align: center;
        }
        .anuncios-portada {
                    position: fixed;
                    top: 92px;
                    left: 14px;
                    width: min(320px, calc(100vw - 96px));
                    display: grid;
                    gap: 18px;
                    z-index: 4;
                }
        .anuncio-portada-card {
                    display: grid;
                    grid-template-columns: 92px 1fr;
                    gap: 14px;
                    align-items: center;
                    background: rgba(255, 255, 255, 0.14);
                    border: 1px solid rgba(255, 255, 255, 0.38);
                    border-radius: 22px;
                    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
                    -webkit-backdrop-filter: blur(10px);
                    backdrop-filter: blur(10px);
                    padding: 12px;
                    animation: anuncioPortadaFadeIn 0.7s ease-out, anuncioPortadaPulse 2.6s infinite alternate 0.7s;
                    cursor: pointer;
                    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
                }
        .anuncio-portada-card:hover,
        .anuncio-portada-card:focus {
                    background: rgba(255, 255, 255, 0.2);
                    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
                    transform: translateY(-3px);
                    outline: none;
                }
        .anuncio-portada-imagen-wrap {
                    width: 100%;
                    display: flex;
                    justify-content: center;
                }
        .anuncio-portada-imagen {
                    width: 100%;
                    max-width: 92px;
                    max-height: 92px;
                    object-fit: cover;
                    border-radius: 16px;
                    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
                }
        .anuncio-portada-contenido {
                    display: grid;
                    gap: 8px;
                }
        .anuncio-portada-titulo {
                    margin: 0;
                    color: #0f0f0f;
                    font-size: 1rem;
                    line-height: 1.2;
                    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
                }
        .anuncio-portada-texto {
                    margin: 0;
                    color: #101010;
                    font-size: 0.88rem;
                    line-height: 1.4;
                    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.34);
                    display: -webkit-box;
                    -webkit-line-clamp: 1;
                    line-clamp: 1;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                }
        .anuncio-portada-leer-mas {
                    color: #1a1a1a;
                    font-size: 0.78rem;
                    font-weight: 700;
                    letter-spacing: 0.02em;
                    text-transform: uppercase;
                }
        .anuncio-modal-bg {
                    position: fixed;
                    inset: 0;
                    z-index: 10002;
                    display: none;
                    align-items: center;
                    justify-content: center;
                    background: rgba(10, 10, 10, 0.72);
                    padding: 20px;
                }
        .anuncio-modal-content {
                    position: relative;
                    width: min(760px, 92vw);
                    max-height: 88vh;
                    overflow: auto;
                    background: rgba(255, 255, 255, 0.96);
                    border-radius: 24px;
                    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35);
                    padding: 28px;
                }
        .anuncio-modal-close {
                    position: absolute;
                    top: 12px;
                    right: 16px;
                    border: none;
                    background: transparent;
                    color: #b82929;
                    font-size: 2.2rem;
                    cursor: pointer;
                    line-height: 1;
                }
        .anuncio-modal-grid {
                    display: grid;
                    grid-template-columns: minmax(220px, 280px) 1fr;
                    gap: 24px;
                    align-items: start;
                }
        .anuncio-modal-imagen-wrap {
                    display: flex;
                    justify-content: center;
                }
        .anuncio-modal-imagen {
                    width: 100%;
                    max-width: 280px;
                    max-height: 320px;
                    object-fit: cover;
                    border-radius: 18px;
                    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
                    cursor: zoom-in;
                    transition: transform 0.2s ease, box-shadow 0.2s ease;
                }
        .anuncio-modal-imagen:hover,
        .anuncio-modal-imagen:focus {
                    transform: scale(1.02);
                    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
                    outline: none;
                }
        .anuncio-modal-cuerpo h2 {
                    margin: 0 0 12px 0;
                    color: #181818;
                    font-size: 1.7rem;
                    line-height: 1.2;
                }
        .anuncio-modal-cuerpo p {
                    margin: 0;
                    color: #222;
                    font-size: 1rem;
                    line-height: 1.65;
                    white-space: pre-line;
                }
                @keyframes anuncioPortadaFadeIn {
                    0% {
                        opacity: 0;
                        transform: translateY(-12px) scale(0.96);
                    }
                    100% {
                        opacity: 1;
                        transform: translateY(0) scale(1);
                    }
                }
                @keyframes anuncioPortadaPulse {
                    0% {
                        transform: translateY(0) scale(1);
                        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 0 0 rgba(221, 21, 21, 0.18);
                    }
                    100% {
                        transform: translateY(-3px) scale(1.015);
                        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 20px rgba(221, 21, 21, 0.28);
                    }
                }
        .etiquetas {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 18px;
            width: 95vw;
            max-width: 1400px;
            z-index: 2;
            margin: 0 auto 80px auto;
        }
        .etiquetas-principales {
            margin: 60px auto 80px auto;
        }
        .etiqueta-bloque-inicio {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
        }
        .etiqueta {
            background: rgba(128, 126, 126, 0.60);
            color: #fff; /* Suficiente contraste sobre fondo gris oscuro */
            padding: 18px 0 14px 0;
            border-radius: 30px;
            font-size: 1.1rem;
            font-weight: 600;
            box-shadow: 0 0 0 #dd1515;
            cursor: pointer;
            transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
            text-align: center;
            text-decoration: none;
            width: 100%;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            animation: etiquetaPulse 2.5s infinite alternate;
            opacity: 1;
        }
        .etiqueta-descripcion {
            font-size: 0.95rem;
            margin-top: 4px;
            font-weight: 400;
        }
        @keyframes etiquetaPulse {
            0% { box-shadow: 0 0 0 #dd1515; }
            100% { box-shadow: 0 0 20px #dd1515; }
        }
        .etiqueta:hover {
            background: rgba(162, 160, 160, 0.95);
            color: #f7f4f4;
            font-weight: bold;
            box-shadow: 0 0 28px #b82929;
            transform: translateY(-2px) scale(1.03);
            opacity: 1;
        }
        .rotulo-contactos {
            position: fixed;
            bottom: 18px;
            right: 28px;
            background: #fff;
            color: #dd1515; /* Contraste suficiente para texto sobre fondo blanco */
            font-weight: 700;
            font-size: 1.1rem;
            padding: 10px 22px;
            border-radius: 20px 0 20px 20px;
            box-shadow: 0 2px 10px rgba(221,21,21,0.12);
            z-index: 3;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .rotulo-contactos i {
            color: #dd1515;
            font-size: 1.2rem;
        }
        .rotulo-contactos-link {
            color: inherit;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .socialistas-logo-wrap {
            margin: 6px auto 0 auto;
            text-align: center;
            width: 100%;
        }
        .socialistas-logo {
            max-width: 180px;
            width: 180px;
            height: auto;
            display: inline-block;
            margin-top: 0;
            cursor: pointer;
        }
        @media (max-width: 1100px) {
            .etiquetas {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }
        }
        @media (max-width: 910px) {
            .anuncios-portada {
                position: static;
                width: min(88vw, 520px);
                margin: 24px auto 8px auto;
            }
            .anuncio-portada-card {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .anuncio-portada-titulo {
                color: #fff;
                text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
            }
            .anuncio-portada-texto {
                color: rgba(255, 255, 255, 0.96);
                text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
            }
            .anuncio-portada-leer-mas {
                color: #fff;
                text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
            }
            .anuncio-portada-texto {
                -webkit-line-clamp: 2;
                line-clamp: 2;
            }
            .anuncio-modal-grid {
                grid-template-columns: 1fr;
            }
            .etiquetas {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                bottom: 40px;
            }
            .etiqueta { font-size: 1rem; padding: 12px 0 10px 0; }
            .psoe-sonseca { margin-top: 16px; gap: 10px; }
            .psoe-grande { font-size: 2.1rem; }
            .sonseca-pequeno { font-size: 1rem; margin-bottom: 4px; }
        }
        @media (max-width: 600px) {
            .anuncios-portada {
                position: static;
                width: 90vw;
                margin-top: 24px;
            }
            .anuncio-portada-card {
                padding: 14px;
                border-radius: 18px;
            }
            .anuncio-portada-titulo {
                font-size: 1.2rem;
            }
            .anuncio-portada-texto {
                font-size: 0.95rem;
            }
            .etiquetas-flotantes {
                top: 78px;
                right: 10px;
                gap: 12px;
            }
            .etiqueta-admin {
                left: 10px;
                bottom: 10px;
            }
            .logoFormulario { width: 120px; }
            .logo-container {
                display: flex;
                flex-direction: column;
                align-items: center;
                position: static;
                margin-top: 20px;
                margin-left: auto;
                margin-right: auto;
                width: fit-content;
            }
            .psoe-sonseca { margin-top: 8px; gap: 6px; }
            .slogan {
                font-size: 1.2rem;
                margin-top: 20px;
                text-align: center;
                width: 100%;
                max-width: 95vw;
                margin-left: auto;
                margin-right: auto;
            }
            .etiquetas {
                grid-template-columns: 1fr;
                gap: 8px;
                bottom: 20px;
                width: 80vw;
                max-width: 400px;
            }
            .etiqueta { padding: 10px 0 8px 0; font-size: 0.95rem; }
            .rotulo-contactos { font-size: 0.95rem; padding: 7px 12px; right: 10px; bottom: 10px; }
            .psoe-sonseca { margin-top: 8px; gap: 6px; }
            .psoe-grande { font-size: 1.2rem; }
            .sonseca-pequeno { font-size: 0.7rem; margin-bottom: 2px; }
        }
        @keyframes psoeSonsecaShadow {
            0% {
                text-shadow: 0 2px 16px rgba(221,21,21,0.35), 0 0 4px rgba(255,255,255,0.7);
            }
            60% {
                text-shadow: 0 2px 22px rgba(221,21,21,0.65), 0 0 8px rgba(255,255,255,0.8);
            }
            100% {
                text-shadow: 0 2px 28px rgba(221,21,21,0.85), 0 0 12px rgba(255,255,255,0.9);
            }
        }

    /* Modal de imagen */
    .modal-img-bg {
        display:none;position:fixed;z-index:10020;left:0;top:0;width:100vw;height:100vh;background:rgba(0,0,0,0.75);align-items:center;justify-content:center;
    }
    .modal-img-bg.active { display:flex; }
    .cookie-banner {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        z-index: 99999;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -2px 16px #b82929;
        padding: 28px 12px 18px 12px;
        text-align: center;
        font-size: 1.1rem;
    }
    .cookie-banner-inner {
        max-width: 600px;
        margin: 0 auto;
        color: #222;
        font-weight: 500;
    }
    .cookie-banner-icon {
        color: #b82929;
        font-size: 2rem;
        margin-bottom: 8px;
    }
    .cookie-banner-title {
        font-weight: 700;
    }
    .cookie-banner-text {
        font-size: 0.98rem;
        color: #555;
    }
    .cookie-banner-actions {
        margin-top: 18px;
        display: flex;
        gap: 18px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .cookie-banner-btn {
        font-weight: 700;
        padding: 10px 28px;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        cursor: pointer;
    }
    .cookie-banner-btn-accept {
        background: #7c1212;
        color: #fff;
    }
    .cookie-banner-btn-reject {
        background: #b82929;
        color: #fff;
    }
    .cookie-banner-btn-basic {
        background: #e0e0e0;
        color: #b82929;
    }
    .cookie-banner-status {
        display: none;
        margin-top: 14px;
        font-size: 0.96rem;
        color: #555;
    }
    .modal-img-content {
        background:#fff;border-radius:14px;max-width:50vw;max-height:80vh;box-shadow:0 8px 32px #0008;overflow:auto;position:relative;padding:0;
        display:flex;align-items:center;justify-content:center;
    }
    .modal-img-content img {
        max-width:100%;max-height:75vh;object-fit:contain;transition:transform 0.2s;cursor:zoom-in;
    }
    .modal-img-close {
        position:absolute;top:10px;right:18px;font-size:2.2rem;color:#b82929;background:none;border:none;cursor:pointer;z-index:2;
    }
                @keyframes psoeSonsecaGrow {
                0% { transform: scale(1); }
                60% { transform: scale(1.08); }
                100% { transform: scale(1.13); }
            }