/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* #region RUBÉN */

/* quitamos el espacio que hay en la home del contenido y el footer para que esté pegado */
.home footer .elementor-element{margin-top: 0px;}


/* filtros página categorias */
#wpfBlock_1 .wpfFilterVerScroll{max-height: 550px!important;}
.wpfFilterTitle{display: none!important;}
.wpfFilterWrapper[data-filter-type="wpfCategory"] .wpfFilterContent .wpfCheckboxHier input, .wpfFilterWrapper[data-filter-type="wpfRating"] .wpfFilterContent .wpfCheckboxHier input, .wpfFilterWrapper[data-filter-type="wpfPriceRange"] .wpfFilterContent .wpfCheckboxHier input[type="checkbox"]{border-radius: 4px!important; background-color: #ffffff!important;}
.wpfMainWrapper input[type="radio"]:checked, .wpfMainWrapper input[type="checkbox"]:checked, .woobewooRadio input:checked, .woobewooCheckbox input:checked{--bs-form-check-bg-image:none!important;}
.wpfFilterWrapper[data-filter-type="wpfCategory"] .wpfCheckboxHier input:checked, .wpfFilterWrapper[data-filter-type="wpfRating"] .wpfCheckboxHier input:checked, .wpfFilterWrapper[data-filter-type="wpfPriceRange"] .wpfCheckboxHier input:checked{background-color:#29176B !important;}
.wpfFilterWrapper[data-filter-type="wpfCategory"] .wpfCheckboxHier input:hover, .wpfFilterWrapper[data-filter-type="wpfRating"] .wpfCheckboxHier input:hover, .wpfFilterWrapper[data-filter-type="wpfPriceRange"] .wpfCheckboxHier input:hover{background-color:#F5EFE5 !important;}
.wpfFilterWrapper ul:not(.wpfButtonsFilter) li{padding-top: 10px;}
.wpfFilterWrapper .wpfFilterTaxNameWrapper{color: #4b5563 !important;}



/* pagina borrar mi cuenta */
.wpfda-delete-account-container{padding-top:20px}
.wpfda-delete-account-container .wpfda-password-confirm label{padding-bottom: 10px;}
.wpfda-delete-account-container .wpfda-password-confirm{padding: 20px 0px}
.wpfda-delete-account-container .wpfda-password-confirm input{display: block; width:300px;}
.wpfda-delete-account-container .wpfda-submit{padding-top: 20px;}


/* icono del producto cuando está añadido en el carrito (en categorias o slider) */
.icono_compra.en-carrito {
    background-color: #29176B !important; 
   position:relative
}


/* mensajes de añadir al carrito */
/* 1. Contenedor general flotante */
.woocommerce-notices-wrapper {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    max-width: 450px;
    width: auto;
    pointer-events: none;
}

/* 2. Tarjeta del aviso */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
    pointer-events: auto;
    background: #ffffff !important;
    color: #1a1a1a !important;
    padding: 16px 20px 16px 48px !important; /* Extra padding a la izquierda para el icono */
    margin-bottom: 12px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 8px rgba(0, 0, 0, 0.06) !important;
    border: none !important; /* Sin borde lateral ni general */
    
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative !important;
    font-size: 14px;
    line-height: 1.4;
    
    animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 3. Corrección de la posición del icono (Evita que pise el texto) */
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* 4. Botón Ver Carrito */
.woocommerce-notices-wrapper .button {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s ease;
    flex-shrink: 0;
    margin-left: auto !important;
}

/* 5. Animación de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* estilos en el menu cuando estamos en la página */
/* Transición suave para evitar cambios bruscos */
.header_menu .elementor-icon-list-item a {
    transition: all 0.2s ease;
    display: inline-block;
}

/* Al pasar el mouse o cuando esté activo, simulamos el grosor con text-shadow */
.header_menu .elementor-icon-list-item a:hover,
.header_menu .elementor-icon-list-item.is-active a {
    /* Esto oscurece y engrosa el texto sin cambiar sus píxeles de ancho reales */
    text-shadow: 0 0 0.45px currentColor, 0 0 0.45px currentColor;
}

/* Aseguramos que el span actúe como contenedor posicionado */
.header_menu .elementor-icon-list-item .elementor-icon-list-text {
    position: relative;
    display: inline-block;
}

/* Creamos la línea inferior separada 10px solo cuando esté activo */
.header_menu .elementor-icon-list-item.is-active .elementor-icon-list-text::after, .header_menu .elementor-icon-list-item:hover .elementor-icon-list-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px; /* Distancia exacta de separación respecto al texto */
    height: 1px;   /* Grosor de la línea */
    background-color: #29176B; /* Color de la línea */
}


/* #endregion */


/* #region URI */

/* Logo de Redsys en el método de pago */
.payment_method_redsys > label::after {
	content: "";
	display: inline-block;
	width: 80px;
	height: 24px;
	margin-left: .5em;
	vertical-align: middle;
	background: url("../../plugins/redsyspur/pages/assets/images/Redsys.png") no-repeat left center / contain;
    mix-blend-mode: multiply; /* funde el fondo blanco del PNG con el beige */
}

/* Enlaces subrayados para que se vea que son enlaces (feedback UX cliente) */
.woocommerce-privacy-policy-text a,                          /* Registro: privacidad y condiciones de uso */
.woocommerce-terms-and-conditions-checkbox-text a,           /* Checkout: términos y condiciones */
.e-woocommerce-coupon-nudge a,                               /* Checkout (widget Elementor): «Haz clic aquí…» del cupón */
.woocommerce-MyAccount-content-wrapper p:has(> a[href*="action=logout"]) > a {  /* Escritorio: «Cerrar sesión» del saludo */
	text-decoration: underline;
	text-underline-offset: 2px;
}
/* Avisos de WooCommerce: centrados abajo en vez de en la esquina (feedback cliente) */
.woocommerce-notices-wrapper {
	right: auto;
	left: 50%;
	transform: translateX(-50%);
	width: min(560px, calc(100% - 32px)); /* en móvil: ancho de pantalla con 16px de margen a cada lado */
	max-width: none;
}

@media (max-width: 767px) {
	.woocommerce-notices-wrapper {
		bottom: 16px;
	}
}



/* Avisos: botón de cerrar (X) y salida con desvanecido */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	padding-right: 52px !important; /* hueco para la X (Rubén fija el padding con !important) */
}

.woocommerce-notices-wrapper .lt-notice__close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1a1a1a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
/* Anula el hover/focus rosa de los botones de Hello */
.woocommerce-notices-wrapper .lt-notice__close:hover,
.woocommerce-notices-wrapper .lt-notice__close:focus {
	background: rgba(0, 0, 0, .06);
	color: #1a1a1a;
}
.woocommerce-notices-wrapper .lt-notice__close:focus-visible {
	outline: 2px solid #29176B;
	outline-offset: 2px;
}
.woocommerce-notices-wrapper .lt-notice__close-item {
	list-style: none;
}

/* Salida: se desvanece y baja un poco */
.woocommerce-notices-wrapper .lt-notice--closing {
	animation: ltNoticeOut .3s ease forwards;
	pointer-events: none;
}
@keyframes ltNoticeOut {
	to {
		opacity: 0;
		transform: translateY(10px) scale(.97);
	}
}

/* Quien tiene activado «reducir movimiento» en su sistema: sin animaciones */
@media (prefers-reduced-motion: reduce) {
	.woocommerce-notices-wrapper .woocommerce-message,
	.woocommerce-notices-wrapper .woocommerce-info,
	.woocommerce-notices-wrapper .woocommerce-error {
		animation: none !important;
	}
}


/* Avisos informativos sin icono: parecía una casilla de verificación (feedback cliente) */
.woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
	content: none !important;
	display: none !important;
}

/* Sin icono, quitamos el hueco que le dejaba a la izquierda */
.woocommerce .woocommerce-info {
	padding-left: 2em;
}
.woocommerce-notices-wrapper .woocommerce-info {
	padding-left: 20px !important;
}


/* Mi cuenta: avisos con texto y botón alineados (feedback cliente: «centrado de las cajitas») */
.woocommerce-MyAccount-content .woocommerce-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em 2em;
}
.woocommerce-MyAccount-content .woocommerce-info::after {
	display: none; /* el «clearfix» de WooCommerce sobra con flex y dejaría un hueco a la derecha */
}
.woocommerce-MyAccount-content .woocommerce-info .button {
	float: none;
	margin: 0;
	flex-shrink: 0;
}

