/*

Theme Name: Herascientific Child Theme
Template: healthhub
Theme URI: https://www.herascientific.com
Description: Web desarrollada a medida para Herascientific
Author: QN Digital Group LLC
Author URI: https://www.qndigitalsolutions.com
Version: 1.1.0
Tested up to: 6.9.x
Requires PHP: 8.2.x
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: clinic, dental, doctor, gynecology, health, healthtech, healthyliving, hospital, medical, medicine, nutrition, pediatric, therapy
Text Domain: healthhub

*/


/* =Child-Theme - Personalizar a partir de aquí
------------------------------------------------------------ */

/* Base */
.heras-context-box {
    padding: 48px;
    border-radius: 20px;
    color: #fff;
    background: #0a5bd3;
}

/* Life Science */
.heras-context-life_science .heras-context-box {
    background: #CF1114;
}

/* Pharma */
.heras-context-pharma .heras-context-box {
    background: #00A161;
}

/* Health Care */
.heras-context-health_care .heras-context-box {
    background: #03A8DC;
}

/* =========================
   MENU NAV MOBILE
 * Con esto lo que hacemos que cuando presiones el btn hamburguesa en versión móvil, este salga pegado a la izquierda y damos un tono oscuro al fondo.
   ========================= */
.sc_layouts_menu_popup.opened {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
}

.sc_layouts_menu_popup {
    -webkit-transform: none;
    transform: none;
    background-color: rgba(0, 0, 0, .8);
}

.sc_layouts_menu_popup .sc_layouts_menu_nav, .sc_layouts_menu_popup .sc_layouts_menu_nav > li > ul, .sc_layouts_menu_nav > li > ul ul {
    left: 0;
    top: 0;
    bottom: 0;
    margin: 0;
    background-color: #FFF;
    color: #323232;
    height: 100%;
    overflow: auto;
}

.sc_layouts_menu_popup .sc_layouts_menu_nav {
    padding: 120px 0;
}

.sc_layouts_menu_popup .sc_layouts_menu_nav * {
    color: #323232 !important;
}

/* =========================
   CATEGORY HEADER
   ========================= */
.woocommerce .list_products_header {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    display: block !important;
}

.woocommerce .list_products_header .content_wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.woocommerce .list_products_header img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
}

.woocommerce .list_products_header .term-description,
.woocommerce .list_products_header .category_description {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.woocommerce .list_products_header h1,
.woocommerce .list_products_header .page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111;
}

@media (max-width: 991.98px) {
    .woocommerce .list_products_header .content_wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .woocommerce .list_products_header {
        margin-bottom: 40px;
    }
}

@media (max-width: 575.98px) {
    .woocommerce .list_products_header h1 {
        font-size: 1.6rem;
    }
}

.heras-term-heading {
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 2.5rem 0 1.2rem;
    color: #111;
}

.heras-product-category-description {
    max-width: 1100px;
    margin: 80px auto 36px;
    padding: 0 10px;
    color: #444;
}

/* Paragraphs inside category description */
.heras-product-category-description p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.75em;
}

/* Remove margin from last paragraph */
.heras-product-category-description p:last-child {
    margin-bottom: 0;
}

/* =========================
   PRODUCTS DESIGN
   ========================= */
body.woocommerce-account .page_content_wrap {
    background-color: #FFF !important;
    padding: 50px 0 0 !important;
}

body.woocommerce-account .content_wrap,
body.woocommerce-view-order .content_wrap,
body.woocommerce-edit-address .content_wrap {
    padding: 0 !important;
}

body.woocommerce-account .content_wrap > .content,
body.woocommerce-view-order .content_wrap > .content,
body.woocommerce-edit-address .content_wrap > .content {
    width: 90% !important;
    max-width: 950px !important;
    background-color: #FFF !important;
    padding: 0 !important;
}

/*
###########################
####### HOME PAGE ########
*/

.img-300 img,
.img-carousel .post_featured img {
    width: 100%;
}

.img-carousel .post_featured {
    height: 400px !important;
    background-color: #FFF !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .img-carousel .post_featured {
        height: 350px !important;
    }
}

.img-carousel img {
    object-fit: contain !important;
    object-position: center;
}

/*
###############################
####### POPUP CONTACT ########
*/
.wpcf7 textarea {
    height: 100px;
    resize: vertical;
}

/*
###############################
####### BLOG POSTS ########
*/

.no-image-placeholder {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f1f1f1;
    padding: 25px;
    border-radius: 6px;
}

.inside-content-heading {
    font-size: x-large !important;
    margin: 0 auto 15px;
    text-align: center;
}

/*
######################################################
####### Cards de posts en Blogger TRX (Home) ########
*/

.heras-card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.heras-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.heras-card-thumb img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.heras-card-content {
    padding: 18px 20px 22px;
}

.heras-card-cats {
    margin-bottom: 8px;
}

.heras-card-cat {
    display: inline-block;
    background: #e8f0ff;
    color: #0064d2;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    margin-right: 6px;
    text-transform: uppercase;
}

