/**
Theme Name: Elementandco
Author: Infoal
Author URI: https://infoal.com/
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
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elementandco
Template: astra
*/
/* main {
    padding: 0 30px;
} */

.ast-container {
    max-width: initial;
}

.ast-logo-svg-icon svg {
    width: 50vw !important;
}

.ast-logo-title-inline .ast-site-identity {

    padding: 0;
}

.home #logo-element .st0 {
    fill: #f6be00;
}

.ouyangsanchez .ast-logo-svg-icon {
    display: none !important;
}

.ast-builder-language-switcher-layout-horizontal .ast-builder-language-switcher-menu {
    gap: 7px;
}

.shop-home .elementor-heading-title {
    color: #333 !important;
    text-shadow: none !important;
}

body.archive .ast-archive-description {
    max-width: 100%;
    border: 0 !important;
}

body.archive .ast-archive-description .ast-archive-title,
body.archive .ast-archive-description .ast-archive-title * {}

/*OUYANG&SNACHEZ*/

.page-id-30067 .site-primary-footer-wrap,
.page-id-30067 .site-below-footer-wrap,
.page-id-30114 .site-primary-footer-wrap,
.page-id-30114 .site-below-footer-wrap {
    background-color: #ffffff !important;
}

/******************************
 * ARCHIVE GEM - FIX ASTRA
 ******************************/

/* 1) Quitar header de archivo estándar de Astra en este CPT */
.post-type-archive-gem .ast-archive-description,
.post-type-archive-gem .ast-archive-title,
.post-type-archive-gem .entry-header {
    display: none;
}

/* 2) Evitar layout flex de Astra para contenido + sidebar */
@media (min-width: 922px) {
    .post-type-archive-gem .site-content .ast-container {
        display: block !important;
    }
}

/* 3) Ajustar márgenes/padding generales de la zona de contenido */
body .ast-container {
    margin: 0;
    padding: 0 30px !important;
}

.ast-plain-container .ast-grid-2>.site-main>.ast-row,
.ast-plain-container .ast-grid-3>.site-main>.ast-row,
.ast-plain-container .ast-grid-4>.site-main>.ast-row,
.ast-page-builder-template .ast-grid-2>.site-main>.ast-row,
.ast-page-builder-template .ast-grid-3>.site-main>.ast-row,
.ast-page-builder-template .ast-grid-4>.site-main>.ast-row {
    margin: 0;
}

.post-type-archive-gem .site-main {
    padding-top: 0;
}

/* 4) Asegurar que nuestros enlaces dentro del archive no heredan estilos raros */
.gems-lab-archive a {
    text-decoration: none;
    color: inherit;
}

/******************************
 * ARCHIVE GEM - ESTILOS PROPIOS
 ******************************/

/* SOBRE NOSOTROS (ABOUT US) */
.gems-lab-about {
    padding-top: 40px;
    padding-bottom: 0;
    margin-bottom: 40px;
}

.gems-lab-about-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
}

.gems-lab-about-content {
    flex: 1 1 50%;
    max-width: 50%;
    padding-right: 4rem;
}

.gems-lab-about-image {
    flex: 1 1 50%;
    max-width: 50%;
}

.gems-lab-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gems-lab-about-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.gems-lab-about-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.gems-lab-about-text p {
    font-size: 14px;
    line-height: 1.3em;
    margin-bottom: 1.2rem;
    color: #333;
}

@media (max-width: 1024px) {
    .gems-lab-about-content {
        padding-right: 2rem;
    }
}

@media (max-width: 820px) {

    .gems-lab-about-content,
    .gems-lab-about-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .gems-lab-about-content {
        padding: 0 20px;
        margin-bottom: 2rem;
    }

    .gems-lab-about-title {
        font-size: 24px;
    }
}

/* VIDEO SECTION */
.gems-lab-video-full {
    margin: 0 0 4rem;
    /* Restore standard margins */
}

.gems-lab-video-full .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    pointer-events: none;
    /* Make video non-clickable */
}

