/* ===================================================================
   Ajustes de salvarubio.info (30/11/2026)
   1) El nombre del sitio no se dibuja encima de la imagen de cabecera
      (la imagen ya lo lleva); sigue existiendo para Google y lectores.
   2) Adaptación a móvil: solo se aplica en pantallas de menos de 800px.
      En ordenador la web se ve exactamente igual que siempre.
   Para deshacerlo todo basta con borrar este archivo.
   =================================================================== */

.art-logo-name, .art-logo-text {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

@media screen and (max-width: 800px) {
    html, body { overflow-x: hidden; }

    /* Contenedor general: de 952px fijos a todo el ancho de la pantalla */
    #art-main { width: 100% !important; }
    .art-sheet,
    .art-sheet-body,
    .art-content-layout,
    .art-footer {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    /* Marcos y sombras decorativas del diseño de escritorio: fuera en móvil */
    .art-sheet-tl, .art-sheet-tr, .art-sheet-bl, .art-sheet-br,
    .art-sheet-tc, .art-sheet-bc, .art-sheet-cl, .art-sheet-cr {
        display: none !important;
    }
    .art-sheet-cc { left: 0 !important; right: 0 !important; width: auto !important; }

    /* Cabecera: la misma imagen, escalada al ancho de la pantalla */
    .art-header {
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 23.64%; /* proporción original 952 x 225 */
    }
    .art-header-png,
    .art-header-jpeg {
        width: 100% !important;
        height: 100% !important;
        background-size: 100% auto !important;
        background-repeat: no-repeat !important;
    }
    .art-logo { width: 100% !important; }

    /* Las tres columnas pasan a ir una debajo de otra:
       menú, contenido y columna de premios */
    .art-content-layout,
    .art-content-layout-row,
    .art-layout-cell {
        display: block !important;
        width: auto !important;
    }
    .art-layout-cell { padding: 0 14px !important; box-sizing: border-box; }

    /* Menú: en dos columnas para que no ocupe toda la pantalla */
    .art-sidebar1 ul.menu,
    .art-sidebar1 #menu-sidebar-menu {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        column-gap: 14px;
        row-gap: 2px;
        margin: 10px 0 6px !important;
        padding: 0 !important;
    }
    .art-sidebar1 ul.menu li,
    .art-sidebar1 #menu-sidebar-menu li {
        margin: 0 !important;
        padding: 4px 0 !important;
        background: none !important;
    }

    /* Contenido: texto legible y nada más ancho que la pantalla */
    .art-post, .art-post-body, .art-post-inner, .art-postcontent,
    .art-postheader, .art-block, .art-block-body, .art-blockcontent,
    .art-blockcontent-body, .art-blockheader {
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .art-postcontent, .art-postcontent p, .art-postcontent li { font-size: 16px; line-height: 1.55; }
    img, .art-postcontent img, figure, .wp-block-image, video, iframe, embed, object, table {
        max-width: 100% !important;
        height: auto !important;
    }
    figure.is-resized img { width: auto !important; }
    .art-postcontent iframe[src*="youtube"],
    .art-postcontent iframe[src*="vimeo"] { aspect-ratio: 16 / 9; width: 100% !important; }

    /* Columna de premios: centrada debajo del contenido */
    .art-sidebar2 { text-align: center; margin-top: 18px; }
    .art-sidebar2 img { display: inline-block; }

    /* Pie de página */
    .art-footer-t, .art-footer-b, .art-footer-body { width: auto !important; left: 0 !important; right: 0 !important; }

    /* Formulario de contacto */
    .wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 16px; /* evita el zoom automático del iPhone al escribir */
    }

    .art-logo { display: none !important; }
    .art-sidebar2, .art-sidebar2 p, .art-sidebar2 div, .art-sidebar2 span { text-align: center !important; }
    .art-sidebar2 img, .art-sidebar2 figure { float: none !important; display: block !important; margin-left: auto !important; margin-right: auto !important; }
}