.heras-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 8px;
}

.heras-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.heras-card-title a:hover {
    color: #0064d2;
}

.heras-card-date {
    font-size: 13px;
    opacity: .7;
    display: flex;
    align-items: center;
    gap: 6px;
}

.heras-card-date .icon-clock {
    opacity: .6;
}

/* Forzar grid uniforme en TRX Blogger Layout Portfolio */
.sc_blogger .sc_blogger_item_lay_portfolio {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
}

/* Reemplazar columnas del contenedor por un grid limpio */
.sc_blogger .sc_blogger_columns_wrap,
.sc_blogger .columns_wrap {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .sc_blogger .sc_blogger_columns_wrap,
    .sc_blogger .columns_wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sc_blogger .sc_blogger_columns_wrap,
    .sc_blogger .columns_wrap {
        grid-template-columns: 1fr;
    }
}


/* ################################
############ PRODUCTOS ###########
*/

.heras-shop-layout .page_content_wrap .content_wrap {
    width: 90% !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: .9fr 300px !important;
    grid-gap: 30px;
    padding: 0 !important;
}

@media (max-width: 1000px) {
    .heras-shop-layout .page_content_wrap .content_wrap {
        grid-template-columns: 1fr !important;
    }
}

.heras-shop-layout .page_content_wrap .content {
    padding: 0 !important;
    float: none;
}

.heras-shop-layout .page_content_wrap .sidebar {
    margin: 0 !important;
    float: none;
}

.heras-shop-layout ul.products {
    width: 95% !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto !important;
    grid-gap: 40px 30px;
}

.heras-shop-layout ul.products, .heras-shop-layout ul.products > li {
    width: 100% !important;
    padding: 0 !important;
}

@media (max-width: 1450px) {
    .heras-shop-layout ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .heras-shop-layout ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .heras-shop-layout ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 769px) {
    .heras-shop-layout ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .heras-shop-layout .page_content_wrap {
        padding: 0 20px !important;
        margin: 0 auto !important;
    }

    .heras-shop-layout .page_content_wrap .content_wrap {
        width: 100% !important;
        padding: 0 20px !important;
    }

    .heras-shop-layout .page_content_wrap .sidebar {
        width: 100%;
    }

}

@media (max-width: 576px) {
    .heras-shop-layout ul.products {
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
    }

    .heras-shop-layout ul.products, .heras-shop-layout ul.products > li {
        width: 90% !important;
    }

    .heras-shop-layout .widget.woocommerce {
        padding: 0 !important;
    }
}

.heras-shop-layout .sidebar .tagcloud {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.heras-shop-layout .sidebar .tagcloud a {
    display: inline-block;
    background: #f2f2f2;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 4px;
    font-size: 13px !important;
}

.heras-shop-layout .sidebar .tagcloud::-webkit-scrollbar {
    width: 6px;
}

.heras-shop-layout .sidebar .tagcloud::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.heras-shop-layout ul.products li.product a img {
    height: 280px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.heras-shop-layout .page_content_wrap {
    padding: 40px 0 !important;
}

.heras-shop-layout .page_content_wrap,
.heras-shop-layout .page_content_wrap .content {
    background-color: #FFF !important;
}

.heras-shop-header {
    background: #fafafa;
    padding: 40px 0;
    margin-bottom: 35px;
    border-bottom: 1px solid #e5e5e5;
}

.heras-shop-header .heras-breadcrumbs {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.75;
}

.heras-shop-header .heras-shop-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

@media (max-width: 768px) {
    .heras-shop-header {
        padding: 25px 0;
    }

    .heras-shop-header .heras-shop-title {
        font-size: 26px;
    }
}

/* ==== Títulos uniformes, 3 líneas, ellipsis ==== */
.heras-shop-layout ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    min-height: 4.5em;
    line-height: 1.5em;

    margin-top: 10px;
    margin-bottom: 10px;

    text-transform: lowercase;
}

.heras-shop-layout ul.products li.product .woocommerce-loop-product__title:first-letter {
    text-transform: uppercase !important;
}

/* ===== Botones de categorías ===== */
.heras-cat-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.heras-cat-btn {
    padding: 10px 16px;
    background: #0073e6;
    border-radius: 6px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.heras-cat-btn:hover {
    background: #005bb5;
}

.heras-cat-accordion {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.heras-cat-item {
    border-bottom: 1px solid #f1f1f1;
}

.heras-cat-title {
    padding: 12px 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    background: #fafafa;
    transition: background .2s;
}

.heras-cat-title:hover {
    background: #f0f0f0;
}

.heras-acc-arrow {
    font-weight: bold;
}

.heras-cat-item.open .heras-acc-arrow {
    transform: rotate(45deg);
}

.heras-subcats .heras-cat-title {
    background: #fff;
    font-weight: normal;
    font-size: 14px;
    padding: 10px 15px;
}

.heras-subcats .heras-cat-item {
    border-bottom: none;
}

/* Contenedor del botón */
.heras-cat-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    background: #f7f7f7;
    transition: all .2s ease;
}

.heras-cat-toggle::before {
    content: '+';
    color: #222;
}

.heras-cat-toggle.open::before {
    content: '-';
}

/* Subniveles sangrados uniformemente */
.heras-subcats {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding-left: 18px;
    margin-top: 6px;
    border-left: 1px solid #e5e5e5;
}


/* Para evitar que WooCommerce modifique estilos */
.heras-cat-item a,
.heras-cat-title {
    text-decoration: none !important;
}

.heras-cat-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}

.heras-cat-link {
    color: #222;
    text-decoration: none !important;
    cursor: pointer;
}

.heras-cat-link:hover {
    text-decoration: underline;
}

/* =========================
   Lista de productos (nivel marca)
   ========================= */

/* Normalizar nombres de productos en acordeón de marcas */
.heras-brands-products-accordion .heras-product-item .heras-cat-link {
    text-transform: capitalize !important;
}

/* Marca como nivel principal */
.heras-brands-products-accordion > .heras-cat-item > .heras-cat-title {
    font-size: 15px;
    font-weight: 600;
}

.heras-brands-products-accordion .heras-subcats {
    padding-left: 14px;
    border-left: 1px solid #e5e5e5;
}

/* Cada producto como item de lista */
.heras-brands-products-accordion .heras-product-item {
    padding: 6px 0 6px 10px;
    position: relative;
}

/* Bullet tipo lista */
.heras-brands-products-accordion .heras-product-item::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 6px;
    color: #999;
    font-size: 14px;
}

