/**
Theme Name: astra-child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


body.tests-template-default #primary {
    margin-top: 1rem !important;
}

@media (min-width: 922px) {
    .ast-page-builder-template .site-content > .ast-container,
    .site-content .ast-container  {
        max-width: 1240px !important;
    }
}

.archive.tax-tests_category .ast-archive-description {
    padding: 1rem;
    margin-top: 0rem;
    margin-bottom: 1rem;
    margin-left: 0rem;
    border-bottom: none;
}

@media (min-width:320px)  { /* smartphones, iPhone, portrait 480x320 phones */ 


    /* ---------------------------------------------- */
    /* Header Sticky                                  */
    /* ---------------------------------------------- */

    body { padding-top: 80px; }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .site-logo-img a img { max-width: 280px; }

    /* ---------------------------------------------- */
    /* Scroll personalizado */
    /* ---------------------------------------------- */

    .sub-menu .sub-menu {
        max-height: 50vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-radius: 8px !important;
    }
    .sub-menu .sub-menu::-webkit-scrollbar {
        width: 10px !important;
    }
    .sub-menu .sub-menu::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 10px !important;
    }
    .sub-menu .sub-menu::-webkit-scrollbar-thumb {
        background: #888 !important;
        border-radius: 10px !important;
    }
    .sub-menu .sub-menu::-webkit-scrollbar-thumb:hover {
        background: #555 !important;
    }
    .sub-menu .sub-menu li a:hover {
        background-color: #f5f5f5 !important; /* Fondo más claro */
        color: #007bff !important; /* Color azul para el texto */
        transform: translateX(5px) !important; /* Deslizamiento de 5px a la derecha */
    }



    /* ---------------------------------------------  */
    /* Cabecera de titulo para listado de categorías  */
    /* ---------------------------------------------  */

    .titulo-container {
        position: relative;
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        min-height: 12rem;

        overflow: hidden;
        margin: 0;
        border: none;
        border-radius: 0;   

        .titulo-imagen {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            
            &::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.3);
                z-index: 1;
            }
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .flex-espaciador { flex: 1 1 0; }

        .titulo-panel-izquierdo {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            
            z-index: 2;
            width: 100%;
            padding: 1rem;
            background-color: rgba(9, 106, 101, 0.7);
            
            h1 {
                color: white;
                font-size: 1.2rem;
                line-height: 1.4rem;;
                font-weight: 600;
                text-size-adjust: 100%;
                margin-bottom: .2rem;
            }
            p { 
                color: white; 
                font-size: .9rem;
            }
            span {
                color: white;
                font-size: .8rem;
            }
        }

        .tests_category-container {
            display: block;
            width: 100%;
            padding: 1.5rem;
            z-index: 2;

            /* background-color: #ededed;
            border: 1px solid #dedede;
            border-radius: .5rem; */

            header h2 {
                font-size: 1.4rem;
                margin-bottom: 1rem;
            }

            .tests_category-list {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                flex-wrap: wrap;
                margin: 0;
                padding: 0;
                list-style: none outside;
                clear: both;
                zoom: 1;

                &.columns-4 li.tests_category {
                    display: flex;
                    flex-direction: column;
                    width: 100%;
                    padding: 10px;

                    background-color: white;
                    border-bottom: 1px solid darkgray;

                    &:hover {
                        background-color: #eee;
                        border: 1px solid rgb(216, 216, 216);
                        box-shadow: 0 3px 6px -5px rgba(0,0,0,.25), 0 4px 8px rgba(0,0,0,.25);
                    }

                    a {
                        display: block;
                        width: 100%;
                        height: 100%;;

                        img {
                            width: 100%;
                            height: 65%;
                            max-height: 180px;
                            border-radius: .5rem;
                            object-fit: cover;
                            object-position: center;

                            margin-bottom: .5rem;
                        }

                        h3 {
                            font-size: .9rem;
                            font-weight: 600;
                            color: rgb(58, 58, 58);
                            text-align: left;
                            line-height: 1rem;
                        }
                    }

                }
            }
        }
    }


    body.type-tests header,
    body.single-tests .primary,
    body.tax-tests_category  #primary.primary {      
        margin-top: 0px;
    }



}

