/* =============================================================================
   ESTILOS GLOBALES
   ============================================================================= */

html, body {
    overflow-x: clip;
}

/* Carrusel con desbordamiento hacia la derecha */
.overflow-right .e-n-carousel.swiper {
    overflow: visible !important;
    clip-path: inset(0 -100vw 0 0) !important;
}


/* =============================================================================
   TIPOGRAFÍA Y ELEMENTOS COMUNES
   ============================================================================= */

/* Eliminar subrayado en precios y elementos de texto especiales */
bdi,
ins,
.price {
    text-decoration: none !important;
}

/* Nombre de producto: tipografía heredada de variables de Elementor */
.product-name {
    font-family: var(--e-global-typography-f7f0098-font-family), Sans-serif;
    font-size: var(--e-global-typography-f7f0098-font-size);
    font-weight: var(--e-global-typography-f7f0098-font-weight);
    line-height: var(--e-global-typography-f7f0098-line-height);
    color: var(--e-global-color-primary);
}

/* Texto truncado a 2 líneas con ellipsis */
.truncate-multi {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Sharp Grotesk';
    color: var(--e-global-color-primary);
    font-weight: 300 !important;
}

/* Sin subrayado en el enlace de reseñas */
.woocommerce-review-link {
    text-decoration: none !important;
    margin-top: 4px;
}


/* =============================================================================
   CARRITO (MINI CART)
   ============================================================================= */

/* --- Contenedor principal --- */

/* Border-radius del panel lateral en desktop */
@media (min-width: 768px) {
    .elementor-menu-cart__main {
        border-radius: 20px 0 0 20px;
    }
}

/* Padding y separador de cada producto del mini carrito */
.elementor-widget-woocommerce-menu-cart:not(.elementor-menu-cart--show-remove-button-yes)
.elementor-menu-cart__product {
    padding: 20px;
    border-bottom: none;
}

/* Eliminar padding extra del toggle y del panel */
.elementor-menu-cart__toggle .elementor-menu-cart__container::before,
.elementor-menu-cart__main::before {
    padding-left: 0 !important;
}

/* Bordes redondeados en imagen del producto */
.elementor-menu-cart__product-image a,
.elementor-menu-cart__product-image img {
    border-radius: 10px;
}

/* Ocultar el nombre del producto (primer enlace) — se muestra vía custom HTML */
.elementor-menu-cart__product-name a:first-child {
    display: none;
}

/* --- Nombre y precio del producto --- */

/* Nombre: apilado verticalmente con precio debajo */
.elementor-menu-cart__product-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.elementor-menu-cart__product-name a {
    color: #2D3436;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.elementor-menu-cart__product-name a:hover {
    color: #00D4AA;
}

/* Precio custom debajo del nombre */
.minicart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #2D3436;
    margin-top: 4px;
}

.minicart-item-price .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 400;
    color: #2D3436;
    font-family: var(--e-global-typography-f7f0098-font-family), Sans-serif;
}

/* Precio tachado (precio original) */
.minicart-item-price del {
    opacity: 0.5;
    font-size: 14px;
    margin-right: 8px;
}

/* Eliminar subrayado del precio en oferta */
.minicart-item-price ins {
    text-decoration: none;
}

/* Precio por defecto de Elementor: alineado a la derecha */
.elementor-menu-cart__product-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* --- Selector de cantidad (mini cart) --- */

/* Wrapper del contador */
.minicart-quantity-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 1px solid #051947 !important;
    border-radius: 50px !important;
    padding: 8px 10px !important;
    background: #fff !important;
    min-width: 120px !important;
    width: auto !important;
}

/* Estado de carga: opacidad reducida y spinner */
.minicart-quantity-wrapper.updating {
    opacity: 0.5 !important;
    pointer-events: none !important;
    position: relative;
}

.minicart-quantity-wrapper.updating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #00D4AA;
    border-top-color: transparent;
    border-radius: 50%;
    animation: minicart-spin 0.6s linear infinite;
}

