/* 
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
*/

/* ============================================
   Worklift Cursos - Estilos de shortcodes ACF
   ============================================ */

/* Variables base (ajusta al brand) */
:root {
    --wl-orange: #FF5A1F;
    --wl-orange-soft: #FFF4ED;
    --wl-text: #1F2937;
    --wl-text-soft: #6B7280;
    --wl-border: #E5E7EB;
}

/* === [curso_incluye] === */
.curso-incluye-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.curso-incluye-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--wl-text);
    font-size: 15px;
    line-height: 1.5;
}

.curso-incluye-icon {
    color: var(--wl-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

/* === [curso_objetivos] === */
.curso-objetivos-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

.curso-objetivo-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--wl-text);
    font-size: 15px;
    line-height: 1.5;
}

.curso-objetivo-icon {
    color: var(--wl-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .curso-objetivos-grid {
        grid-template-columns: 1fr;
    }
}

/* === [curso_requisitos] === */
.curso-requisitos-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.curso-requisito-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--wl-text);
    font-size: 15px;
    line-height: 1.5;
}

.curso-requisito-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--wl-orange);
    flex-shrink: 0;
}

/* === [curso_modulos] === */
.curso-modulos-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.curso-modulo {
    border: 1px solid var(--wl-border);
    border-radius: 12px;
    padding: 20px 24px;
    background: #fff;
    transition: all .2s ease;
}

.curso-modulo:hover {
    border-color: var(--wl-orange);
    box-shadow: 0 4px 16px rgba(255, 90, 31, .08);
}

.curso-modulo-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.curso-modulo-numero {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--wl-orange);
    background: var(--wl-orange-soft);
    padding: 4px 10px;
    border-radius: 999px;
}

.curso-modulo-titulo {
    font-size: 18px;
    font-weight: 600;
    color: var(--wl-text);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.curso-modulo-duracion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--wl-text-soft);
}

.curso-modulo-descripcion {
    color: var(--wl-text-soft);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
}

.curso-modulo-descripcion p {
    margin: 0 0 8px 0;
}

.curso-modulo-descripcion p:last-child {
    margin-bottom: 0;
}

/* === [curso_horario_meta] === */
.curso-horarios-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.curso-horarios-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--wl-text);
    line-height: 1.5;
}

.curso-horarios-list li::before {
    content: "•";
    color: var(--wl-orange);
    font-weight: bold;
    flex-shrink: 0;
}

.curso-horarios-list strong {
    font-weight: 600;
}

/* style.css del child theme */

/* Card: ocupar altura completa del slide */
.wl-product-card {
  height: 100%;
}

/* Body de la card: flex column para anclar elementos */
.wl-product-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Título: siempre 2 líneas */
.wl-product-card .elementor-widget-theme-post-title h4 {
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Divisor: anclar al fondo (empuja el bloque precio/botón hacia abajo) */
.wl-product-card .e-divider-base {
  margin-top: auto;
}

/* Igualar altura de slides */
.elementor-widget-loop-carousel .swiper-slide {
  height: auto;
}
.elementor-widget-loop-carousel .swiper-slide > .elementor-element {
  height: 100%;
}

/* ============================================
   PRODUCT CARD - HOVER EFFECT
   ============================================ */

.wl-product-card {
  /* Transición fluida con cubic-bezier profesional */
  transition: 
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  cursor: pointer;
}

.wl-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 82, 0, 0.4) !important; /* Tu naranja de marca */
  box-shadow: 
    0 12px 30px rgba(225, 82, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Sutil zoom de la imagen en hover */
.wl-product-card .elementor-widget-theme-post-featured-image img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.wl-product-card:hover .elementor-widget-theme-post-featured-image img {
  transform: scale(1.05);
  opacity: 1 !important; /* Sobreescribe el opacity: 0.85 actual */
}

/* Contenedor de imagen con overflow hidden para que el zoom no se salga */
.wl-product-card .elementor-widget-theme-post-featured-image {
  overflow: hidden;
  border-radius: 10px 10px 0 0; /* Mantiene tu border-radius actual */
}

/* El título cambia de color en hover (opcional pero pro) */
.wl-product-card .elementor-widget-theme-post-title h4 a {
  transition: color 0.3s ease;
}

.wl-product-card:hover .elementor-widget-theme-post-title h4 a {
  color: var(--e-global-color-primary); /* Tu naranja */
}

/* === Toast carrito WooCommerce — v2 === */
.woocommerce-notices-wrapper {
  position: fixed;
  top: 90px;
  right: 20px;
  left: auto;
  z-index: 9999;
  max-width: 380px;
  width: calc(100% - 40px);
  margin: 0;
  pointer-events: none;
}

.woocommerce-notices-wrapper .woocommerce-message {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  color: #161616;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
  padding: 18px 18px 18px 16px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .35s cubic-bezier(.16,1,.3,1),
              transform .35s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}

.woocommerce-notices-wrapper .woocommerce-message.wl-toast-show {
  opacity: 1;
  transform: translateX(0);
}

/* Quitar check nativo de WC */
.woocommerce-notices-wrapper .woocommerce-message::before {
  display: none;
}

/* Ícono de éxito (círculo con check) */
.wl-toast-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FF5A1F;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.wl-toast-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

/* Contenido de texto */
.wl-toast-body {
  flex: 1 1 auto;
  padding-right: 8px;
}
.wl-toast-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #161616;
  margin-bottom: 2px;
}
.wl-toast-body .wl-toast-text {
  color: #555;
  font-size: 14px;
}

/* Botón Ver carrito */
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward {
  display: inline-block;
  margin-top: 12px;
  background: #FF5A1F;
  color: #fff;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward:hover {
  background: #E04A0F;
}

/* Botón cerrar (X) — neutro, no compite */
.wl-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #bbb;
  cursor: pointer;
  padding: 2px;
  transition: color .2s ease;
}
.wl-toast-close:hover { color: #161616; }

/* Barra de progreso de auto-cierre */
.wl-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #FF5A1F;
  transform-origin: left;
  animation: wlToastProgress 4s linear forwards;
}
@keyframes wlToastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
  .woocommerce-notices-wrapper { top: 80px; right: 10px; left: 10px; max-width: none; }
}