/* Ion de Luz — experiencia de compra y área de alumna
   Paleta sacada de la propia web: verde #4CAE8F (títulos), menta #7ED1B8 (menú),
   naranja #FA9A2A (acentos/pie), marino #051B31 (texto fuerte), Lato. */
:root{
  --idl-verde:#4cae8f; --idl-verde-osc:#3a8f74; --idl-menta:#7ed1b8; --idl-menta-sua:#eef8f4;
  --idl-naranja:#fa9a2a; --idl-naranja-2:#fe9453; --idl-crema:#fff8f0; --idl-marino:#051b31;
  --idl-texto:#2c3440; --idl-suave:#6b7480; --idl-borde:#e7ece9; --idl-radio:14px;
  --idl-sombra:0 10px 30px rgba(5,27,49,.08);
  --lp-primary-color:var(--idl-naranja); --lp-secondary-color:var(--idl-verde);
}

/* ---------- Botón común ---------- */
.lp-button, .lp-btn-add-item-to-cart, .btn-lp-course-view-cart .lp-button,
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button,
.woocommerce a.button, .woocommerce button.button, .lp-user-profile .lp-button,
.learn-press-course-results-progress + .lp-button, #learn-press-course .lp-button{
  background:linear-gradient(135deg,var(--idl-naranja),var(--idl-naranja-2)) !important;
  color:#fff !important; border:0 !important; border-radius:999px !important;
  font-family:Lato,sans-serif !important; font-weight:700 !important; letter-spacing:.02em;
  text-transform:none !important; text-decoration:none !important;
  box-shadow:0 6px 18px rgba(250,154,42,.35); transition:transform .15s ease, box-shadow .15s ease;
}
.lp-button:hover, .lp-btn-add-item-to-cart:hover, .wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover{
  transform:translateY(-1px); box-shadow:0 10px 24px rgba(250,154,42,.45);
}
.lp-button:focus-visible, .wc-block-cart__submit-button:focus-visible,
.wc-block-components-checkout-place-order-button:focus-visible{outline:3px solid var(--idl-marino);outline-offset:3px}
.lp-button.loading{opacity:.75}

