/* PORTADA movil - BOTES DESTACADOS con el MISMO estilo que los del pie (maqueta index.html). Se carga el ULTIMO de los css de la portada y
   sustituye lo de inicio-movil-botes.css / inicio-movil-iconos.css para estas listas.
   Control: Juegos_C_BotesInicio (dos listas .services-list: juegos con h2 y Loteria Nacional con h4). Una sola lista visual de 8 tarjetas. */
@media (max-width: 767px) {

    /* titulo (solo el de la primera lista) */
    html body .services-list::before {
        content: "Botes destacados" !important; display: block !important; margin: 0 0 20px !important; padding: 0 !important; min-height: 0 !important; line-height: 1.15 !important;
        font-size: 24px !important; font-weight: 800 !important; color: #083e7d !important; background: none !important; text-align: left !important;
    }
    html body .services-list ~ .services-list::before { content: none !important; display: none !important; }
    html body .services-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 12px !important; padding: 24px 16px 0 !important; }
    html body .services-list ~ .services-list { padding-top: 0 !important; margin-top: 0 !important; }
    html body .services-list [class*="col-"] { width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; }

    /* tarjeta: 72 px, nombre y importe, flecha */
    html body .services-list .service-item {
        position: relative; display: flex !important; flex-direction: column; justify-content: center; width: 100%; height: 72px !important; min-height: 72px !important; max-height: 72px; margin: 0 !important; padding: 0 46px 0 70px !important; box-sizing: border-box;
        border: 1px solid #d8e4f1 !important; border-radius: 12px !important; background: #fff !important; box-shadow: 0 2px 5px rgba(16, 45, 75, .07) !important; text-align: left;
    }
    html body .services-list .service-item > h2, html body .services-list .service-item > h4:first-of-type {
        font-size: 18px !important; font-weight: 800 !important; line-height: 1.2 !important; color: #153c68 !important; white-space: nowrap;
    }
    html body .services-list .service-item > .span_cuadrobotesbote, html body .services-list .service-item > h4.PremioJuego, html body .services-list ~ .services-list .service-item > h4.PremioJuego {
        margin: 3px 0 0 !important; font-size: 18px !important; font-weight: 800 !important; line-height: 1.2 !important; color: #0b478b !important;
    }
    /* sin fechas ni cuenta atras */
    html body .services-list .service-item > .span_cuadrobotesfecha1, html body .services-list .service-item > .span_cuadrobotesfecha2,
    html body .services-list ~ .services-list .service-item > h4.FechaJuego1, html body .services-list ~ .services-list .service-item > h4.FechaJuego2,
    html body .services-list ~ .services-list .service-item > h4.FechaJuego2.quito_NoPLY { display: none !important; }
    /* el boton "Jugar" cubre toda la tarjeta (no se ve) */
    html body .services-list .service-item > a[id*="hplJugar"], html body .services-list ~ .services-list .service-item > a[id*="hplJugarLoteria"] {
        position: absolute !important; left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 3; width: auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
        border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 0 !important; color: transparent !important; overflow: hidden; text-indent: -9999px !important; display: block !important;
    }
    html body .services-list .service-item > a[id*="hplJugar"]::before, html body .services-list .service-item > a[id*="hplJugar"]::after { display: none !important; content: none !important; }
    html body .services-list .service-item::after, html body .services-list ~ .services-list .service-item::after {
        display: block !important; 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 (los iconos de la web) */
    html body .services-list .service-item::before, html body .services-list ~ .services-list .service-item::before {
        left: 15px !important; width: 42px !important; height: 42px !important; margin-top: -21px !important;
        background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important;
    }
}

/* 10/11/2026 - SORTEO DESTACADO de la portada (movil): tarjeta azul con nombre, bote real, fecha y "Jugar ahora". De momento Primitiva (General_Inicio.aspx).
   + foto de El Espanol (22/12/2025) como tercera tarjeta de "En prensa". */
@media (max-width: 767px) {
    /* mismos margenes y esquinas que el hero de arriba (14 px a cada lado); la foto va a la derecha y el texto a la izquierda */
    html body a.hm-dest {
        position: relative; display: block; margin: 0 14px 12px; padding: 20px 18px 20px; min-height: 210px; box-sizing: border-box; border-radius: 22px; overflow: hidden; text-decoration: none;
        box-shadow: 0 2px 12px rgba(11, 45, 107, .12); color: #0b2d6b;
        /* foto del sorteo destacado (nacional-800.webp, convertida a JPG: IIS puede no servir .webp) con el mismo difuminado que "El pueblo mas afortunado de Espana" (.hm-banner) */
        background: linear-gradient(90deg, rgba(255, 255, 255, .96) 38%, rgba(255, 255, 255, .55) 62%, rgba(255, 255, 255, 0)), url("/Web_2_0/Web/RecursosAranya/images/home/hm-destacado.jpg") right center / cover no-repeat, #fff;
    }
    html body a.hm-dest > * { position: relative; max-width: 62%; }
    html body .hm-dest-top { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
    html body .hm-dest-top b { font-size: 26px; font-weight: 800; line-height: 1.1; color: #0b2d6b; }
    html body .hm-dest-ic { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6fa3f5, #0b3d91 70%); box-shadow: 0 0 0 2px rgba(11, 61, 145, .25); }
    html body .hm-dest-fecha { display: block; margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.25; color: #0b3d91; }
    html body .hm-dest-bote { display: block; margin: 0 0 14px; font-size: 34px; font-weight: 800; line-height: 1.05; color: #0b2d6b; letter-spacing: -.01em; white-space: nowrap; }
    html body .hm-dest-btn { display: flex; width: max-content; margin: 0; }

    /* 16/11/2026 - "7 Gordos de Navidad" (sustituye al banner de Euromillones): imagen a todo el ancho de la tarjeta + boton Jugar ahora debajo */
    html body .hm-gordos { margin: 0 14px 12px; }
    html body .hm-gordos .hm-g-svg { display: block; width: 100%; height: auto; border-radius: 22px; }
    /* boton estrecho y centrado, pegado a la pastilla de los anos con un poco de aire */
    html body .hm-gordos { text-align: center; }
    html body .hm-gordos-btn { display: inline-flex; width: auto; min-height: 42px; margin: 24px auto 0; padding: 0 20px; font-size: 15px; position: relative; }
    html body .hm-gordos { margin-bottom: 30px; }

    /* 16/11/2026 - precios de "Jugadas combinadas": si no caben, salta el precio ENTERO a la linea siguiente (nunca solo el simbolo del euro) */
    html body .hm-precio { white-space: nowrap; }

    html body .hm-art-3 { background-image: url("/Web_2_0/Web/RecursosAranya/images/home/hm-elespanol-2025.jpg"); background-position: center 30%; }
}