/* Mi cuenta · Escritorio: saludo en dos líneas (feedback cliente)
   «Hola Nombre» / «(¿No eres Nombre? Cerrar sesión)» */
.woocommerce-MyAccount-content-wrapper p:has(> a[href*="action=logout"]) > strong:first-child::after {
	content: "\A";       /* salto de línea */
	white-space: pre;    /* para que el salto se respete */
}

/* Mi cuenta (móvil): cajas de aviso con el botón centrado (feedback cliente, diap. 7) */
@media (max-width: 767px) {
	.woocommerce-MyAccount-content .woocommerce-info {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 1em;
	}
	.woocommerce-MyAccount-content .woocommerce-info::after {
		display: none;
	}
	.woocommerce-MyAccount-content .woocommerce-info .button {
		float: none;
		margin: 0;
		text-align: center;
	}
}


/* Historia · Slider de fotos: máximo 614px de alto, sin deformar */
.lt-historia__slider .swiper-slide-image {
	width: auto;
	max-width: 100%;
	max-height: 614px;
	margin-inline: auto;
}

/* Texto que aparece párrafo a párrafo al hacer scroll */
@keyframes lt-reveal {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.lt-reveal p {
			animation: lt-reveal linear both;
			animation-timeline: view();
			animation-range: entry 10% cover 35%;
		}
	}
}

/* #endregion */