/* Login / Registro - diseno nuevo, SOLO MOVIL (< 768 px). Solo estilos (+ ojo de contrasena en identificate-nuevo.js).
   Pagina: Web/General/General_Identificate.aspx. Todo cuelga de .gamePaymentSections y lleva !important en lo critico
   porque el css del tema (screen-V2019...) se carga despues y pisaba el padding. */
@media (max-width: 767px) {
    html body .gamePaymentSections { padding: 0 22px !important; margin: 0 !important; width: 100% !important; max-width: 100vw; box-sizing: border-box !important; overflow-x: hidden; }
    html body .gamePaymentSections * { box-sizing: border-box; max-width: 100%; }
    html body .gamePaymentSections > .contenedor-login-18 {
        display: flex; flex-direction: column; width: 100% !important; float: none !important; box-sizing: border-box;
        padding: 22px 0 8px !important; margin: 0 !important; position: relative;
    }

    /* titulo + subtitulo + ticket */
    html body .gamePaymentSections > .contenedor-login-18::before {
        content: "Accede a tu cuenta"; order: -3; display: block; margin: 0 0 6px; padding-right: 110px; min-height: 70px;
        font-size: 31px; font-weight: 800; line-height: 1.1; color: #0b2d6b;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 70' fill='none' stroke='%237fa6d9' stroke-width='3' stroke-linejoin='round'%3E%3Cg transform='rotate(-25 50 35)'%3E%3Cpath d='M12 18h76v12a5 5 0 000 10v12H12V40a5 5 0 000-10z' fill='%23e3eefb'/%3E%3Cpath d='M46 28c3-5 9-3 8 2 5-1 7 5 2 7 3 5-3 8-7 4-4 4-10 1-7-4-5-2-3-8 2-7z' fill='%237fa6d9' stroke='none'/%3E%3C/g%3E%3C/svg%3E") no-repeat right 4px;
        background-size: 96px auto;
    }
    html body .gamePaymentSections > .contenedor-login-18::after {
        content: "Gestiona tus jugadas, abonos y premios de forma segura."; order: -2; display: block; margin: 0 0 4px; padding-right: 60px;
        font-size: 17px; line-height: 1.3; color: #3d557f; clear: none; height: auto;
    }
    html body .gamePaymentSections > .contenedor-login-18:has(.containerResult:not([style*="none"]))::before { content: "Crea tu cuenta gratis"; }
    html body .gamePaymentSections > .contenedor-login-18:has(.containerResult:not([style*="none"]))::after { content: "Reg\0000edstrate y compra tu loter\0000eda oficial de forma r\0000e1pida y segura."; }

    /* pestanas Acceder / Registrarse con icono */
    html body .contenedor-login-18 .n-p-t { order: -1; display: flex !important; gap: 0; margin: 18px 0 16px !important; padding: 0 !important; border: 1.5px solid #cddcf0; border-radius: 14px; overflow: hidden; background: #fff; }
    html body .contenedor-login-18 .cubo-acceder-18 { flex: 1 1 0; width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; }
    html body .contenedor-login-18 .btn-registro-18 {
        display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
        padding: 16px 8px !important; font-size: 17px; font-weight: 700; text-transform: none; background: #fff !important; color: #0b2d6b !important; box-shadow: none !important;
    }
    html body .contenedor-login-18 .btn-registro-18::before { content: ""; width: 26px; height: 26px; background-repeat: no-repeat; background-size: contain; }
    html body .contenedor-login-18 .comoJugar::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.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
    html body .contenedor-login-18 .resultButtonAll::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.8' stroke-linecap='round'%3E%3Ccircle cx='10' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3.5-6 8-6M18 13v8M14 17h8'/%3E%3C/svg%3E"); }
    html body .contenedor-login-18 .btn-registro-18.activo { background: #0b3d91 !important; color: #fff !important; }
    html body .contenedor-login-18 .comoJugar.activo::before { 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'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
    html body .contenedor-login-18 .resultButtonAll.activo::before { 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'%3E%3Ccircle cx='10' cy='8' r='4'/%3E%3Cpath d='M2 21c0-4 3.5-6 8-6M18 13v8M14 17h8'/%3E%3C/svg%3E"); }

    /* tarjeta blanca del formulario: padding generoso */
    html body .containerComoJugar, html body .containerResult { order: 5; }
    html body .containerComoJugar > div, html body .containerResult > div {
        background: #fff; border-radius: 20px; box-shadow: 0 3px 14px rgba(11, 45, 107, .14); padding: 26px 22px 28px !important; margin: 0 0 20px !important; box-sizing: border-box; float: none; width: 100% !important;
    }
    html body .containerComoJugar .color-azul-oscuro, html body .containerResult .color-azul-oscuro { padding: 0 !important; }
    html body .gamePaymentSections [class*="col-xs-"], html body .gamePaymentSections [class*="col-sm-"] { padding-left: 0 !important; padding-right: 0 !important; }
    html body .containerResult .col-xs-4 { padding-left: 4px !important; padding-right: 4px !important; }
    html body .containerResult .col-xs-8 { padding-left: 4px !important; padding-right: 0 !important; }
    html body .containerResult .col-xs-4:first-child { padding-left: 0 !important; }
    html body .gamePaymentSections .form-group { margin: 0 0 12px !important; }
    html body .gamePaymentSections .p-t-10, html body .gamePaymentSections .p-t-20 { padding-top: 0 !important; margin-top: 0 !important; }
    html body .containerResult .col-xs-12.p-t-10, html body .containerResult .col-sm-12.p-t-10 { margin-bottom: 12px; }

    /* campos: 54 de alto, icono a la izquierda, texto con padding */
    html body .gamePaymentSections .form-control-18 {
        display: block; width: 100% !important; height: 54px !important; box-sizing: border-box; border: 1.5px solid #cddcf0 !important; border-radius: 14px !important;
        background-color: #f6f9fe !important; color: #0b2d6b; font-size: 17px; line-height: 1.2; box-shadow: none !important; margin: 0;
        padding: 0 16px 0 54px !important; background-repeat: no-repeat; background-position: 16px center; background-size: 24px;
    }
    html body .gamePaymentSections .form-control-18::placeholder { color: #6b84ad; opacity: 1; }
    html body .gamePaymentSections .form-control-18:focus { border-color: #0b3d91 !important; background-color: #fff !important; outline: 0; }
    html body .gamePaymentSections .form-control-18.error { border-color: #d93025 !important; background-color: #fff5f5 !important; }
    html body .gamePaymentSections [id$="txtPass"], html body .gamePaymentSections [id$="txtPass2"] { padding-right: 52px !important; }

    /* iconos de campo */
    html body [id$="General_C_Login1_txtUsuario"], html body #txtEmailAlta, html body #txtEmail2 { 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
    html body [id$="General_C_Login1_txtPass"], html body #txtPass, html body #txtPass2 { 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E"); }
    html body #txtNombre, html body #txtApellidos { 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
    html body #txtTelefono { 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a2 2 0 01-2 2A16 16 0 013 6a2 2 0 012-2z'/%3E%3C/svg%3E"); }
    html body #txtDNI { 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M6 16c0-1.5 1.5-2 3-2s3 .5 3 2M15 10h3M15 14h3'/%3E%3C/svg%3E"); }

    /* desplegables NIF / dia / mes / ano */
    html body .gamePaymentSections select.selectDocumento-18 {
        display: block; width: 100% !important; height: 54px !important; box-sizing: border-box; margin: 0; border: 1.5px solid #cddcf0 !important; border-radius: 14px !important;
        background-color: #f6f9fe !important; color: #0b2d6b; font-size: 16px; font-weight: 700; box-shadow: none !important; -webkit-appearance: none; appearance: none;
        padding: 0 32px 0 14px !important; background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b3d91' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    /* ojo de contrasena (lo anade identificate-nuevo.js) */
    html body .ojo-pass { position: absolute; right: 12px; width: 36px; height: 54px; margin: 0; 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center / 26px; cursor: pointer; }
    html body .ojo-pass.visible { opacity: .5; }
    html body .tiene-ojo { position: relative; }

    /* boton principal amarillo */
    html body .gamePaymentSections .btn-azulito.activo {
        display: block; width: 100% !important; box-sizing: border-box; min-height: 56px; margin: 8px 0 0 !important; padding: 15px !important; border: 0 !important; border-radius: 14px !important;
        font-size: 19px; font-weight: 800; text-transform: uppercase; text-align: center; background: #fdc20f !important; color: #0b2d6b !important; box-shadow: 0 4px 10px rgba(253, 194, 15, .5);
    }
    html body .gamePaymentSections .abonoIndefido { display: block; text-align: center; color: #0b2d6b; font-size: 17px; }

    /* ayuda por telefono */
    html body .gamePaymentSections .tel-18 {
        display: flex; align-items: center; gap: 12px; margin: 18px 0 0 !important; padding: 14px 18px !important; border-radius: 16px; background: #e6effb; color: #0b2d6b; text-align: left; font-size: 20px;
    }
    html body .gamePaymentSections .tel-18 img { order: 0; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #9db9e0; padding: 8px; background: #fff; box-sizing: border-box; object-fit: contain; }
    html body .gamePaymentSections .tel-18::before { content: "\0000bf Necesitas ayuda?\A Te atendemos en el"; white-space: pre-line; order: 1; flex: 1 1 auto; font-size: 15px; font-weight: 800; line-height: 1.3; max-width: 150px; }
    html body .gamePaymentSections .tel-18 a { order: 2; color: #0b2d6b; font-size: 20px; }

    /* sellos de confianza */
    html body .gamePaymentSections::after {
        content: ""; display: block; height: 110px; margin: 14px 0 32px; clear: both;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 108' fill='none' stroke='%230b3d91' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' font-family='Arial,sans-serif'%3E%3Cpath d='M60 12l22 8v16c0 14-9 24-22 30-13-6-22-16-22-30V20z'/%3E%3Cpath d='M51 38l7 7 12-14'/%3E%3Crect x='162' y='34' width='36' height='28' rx='4'/%3E%3Cpath d='M170 34v-8a10 10 0 0120 0v8'/%3E%3Cellipse cx='300' cy='26' rx='17' ry='7'/%3E%3Cpath d='M283 26v10c0 4 8 7 17 7s17-3 17-7V26M283 36v10c0 4 8 7 17 7s17-3 17-7V36'/%3E%3Cg fill='%230b3d91' stroke='none' font-size='15' font-weight='700' text-anchor='middle'%3E%3Ctext x='60' y='86'%3E100%25%3C/text%3E%3Ctext x='180' y='86'%3EPago%3C/text%3E%3Ctext x='300' y='86'%3ESin%3C/text%3E%3Ctext x='60' y='100'%3Eoficial%3C/text%3E%3Ctext x='180' y='100'%3Eseguro%3C/text%3E%3Ctext x='300' y='100'%3Ecomisiones%3C/text%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
    }

    /* registro: titulos de bloque */
    html body .containerResult .form-group:first-child::before { content: "Tus datos personales"; display: block; padding: 0 0 12px; font-size: 21px; font-weight: 800; color: #0b2d6b; }
    html body .containerResult label.p-t-10 { display: block; font-size: 21px; font-weight: 800; color: #0b2d6b; padding: 8px 0 !important; }

    /* requisitos de contrasena */
    html body .pass-strength-bar { display: none; }
    html body .lista-requisitos-pass { background: #eaf2fc; border-radius: 14px; padding: 16px 18px; margin: 12px 0 4px; }
    html body .lista-requisitos-pass::before { content: "La contrase\0000f1a debe tener:"; display: block; margin-bottom: 6px; font-size: 17px; font-weight: 800; color: #0b2d6b; }
    html body .lista-requisitos-pass li { font-size: 16px; padding: 3px 0 3px 30px; }

    /* casillas legales */
    html body .checkForm label { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0; font-weight: 400; color: #0b2d6b; }
    html body .checkbox-18 { flex: 0 0 26px; width: 26px; height: 26px; margin: 2px 0 0 !important; }
    html body .terminos-18 { font-size: 16px; line-height: 1.4; }
    html body .terminos-18 a { color: #0b3d91; text-decoration: underline; }

    /* proteccion de datos */
    html body #C_LOPD { padding: 0 0 24px !important; margin: 0 !important; }
    html body #C_LOPD .panel { border: 1.5px solid #cddcf0; border-radius: 18px; overflow: hidden; box-shadow: none; }
    html body #C_LOPD .panel-heading-boletos-18 { background: #e6effb; color: #0b2d6b; padding: 16px 18px; font-weight: 800; }
    html body #C_LOPD .contenedor-detalles-jugada-loteria { padding: 6px 18px; }
    html body #C_LOPD strong { color: #0b2d6b; }
}

/* separacion entre campos y botones (ajuste 06/11/2026) */
@media (max-width: 767px) {
    html body .gamePaymentSections .form-control-18,
    html body .gamePaymentSections select.selectDocumento-18 { margin-bottom: 18px !important; }
    html body .gamePaymentSections .form-group { margin: 0 !important; }
    html body .gamePaymentSections .ojo-pass { margin-top: 0; }
    html body .gamePaymentSections .btn-azulito.activo { margin: 26px 0 0 !important; }
    html body .gamePaymentSections .containerComoJugar .p-t-20 { padding-top: 0 !important; }
    html body .gamePaymentSections .abonoIndefido { margin-top: 28px !important; padding: 6px 0; }
    html body .gamePaymentSections .containerComoJugar p.texto-center { margin: 0; }
    html body .lista-requisitos-pass { margin: 0 0 20px; }
    html body .checkForm { margin-top: 10px; }
}

/* registro como el diseno (ajuste 06/11/2026) */
@media (max-width: 767px) {
    /* fecha de nacimiento: dia / mes / ano uno debajo de otro a todo el ancho */
    html body .containerResult .col-xs-4:has(select[id$="ddlDia"]),
    html body .containerResult .col-xs-4:has(select[id$="ddlMes"]),
    html body .containerResult .col-xs-4:has(select[id$="ddlAnyo"]) { width: 100% !important; float: none !important; padding: 0 !important; }
    html body select[id$="ddlDia"] {
        padding-left: 52px !important; background-repeat: no-repeat, no-repeat; background-position: 16px center, right 12px center; background-size: 24px, 14px;
        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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b3d91' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    /* NIF estrecho + n. documento ancho */
    html body .containerResult .col-xs-4:has(select[id$="ddlDNI"]) { width: 34% !important; padding-left: 0 !important; padding-right: 8px !important; }
    html body .containerResult .col-xs-8 { width: 66% !important; padding-left: 0 !important; }

    /* bloque "Datos de acceso" */
    html body .containerResult .col-xs-12:has(> #txtEmailAlta)::before { content: "Datos de acceso"; display: block; margin: 8px 0 14px; font-size: 21px; font-weight: 800; color: #0b2d6b; }

    /* casillas redondeadas */
    html body .checkbox-18 {
        -webkit-appearance: none; appearance: none; background: #fff; border: 2px solid #6b84ad; border-radius: 7px; position: relative; cursor: pointer;
    }
    html body .checkbox-18:checked { background: #0b3d91; border-color: #0b3d91; }
    html body .checkbox-18:checked::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }

    /* boton "Crear mi cuenta gratis" (el texto original es "Continuar"; el enlace y su postback no cambian) */
    html body .gamePaymentSections [id$="lnkBtnAlta"] { font-size: 0 !important; line-height: 0; }
    html body .gamePaymentSections [id$="lnkBtnAlta"]::after { content: "Crear mi cuenta gratis  \002192"; font-size: 19px; line-height: 1.2; letter-spacing: 0; }

    /* proteccion de datos: titulo arriba, texto debajo, separadores */
    html body #C_LOPD [class*="col-"] { width: 100% !important; float: none !important; padding-left: 0 !important; padding-right: 0 !important; }
    html body #C_LOPD .container { width: 100% !important; padding: 0 !important; }
    html body #C_LOPD .contenedor-detalles-jugada-loteria { padding: 14px 18px !important; margin: 0 !important; border-top: 1px solid #dbe5f3; }
    html body #C_LOPD .contenedor-detalles-jugada-loteria:first-child { border-top: 0; }
    html body #C_LOPD strong { display: block; margin-bottom: 4px; font-size: 17px; }
}

/* sin linea azul a los lados (el tema da border: 1px solid #004394 a .contenedor-login-18) */
@media (max-width: 767px) {
    html body .gamePaymentSections .contenedor-login-18 { border: 0 !important; box-shadow: none !important; background: transparent !important; }
}

/* sin sombra en la tarjeta del formulario */
@media (max-width: 767px) {
    html body .containerComoJugar > div, html body .containerResult > div { box-shadow: none !important; }
    html body .gamePaymentSections .btn-azulito.activo { box-shadow: none !important; }
}
