/* ==========================================================================
   Componentes de las páginas nuevas (landings, SAREN en línea, índice de
   municipios, 404) y de las secciones añadidas a la portada.
   No modifica ninguna clase existente de styles.css.
   ========================================================================== */

/* ---------- Ruta de navegación ---------- */
.lp-migas {
    background: #f2f2f7;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
    font-size: 0.85rem;
    padding: 0.6rem 0;
}

.lp-migas .breadcrumb {
    flex-wrap: wrap;
}

.lp-migas a {
    color: #8a6d1f;
    text-decoration: none;
}

/* ---------- Cabecera ---------- */
.lp-hero {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 55%, #0d1b2a 100%);
    color: #fff;
    padding: 56px 0 48px;
}

.lp-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
}

.lp-hero p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 820px;
}

.lp-hero .lp-lead {
    font-size: 1.15rem;
    color: #fff;
}

.lp-etiqueta {
    display: inline-block;
    background: rgba(212, 175, 55, 0.18);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.lp-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.lp-404 {
    padding: 96px 0;
}

/* ---------- Secciones ---------- */
.lp-seccion {
    padding: 56px 0;
    background: #fff;
}

.lp-gris {
    background: #f2f2f7;
}

.lp-h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #111;
}

.lp-estrecho {
    max-width: 860px;
}

/* ---------- Bloque destacado SAREN (landings y portada) ---------- */
.saren-destacado {
    background: linear-gradient(135deg, #111 0%, #2a2210 100%);
    color: #fff;
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.saren-destacado h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
}

.saren-destacado p {
    color: rgba(255, 255, 255, 0.85);
}

.badge-destacado {
    display: inline-block;
    background: #D4AF37;
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.saren-lista {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.6rem 1.5rem;
}

.saren-lista i {
    color: #D4AF37;
    margin-right: 0.4rem;
}

.saren-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.saren-aviso {
    margin: 1.25rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65) !important;
}

.home-saren {
    background: #fff;
}

/* ---------- Tarjetas de servicios ---------- */
.lp-servicio {
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.lp-servicio h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

.lp-servicio p {
    color: #555;
    flex: 1;
}

.lp-servicio-icono {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.15);
    color: #8a6d1f;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.lp-servicio-acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.lp-mas {
    font-size: 0.9rem;
    color: #8a6d1f;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Pasos ---------- */
.lp-paso {
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem;
    height: 100%;
}

.lp-paso h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.lp-paso p {
    margin: 0;
    color: #555;
}

.lp-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #D4AF37;
    color: #000;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

/* ---------- Preguntas frecuentes ---------- */
.lp-faq {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lp-faq-item {
    border-radius: 0 !important;
}

.lp-faq-item + .lp-faq-item {
    border-top: 0.5px solid rgba(60, 60, 67, 0.18);
}

.lp-faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-item summary::after {
    content: "+";
    color: #8a6d1f;
    font-weight: 700;
}

.lp-faq-item[open] summary::after {
    content: "\2212";
}

.lp-faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    color: #444;
}

/* ---------- Enlaces (lista agrupada) ---------- */
.ios-group .ios-row small {
    display: block;
    color: rgba(60, 60, 67, 0.6);
    font-size: 0.8rem;
}

.lp-seccion .ios-group,
.home-municipios .ios-group {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lp-aviso {
    background: #fff8e1;
    border: 1px solid #f0d58a;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    color: #5d4a12;
}

/* ---------- Llamada final ---------- */
.lp-cta-final {
    background: linear-gradient(135deg, #000 0%, #0d1b2a 100%);
    color: #fff;
    padding: 56px 0;
}

.lp-cta-final h2 {
    font-weight: 800;
    color: #fff;
}

.lp-cta-final p {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Municipios plegables (portada y landings) ---------- */
.home-municipios {
    background: #f2f2f7;
}

.mun-plegable {
    background: #fff;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mun-plegable > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    color: #111;
}

.mun-plegable > summary::-webkit-details-marker {
    display: none;
}

.mun-plegable > summary::after {
    content: "\203A";
    font-size: 1.4rem;
    line-height: 1;
    color: rgba(60, 60, 67, 0.4);
    transition: transform 0.2s;
}

.mun-plegable[open] > summary::after {
    transform: rotate(90deg);
}

.mun-plegable > summary h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.mun-plegable > summary i {
    color: #D4AF37;
}

.mun-contador {
    margin-left: auto;
    background: #D4AF37;
    color: #000;
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.1rem 0.6rem;
}

.mun-plegable > .ios-group {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 0.5px solid rgba(60, 60, 67, 0.18);
}

.mun-lista {
    list-style: none;
    margin: 0;
    padding: 0.25rem 1.1rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mun-lista a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #f2f2f7;
    color: #111;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.mun-lista a:hover {
    background: rgba(212, 175, 55, 0.2);
}

.mun-lista small {
    color: rgba(60, 60, 67, 0.6);
    font-weight: 400;
    font-size: 0.75rem;
}

.mun-pie {
    margin: 0;
    padding: 0 1.1rem 1rem;
    font-size: 0.9rem;
}

.mun-pie a {
    color: #8a6d1f;
}

@media (max-width: 575.98px) {
    .lp-botones .btn,
    .saren-botones .btn {
        width: 100%;
    }
}

.lp-seccion a:not(.btn):not(.ios-row) {
    color: #8a6d1f;
}

.mun-lista .mun-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #f2f2f7;
    color: #111;
    font-size: 0.9rem;
    font-weight: 600;
}

.mun-lista .mun-chip small {
    color: rgba(60, 60, 67, 0.6);
    font-weight: 400;
    font-size: 0.75rem;
}

/* ---------- Guía legal (/informacion-legal/preguntas-frecuentes/) ---------- */
.guia {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.guia-item {
    background: #fff;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    scroll-margin-top: 110px;
}

.guia-item > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    font-size: 1rem;
    color: #111;
}

.guia-item > summary::-webkit-details-marker {
    display: none;
}

.guia-item > summary::after {
    content: "+";
    color: #8a6d1f;
}

.guia-item[open] > summary::after {
    content: "\2212";
}

.guia-cuerpo {
    padding: 0 1.1rem 1rem;
    font-size: 0.95rem;
    color: #333;
    border-top: 0.5px solid rgba(60, 60, 67, 0.18);
}

.guia-cuerpo > div,
.guia-cuerpo > p {
    margin: 0.6rem 0;
}

.guia-cuerpo h5 {
    font-size: 1rem;
    margin: 0.8rem 0 0.4rem;
    color: #111;
}

.guia-cuerpo ul {
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
}

.guia-nota {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

/* ---------- Portada: acceso al estado del visitante ---------- */
.home-ubicacion {
    background: #fff;
}

.ubicacion-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #111;
    color: #fff;
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.ubicacion-card:hover {
    color: #fff;
    filter: brightness(1.1);
}

.ubicacion-card > i {
    color: #D4AF37;
    font-size: 1.4rem;
}

.ubicacion-card small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.ubicacion-card strong {
    font-size: 1.1rem;
}

.ubicacion-ir {
    margin-left: auto;
    background: #D4AF37;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    white-space: nowrap;
}

/* ---------- Preguntas y respuestas (/preguntas-y-respuestas/) ---------- */
.pr-buscar {
    border-radius: 14px;
    margin-bottom: 1rem;
}

.pr-temas {
    padding: 0 0 0.5rem;
}

.pr-temas small {
    margin-left: 0.35rem;
}

.pr-sin-resultados {
    background: #fff8e1;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.pr-tema {
    scroll-margin-top: 110px;
}