@media (min-width:481px)  { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
@media (min-width:641px)  { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ }
@media (min-width:961px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ 

    /* ---------------------------------------------- */
    /* Header Sticky                                  */
    /* ---------------------------------------------- */

    body { padding-top: 90px; }

    .site-logo-img a img { max-width: none; }

    /* ---------------------------------------------- */
    /* Scroll personalizado */
    /* ---------------------------------------------- */

    .sub-menu .sub-menu {
        max-height: 50vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-radius: 8px !important;
    }
    .sub-menu .sub-menu::-webkit-scrollbar {
        width: 10px !important;
    }
    .sub-menu .sub-menu::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 10px !important;
    }
    .sub-menu .sub-menu::-webkit-scrollbar-thumb {
        background: #888 !important;
        border-radius: 10px !important;
    }
    .sub-menu .sub-menu::-webkit-scrollbar-thumb:hover {
        background: #555 !important;
    }
    .sub-menu .sub-menu li a:hover {
        background-color: #f5f5f5 !important; /* Fondo más claro */
        color: #007bff !important; /* Color azul para el texto */
        transform: translateX(5px) !important; /* Deslizamiento de 5px a la derecha */
    }

    /* ---------------------------------------------  */
    /* Cabecera de titulo para listado de categorías  */
    /* ---------------------------------------------  */

    .titulo-container {
        position: relative;
        display: flex;
        flex-direction: row;
        position: relative;
        width: 100%;
        min-height: 12rem;

        overflow: hidden;
        margin: 1rem 0;
        border: 1px solid lightgray;
        border-radius: .5rem;   

        .titulo-imagen {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            
            &::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.3);
                z-index: 1;
            }
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .flex-espaciador { flex: 1 1 0; }

        .titulo-panel-izquierdo {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            
            z-index: 2;
            width: 25%;
            padding: 1rem;
            background-color: rgba(9, 106, 101, 0.7);
            
            h1 {
                color: white;
                font-size: 1.2rem;
                line-height: 1.4rem;;
                font-weight: 600;
                text-size-adjust: 100%;
                margin-bottom: .2rem;
            }
            p { 
                color: white; 
                font-size: .9rem;
            }
            span {
                color: white;
                font-size: .8rem;
            }
        }

        .tests_category-container {
            display: block;
            width: 74%;
            padding: 1.5rem;
            z-index: 2;

            /* background-color: #ededed;
            border: 1px solid #dedede;
            border-radius: .5rem; */

            header h2 {
                font-size: 1.4rem;
                margin-bottom: 1rem;
            }

            .tests_category-list {
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                flex-wrap: wrap;
                margin: 0 0 1em;
                padding: 0;
                list-style: none outside;
                clear: both;
                zoom: 1;

                &.columns-4 li.tests_category {
                    display: flex;
                    flex-direction: column;
                    width: 22%;
                    margin-right: 1rem;
                    margin-bottom: 1rem;
                    padding: 10px;

                    background-color: white;
                    border: 1px solid white;
                    border-radius: .5rem;
                    box-shadow: 0 3px 6px -5px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .12);

                    &:hover {
                        border: 1px solid rgb(216, 216, 216);
                        box-shadow: 0 3px 6px -5px rgba(0,0,0,.25), 0 4px 8px rgba(0,0,0,.25);
                    }

                    a {
                        display: block;
                        width: 100%;
                        height: 100%;;

                        img {
                            width: 100%;
                            height: 65%;
                            max-height: 180px;
                            border-radius: .5rem;
                            object-fit: cover;
                            object-position: center;

                            margin-bottom: .5rem;
                        }

                        h3 {
                            font-size: .9rem;
                            font-weight: 600;
                            color: rgb(58, 58, 58);
                            text-align: left;
                            line-height: 1rem;
                        }
                    }

                }
            }
        }


    }


    .ast-page-builder-template .site-content > .ast-container,
    .site-content .ast-container  {
        max-width: 1240px !important;
    }
	
    .type-tests header,
    .single-tests .primary { margin-top: 0px !important; }

    /* ------------------------------------------------------ */
    /* Estilos de elementos auxiliares de la página principal */
    /* ------------------------------------------------------ */

    .zoom-only { transition: transform 0.3s ease; }
    .zoom-only:hover { transform: scale(1.02); }

    .sombrilla {
        position: relative;        /* necesario para el pseudo-elemento */
        z-index: 1;                /* que quede por delante del pseudo-elemento */
        overflow: visible;         /* evita que el halo se corte (si es posible) */
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        transition: transform 0.25s ease;
    }

    /* pseudo-elemento que crea el halo */
    .sombrilla::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: calc(100% + 40px);   /* ancho mayor para que sobresalga */
        height: calc(100% + 40px);
        transform: translate(-50%, -50%) scale(0.95);
        border-radius: inherit;
        pointer-events: none;
        z-index: -1;                /* detrás del contenido del bloque */
        opacity: 0;
        transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
        filter: blur(10px);
        background: radial-gradient(circle at center,
               rgba(50,50,150,0.12),
               rgba(50,50,150,0));
    }

    .sombrilla:hover { transform: translateY(-5px); }
    .sombrilla:hover::after {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }	


}
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }





