/* PIE DE PAGINA + BOTES DEL PIE + SELLOS DE PAGO - diseno nuevo, SOLO MOVIL (< 768 px), en TODAS las paginas (se enlaza desde la master).
   Maqueta: index.html ("Botes y pie de pagina movil"). Los botes siguen siendo los del control del servidor (Juegos_C_BotesInicio_Pie, en sectionsection.SectionPie),
   el pie es el de la master (enlaces del XML) y los metodos de pago son la imagen nueva (Visa, Mastercard, Google Pay, Apple Pay, Bizum). */
.pie-m { display: none; }

@media (max-width: 767px) {
    .pie-m { display: block; }

    /* ======================= BOTES DESTACADOS (donde estaban: justo antes del pie) ======================= */
    html body section.SectionPie { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 24px 16px 30px !important; float: none !important; background: #fff; box-sizing: border-box; }
    html body section.SectionPie::before { content: "Botes destacados"; display: block; margin: 0 0 20px; font-size: 24px; font-weight: 800; line-height: 1.15; color: #083e7d; }
    /* los titulos de la portada (.services-list::before) no se repiten aqui */
    html body section.SectionPie .services-list::before { content: none !important; display: none !important; }
    html body section.SectionPie .services-list { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 0 0 12px !important; padding: 0 !important; }
    html body section.SectionPie .services-list [class*="col-"] { float: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }

    html body section.SectionPie .services-list .AnchoPie {
        position: relative; display: flex !important; flex-direction: column; justify-content: center; width: 100% !important; height: 72px; min-height: 72px; max-height: 72px; margin: 0 !important; padding: 0 46px 0 70px !important; box-sizing: border-box;
        border: 1px solid #d8e4f1; border-radius: 12px; background: #fff !important; box-shadow: 0 2px 5px rgba(16, 45, 75, .07); text-align: left;
    }
    html body section.SectionPie .services-list .AnchoPie > .h4_pie_juego { display: block !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-family: inherit !important; text-align: left !important; text-transform: none !important; text-shadow: none !important; letter-spacing: 0 !important; }
    html body section.SectionPie .services-list .AnchoPie > .h4_pie_juego:first-of-type { font-size: 18px !important; font-weight: 800 !important; line-height: 1.2; color: #153c68 !important; white-space: nowrap; }
    html body section.SectionPie .services-list .AnchoPie > .h4_pie_juego:last-of-type:not(:first-of-type), html body section.SectionPie .services-list .AnchoPie > div.h4_pie_juego + div + div.h4_pie_juego { margin-top: 3px !important; font-size: 18px !important; font-weight: 800 !important; line-height: 1.2; color: #0b478b !important; }
    html body section.SectionPie .services-list .AnchoPie > div[id$="divImg"], html body section.SectionPie .ImagenPie { display: none !important; }
    /* el boton "Jugar" cubre toda la tarjeta (no se ve) y pone la flecha */
    html body section.SectionPie .services-list .AnchoPie > a { position: absolute !important; left: 0; top: 0; right: 0; bottom: 0; z-index: 3; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 0 !important; color: transparent !important; overflow: hidden; text-indent: -9999px; }
    html body section.SectionPie .services-list .AnchoPie > a::before, html body section.SectionPie .services-list .AnchoPie > a::after { content: none !important; display: none !important; }
    html body section.SectionPie .services-list .AnchoPie::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border: solid #0a4c91; border-width: 0 2.5px 2.5px 0; transform: rotate(-45deg); }
    /* icono del juego (los iconos de la web) */
    html body section.SectionPie .services-list .AnchoPie::before { content: ""; position: absolute; left: 15px; top: 50%; width: 42px; height: 42px; margin-top: -21px; background: no-repeat center / contain; }
    html body section.SectionPie .services-list .AnchoPie:has(a[title*="Euromillones"])::before { background-image: url("/Web_2_0/Web/RecursosAranya/img/euromillones.png"); }
    html body section.SectionPie .services-list .AnchoPie:has(a[title*="Gordo"])::before { background-image: url("/Web_2_0/Web/RecursosAranya/img/elgordo.png"); }
    html body section.SectionPie .services-list .AnchoPie:has(a[title*="Primitiva"])::before { background-image: url("/Web_2_0/Web/RecursosAranya/img/primitiva.png"); }
    html body section.SectionPie .services-list .AnchoPie:has(a[title*="Bonoloto"])::before { background-image: url("/Web_2_0/Web/RecursosAranya/img/bonoloto.png"); }
    html body section.SectionPie .services-list .AnchoPie:has(a[title*="Quiniela"])::before, html body section.SectionPie .services-list .AnchoPie:has(a[title="Jugar 1"])::before { background-image: url("/Web_2_0/Web/RecursosAranya/img/quiniela.png"); }
    html body section.SectionPie .services-list .AnchoPie:has(a[title*="Nacional"])::before, html body section.SectionPie .services-list .AnchoPie:has(a[href*="loteria-nacional"])::before { background-image: url("/Web_2_0/Web/RecursosAranya/img/loteria.png"); }
    html body section.SectionPie .services-list .AnchoPie:has(a[title*="Navidad"])::before { background-image: url("/Web_2_0/Web/RecursosAranya/img/navidad.png"); }
    html body section.SectionPie .services-list .AnchoPie:has(a[title*="Niño"])::before { background-image: url("/Web_2_0/Web/RecursosAranya/img/nino.png"); }

    /* ======================= COMPRA SEGURA Y JUEGO RESPONSABLE (sustituye la banda de sellos) ======================= */
    html body .PieBanner { height: auto !important; margin: 0 !important; padding: 22px 16px 25px !important; background: #e9f2fa !important; }
    html body .PieBanner::before { content: "Compra segura y juego responsable"; display: block; margin: 0 0 14px; font-size: 18px; font-weight: 800; line-height: 1.2; color: #153c68; }
    html body .PieBanner .PieBannerContainer { width: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
    html body .PieBanner .PieBannerContainer > div {
        display: block; float: none !important; width: 100% !important; height: 56px !important; margin: 0 0 10px !important; padding: 0 !important; position: static !important; top: auto !important; box-sizing: border-box;
        border: 1px solid #c3d6e8; border-radius: 10px; background-color: #fff !important; background-repeat: no-repeat !important; background-position: center !important; background-size: auto 36px !important;
    }
    /* metodos de pago NUEVOS: Visa, Mastercard, Google Pay, Apple Pay y Bizum */
    html body .PieBanner .CuadroPieBanner2 { background-image: url("/Web_2_0/Web/RecursosAranya/images/home/hm-metodos-pago.jpg") !important; background-size: auto 40px !important; }

    /* ======================= PIE DE PAGINA ======================= */
    html body footer.footer { margin: 0 !important; padding: 28px 16px 30px !important; background: #07468d !important; color: #fff; }
    html body footer.footer > .container { display: flex; flex-direction: column; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
    html body footer.footer > .container > [class*="col-"] { float: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
    /* orden: marca, redes, enlaces, contacto, copyright */
    html body footer.footer > .container > div:nth-child(2) { order: 1; text-align: center; }
    html body footer.footer > .container > .pie-social { order: 2; }
    html body footer.footer > .container > div:nth-child(1) { order: 3; }
    html body footer.footer > .container > div:nth-child(3) { order: 4; }
    html body footer.footer > .container > .devider { order: 5; display: none; }
    html body footer.footer > .container > p.copy { order: 6; margin: 24px 0 0; font-size: 13px; line-height: 1.4; color: #c8ddf0; text-align: left; }
    html body footer.footer img { max-height: 56px; width: auto; }

    html body .pie-social { display: flex; gap: 18px; justify-content: center; margin: 18px 0 0; }
    html body .pie-social a { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14) no-repeat center / 24px; }
    html body .pie-social .pie-fb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M14 8.5V7c0-.8.2-1.2 1.300-1.200H17V3h-2.500C11.700 3 10.500 4.700 10.500 6.900V8.500H8v3h2.500V21h3.500v-9.500h2.600L17 8.500z'/%3E%3C/svg%3E"); }
    html body .pie-social .pie-ig { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.500 6.500h.1'/%3E%3C/svg%3E"); }

    /* enlaces: botones translucidos con flecha (el " | " del final lo quita un script de la master) */
    html body footer.footer > .container > div:nth-child(1)::before { content: "Informaci\0000f3n y enlaces"; display: block; margin: 28px 0 18px; font-size: 21px; font-weight: 800; line-height: 1.2; color: #fff; text-align: left; }
    html body footer.footer a.menuFooter {
        position: relative; display: flex !important; align-items: center; width: 100%; min-height: 62px; margin: 0 0 12px; padding: 10px 44px 10px 15px; box-sizing: border-box;
        border: 1px solid #7ba3ce; border-radius: 12px; background: #155399; color: #fff !important; font-size: 18px; font-weight: 600; line-height: 1.22; text-align: left; text-decoration: none;
    }
    html body footer.footer a.menuFooter .c-white { color: #fff !important; font-size: 18px; font-weight: 600; }
    html body footer.footer a.menuFooter::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(-45deg); }

    /* contacto */
    html body footer.footer > .container > div:nth-child(3)::before { content: "Contacto"; display: block; margin: 22px 0 10px; font-size: 21px; font-weight: 800; line-height: 1.2; color: #fff; text-align: left; }
    html body footer.footer > .container > div:nth-child(3) { text-align: left; }
    html body footer.footer > .container > div:nth-child(3) p.menuFooter, html body footer.footer > .container > div:nth-child(3) span { display: block; margin: 0; font-size: 17px; line-height: 1.55; color: #fff !important; text-align: left; }
    html body footer.footer > .container > div:nth-child(3) a { color: #fff !important; text-decoration: none; }

    /* 12/11/2026: sin la banda gris final ("Juego responsable / Solo mayores de 18 / Loterias y Apuestas del Estado" quitada de la master). En el pie azul, UNA linea:
       "<comercio> powered by InformaticaQ y Graficas Arana" (p.pie-powered, solo movil) en lugar del copyright de PC. */
    html body .pie-legal { display: none !important; }
    html body footer.footer > .container > p.copy:not(.pie-powered) { display: none !important; }
    html body footer.footer > .container > p.copy.pie-powered { display: block !important; order: 6; margin: 26px 0 0; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; color: #fff; text-align: center; }
}

/* 12/11/2026: metodos de pago NUEVOS tambien en el pie de ESCRITORIO (antes solo en movil; en PC seguia la imagen vieja Visa / 4B / ServiRed / Euro 6000) */
html body .PieBanner .CuadroPieBanner2 { background-image: url("/Web_2_0/Web/RecursosAranya/images/home/hm-metodos-pago.jpg") !important; }