/* Enlace producto */
.heras-brands-products-accordion .heras-product-item .heras-cat-link {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #333;
}

/* Hover */
.heras-brands-products-accordion .heras-product-item .heras-cat-link:hover {
    color: var(--heras-accent-color);
}



/* ==================================================
   HERAS – CF7 Professional Form
   ================================================== */

.heras-form-wrapper {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.15);
    max-width: 900px;
    margin: 0 auto;
}

/* GRID container */
.heras-form-wrapper .heras-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: start;
}

/* IMPORTANT: CF7 wraps controls in <p> */
.heras-form-wrapper .heras-form-grid > p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Some themes add margins to labels too */
.heras-form-wrapper .heras-form-grid label {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    line-height: 1.25;
}

/* In case CF7 inserts <br> (or theme does) */
.heras-form-wrapper .heras-form-grid label br {
    display: none !important;
}

/* Full-width rows MUST be applied to the grid item (<p>) */
.heras-form-wrapper .heras-form-grid > p.heras-form-full {
    grid-column: 1 / -1;
}

/* Controls wrapper */
.heras-form-wrapper .wpcf7-form-control-wrap {
    display: block;
}

/* Inputs */
.heras-form-wrapper input[type="text"],
.heras-form-wrapper input[type="email"],
.heras-form-wrapper input[type="tel"],
.heras-form-wrapper textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.92rem;
    background: #fafafa;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    margin: 0 !important;
}

/* Textarea: override theme min-height */
.heras-form-wrapper textarea {
    min-height: auto !important;
    height: 80px !important;
    resize: vertical;
    line-height: 1.5;
}

/* Focus */
.heras-form-wrapper input:focus,
.heras-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--heras-accent-color, #0a5bd3);
    box-shadow: 0 0 0 3px rgba(10, 91, 211, 0.15);
    background: #fff;
}

/* CAPTCHA row */
.heras-form-wrapper .heras-form-grid > p.captcha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.heras-form-wrapper .heras-form-grid > p.captcha img {
    display: block;
    height: 28px;
    width: auto;
    border-radius: 6px;
}

/* Center submit button */
.heras-form-wrapper .heras-form-grid > p.heras-form-full:last-of-type {
    display: flex;
    justify-content: center;
    margin-top: 20px !important;
}

/* Submit */
.heras-form-wrapper input[type="submit"] {
    color: #fff;
    border: none;
    padding: 13px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.heras-form-wrapper input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.22);
    filter: brightness(0.98);
}

/* ==================================================
   CONTEXT-AWARE SUBMIT BUTTON (NO CSS VARIABLES)
   ================================================== */

/* Default (Health Care / fallback) */
.heras-context-box .heras-form-wrapper input[type="submit"] {
    background-color: #0a5bd3 ;
}

/* Life Science */
.heras-context-life_science .heras-context-box .heras-form-wrapper input[type="submit"] {
    background-color: #CF1114 !important;
}

/* Pharma */
.heras-context-pharma .heras-context-box .heras-form-wrapper input[type="submit"] {
    background-color: #00A161 !important;
}

/* Health Care (explicit, optional but clear) */
.heras-context-health_care .heras-context-box .heras-form-wrapper input[type="submit"] {
    background-color: #03A8DC !important;
}

/* CF7 messages */
.heras-form-wrapper .wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 12px 14px !important;
    border-radius: 10px;
    border: none !important;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .heras-form-wrapper .heras-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .heras-form-wrapper {
        padding: 22px;
    }
}


