/*
 * Theme Name: Hello Elementor Flavia
 * Description: Tema hijo de Hello Elementor para el subsite Flavia
 * Template: hello-elementor
 * Version: 1.0.0
 * Author: Lacer
 */

.hero-flavia .img-hero {
    position: absolute;
    min-width: calc(50% - var(--content-width) * 0.1 + 240px) !important;
    max-width: calc(50% - var(--content-width) * 0.1 + 240px) !important;
    height: 100%;
    top: 0;
    right: 0;
}
.hero-flavia .img-hero img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.hero-flavia .hero-title {
    transition: none;
}
/*[data-widget_type="loop-grid.post"] .imagen-redonda img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}*/
.imagen-redonda img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: auto !important;
}
#flavia-talks-logo svg {
    max-height: 56px;
    position: relative;
    top: 4px;
}
#flavia-talks-logo a:hover svg .st1 {
    fill: #96ACFE;
}
.circulo-padre .circulo {
    justify-content: center;
}
.circulo-padre .circulo.circulo-bg-loaded {
    background-color: transparent !important;
    position: relative;
    isolation: isolate;
}
.circulo-padre .circulo.circulo-bg-loaded > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: transparent !important;
}
.circulo-padre .circulo.circulo-bg-loaded::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: var(--circulo-bg);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.circulo-padre .circulo.circulo-bg-loaded .e-con-inner {
    position: relative;
    z-index: 1;
}
@media (min-width: 1024px) {
    .elementor-location-header::after {
        content: '';
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.75);
        z-index: 5;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s;
    }
    .elementor-location-header:has(.e-n-menu-content.e-active)::after {
        opacity: 1;
        visibility: visible;
    }
    .e-n-menu-content .e-con-inner {
        border-top: #96acfe solid 1px;
    }
    .e-n-menu-content .e-con-inner .elementor-widget-nav-menu {
        width: 100%;
    }
    .e-n-menu-heading .elementor-nav-menu {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
    }
    .e-n-menu-heading .elementor-nav-menu > .menu-item {
        float: none !important;
        width: auto !important;
    }
    .e-n-menu-heading > .e-n-menu-item {
        margin: 0 12px;
    }
    .e-n-menu-heading > .e-n-menu-item .e-n-menu-title-text {
        font-size: 16px;
    }
}
@media (max-width: 1023px) {
    .e-n-menu-heading  {
        border-top: #96acfe solid 1px;
        margin-top: 0.5rem;
        min-height: calc(100vh - 78px);
        align-content: flex-start;
    }
    .e-n-menu-heading > .e-n-menu-item {
        border-bottom: #96acfe solid 1px;
    }
    .e-n-menu-heading > .e-n-menu-item .e-n-menu-title {
        display: flex;
        justify-content: space-between !important;
    }
    .e-n-menu-heading > .e-n-menu-item .e-n-menu-title a {
        min-height: 56px;
        flex: 2;
    }
    .e-n-menu-heading > .e-n-menu-item .e-n-menu-title .e-n-menu-dropdown-icon {
        width: 62px;
        height: 56px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        right: -1rem;
        background: color-mix(in srgb, var(--e-global-color-secondary), transparent 80%);
        border-radius: 0;
    }
}
@media (max-width: 767px) {
    .e-n-menu-heading  {
        min-height: calc(100vh - 62px);
    }
    .hero-flavia .img-hero {
        min-width: 100% !important;
    }
    .hero-flavia .hero-title {
        height: fit-content;
        padding-top: 15vw;
        margin-top: 200px;
    }
}

/* ============================================================
   WP-PostRatings — Widget de valoraciones (.plugin-votacions)
   Replica el diseño de flaviamenopausia.com
   ============================================================ */

.plugin-votacions .superior {
    display: flex;
    width: 100%;
    background: rgba(150, 172, 254, 0.15);
    padding: 10px;
    align-items: center;
    box-sizing: border-box;
    border-radius: 4px;
}

.plugin-votacions .enunciat {
    flex: 1;
    font-size: 25px;
    padding: 15px 0;
    line-height: 1.1em;
}

.plugin-votacions .inferior {
    color: #6A6969;
    padding: 15px 0 15px 30px;
    display: block;
    position: relative;
    font-size: 0.95em;
}

