/*
Theme Name: Oferfarma
Theme URI: https://tkanalytics.es/
Template: hello-elementor
Author: TK Analytics
Author URI: https://tkanalytics.es/
Description: Este es un tema hijo de Hello Elementor.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 1.0.0.1786087294
Updated: 2026-08-07 07:21:34

*/

.my-account-icon:hover svg path,
.cart-icon:hover svg path {
	fill: #FFFFFF;
}

.slide-promo .logo-o-on,
.slide-promo .logo-o-on img {
  opacity: 0;
  transition: opacity .35s ease-in-out !important;
}

.slide-promo:hover .logo-o-on,
.slide-promo:hover .logo-o-on img {
  opacity: 1;
}

.slide-promo .logo-o-on {
  pointer-events: none;
}

/* Banner de ofertas del inicio: flecha gris → azul al hover.
   Si se añade una segunda imagen con la clase banner-oferta-on, también se cruza. */
.banner-oferta,
.elementor-element-ebe4552,
.e-con-inner:has(> .e-con img[src*="banner_oferta_home"]):has(> .e-con img[src*="arrow_oferta"]) {
  cursor: pointer;
}

.banner-oferta img[src*="arrow_oferta"],
.elementor-element-ebe4552 img[src*="arrow_oferta"],
.e-con-inner:has(> .e-con img[src*="banner_oferta_home"]) img[src*="arrow_oferta"] {
  transition: transform .3s ease;
}

.banner-oferta:hover img[src*="arrow_oferta"],
.banner-oferta:focus-within img[src*="arrow_oferta"],
.elementor-element-ebe4552:hover img[src*="arrow_oferta"],
.elementor-element-ebe4552:focus-within img[src*="arrow_oferta"],
.e-con-inner:has(> .e-con img[src*="banner_oferta_home"]):hover img[src*="arrow_oferta"],
.e-con-inner:has(> .e-con img[src*="banner_oferta_home"]):focus-within img[src*="arrow_oferta"] {
  filter: brightness(0) saturate(100%) invert(78%) sepia(48%) saturate(464%) hue-rotate(121deg) brightness(95%) contrast(91%);
  transform: translateX(8px);
}

.banner-oferta .banner-oferta-on,
.banner-oferta .banner-oferta-on img {
  opacity: 0;
  transition: opacity .35s ease-in-out;
  pointer-events: none;
}

.banner-oferta:hover .banner-oferta-on,
.banner-oferta:hover .banner-oferta-on img {
  opacity: 1;
}

.card-producto .zona-imagen {
  background-color: transparent;
  transition: background-color .35s ease-in-out;
}

/* Elementor no saca size/position en el CSS del loop si la imagen es dinámica.
   Sin contain, el fondo se pinta a tamaño real y se ve recortado hasta recargar. */