@keyframes minicart-spin {
    to { transform: rotate(360deg); }
}

/* Botones +/- y papelera */
.minicart-qty-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #051947 !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    border-radius: 0 !important;
    font-size: 0 !important; /* Ocultar texto residual */
}

.minicart-qty-btn:hover:not(:disabled) {
    color: #051947 !important;
    background: transparent !important;
    background-color: transparent !important;
    transform: scale(1.15);
}

/* Papelera (cuando qty = 1): rojo al hacer hover */
.minicart-qty-btn.minus.is-trash:hover:not(:disabled) {
    color: #ff4444 !important;
}

.minicart-qty-btn:active:not(:disabled) {
    transform: scale(0.9);
}

.minicart-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed !important;
}

/* Icono SVG dentro del botón */
.minicart-qty-btn svg {
    width: auto !important;
    height: 13px !important;
    max-width: 20px !important;
    display: block !important;
    pointer-events: none !important;
}

.minicart-qty-btn svg path {
    transition: all 0.2s ease;
}

/* SVG con fill (papelera, +): usar color actual */
.minicart-qty-btn svg path[fill]:not([fill="none"]) {
    fill: currentColor !important;
    stroke: none !important;
}

/* SVG con stroke (guión -): usar color actual */
.minicart-qty-btn svg path[stroke] {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
}

/* SVG sin atributos explícitos: aplicar fill por defecto */
.minicart-qty-btn svg path:not([fill]):not([stroke]) {
    fill: currentColor !important;
}

/* Número de cantidad */
.minicart-qty-display {
    min-width: 30px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #051947 !important;
    user-select: none !important;
    line-height: 1 !important;
    background: transparent !important;
}

/* Animación al eliminar producto */
.elementor-menu-cart__product.removing {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Layout del carrito en desktop --- */

@media (min-width: 768px) {
    /* Imagen acotada al 20% del ancho */
    .elementor-menu-cart__product-image {
        max-width: 20%;
    }

    /* Items en fila */
    .cart_item {
        display: flex;
    }

    /* Precio: centrado verticalmente, ocupa toda la altura */
    .elementor-menu-cart__product-price.product-price {
        display: flex;
        align-items: center;
        align-self: stretch;
    }

    /* Nombre: crece para ocupar el espacio disponible */
    .elementor-menu-cart__product-name {
        flex-grow: 1;
        justify-content: space-around;
    }
}

/* --- Carrito en móvil --- */

@media (max-width: 767px) {
    /* Precio alineado a la izquierda con margen superior */
    .elementor-menu-cart__product-price {
        justify-content: flex-start !important;
        margin-top: 10px;
    }

    /* Reducir padding general */
    .elementor-menu-cart__product,
    .elementor-menu-cart__main {
        padding: 10px !important;
    }

    /* Precio tachado oculto en la barra de compra */
    .buy-bar .price del {
        display: none !important;
    }

    /* Precio en mini cart más pequeño */
    .minicart-item-price {
        font-size: 14px;
    }
}


/* =============================================================================
   SELECTOR DE CANTIDAD (PÁGINA DE PRODUCTO)
   ============================================================================= */

/* Wrapper del contador */
.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a1a1a;
    border-radius: 50px;
    overflow: hidden;
    background: white;
    margin-right: 10px;
    padding: 0;
    height: 58px;
    min-width: 130px;
    max-width: 130px;
}

/* Botones + y - */
.qty-button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--e-global-color-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    width: 30px;
    height: 48px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-button:hover {
    color: #000;
}

.qty-button:focus {
    outline: none;
}