.plugin-votacions .inferior span.icon-ok-vota {
    color: #0030a8;
    font-size: 1.2em;
    margin-right: 0.3em;
    margin-top: -4px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Icono pulgar arriba con SVG inline (reemplaza font-icon) */
.plugin-votacions .inferior span.icon-ok-vota::before {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230030a8'%3E%3Cpath d='M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 4px;
}

/* Botones ✗ y ✓ — se ocultan las imágenes GIF originales
   y se sustituyen por botones con SVG */
.plugin-votacions .votar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.plugin-votacions .votar img {
    display: inline-block !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 24px !important;
    border: 0 !important;
    object-fit: none !important;
    object-position: -9999px !important; /* oculta el GIF */
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 28px 28px !important;
    margin: 0 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Botón NO (primer img — ✗) */
.plugin-votacions .votar img:first-child {
    background-color: #e8eaff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230030a8'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") !important;
}

/* Botón SÍ (segundo img — ✓) */
.plugin-votacions .votar img:nth-child(2) {
    background-color: #e8eaff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230030a8'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") !important;
}

.plugin-votacions .votar img:hover {
    background-color: #96acfe !important;
    transform: scale(1.08);
}

/* Ocultar el wrapper .post-ratings-loading si está visible */
.post-ratings-loading {
    display: none;
}

/* Espaciado del contenedor general */
#post-ratings-loading,
.post-ratings {
    margin: 2em 0;
    display: block;
}

/* ============================================================
   Ingredientes — Carousel mobile/tablet
   Variables para ajustar flechas y paginación sin tocar el JS.
   ============================================================ */

.ingredientes {
	--ingredientes-arrow-color:         #4FC3C8;
	--ingredientes-arrow-size:          0.65;
	--ingredientes-bullet-color:        #96acfe;
	--ingredientes-bullet-color-active: #0030a8;
	--ingredientes-bullet-opacity:      1;
}

@media (min-width: 1025px) {
    .ingredientes.e-flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .ingredientes.e-flex > .elementor-element {
        width: calc(25% - 16px);
    }
}

@media (max-width: 1024px) {
	/* El contenedor pasa de grid (Elementor) a block para que Swiper funcione */
	.e-grid.ingredientes.ingredientes-carousel-active,
	.ingredientes.ingredientes-carousel-active {
		display: block !important;
		overflow: hidden !important;
		position: relative !important;
		padding-bottom: 50px !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	/* Forzamos flex en el swiper-wrapper contra el grid de Elementor */
	.e-grid.ingredientes.ingredientes-carousel-active > .swiper-wrapper,
	.ingredientes.ingredientes-carousel-active > .swiper-wrapper {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		width: 100% !important;
		height: 100% !important;
	}

	/* Cada slide ocupa el ancho correcto */
	.e-grid.ingredientes.ingredientes-carousel-active > .swiper-wrapper > .swiper-slide,
	.ingredientes.ingredientes-carousel-active > .swiper-wrapper > .swiper-slide {
		display: block !important;
		height: auto !important;
		box-sizing: border-box !important;
		padding: 0 10px !important;
		flex-shrink: 0 !important;
		min-width: 0 !important;
	}

	/* Flechas */
	.ingredientes .swiper-button-next,
	.ingredientes .swiper-button-prev {
		color: var( --ingredientes-arrow-color ) !important;
		transform: scale( var( --ingredientes-arrow-size ) ) !important;
		top: 40% !important;
		z-index: 10 !important;
	}

	/* Paginación */
	.ingredientes .swiper-pagination {
		position: absolute !important;
		bottom: 10px !important;
		left: 0 !important;
		width: 100% !important;
		text-align: center !important;
		z-index: 10 !important;
	}

	.ingredientes .swiper-pagination-bullet {
		background: var( --ingredientes-bullet-color ) !important;
		opacity: var( --ingredientes-bullet-opacity ) !important;
		margin: 0 5px !important;
		width: 15px !important;
		height: 15px !important;
	}

	.ingredientes .swiper-pagination-bullet-active {
		background: var( --ingredientes-bullet-color-active ) !important;
		opacity: 1 !important;
	}
}

@media only screen and (max-width: 670px) {
    .plugin-votacions .superior {
        display: block;
        text-align: center;
    }
    .plugin-votacions .enunciat {
        display: block;
        text-align: center;
        font-size: 20px;
    }
    .plugin-votacions .votar {
        justify-content: center;
        margin-top: 10px;
    }
    .plugin-votacions .inferior {
        padding-left: 0;
        text-align: center;
    }
    .plugin-votacions .inferior span.icon-ok-vota {
        position: static;
        transform: none;
        display: inline-block;
        vertical-align: middle;
    }
}

/* ============================================================
   Archive Posts — skin Classic
   Visual styles to match Blog Loop Item design
   Scope: strictly .elementor-posts--skin-classic
   ============================================================ */

/* Date */
.elementor-posts--skin-classic .format-standard .elementor-post__meta-data {
    color: #888;
    font-size: inherit;
    margin-bottom: 8px;
}

/* Category label */
.elementor-posts--skin-classic .format-standard  .elementor-post__category {
    margin-bottom: 8px;
}

.elementor-posts--skin-classic .format-standard .elementor-post__category a {
    color: var( --e-global-color-accent, #e5007d );
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.elementor-posts--skin-classic .format-standard .elementor-post__category a:hover {
    text-decoration: underline;
}

/* Title */
.elementor-posts--skin-classic .format-standard .elementor-post__title {
    margin-bottom: 10px;
    font-weight: 400;
    font-size: clamp(1.65rem, 1.5rem + 1vw, 2rem);
    font-family: inherit;
}

.elementor-posts--skin-classic .elementor-post__title a {
    color: var( --e-global-color-primary, #1a2e6e );
    text-decoration: none;
}

.elementor-posts--skin-classic .elementor-post__title a:hover {
    text-decoration: underline;
}

/* Excerpt */
.elementor-posts--skin-classic .elementor-post__excerpt p {
    color: inherit;
    font-size: inherit;
    margin: 0;
}

/* Thumbnail-top variant — hide category and read more */
.elementor-posts--thumbnail-top[data-widget_type="posts.classic"] .elementor-post__category,
.elementor-posts--thumbnail-top[data-widget_type="posts.classic"] .elementor-post__read-more {
    display: none;
}

.elementor-location-archive + .elementor-location-footer .elementor-shape-top .elementor-shape-fill {
    fill: var(--e-global-color-secondary) !important;
}

.elementor-location-single[data-elementor-type="single-post"] .elementor-widget-theme-post-content h2 {
    font-size: clamp(1.9rem, 1.7rem + 1.5vw, 2.5rem);
}
.elementor-location-single[data-elementor-type="single-post"] .elementor-widget-theme-post-content h3,
.elementor-location-single[data-elementor-type="single-post"] .elementor-widget-theme-post-content h4 {
    font-family: var( --e-global-typography-accent-font-family ), Sans-serif;
    color: var( --e-global-color-primary );
    font-weight: 700;
}
.elementor-location-single[data-elementor-type="single-post"] .elementor-widget-theme-post-content h2,
.elementor-location-single[data-elementor-type="single-post"] .elementor-widget-theme-post-content h3,
.elementor-location-single[data-elementor-type="single-post"] .elementor-widget-theme-post-content h4 {
    margin-block-start: 2rem;
}

/* ============================================================
   Fix: hueco blanco/azul antes del footer
   Ajustado en posts single y Flavia Talks
   ============================================================ */
.post-template-default.single.single-post .elementor-location-footer .elementor-shape-top .elementor-shape-fill,
.page-id-1371 .elementor-location-footer .elementor-shape-top .elementor-shape-fill {
    fill: var(--e-global-color-secondary) !important;
}

/* ============================================================
   Shortcode [flavia_fecha_articulo] — fecha publicación/actualización
   Feedback cliente (2026-08-05): replica el widget de ORIGEN
   (icono + "Artículo publicado el X, Fecha de la última actualización el Y"),
   perdido en la migración a Elementor (Post Info nativo sin icono ni
   fecha de actualización).
   ============================================================ */
.flavia-fecha-articulo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1D1D1D;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3;
    margin: 20px 0;
}

.flavia-fecha-articulo__icono {
    flex-shrink: 0;
    width: 27px;
    height: 27px;
}