/* ---------- Ficha del curso ---------- */
.single-lp_course .learn-press-breadcrumb{font-size:14px;color:var(--idl-suave);margin:8px 0 18px}
.single-lp_course .learn-press-breadcrumb a{color:var(--idl-verde) !important}
.single-lp_course .course-detail-info{
  background:linear-gradient(120deg,rgba(5,27,49,.92) 0%,rgba(5,27,49,.78) 45%,rgba(58,143,116,.70) 100%),
             url(/wp-content/uploads/2024/11/iondeluz-curso-pensulo-background.webp) center/cover no-repeat !important;
  border-radius:var(--idl-radio); overflow:visible; padding:44px 0 40px !important;
}
.single-lp_course .course-detail-info .course-title{
  font-family:Lato,sans-serif; font-weight:700; text-transform:none !important; letter-spacing:.01em;
  font-size:clamp(28px,3.4vw,40px); line-height:1.15; color:#fff; margin:10px 0 18px;
}
.single-lp_course .course-detail-info label{color:var(--idl-menta) !important;text-transform:uppercase;letter-spacing:.08em;font-size:11px}
.single-lp_course .course-detail-info .meta-item__value div, .single-lp_course .course-detail-info a{color:#fff !important;font-weight:600}
.single-lp_course .course-meta-secondary{border-top:1px solid rgba(255,255,255,.18) !important;padding-top:16px}
.single-lp_course .course-meta-secondary .meta-item{color:#fff}
.single-lp_course .course-meta-secondary .meta-item::before{color:var(--idl-menta) !important}
.single-lp_course .meta-item-quiz{display:none !important}  /* "0 cuestionarios" no aporta */
.single-lp_course .instructor-avatar img{border:2px solid var(--idl-menta);border-radius:50%;object-fit:cover}

/* Tarjeta lateral de compra */
.single-lp_course .course-summary-sidebar .course-sidebar-preview{
  border-radius:var(--idl-radio) !important; box-shadow:var(--idl-sombra) !important; overflow:hidden;
  padding:0 0 22px !important; border:1px solid var(--idl-borde);
}
.single-lp_course .course-summary-sidebar .course-sidebar-top{background:transparent !important;box-shadow:none !important;padding:0 !important;border:0 !important}
.single-lp_course .course-sidebar-preview .media-preview{margin:0 !important;padding:0 !important;height:auto !important;overflow:hidden}
.single-lp_course .course-sidebar-preview .media-preview img{display:block;width:100%;height:auto !important;object-fit:contain;border-radius:0;max-height:none}
.single-lp_course .idl-garantias a{color:var(--idl-verde);font-weight:600;text-decoration:none}
.single-lp_course .idl-garantias a:hover{text-decoration:underline}
.single-lp_course .course-sidebar-preview .course-price{text-align:center;margin:18px 0 6px}
.single-lp_course .course-sidebar-preview .price{color:var(--idl-marino) !important;font-size:34px !important;font-weight:800 !important}
.single-lp_course .lp-course-buttons{padding:0 22px}
.single-lp_course .lp-course-buttons .lp-button{width:100%;padding:15px 20px !important;font-size:17px !important}
.single-lp_course .idl-garantias{list-style:none;margin:16px 22px 0;padding:14px 0 0;border-top:1px dashed var(--idl-borde);font-size:14px;color:var(--idl-suave)}
.single-lp_course .idl-garantias li{display:flex;gap:9px;align-items:flex-start;margin:7px 0;line-height:1.4}
.single-lp_course .idl-garantias li::before{content:"";flex:0 0 18px;height:18px;margin-top:1px;border-radius:50%;
  background:var(--idl-menta-sua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%234cae8f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}

/* Pestañas */
.single-lp_course .learn-press-nav-tabs{border-bottom:1px solid var(--idl-borde) !important}
.single-lp_course .learn-press-nav-tabs .course-nav label{color:var(--idl-suave) !important;font-weight:600}
.single-lp_course .learn-press-nav-tabs .course-nav.active label,
.single-lp_course .learn-press-nav-tabs .course-nav label:hover{color:var(--idl-verde) !important}
.single-lp_course .learn-press-nav-tabs .course-nav.active::after,
.single-lp_course .learn-press-nav-tabs .course-nav.active::before{background:var(--idl-verde) !important}
.single-lp_course .course-description{color:var(--idl-texto);line-height:1.75}
.single-lp_course .course-description iframe{border-radius:var(--idl-radio);box-shadow:var(--idl-sombra);max-width:100%}
.single-lp_course .course-description hr{background:var(--idl-borde) !important;border:0;height:1px}
.single-lp_course .course-description strong{color:var(--idl-marino)}

/* Programa / temario */
.lp-course-curriculum__title{color:var(--idl-verde) !important}
.course-curriculum .course-section{border:1px solid var(--idl-borde) !important;border-radius:var(--idl-radio) !important;overflow:hidden;margin-bottom:14px}
.course-curriculum .course-section-header{background:var(--idl-menta-sua) !important}
.course-curriculum .course-section__title, .course-curriculum .section-title{color:var(--idl-marino) !important;font-weight:700}
.course-curriculum .course-item{border-color:var(--idl-borde) !important}
.course-curriculum .course-item:hover{background:var(--idl-crema) !important}
.course-curriculum .course-item .item-name, .course-curriculum .course-item a{color:var(--idl-texto) !important}
.course-curriculum .course-item.status-completed .item-name, .course-curriculum .course-item .course-item-ico.passed{color:var(--idl-verde) !important}

/* ---------- Carrito y checkout (bloques de WooCommerce) ---------- */
.woocommerce-cart .entry-title, .woocommerce-checkout .entry-title{letter-spacing:.02em}
.woocommerce-cart .entry-header::before, .woocommerce-checkout .entry-header::before{background:var(--idl-naranja) !important}
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout{font-family:Lato,sans-serif;color:var(--idl-texto)}
.wc-block-cart-items, .wc-block-components-totals-wrapper, .wc-block-components-order-summary{border-color:var(--idl-borde) !important}
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img{border-radius:10px !important}
.wc-block-components-product-name{color:var(--idl-marino) !important;font-weight:700 !important;text-decoration:none !important}
.wc-block-components-product-name:hover{color:var(--idl-verde) !important}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label{color:var(--idl-marino);font-weight:800 !important}
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button{min-height:56px;font-size:17px !important}
.wc-block-cart__submit-button .wc-block-components-button__text{text-decoration:none !important}
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout .wc-block-components-title{color:var(--idl-verde) !important;font-weight:700 !important}
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input,
.wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea{
  border-radius:10px !important; border-color:#cfd8d3 !important; background:#fff !important;
}
.wc-block-components-text-input input:focus, .wc-blocks-components-select__select:focus,
.wc-block-components-combobox .components-combobox-control__input:focus{
  border-color:var(--idl-verde) !important; box-shadow:0 0 0 3px rgba(76,174,143,.18) !important; outline:0 !important;
}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted{
  box-shadow:inset 0 0 0 2px var(--idl-verde) !important; border-radius:12px !important;
}
.wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control__option{border-radius:12px}
.wc-block-components-radio-control__input:checked{border-color:var(--idl-verde) !important}
.wc-block-components-radio-control__input:checked::before{background:var(--idl-verde) !important}
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button{color:var(--idl-verde)}
.wc-block-components-express-payment--checkout{border-radius:var(--idl-radio) !important;border-color:var(--idl-borde) !important}
.wc-block-components-express-payment__title{color:var(--idl-suave) !important}
.wc-block-components-checkout-step__description, .wc-block-checkout__guest-checkout-notice{color:var(--idl-suave)}

/* Sello de confianza bajo el botón de pago (lo añade el mu-plugin) */
.idl-confianza{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;margin:14px 0 0;font-size:13.5px;color:var(--idl-suave)}
.idl-confianza span{display:inline-flex;align-items:center;gap:6px}
.idl-confianza svg{width:15px;height:15px;stroke:var(--idl-verde)}

/* ---------- Pedido recibido ---------- */
.idl-bienvenida{margin:10px 0 34px;padding:30px 28px;border-radius:18px;text-align:center;
  background:linear-gradient(135deg,var(--idl-menta-sua),var(--idl-crema));border:1px solid var(--idl-borde)}
.idl-bienvenida h2{color:var(--idl-verde);font-family:Lato,sans-serif;font-weight:700;font-size:clamp(24px,3vw,30px);margin:6px 0 10px}
.idl-bienvenida p{color:var(--idl-texto);max-width:560px;margin:0 auto 18px;line-height:1.6}
.idl-bienvenida .idl-icono{font-size:34px;line-height:1}
.idl-bienvenida .idl-cursos{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.idl-bienvenida .lp-button{display:inline-block;padding:14px 26px}
.idl-bienvenida small{display:block;margin-top:16px;color:var(--idl-suave)}
.woocommerce-order-received .woocommerce-thankyou-order-received{display:none}

/* ---------- Área de alumna: perfil ---------- */
.lp-user-profile{font-family:Lato,sans-serif;color:var(--idl-texto)}
.lp-user-profile #profile-sidebar, .lp-user-profile .lp-profile-left{border-radius:var(--idl-radio);border:1px solid var(--idl-borde) !important;box-shadow:var(--idl-sombra);overflow:hidden;background:#fff}
.lp-user-profile .lp-profile-cover, .lp-user-profile .lp-profile-header{background:linear-gradient(120deg,var(--idl-marino),var(--idl-verde-osc)) !important;border-radius:var(--idl-radio)}
.lp-user-profile .lp-profile-username, .lp-user-profile .lp-profile-content-area h2{color:var(--idl-marino) !important;font-weight:700}
.lp-user-profile .user-avatar img, .lp-user-profile .lp-user-cover-image_background img{border-radius:50% !important;border:3px solid #fff}
.lp-user-profile #profile-nav .lp-profile-nav-tabs > li > a{color:var(--idl-texto) !important;font-weight:600}
.lp-user-profile #profile-nav .lp-profile-nav-tabs > li.active > a,
.lp-user-profile #profile-nav .lp-profile-nav-tabs > li:hover > a{color:var(--idl-verde) !important;background:var(--idl-menta-sua) !important}
.lp-user-profile #profile-nav .lp-profile-nav-tabs > li.active > a i,
.lp-user-profile #profile-nav .lp-profile-nav-tabs > li > a i{color:var(--idl-verde) !important}
.lp-user-profile #profile-nav .lp-profile-nav-tabs > li.active{border-left:3px solid var(--idl-verde)}
.lp-user-profile .learn-press-tabs .learn-press-tabs__tab.active label a,
.lp-user-profile .learn-press-filters > li span{color:var(--idl-verde) !important}
.lp-user-profile .learn-press-tabs .learn-press-tabs__tab.active::before{background:var(--idl-verde) !important}
.lp-user-profile .learn-press-courses .course, .learn-press-courses .course-item, .lp-user-profile .lp-archive-courses .course{
  border-radius:var(--idl-radio) !important;border:1px solid var(--idl-borde) !important;overflow:hidden;box-shadow:var(--idl-sombra);background:#fff}
.lp-user-profile .course-title, .lp-user-profile .course-title a{color:var(--idl-marino) !important;font-weight:700}
.lp-user-profile .lp-course-progress .lp-progress-bar, .learn-press-progress{background:var(--idl-menta-sua) !important;border-radius:999px;overflow:hidden}
.lp-user-profile .lp-progress-value, .learn-press-progress .learn-press-progress__active{background:var(--idl-verde) !important;border-radius:999px}
.lp-user-profile .statistic-box, .lp-user-profile .dashboard-statistic__row > div{border-radius:12px !important;border:1px solid var(--idl-borde) !important;background:var(--idl-menta-sua) !important}
.lp-user-profile .statistic-box__number, .lp-user-profile .statistic-box .statistic-box__number{color:var(--idl-verde) !important}

/* ---------- Área de alumna: lección ---------- */
body.course-item-popup #popup-header{background:var(--idl-marino) !important;border-bottom:3px solid var(--idl-verde)}
body.course-item-popup #popup-header .popup-header__inner .course-title a{color:#fff !important;font-weight:700}
body.course-item-popup #popup-sidebar{background:#fbfcfb}
body.course-item-popup #popup-sidebar .course-curriculum .course-item.current{background:var(--idl-menta-sua) !important;border-left:3px solid var(--idl-verde)}
body.course-item-popup #popup-sidebar .course-curriculum .course-item.current .item-name{color:var(--idl-verde-osc) !important;font-weight:700}
body.course-item-popup #popup-content .course-item-title{color:var(--idl-marino) !important;font-family:Lato,sans-serif;font-weight:700}
body.course-item-popup #popup-content .content-item-description{color:var(--idl-texto);line-height:1.75}
body.course-item-popup #popup-content iframe{border-radius:var(--idl-radio);box-shadow:var(--idl-sombra)}
body.course-item-popup #popup-footer{border-top:1px solid var(--idl-borde) !important}
body.course-item-popup #popup-footer .course-item-nav a{color:var(--idl-verde) !important}
body.course-item-popup .items-progress .number, body.course-item-popup .learn-press-progress__active{background:var(--idl-verde) !important}
body.course-item-popup .lp-button.button-complete-item, body.course-item-popup .lp-button.button-complete-lesson{background:var(--idl-verde) !important;box-shadow:0 6px 18px rgba(76,174,143,.35)}

/* ---------- Móvil ---------- */
@media (max-width:768px){
  .single-lp_course .course-detail-info{border-radius:0;padding:30px 0 26px !important}
  .single-lp_course .course-summary-sidebar{margin-top:10px}
  .idl-bienvenida{padding:24px 18px}
}
@media (prefers-reduced-motion:reduce){ .lp-button, .wc-block-cart__submit-button{transition:none} }

/* Barra fija de compra en móvil */
.idl-barra-movil{display:none}
@media (max-width:768px){
  .idl-barra-movil{display:flex;align-items:center;justify-content:space-between;gap:14px;position:fixed;left:0;right:0;bottom:0;z-index:999;
    padding:12px 86px 12px 18px;background:rgba(255,255,255,.97);border-top:1px solid var(--idl-borde);box-shadow:0 -8px 24px rgba(5,27,49,.10);
    padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .idl-barra-movil .idl-barra-precio{font-family:Lato,sans-serif;font-weight:800;font-size:22px;color:var(--idl-marino);white-space:nowrap}
  .idl-barra-movil .idl-barra-precio *{color:inherit !important;font-size:inherit !important}
  .idl-barra-movil .lp-button{flex:1;max-width:240px;padding:13px 16px !important;font-size:16px !important;cursor:pointer}
  body.single-lp_course{padding-bottom:84px}
}
.entry .entry-content > .idl-confianza{max-width:880px !important;width:100%;margin-left:auto !important;margin-right:auto !important}

/* ---------- Ficha del curso, alumna ya matriculada ---------- */
.single-lp_course .course-sidebar-preview .info-learning{padding:4px 22px 0;font-size:14.5px;color:var(--idl-texto)}
.single-lp_course .course-sidebar-preview .lp-course-buttons{margin-top:20px}
.single-lp_course .course-progress__label{font-weight:600;color:var(--idl-marino);margin:6px 0 8px}
.single-lp_course .course-progress__label + .course-items-completed-progress-bar + .course-progress__label{display:none} /* "calificaciones de aprobación": jerga que no aporta */
.single-lp_course .course-progress__line{height:8px !important;border-radius:999px;background:var(--idl-menta-sua) !important;overflow:hidden}
.single-lp_course .course-progress__line__active{background:var(--idl-verde) !important;border-radius:999px}
.single-lp_course .info-learning .start-date{margin-top:12px;color:var(--idl-suave);font-size:13.5px}
.single-lp_course .info-learning .will-end-date{display:none} /* el acceso no caduca: "Expiry date" solo confunde */

/* ---------- Perfil: ajustes finos ---------- */
.lp-user-profile .user-avatar{border-radius:50% !important;overflow:hidden;box-shadow:var(--idl-sombra)}
.lp-user-profile .user-avatar img{border-radius:50% !important}
.lp-user-profile .lp-btn-to-edit-avatar{font-size:12px;color:var(--idl-verde) !important}
.lp-user-profile .dashboard-statistic__row .statistic-box:nth-child(n+4){display:none !important} /* aprobado/suspendido: no hay exámenes */
.lp-user-profile .statistic-box{box-shadow:none}
.lp-user-profile .statistic-box__icon{background:#fff !important;color:var(--idl-verde) !important}
.lp-user-profile .statistic-box__icon span, .lp-user-profile .statistic-box__icon i{color:var(--idl-verde) !important}
.lp-user-profile .statistic-box label{color:var(--idl-texto)}
.lp-user-profile .learn-press-filters{border-bottom:1px solid var(--idl-borde);display:flex;gap:24px;flex-wrap:wrap;padding:0;margin:26px 0 18px}
.lp-user-profile .learn-press-filters li:nth-child(n+4){display:none}
.lp-user-profile .learn-press-filters a{text-decoration:none !important;color:var(--idl-suave) !important;font-weight:600;font-size:16px;padding:0 0 10px;display:inline-block;border-bottom:2px solid transparent;cursor:pointer}
.lp-user-profile .learn-press-filters a.active{color:var(--idl-verde) !important;border-bottom-color:var(--idl-verde)}
.lp-user-profile .lp-table-wrap{border-radius:var(--idl-radio);border:1px solid var(--idl-borde);overflow-x:auto}
.lp-user-profile .lp_profile_course_progress{width:100%;border:0 !important;margin:0;font-size:15px}
.lp-user-profile .lp_profile_course_progress th{background:var(--idl-menta-sua) !important;color:var(--idl-marino);font-weight:700;white-space:nowrap;line-height:1.3;padding:12px 14px}
.lp-user-profile .lp_profile_course_progress td{padding:14px;vertical-align:middle;border-color:var(--idl-borde) !important}
.lp-user-profile .lp_profile_course_progress th:nth-child(4), .lp-user-profile .lp_profile_course_progress td:nth-child(4){display:none} /* fecha de vencimiento: no caduca */
.lp-user-profile .lp_profile_course_progress td a{color:var(--idl-marino) !important;font-weight:700;text-decoration:none !important}
.lp-user-profile .lp_profile_course_progress td a:hover{color:var(--idl-verde) !important}
.lp-user-profile .lp_profile_course_progress img{border-radius:8px}
.lp-user-profile #profile-nav{border-radius:var(--idl-radio)}

/* ---------- Lección: barra de progreso de la cabecera ---------- */
body.course-item-popup .items-progress{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
body.course-item-popup .items-progress__heading, body.course-item-popup .items-progress .number{background:transparent !important;color:#fff !important;font-size:13px;font-weight:600}
body.course-item-popup .items-progress .learn-press-progress{width:160px;height:6px !important;background:rgba(255,255,255,.18) !important;border-radius:999px;overflow:hidden}
body.course-item-popup .items-progress .learn-press-progress__active{background:var(--idl-menta) !important;border-radius:999px}
.lp-user-profile .statistic-box__icon{background:#fff !important;border-radius:50% !important;overflow:hidden}
.lp-user-profile .statistic-box__icon > *{background:transparent !important}