/* Input numérico de cantidad */
.quantity-wrapper input.qty {
    border: none !important;
    text-align: center;
    width: 40px;
    max-width: 40px;
    min-width: 40px;
    height: 48px;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    -moz-appearance: textfield;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

/* Ocultar flechas nativas del input number */
.quantity-wrapper input.qty::-webkit-outer-spin-button,
.quantity-wrapper input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-wrapper input.qty:focus {
    outline: none;
    box-shadow: none !important;
}

/* Formulario de añadir al carrito */
form.cart {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Ocultar label del input de cantidad */
form.cart label[for="quantity"] {
    display: none;
}

/* Reset de margen del wrapper de cantidad */
form.cart .quantity {
    margin: 0 !important;
    font-family: 'Sharp Grotesk', sans-serif;
}

/* Icono de cantidad en botón de Elementor */
.elementor-button-icon-qty {
    min-width: auto !important;
    width: 14px !important;
    height: 14px !important;
}


/* =============================================================================
   MENSAJES Y FORMULARIOS DE WOOCOMMERCE
   ============================================================================= */

/* --- Errores --- */

.woocommerce-error {
    border: 1px solid #F46A6B !important;
    background: white !important;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 1440px;
}

.woocommerce-error li {
    font-family: "Sharp Grotesk", sans-serif;
    color: #F46A6B;
    font-size: 14px;
}

/* Ocultar enlace interno del error */
.woocommerce-error a {
    display: none !important;
}

/* Icono de error como pseudo-elemento */
.woocommerce-error::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    margin-top: 4px;
    background-image: url('/wp-content/uploads/2026/02/validation-error.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
}

/* --- Formulario de login --- */

/* Aviso de login (toggle) */
.woocommerce-form-login-toggle {
    padding: 15px 0;
}

.woocommerce-form-login-toggle .woocommerce-info {
    border: 1px solid var(--e-global-color-primary) !important;
    background: white !important;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 1440px;
    font-family: "Sharp Grotesk", sans-serif;
    color: var(--e-global-color-primary);
    font-size: 14px;
}

/* Formulario de login */
.woocommerce-form-login {
    border-radius: 20px !important;
    border: 1px solid var(--e-global-color-primary) !important;
    font-family: "Sharp Grotesk", sans-serif !important;
    color: var(--e-global-color-primary) !important;
    font-size: 14px !important;
    background: white !important;
}

/* Filas del formulario a ancho completo */
.woocommerce-form-login .form-row {
    width: 100% !important;
}

/* Botón de submit del login */
.woocommerce-form-login .woocommerce-form-login__submit {
    border-radius: 20px !important;
    background: var(--e-global-color-primary) !important;
    color: white !important;
    font-family: 'Sharp Grotesk';
    font-weight: 400 !important;
    padding: 15px 20px !important;
}

/* Inputs del formulario de login */
.woocommerce-form-login input {
    border: 1px solid #AAAAAA !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 300 !important;
}

/* --- Método de envío --- */

/* Texto de fecha estimada de envío */
.shipping-estimated-date {
    font-size: 0.85rem !important;
}

.shipping-estimated-date::before {
    content: '- ';
}

/* Precio de método de envío sin negrita */
#shipping_method bdi {
    font-weight: 400 !important;
}


/* =============================================================================
   TAGS DE CATEGORÍAS DE SALUD (PRODUCTOS)
   ============================================================================= */

/* Estilos base compartidos por todos los tags de categoría */
.tag-sintoma,
.elementor-post-info__terms-list-item {
    padding: 2px 8px;
    margin-right: 5px;
    border-radius: 30px;
    font-size: 14px;
    min-height: 10px;
    display: inline-block !important;
    margin-bottom: 5px;
}

/* Salud sexual — amarillo cálido */
.product_cat-salud-sexual .tag-sintoma,
.salud-sexual .product_cat-salud-sexual .tag-sintoma,
.product_cat-salud-sexual .elementor-post-info__terms-list-item {
    background: #FFF8E5;
    border: 1px solid rgb(255, 221, 125);
}

/* Salud digestiva — verde */
.product_cat-salud-digestiva .tag-sintoma,
.salud-digestiva .product_cat-salud-digestiva .tag-sintoma,
.product_cat-salud-digestiva .elementor-post-info__terms-list-item {
    background: #E6FBF5;
    border: 1px solid #00D996;
}

/* Salud preventiva — naranja */
.product_cat-salud-preventiva .tag-sintoma,
.salud-preventiva .product_cat-salud-preventiva .tag-sintoma,
.product_cat-salud-preventiva .elementor-post-info__terms-list-item {
    background: #FFF4F0;
    border: 1px solid #FF6632;
}

/* Salud funcional — azul claro */
.product_cat-salud-funcional .tag-sintoma,
.salud-funcional .product_cat-salud-funcional .tag-sintoma,
.product_cat-salud-funcional .elementor-post-info__terms-list-item {
    background: #EFFAFF !important;
    border: 1px solid #00ABEA !important;
}

/* Salud hormonal — rosa */
.product_cat-salud-hormonal .tag-sintoma,
.salud-hormonal .product_cat-salud-hormonal .tag-sintoma,
.product_cat-salud-hormonal .elementor-post-info__terms-list-item {
    background: #FEF0F0;
    border: 1px solid #FFAAB1 !important;
}


/* =============================================================================
   BIOMARCADORES
   ============================================================================= */

/* Contenedor de tags de biomarcadores */
.biomarcadores-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
    gap: 8px !important;
}

