/* PORTADA (General_Inicio.aspx) - diseno nuevo, SOLO MOVIL (< 768 px).
   Los bloques nuevos del marcado llevan la clase hm-m (solo movil); lo antiguo que sustituyen lleva hm-old (se oculta en movil).
   Los botes, el texto de cabecera y los iconos de confianza son los de siempre (controles del servidor), solo restilizados.
   Fotos propias de Loteria Manises en Web/RecursosAranya/images/home/. */
.hm-m { display: none; }

@media (max-width: 767px) {
    .hm-m { display: block; }
    html body .hm-old { display: none !important; }

    /* iconos (SVG en linea, color de la marca) */
    .hm-ic { display: inline-block; width: 34px; height: 34px; flex: 0 0 34px; background-repeat: no-repeat; background-position: center; background-size: contain; vertical-align: middle; }
    .hm-ic-tag { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.3'/%3E%3C/svg%3E"); }
    .hm-ic-list { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M9 6h12M9 12h12M9 18h12M3.5 6h.1M3.5 12h.1M3.5 18h.1'/%3E%3C/svg%3E"); }
    .hm-ic-globe { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }
    .hm-ic-cal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M8 14h.1M12 14h.1M16 14h.1M8 17.5h.1M12 17.5h.1'/%3E%3C/svg%3E"); }
    .hm-ic-cal2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
    .hm-ic-tree { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l5 7h-3l4 6h-4l3 4H7l3-4H6l4-6H7zM12 19v3'/%3E%3C/svg%3E"); }
    .hm-ic-crown { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18h18l1-11-5 4-5-7-5 7-5-4zM3 21h18'/%3E%3C/svg%3E"); }
    .hm-ic-people { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3.2'/%3E%3Ccircle cx='5' cy='10' r='2.3'/%3E%3Ccircle cx='19' cy='10' r='2.3'/%3E%3Cpath d='M6.5 20c0-3.5 2.5-6 5.5-6s5.5 2.500 5.500 6M1 18c0-2.500 1.500-4 4-4M23 18c0-2.500-1.500-4-4-4'/%3E%3C/svg%3E"); }
    .hm-ic-news { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
    .hm-ic-layers { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5zM3 12l9 5 9-5M3 16l9 5 9-5'/%3E%3C/svg%3E"); }
    .hm-ic-award { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.500 14L7 22l5-3 5 3-1.500-8M10 9l1.500 1.500L14.500 7'/%3E%3C/svg%3E"); }

    /* ---- hero: Loteria de Navidad ---- */
    html body .hm-hero {
        margin: 14px 14px 12px; padding: 22px 18px 16px; border-radius: 22px; box-shadow: 0 2px 12px rgba(11, 45, 107, .12);
        background: linear-gradient(90deg, #fff 46%, rgba(255, 255, 255, .55) 70%, rgba(255, 255, 255, 0) 100%), url("/Web_2_0/Web/RecursosAranya/images/home/hm-navidad-hero.jpg") 62% center / cover no-repeat, #fff;
    }
    html body .hm-hero .hm-h-hero { margin: 0 0 8px; max-width: 70%; font-size: 32px; font-weight: 800; line-height: 1.08; color: #0b2d6b; }
    html body .hm-hero .hm-sub { margin: 0 0 16px; max-width: 70%; font-size: 21px; font-weight: 700; line-height: 1.2; color: #0b3d91; }
    html body .hm-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; box-sizing: border-box; border-radius: 999px; font-size: 18px; font-weight: 800; text-decoration: none; text-align: center; }
    html body .hm-btn-am { background: #fdc20f; color: #0b2d6b !important; }
    html body .hm-btn-line { background: #fff; border: 1.5px solid #0b3d91; color: #0b2d6b !important; margin: 0 16px 20px; }
    html body .hm-btn-s { display: inline-flex; min-height: 44px; font-size: 16px; }
    html body .hm-hero .hm-hero-links { display: flex; margin-top: 14px; padding: 12px 0 0; border-top: 1px solid #dbe5f3; background: rgba(255, 255, 255, .85); }
    html body .hm-hero .hm-hero-links a { flex: 1 1 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.2; color: #0b2d6b; text-decoration: none; }
    html body .hm-hero .hm-hero-links a + a { padding-left: 14px; border-left: 1px solid #dbe5f3; }

    /* ---- iconos de confianza (los de siempre, restilizados) ---- */
    html body .Subbanner { margin: 0 14px 14px; border-radius: 16px; background: #eef3fb !important; overflow: hidden; }
    html body .Subbanner .SubbannerContainer { display: flex; padding: 10px 4px; width: 100%; }
    html body .Subbanner [class*="CuadroSubbaner"] { flex: 1 1 0; width: 25% !important; float: none; padding: 40px 2px 0 !important; position: relative; background: none !important; text-align: center; }
    html body .Subbanner [class*="CuadroSubbaner"]::before { content: ""; position: absolute; left: 50%; top: 4px; width: 32px; height: 32px; margin-left: -16px; background: no-repeat center / contain; }
    html body .Subbanner .CuadroSubbanerJuega::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 3v6c0 5-3.500 9-8 11-4.500-2-8-6-8-11V5z'/%3E%3Cpath d='M8.500 12l2.500 2.500 4.500-5'/%3E%3C/svg%3E"); }
    html body .Subbanner .CuadroSubbanerGarantia::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.500 14L7 22l5-3 5 3-1.500-8'/%3E%3C/svg%3E"); }
    html body .Subbanner .CuadroSubbanerSoporte::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0116 0v2M4 14h3v5H5a1 1 0 01-1-1zM20 14h-3v5h2a1 1 0 001-1zM17 19c0 2-2 2.500-5 2.500'/%3E%3C/svg%3E"); }
    html body .Subbanner .CuadroSubbanerCero::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v4c0 1.700 3.600 3 8 3s8-1.300 8-3V6M4 10v4c0 1.700 3.600 3 8 3s8-1.300 8-3v-4M4 14v4c0 1.700 3.600 3 8 3s8-1.300 8-3v-4'/%3E%3C/svg%3E"); }
    html body .Subbanner .TextoSubbanner { display: inline !important; margin: 0; font-size: 12.5px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-transform: none; color: #0b2d6b !important; }
    html body .Subbanner br { display: none; }
    html body .Subbanner .TextoSubbanner + .TextoSubbanner::before { content: " "; }

    /* ---- titular + texto ---- */
    html body h1.Titulares { margin: 6px 14px 10px; padding: 0 !important; font-size: 27px; font-weight: 800; line-height: 1.12; color: #0b2d6b; text-align: left; }
    html body .hm-seo { margin: 0 14px 18px; font-size: 16px; line-height: 1.45; color: #0b2d6b; }

    /* ---- Botes destacados (el control de siempre) ---- */
    html body .services-list { position: relative; padding: 0 14px; margin: 0; }
    html body .services-list::before { content: "Botes destacados"; display: block; margin: 4px 0 14px; padding-left: 46px; min-height: 36px; line-height: 36px; font-size: 26px; font-weight: 800; color: #0b2d6b;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d91' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 01-10 0zM7 6H4v2a3 3 0 003 3M17 6h3v2a3 3 0 01-3 3'/%3E%3C/svg%3E") no-repeat left center / 36px; }
    html body .services-list [class*="col-"] { width: 100% !important; float: none; padding: 0; }
    html body .services-list .service-item {
        position: relative; display: block; margin: 0 0 10px; padding: 14px 44px 14px 80px; min-height: 76px; box-sizing: border-box; border: 1.5px solid #cddcf0; border-radius: 16px; background: #fff !important; box-shadow: none; text-align: left;
    }
    html body .services-list .service-item h2 { margin: 0; padding: 0; font-size: 21px; font-weight: 800; line-height: 1.15; color: #0b2d6b !important; background: none !important; text-align: left; text-transform: none; }
    html body .services-list .service-item .span_cuadrobotesbote { display: block !important; margin: 2px 0 0; font-size: 21px; font-weight: 800; line-height: 1.15; color: #0b2d6b !important; text-align: left; }
    html body .services-list .service-item .span_cuadrobotesfecha1, html body .services-list .service-item .span_cuadrobotesfecha2 { display: none !important; }
    html body .services-list .service-item a[id$="hplJugar"] { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 2; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: transparent !important; font-size: 0 !important; color: transparent; overflow: hidden; }
    html body .services-list .service-item::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border: solid #0b3d91; border-width: 0 2.500px 2.500px 0; transform: rotate(-45deg); }
    html body .services-list .service-item::before { content: ""; position: absolute; left: 16px; top: 50%; width: 48px; height: 48px; margin-top: -24px; background: #0b3d91 no-repeat center / 28px; border-radius: 12px; }
    html body .services-list .service-item:has(a[title*="Euromillones"])::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%230b3d91' stroke-width='3'%3E%3Crect x='6' y='6' width='36' height='36' rx='6'/%3E%3Ccircle cx='24' cy='24' r='10'/%3E%3Cpath d='M17 26c4 4 12 4 15-2'/%3E%3C/svg%3E") no-repeat center / 40px; border: 1.5px solid #0b3d91; }
    html body .services-list .service-item:has(a[title*="Gordo"])::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='20' fill='%23d9622b'/%3E%3Cpath d='M6 19h36M5 25h38M7 31h34' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") no-repeat center / 40px; }
    html body .services-list .service-item:has(a[title*="Primitiva"])::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='20' fill='%2332a852'/%3E%3Cpath d='M6 17h36M4 24h40M6 31h36' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") no-repeat center / 40px; }
    html body .services-list .service-item:has(a[title*="Bonoloto"])::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%2332a852'%3E%3Ccircle cx='16' cy='16' r='10'/%3E%3Ccircle cx='32' cy='16' r='10'/%3E%3Ccircle cx='16' cy='32' r='10'/%3E%3Ccircle cx='32' cy='32' r='10'/%3E%3C/svg%3E") no-repeat center / 40px; }
    html body .services-list .service-item:has(a[title*="Quiniela"])::before, html body .services-list .service-item:has(a[title="Jugar 1"])::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23d93025' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M24 5l17 9v20l-17 9-17-9V14zM7 14l17 9 17-9M24 23v20'/%3E%3C/svg%3E") no-repeat center / 40px; }

    /* ---- bloques nuevos ---- */
    html body .hm-resto { padding: 6px 14px 4px; }
    html body .hm-tit { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; font-size: 26px; font-weight: 800; line-height: 1.15; color: #0b2d6b; }
    html body .hm-p { margin: 0 0 14px; font-size: 16px; line-height: 1.4; color: #0b2d6b; }
    html body .hm-resto .hm-btn-line { margin: 0 0 8px; }
    html body .hm-h3 { margin: 12px 0 6px; font-size: 24px; font-weight: 800; line-height: 1.15; color: #0b2d6b; }

    /* filas: Loteria Nacional y Jugadas combinadas */
    html body .hm-fila { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 12px 14px; box-sizing: border-box; border: 1.5px solid #e1ebf7; border-radius: 16px; background: #fff; box-shadow: 0 1px 6px rgba(11, 45, 107, .08); text-decoration: none; color: #0b2d6b; }
    html body .hm-fila-t { flex: 1 1 auto; min-width: 0; }
    html body .hm-fila-t b { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; color: #0b2d6b; }
    html body .hm-fila-t small { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.3; color: #3d557f; }
    html body .hm-pill { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; background: #fdc20f; font-size: 16px; font-weight: 800; color: #0b2d6b; }
    html body .hm-chev { flex: 0 0 auto; width: 10px; height: 10px; margin-right: 6px; border: solid #0b3d91; border-width: 0 2.500px 2.500px 0; transform: rotate(-45deg); }
    html body .hm-dot { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #0b3d91; }
    html body .hm-j-euro .hm-dot { background: #fff; border: 3px solid #0b3d91; }
    html body .hm-j-boni .hm-dot, html body .hm-j-primi .hm-dot { background: #32a852; }
    html body .hm-j-gordo .hm-dot { background: #d9622b; }

    /* Lotería para Empresas */
    html body .hm-card { margin: 22px 0 8px; padding: 18px 16px; border-radius: 18px; background: linear-gradient(90deg, #eef3fb 55%, rgba(238, 243, 251, .4)); border: 1.5px solid #dbe5f3; }
    html body .hm-card .hm-ic { width: 44px; height: 44px; flex: 0 0 44px; margin-bottom: 4px; }
    html body .hm-card h3 { margin: 0 0 6px; font-size: 23px; font-weight: 800; line-height: 1.15; color: #0b2d6b; }
    html body .hm-card p { margin: 0 0 14px; font-size: 16px; line-height: 1.4; color: #0b2d6b; }

    /* El pueblo mas afortunado (foto del equipo) */
    html body .hm-banner { position: relative; min-height: 250px; margin: 24px 0 8px; padding: 22px 16px; box-sizing: border-box; border-radius: 18px; overflow: hidden;
        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-equipo-premios.jpg") center / cover no-repeat; }
    html body .hm-banner h3 { margin: 0 0 8px; max-width: 62%; font-size: 26px; font-weight: 800; line-height: 1.1; color: #0b2d6b; }
    html body .hm-banner p { margin: 0 0 14px; max-width: 58%; font-size: 15.500px; line-height: 1.35; color: #0b2d6b; }

    /* En prensa */
    html body .hm-prensa { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    html body .hm-art { flex: 0 0 62%; scroll-snap-align: start; display: block; padding: 0 0 10px; border: 1.5px solid #e1ebf7; border-radius: 14px; background: #fff; overflow: hidden; text-decoration: none; color: #0b2d6b; }
    html body .hm-art-img { display: block; height: 110px; background: #cddcf0 no-repeat center / cover; }
    html body .hm-art-1 { background-image: url("/Web_2_0/Web/RecursosAranya/images/home/hm-gordo-2012.jpg"); }
    html body .hm-art-2 { background-image: url("/Web_2_0/Web/RecursosAranya/images/home/hm-gordo-2018.jpg"); }
    html body .hm-art b { display: block; padding: 10px 10px 4px; font-size: 14.500px; font-weight: 800; line-height: 1.25; color: #0b2d6b; }
    html body .hm-art small { display: block; padding: 0 10px; font-size: 14px; font-weight: 700; color: #0b3d91; }

    /* Premios entregados */
    html body .hm-premios-img { height: 210px; margin: 0 0 4px; border-radius: 16px; background: url("/Web_2_0/Web/RecursosAranya/images/home/hm-gordo-2022.jpg") center 30% / cover no-repeat; }
}