.gems-lab-video-full .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* GRID DE GEMAS */
.gems-lab-archive .gems-lab-list {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.gems-lab-archive .gems-lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

@media (max-width: 767px) {
    .gems-lab-archive .gems-lab-grid {
        grid-template-columns: 1fr;
    }
}

.gems-lab-archive .gems-lab-item {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    width: 100%;
}

.gems-lab-archive .gems-lab-item-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.gems-lab-archive .gems-lab-item-image img {
    display: block;
    width: 100%;
    height: auto;
}

.gems-lab-archive .gems-lab-thumb-placeholder {
    width: 100%;
    padding-top: 75%;
    background: #e5e5e5;
}

.gems-lab-archive .gems-lab-item-meta {
    padding: 1.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gems-lab-archive .gems-lab-item-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gems-lab-archive .gems-lab-item-cta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* PAGINACIÓN */
.gems-lab-archive .gems-lab-pagination {
    margin-top: 3rem;
    text-align: center;
}

.gems-lab-archive .gems-lab-pagination .navigation.pagination {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}



/*==SINGLE GEM==*/
.single-gem .ast-article-single {
    padding: 0 20px !important;
}

.single-gem #content:before {
    content: none !important;
}

/* .single-gem .site-content #primary {
    margin: 0;
} */

.single-gem .site-content .ast-container {
    display: block !important;
}


/* BREADCRUMB */
.gem-single-breadcrumb {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.gem-single-breadcrumb a {
    text-decoration: none;
}

/* TÍTULO + INTRO */
.gem-single-header {

    margin: 0 auto 2.5rem;
    text-align: center;
}

.gem-single-title {
    font-size: 1.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: none;
}

.gem-single-intro {
    line-height: 1.7;
    font-size: 14px;
    font-weight: 300;
}

.gem-single-intro .vc_row.wpb_row.vc_row-fluid.mpc-row:nth-of-type(n+3) {
    display: none;
}


/* GALERÍA */
/* Caja principal con altura fija (ratio 4:3) para que no salte */
.gem-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e3e3e3;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.gem-gallery-main .swiper {
    width: 100%;
    height: 100%;
}

.gem-gallery-main .swiper-slide {
    width: 100%;
    height: 100%;
}

.gem-gallery-main img.gem-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Paginación y flechas del Swiper principal */
.gem-main-pagination.swiper-pagination {
    bottom: 10px;
}

.gem-main-prev,
.gem-main-next {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gem-main-prev::before,
.gem-main-next::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(225deg);
}

.gem-main-next::before {
    transform: rotate(45deg);
}

.gem-main-prev {
    left: 12px;
}

.gem-main-next {
    right: 12px;
}

/* Thumbs debajo del slider */
.gem-gallery-thumbs-wrapper {
    margin-top: 1rem;
}

.gem-gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

/* Botones de thumb */
.gem-thumb {
    border: 1px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gem-thumb img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Hover y activo */
.gem-thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.25);
}

.gem-thumb.is-active {
    opacity: 1;
    border-color: rgba(0, 0, 0, 0.7);
}




/* CUIDADOS / PREGUNTAS */
.gem-single-care {

    margin: 0 auto 4rem;
}

.gem-care-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}

/* Aquí dentro Elementor mete su acordeón; solo damos margen */
.gem-care-content {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

/*proyectos*/
.category-proyectos #primary,
.category-projects #primary {
    margin: 40px 0px !important;

}

.category-proyectos .ast-article-post,
.category-projects .ast-article-post {
    padding: 0;
}

/*WOOCOMMERCE*/
.single-product .ast-container {}

.single-product main {
    padding: 0;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
    gap: 0px;
}

.woocommerce .ast-shop-toolbar-container {
    margin: 2.5em;
}

.eaco-longdesc p {
    text-align: justify;
    font-size: 12px;
    line-height: 1.4em;
}

.woocommerce #content .ast-woocommerce-container div.product div.summary {
    padding: 0 12%;
}

.ast-on-card-button {
    display: none;
}

.woocommerce #content .ast-woocommerce-container div.product div.summary,
.woocommerce .ast-woocommerce-container div.product div.summary,
.woocommerce-page #content .ast-woocommerce-container div.product div.summary,
.woocommerce-page .ast-woocommerce-container div.product div.summary {
    width: 50% !important;
}

.woocommerce div.product.ast-product-gallery-layout-first-image-large .woocommerce-product-gallery__image:nth-child(1),
.woocommerce div.product.ast-product-gallery-layout-first-image-large .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2) {
    margin: 0 0 20px 0;
    padding: 0;
}

.woocommerce .ast-shop-toolbar-container {
    margin: 40px 0 0 0;
}

.woocommerce-js ul.products li.product,
.woocommerce-page ul.products li.product {
    margin-bottom: 0;
}

/* FOOTER */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row,
.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
    max-width: 100%;
    /* margin: 0 30px; */
}

.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 40px;
    margin-bottom: 40px;
}

.gem-single-footer {
    max-width: 960px;
    margin: 0 auto 3rem;
}

.gem-single-back {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"].ast-footer-row-inline .site-footer-section {
    justify-content: flex-end;
}

.ast-footer-copyright,
.ast-footer-social-wrap {
    width: max-content;
}

.ast-builder-layout-element[data-section="section-fb-social-icons-1"] {
    margin-right: 10px;
    margin-bottom: 0;
    display: block;
    width: max-content;
}

/* Móvil: miniaturas más pequeñas */
@media (max-width: 767px) {
    body .ast-container {
        padding: 0 0px !important;
    }

    body.home .ast-container {
        padding: 0 0px !important;
    }

    .ast-logo-svg-icon svg {
        width: 73vw !important;
        margin-top: -10px;
    }

    .gem-thumb img {
        width: 56px;
        height: 56px;
    }

    .gem-gallery-thumbs {
        gap: 0.5rem;
    }

    .site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row,
    .site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
        margin: 0;
    }

    .woocommerce #content .ast-woocommerce-container div.product div.summary,
    .woocommerce .ast-woocommerce-container div.product div.summary,
    .woocommerce-page #content .ast-woocommerce-container div.product div.summary,
    .woocommerce-page .ast-woocommerce-container div.product div.summary {
        width: 100% !important;
    }
}