/* Tag individual */
.biomarcador-tag {
    padding: 6px 14px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}


/* =============================================================================
   COMPONENTES DE ELEMENTOR
   ============================================================================= */

/* Widget de shortcode en el header: sin stretching */
header .elementor-widget-shortcode {
    width: auto !important;
}

/* Permitir scroll táctil horizontal en tabs */
.e-n-tab-title {
    touch-action: pan-x;
}

/* Icono activo del círculo interactivo: fondo blanco */
.circle-item-pinned-active .eael-circle-btn-icon {
    background-color: #fff !important;
}

/* Imagen en lightbox con fondo blanco y bordes redondeados */
.elementor-lightbox-image {
    background: white;
    border-radius: 20px !important;
}

/* --- Reducción de tamaño del círculo interactivo en desktop con poca altura --- */

/* Solo activo si la pantalla es ≥1025px de ancho y ≤700px de alto */
@media (min-width: 1025px) and (max-height: 700px) {
    /* Semicírculo principal */
    .eael-circle-wrapper.eael-interactive-circle-preset-2 .eael-circle-info .eael-circle-inner {
        width: 200px;
        height: 100px;
    }

    /* Botón del bullet: colapsado */
    .elementor-element-3b358c3 .eael-circle-btn {
        width: 0px !important;
        height: 0px !important;
        min-height: 0px !important;
        min-width: 0px !important;
    }

    /* Icono SVG dentro del bullet: escala al 60% */
    .elementor-element-3b358c3 .eael-circle-btn-icon-inner svg {
        transform: scale(0.6) !important;
        transform-origin: center center !important;
        display: block !important;
    }

    /* Centrar el SVG dentro del contenedor del icono */
    .elementor-element-3b358c3 .eael-circle-btn-icon-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Ocultar elemento específico en tablet y desktop */
@media (min-width: 768px) {
    .elementor-element-a27066c,
    .elementor-element-a27066c * {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}


/* =============================================================================
   TOGGLE DE BÚSQUEDA Y FILTROS
   ============================================================================= */

/* Estado oculto por defecto */
.search-widget,
.filters-list {
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Estado visible tras activar el toggle */
.search-widget.toggle-visible,
.filters-list.toggle-visible {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 1000px !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

/* Siempre visibles dentro del editor de Elementor */
.elementor-editor-active .search-widget,
.elementor-editor-active .filters-list {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

/* Header "elige": ocultable con transición suave */
.elige-header {
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.4s ease;
    overflow: hidden;
}

.elige-header.toggle-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
    pointer-events: none !important;
}


/* =============================================================================
   FORMULARIOS DE AUTENTICACIÓN (AILIN)
   ============================================================================= */

/* Ocultar imagen decorativa en móvil */
@media (max-width: 767px) {
    .ailin-auth__image {
        display: none !important;
    }
}

/* --- Campos de formulario en móvil --- */
@media (max-width: 767px) {
    /* Todos los campos a ancho completo */
    .ailin-field-row .form-row,
    .ailin-field-row .ailin-field,
    .ailin-field-row .woocommerce-form-row {
        width: 100% !important;
        flex: none !important;
        margin-bottom: 15px !important;
    }

    .ailin-field--country-code {
        width: 100% !important;
    }

    /* Fila de teléfono: código de país + número en una sola línea */
    .ailin-field-row--phone {
        flex-direction: row !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    /* Código de país: ancho fijo */
    .ailin-field-row--phone .ailin-field--country-code {
        width: 100px !important;
        flex: 0 0 100px !important;
        margin-bottom: 0 !important;
    }

    /* Campo de teléfono: ocupa el espacio restante */
    .ailin-field-row--phone .ailin-field--phone {
        width: auto !important;
        flex: 1 !important;
        margin-bottom: 0 !important;
    }
}


/* =============================================================================
   MISCELÁNEA MÓVIL
   ============================================================================= */

/* Ocultar botón de scroll to top en móvil */
@media (max-width: 767px) {
    .eael-ext-scroll-to-top-wrap {
        display: none !important;
    }
}

/* --- Responsive del selector de cantidad (mini cart) --- */

@media (max-width: 767px) {
    .minicart-quantity-wrapper {
        gap: 12px !important;
        padding: 6px 16px !important;
        min-width: 100px !important;
    }

    .minicart-qty-display {
        font-size: 14px !important;
        min-width: 25px !important;
    }

    .minicart-qty-btn svg {
        height: 12px !important;
    }
}

@media (max-width: 480px) {
    .minicart-quantity-wrapper {
        gap: 10px !important;
        padding: 5px 14px !important;
        min-width: 90px !important;
    }

    .minicart-qty-display {
        font-size: 13px !important;
    }

    .minicart-qty-btn svg {
        height: 11px !important;
    }
}


/* MISC */

.tag-sintoma {
    border: 1px solid var(--e-global-color-primary);
    padding: 2px 8px;
    margin-right: 5px;
    border-radius: 30px;
    font-size: 14px;
    min-height: 10px;
    display: inline-block!important;
    margin-bottom: 5px;
	white-space: nowrap;
}

.elementor-post-info__terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.price {
    color: var(--e-global-color-primary)!important;
    font-family: 'Sharp Grotesk'!important;
}

.price ins {
    font-weight: inherit!important;
}

.elementor-element-a36c37d .wcsatt-sub-options, .elementor-element-a36c37d .wcsatt-sub-discount {
    display: none;
}

@media (max-width: 767px) {

  /* Permite que el peek se vea por la derecha */
  .profesionales-slides.swiper {
    overflow: visible !important;
  }

  /* El swiper-wrapper no debe tener width fijo que comprima */
  .profesionales-slides.swiper > .swiper-wrapper {
    width: 100% !important;
    display: flex !important;
  }

  /* Forzar que los slides respeten el width que Swiper les asigna */
  .profesionales-slides.swiper > .swiper-wrapper > .swiper-slide {
    flex-shrink: 0 !important;
    min-width: 0 !important;
    /* Neutralizar la variable --width de Elementor */
    --width: auto !important;
    width: 85% !important;
  }

  /* Los hijos e-con dentro del slide deben adaptarse */
  .profesionales-slides.swiper > .swiper-wrapper > .swiper-slide > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    --width: 100% !important;
  }
}

.ailin-mobile-carousel-enabled .swiper-slide {
  flex-shrink: 0 !important;
}

.biomarcadores-lista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
    padding-left: 0;
    margin: 0;
}

.biomarcadores-lista li {
    list-style: none;
    position: relative;
    padding-left: 14px;

    min-width: 0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-family: 'Sharp Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #051947;
}

/* bullet manual */
.biomarcadores-lista li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #051947;
}

/* "X más" en negrita */
.biomarcadores-lista .bm-mas {
    font-weight: 500;
}

/* responsive */
@media (max-width: 768px) {
    .biomarcadores-lista {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .biomarcadores-lista {
        grid-template-columns: 1fr;
    }
}