.card-producto .product-image-background-container {
  width: 100%;
  min-height: 160px;
  height: 160px;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.card-producto .product-image-background-container .of-product-bg {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  pointer-events: none;
}

.card-producto .product-image-background-container:has(.of-product-bg) {
  background-image: none !important;
}

.card-producto:hover .zona-imagen,
.card-producto:focus-within .zona-imagen {
  background-color: var(--cat-color, #f5d98a);
}

.oferfarma-producto-pie {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 96px;
  padding: 10px 14px;
  overflow: hidden;
  isolation: isolate;
  border-bottom-left-radius: var(--card-radius, 16px);
  border-bottom-right-radius: var(--card-radius, 16px);
}

.oferfarma-producto-pie .circulo-promo {
  position: absolute;
  z-index: 0;
  bottom: calc(var(--circle-size, 170px) * -.74);
  left: -18px;
  display: block;
  width: var(--circle-size, 170px);
  height: var(--circle-size, 170px);
  border-radius: 50%;
  background-color: var(--cat-color, #f5d98a);
  pointer-events: none;
  transition: transform .35s ease-in-out;
}

.card-producto:hover .oferfarma-producto-pie .circulo-promo,
.card-producto:focus-within .oferfarma-producto-pie .circulo-promo {
  transform: translateY(-20px);
}

.oferfarma-precio {
  position: relative;
  z-index: 1;
  color: #1c4056;
  font-family: "Kanit", sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.oferfarma-precio.tiene-oferta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.oferfarma-precio.tiene-oferta del {
  color: #b7b7b7;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  opacity: 1;
}

.oferfarma-precio.tiene-oferta ins {
  color: #1c4056;
  font-size: 50px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.oferfarma-precio.sin-oferta {
  color: #1c4056;
  font-size: 50px;
  font-style: italic;
  font-weight: 800;
}

.oferfarma-precio.sin-oferta .woocommerce-Price-currencySymbol,
.oferfarma-precio.tiene-oferta ins .woocommerce-Price-currencySymbol {
  font-size: .5em;
  font-weight: 700;
  vertical-align: .8em;
}

.oferfarma-precio.tiene-oferta del .woocommerce-Price-currencySymbol {
  font-size: 1em;
  font-weight: 400;
  vertical-align: baseline;
}

.oferfarma-producto-pie .btn-carrito {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #1c4056 !important;
  color: #fff !important;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s ease-in-out;
}

.card-producto:hover .oferfarma-producto-pie .btn-carrito,
.card-producto:focus-within .oferfarma-producto-pie .btn-carrito {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.oferfarma-producto-pie .btn-carrito:hover {
  background: #102f42 !important;
}

.oferfarma-producto-pie .added_to_cart {
  display: none !important;
}

.oferfarma-producto-pie .btn-carrito.added::after {
  content: none !important;
}

.oferfarma-producto-pie .btn-carrito__icono {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
  .oferfarma-precio.tiene-oferta ins,
  .oferfarma-precio.sin-oferta {
    font-size: 34px;
  }

  .oferfarma-producto-pie {
    min-height: 80px;
  }

  .oferfarma-producto-pie .circulo-promo,
  .oferfarma-producto-pie .btn-carrito {
    transition: none;
  }

  .oferfarma-producto-pie .btn-carrito {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .card-producto:hover .oferfarma-producto-pie .circulo-promo,
  .card-producto:focus-within .oferfarma-producto-pie .circulo-promo,
  .card-producto:hover .oferfarma-producto-pie .btn-carrito,
  .card-producto:focus-within .oferfarma-producto-pie .btn-carrito {
    transform: none;
  }
}

.elementor-widget-n-carousel.elementor-pagination-position-outside:not(:has(>.elementor-widget-container))>.swiper {
	padding-bottom: 0 !important;
}

.oferfarma-video-card {
  --video-card-color: var(--cat-color, #67d4c5);
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: clamp(14px, 1.6vw, 24px);
  background: var(--video-card-color);
  font-family: "Kanit", sans-serif;
  isolation: isolate;
}

.oferfarma-video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e9f0ef;
  cursor: pointer;
}

.oferfarma-video-card__poster {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  transition: transform .45s ease;
}

.oferfarma-video-card:hover .oferfarma-video-card__poster,
.oferfarma-video-card:focus-within .oferfarma-video-card__poster {
  transform: scale(1.035);
}

.oferfarma-video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 42%);
  pointer-events: none;
}

.oferfarma-video-card__play {
  position: absolute;
  z-index: 2;
  top: 45%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(40px, 25cqw, 118px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(1px);
  transition: background-color .25s ease, transform .25s ease;
}

.oferfarma-video-card__play span {
  width: 0;
  height: 0;
  margin-left: 8%;
  border-top: clamp(7px, 4.4cqw, 21px) solid transparent;
  border-bottom: clamp(7px, 4.4cqw, 21px) solid transparent;
  border-left: clamp(11px, 6.8cqw, 32px) solid #fff;
}

.oferfarma-video-card__media:hover .oferfarma-video-card__play,
.oferfarma-video-card__media:focus-visible .oferfarma-video-card__play {
  background: rgba(255,255,255,.42);
  transform: translate(-50%, -50%) scale(1.08);
}

.oferfarma-video-card__pie {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4cqw;
  height: 32cqw;
  padding: 5cqw 7cqw;
  overflow: hidden;
  background: var(--video-card-color);
}

/* Círculo decorativo del mockup: asoma por la esquina inferior derecha */
.oferfarma-video-card__pie::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -4cqw;
  bottom: -38cqw;
  width: 52cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  pointer-events: none;
}

.oferfarma-video-card__titulo {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  margin: 0;
  color: #1c4056;
  font-family: "Paralucent Stencil", "Kanit", sans-serif;
  font-size: clamp(12px, 6cqw, 30px);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.oferfarma-video-card__precio {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: .1em;
  /* Reserva la línea del precio tachado para no descuadrar las tarjetas */
  min-height: 1.6em;
  color: #1c4056;
  font-size: clamp(20px, 11cqw, 56px);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.oferfarma-video-card__precio del {
  color: #fff;
  font-size: .45em;
  font-style: normal;
  font-weight: 600;
  opacity: 1;
}

.oferfarma-video-card__precio ins {
  color: inherit;
  text-decoration: none;
}

/* El euro del precio grande va pequeño y elevado */
.oferfarma-video-card__precio .woocommerce-Price-currencySymbol {
  font-size: .5em;
  font-weight: 700;
  vertical-align: .75em;
}

.oferfarma-video-card__precio del .woocommerce-Price-currencySymbol {
  font-size: 1em;
  vertical-align: baseline;
}

.oferfarma-video-card__aviso {
  padding: 16px;
  border: 1px dashed #b7b7b7;
  border-radius: 8px;
  color: #6b6b6b;
  font-size: 14px;
}

/* Sin precio el título queda centrado, como en el mockup */
.oferfarma-video-card__precio:empty {
  display: none;
}

/* Carrusel de vídeos: deslizamiento continuo tipo cinta, sin tirones entre
   slides. Requiere la clase carrusel-videos en el widget, con reproducción
   automática, velocidad de desplazamiento 1 ms y transición de 5000 ms. */
.carrusel-videos .swiper-wrapper {
  transition-timing-function: linear !important;
}

.carrusel-videos,
.elementor-widget-loop-carousel:has(.oferfarma-video-card) {
  --carrusel-fade: 180px;
}

.carrusel-videos :is(.swiper, .swiper-container, .elementor-loop-container),
.elementor-widget-loop-carousel:has(.oferfarma-video-card) :is(.swiper, .swiper-container, .elementor-loop-container) {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--carrusel-fade),
    #000 calc(100% - var(--carrusel-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--carrusel-fade),
    #000 calc(100% - var(--carrusel-fade)),
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.wpforms-container-full input[type=tel], 
.wpforms-container-full input[type=text],
.wpforms-container-full input[type=email],
.wpforms-container .wpforms-form textarea {
  border-radius: 12px !important;
  background: #f6f6f6 !important;
}

.wpforms-container .wpforms-form .wpforms-field-label {
  font-size: 14px !important;
  font-family: 'Kanit' !important;
  font-weight: 500 !important;
  margin-bottom: 10px !important;
}

.wpforms-container .wpforms-form .wpforms-field-label-inline {
  color: #1c4056 !important;
  font-family: "Kanit", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.wpforms-container .wpforms-form .wpforms-field-label-inline a {
  color: #26bfb8 !important;
}

.wpforms-container .wpforms-form input::placeholder,
.wpforms-container .wpforms-form textarea::placeholder {
  font-family: "Kanit", sans-serif;
}

button#wpforms-submit-646 {
  border: 2px solid #2FD4CC;
  padding: 15px 24px;
  height: auto;
  font-family: 'Kanit';
  font-weight: 500;
  font-size: 16px;
}

/* Buscador del header: pastilla con brillo, mientras llega Doofinder IA. */
.oferfarma-buscador {
  position: relative;
  overflow: visible;
}

.oferfarma-buscador::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e59af0 0%, #c9b6f6 40%, #8ed3f8 70%, #6ec8f4 100%);
  filter: blur(18px);
  opacity: .62;
  pointer-events: none;
  transition: opacity .25s ease;
}

.oferfarma-buscador:focus-within::before {
  opacity: .72;
}

.oferfarma-buscador .e-search {
  position: relative;
  z-index: 1;
}

.oferfarma-buscador .e-search-form {
  align-items: center;
  min-height: 52px;
  padding: 0 16px 0 6px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 64, 86, .04);
}

.oferfarma-buscador .e-search-label {
  width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.oferfarma-buscador .e-search-submit {
  order: -1;
  flex: 0 0 44px;
  display: grid !important;
  place-items: center;
  width: 44px !important;
  min-width: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
}

.oferfarma-buscador .e-search-submit span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.oferfarma-buscador .e-search-submit::before {
  content: "";
  width: 20px;
  height: 20px;
  background: #26bfb8;
  transition: background-color .2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16.5 16.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16.5 16.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

.oferfarma-buscador .e-search-submit:hover::before,
.oferfarma-buscador .e-search-submit:focus::before {
  background: #1c4056;
}

.oferfarma-buscador .e-search-input-wrapper {
  min-width: 0;
}

.oferfarma-buscador .e-search-input {
  min-height: 52px;
  padding-block: 0;
  padding-inline-start: 2px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1c4056;
  font-family: "Kanit", sans-serif;
  font-size: 15px;
  font-weight: 400;
}

.oferfarma-buscador .e-search-input::placeholder {
  color: #8a97a3;
  font-family: "Kanit", sans-serif;
}

.elementor-location-header .elementor-element-9f4007d,
.elementor-location-header .oferfarma-buscador {
  overflow: visible;
}


@supports not (width: 1cqw) {
  .oferfarma-video-card__play {
    width: 76px;
  }

  .oferfarma-video-card__pie {
    gap: 14px;
    height: 120px;
    padding: 18px 24px;
  }

  .oferfarma-video-card__pie::after {
    right: -15px;
    bottom: -142px;
    width: 195px;
  }

  .oferfarma-video-card__titulo {
    font-size: 20px;
  }

  .oferfarma-video-card__precio {
    font-size: 38px;
  }
}
