/* =====================================================================
   PÁGINA DE CURSO (producto WooCommerce, plantilla "Single product V4" 13371)
   ---------------------------------------------------------------------
   Composición de la landing de la beta: columna de lectura a la izquierda
   con un titular enorme, y a la derecha UNA tarjeta de compra rosa que
   acompaña el scroll. Mismo contenido, mismos botones, mismo checkout.
   ===================================================================== */

/* ---- Dos columnas con aire ---- */
html.emp-skin .elementor-element-9f5bb04 {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--emp-gutter) var(--emp-section) !important;
}
html.emp-skin .elementor-element-9f5bb04 > .e-con-inner {
  max-width: var(--emp-wrap) !important;
  gap: clamp(3rem, 6vw, 5.5rem) !important;
  align-items: flex-start !important;
  padding: 0 !important;
}
html.emp-skin .elementor-element-787648d {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}
html.emp-skin .elementor-element-787648d > .elementor-element {
  margin: 0 !important;
}

/* Orden de lectura: antetítulo → título → bajada → accesos → video → ... */
html.emp-skin .elementor-element-3d7e504 {
  order: 0;
}
html.emp-skin .elementor-element-9150f0e {
  order: 1;
}
html.emp-skin .elementor-element-9b51162 {
  order: 2;
}
html.emp-skin .elementor-element-e8b9a44 {
  order: 3;
}
html.emp-skin .elementor-element-339093b {
  order: 4;
}
html.emp-skin .elementor-element-75738ba {
  order: 5;
}
html.emp-skin .elementor-element-295642a {
  order: 6;
}
html.emp-skin .elementor-element-9b3f2ed {
  order: 7;
}
html.emp-skin .elementor-element-4f75c4d {
  order: 8;
}
html.emp-skin .elementor-element-bd358cf {
  order: 9;
}
html.emp-skin .elementor-element-e818feb {
  order: 10;
}
html.emp-skin .elementor-element-5360675 {
  order: 11;
}
html.emp-skin .elementor-element-b098f54 {
  order: 12;
}

/* ---- Antetítulo: "Curso 100% a distancia · Empieza ahora mismo" ---- */
html.emp-skin .elementor-element-787648d > .elementor-element-9150f0e {
  margin-bottom: 1.75rem !important;
}
html.emp-skin .elementor-element-9150f0e .elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
html.emp-skin .elementor-element-9150f0e .elementor-icon-list-item {
  margin: 0 !important;
  padding: 0 !important;
}
html.emp-skin .elementor-element-9150f0e .elementor-icon-list-item::after {
  display: none !important;
}
html.emp-skin .elementor-element-9150f0e .elementor-icon-list-text {
  color: var(--emp-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}
html.emp-skin .elementor-element-9150f0e .elementor-icon-list-icon :is(i, svg) {
  color: var(--emp-brand) !important;
  fill: var(--emp-brand) !important;
  font-size: 0.8125rem !important;
}

/* ---- Titular ---- */
html.emp-skin .elementor-element-787648d > .elementor-element-9b51162 {
  margin-bottom: 1.5rem !important;
}
html.emp-skin .elementor-element-9b51162 .elementor-heading-title {
  max-width: 12em;
  color: var(--emp-ink) !important;
  font-size: clamp(2.5rem, 5.2vw, 4.75rem) !important;
  letter-spacing: -0.045em !important;
  line-height: 0.98 !important;
}

/* ---- Bajada ---- */
html.emp-skin .elementor-element-787648d > .elementor-element-e8b9a44 {
  margin-bottom: 2rem !important;
}
html.emp-skin .elementor-element-e8b9a44,
html.emp-skin .elementor-element-e8b9a44 p {
  max-width: 46ch;
  color: var(--emp-muted) !important;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem) !important;
  line-height: 1.5 !important;
}

/* ---- Accesos a los popups (temario, opiniones, medios de pago) ----
   Píldoras chicas de contorno en una fila: son accesos, no llamados a la
   acción, así que no compiten con "Comprar curso". */
html.emp-skin .elementor-element-339093b {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  padding: 0 !important;
  margin-bottom: 3rem !important;
}
html.emp-skin .elementor-element-339093b > .elementor-element {
  width: auto !important;
  margin: 0 !important;
}
html.emp-skin :is(.elementor-element-1dbd51e, .elementor-element-c0c9417, .elementor-element-6ae68bd) .elementor-button {
  background: transparent !important;
  border: 1px solid var(--emp-line) !important;
  color: var(--emp-ink) !important;
  padding: 0.75rem 1.125rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}
html.emp-skin :is(.elementor-element-1dbd51e, .elementor-element-c0c9417, .elementor-element-6ae68bd) .elementor-button:hover {
  background: var(--emp-ink) !important;
  border-color: var(--emp-ink) !important;
  color: var(--emp-white) !important;
}
html.emp-skin :is(.elementor-element-1dbd51e, .elementor-element-c0c9417, .elementor-element-6ae68bd) .elementor-button br {
  display: none;
}

/* ---- Video (imagen con play que abre el tráiler) ---- */
html.emp-skin .elementor-element-787648d > .elementor-element-75738ba {
  margin-bottom: clamp(3rem, 6vw, 4.5rem) !important;
}
/* El link que envuelve la imagen es inline-block: sin esto, el 100% de
   ancho se calcula sobre el tamaño natural (la garantía es un SVG de 300px). */
html.emp-skin :is(.elementor-element-75738ba, .elementor-element-bd358cf, .elementor-element-b31b903) a {
  display: block !important;
  width: 100% !important;
}
html.emp-skin :is(.elementor-element-75738ba, .elementor-element-bd358cf, .elementor-element-b31b903) img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
}

/* ---- Preguntas: sin caja, reglas finas, "+" que gira a "×" ---- */
html.emp-skin .elementor-element-787648d > .elementor-element-4f75c4d {
  margin-bottom: clamp(3rem, 6vw, 4.5rem) !important;
}
html.emp-skin .elementor-widget-accordion .elementor-accordion-item {
  border: 0 !important;
  border-top: 1px solid var(--emp-line) !important;
  background: none !important;
}
html.emp-skin .elementor-widget-accordion .elementor-accordion-item:first-child {
  border-top-color: var(--emp-ink) !important;
}
html.emp-skin .elementor-widget-accordion .elementor-accordion-item:last-child {
  border-bottom: 1px solid var(--emp-line) !important;
}
html.emp-skin .elementor-widget-accordion .elementor-tab-title {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: none !important;
  border: 0 !important;
  padding: 1.5rem 0 !important;
  cursor: pointer;
}
html.emp-skin .elementor-widget-accordion .elementor-accordion-icon {
  display: none !important;
}
html.emp-skin .elementor-widget-accordion .elementor-tab-title::after {
  content: '+';
  flex: none;
  color: var(--emp-ink);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s var(--emp-ease);
}
html.emp-skin .elementor-widget-accordion .elementor-tab-title.elementor-active::after {
  transform: rotate(45deg);
}
html.emp-skin .elementor-widget-accordion .elementor-tab-title :is(.elementor-accordion-title, a) {
  flex: 1;
  color: var(--emp-ink) !important;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.3 !important;
}
html.emp-skin .elementor-widget-accordion .elementor-tab-title:hover :is(.elementor-accordion-title, a) {
  color: var(--emp-brand) !important;
}
html.emp-skin .elementor-widget-accordion .elementor-tab-content {
  background: none !important;
  border: 0 !important;
  padding: 0 3rem 1.75rem 0 !important;
  color: rgba(28, 27, 26, 0.78) !important;
  font-size: 1.0625rem !important;
  line-height: 1.65 !important;
}

/* ---- Garantía ---- */
html.emp-skin .elementor-element-787648d > .elementor-element-bd358cf {
  margin-bottom: clamp(3rem, 6vw, 4.5rem) !important;
}

/* ---- Descripción larga: columna de lectura ---- */
html.emp-skin .elementor-element-e818feb {
  max-width: 64ch;
  margin-bottom: clamp(4rem, 8vw, 6rem) !important;
  color: var(--emp-ink) !important;
  font-size: 1.125rem !important;
  line-height: 1.7 !important;
}
html.emp-skin .elementor-element-e818feb :is(p, li) {
  margin: 0 0 1.1em !important;
  padding: 0 !important;
  color: rgba(28, 27, 26, 0.82) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
html.emp-skin .elementor-element-e818feb :is(strong, b) {
  color: var(--emp-ink) !important;
  font-weight: 600 !important;
}
html.emp-skin .elementor-element-e818feb :is(h2, h3, h4) {
  margin: 2.5em 0 0.75em !important;
  color: var(--emp-ink) !important;
  font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
}
html.emp-skin .elementor-element-e818feb a {
  color: var(--emp-ink) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* ---- Opiniones destacadas: grilla de tarjetas ----
   El contenedor trae 10 pares (nombre + opinión) sueltos. Una grilla de
   dos columnas ubica cada par en su columna y pinta nombre y opinión como
   las dos mitades de una misma tarjeta. */
html.emp-skin .elementor-element-787648d > .elementor-element-5360675 {
  margin-bottom: 2rem !important;
}
html.emp-skin .elementor-element-5360675 .elementor-heading-title {
  color: var(--emp-ink) !important;
  font-size: clamp(2rem, 3.6vw, 3.25rem) !important;
  letter-spacing: -0.035em !important;
  line-height: 1 !important;
}
html.emp-skin .elementor-element-b098f54 {
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
html.emp-skin .elementor-element-b098f54 > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  column-gap: 1rem;
  row-gap: 0;
  max-width: none !important;
  padding: 0 !important;
}
html.emp-skin .elementor-element-b098f54 > .e-con-inner > :is(:nth-child(4n + 1), :nth-child(4n + 2)) {
  grid-column: 1;
}
html.emp-skin .elementor-element-b098f54 > .e-con-inner > :is(:nth-child(4n + 3), :nth-child(4n + 4)) {
  grid-column: 2;
}
html.emp-skin .elementor-element-b098f54 > .e-con-inner > .elementor-widget-text-editor {
  margin: 0 !important;
  padding: 1.75rem 1.75rem 0.75rem !important;
  background: var(--emp-blush-soft);
  border-radius: 8px 8px 0 0;
  color: var(--emp-ink) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}
html.emp-skin .elementor-element-b098f54 > .e-con-inner > .elementor-widget-heading {
  margin: 0 0 1rem !important;
  padding: 0 1.75rem 1.75rem !important;
  background: var(--emp-blush-soft);
  border-radius: 0 0 8px 8px;
}
html.emp-skin .elementor-element-b098f54 .elementor-heading-title {
  color: var(--emp-ink) !important;
  font-size: 1.0625rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: -0.005em !important;
  line-height: 1.5 !important;
}
html.emp-skin .elementor-element-b098f54 img.emoji {
  width: 0.875em !important;
  height: 0.875em !important;
  margin: 0 0.05em !important;
  vertical-align: -0.05em !important;
}

/* =====================================================================
   TARJETA DE COMPRA (8986d2d)
   Elementor hacía "sticky" cada pieza por separado con offsets fijos en
   píxeles (170/220/287/350): por eso quedaban pegadas y colgando. Se
   desactiva ese sticky por pieza y la tarjeta entera acompaña el scroll
   con `position: sticky` de CSS.
   ===================================================================== */
html.emp-skin .elementor-element-8986d2d {
  flex: 0 0 360px !important;
  width: 360px !important;
  max-width: 100% !important;
  position: sticky !important;
  top: 176px; /* header (promo + menú) + 24px de aire */
  align-self: flex-start !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.875rem !important;
  padding: 2rem !important;
  background: var(--emp-blush) !important;
  border-radius: 8px !important;
}
html.emp-skin .elementor-element-8986d2d > .elementor-element {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  background: none !important;
  box-shadow: none !important;
}
html.emp-skin .elementor-element-8986d2d > .elementor-sticky__spacer {
  display: none !important;
}

/* Precio: tachado chico arriba, efectivo grande en tinta */
html.emp-skin .elementor-element-d5fbe61 .price {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  margin: 0 0 0.5rem !important;
}
html.emp-skin :is(.elementor-element-d5fbe61, .elementor-element-d4f529e) .price del,
html.emp-skin :is(.elementor-element-d5fbe61, .elementor-element-d4f529e) .price del * {
  color: var(--emp-muted) !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  opacity: 1 !important;
}
html.emp-skin :is(.elementor-element-d5fbe61, .elementor-element-d4f529e) .price ins,
html.emp-skin :is(.elementor-element-d5fbe61, .elementor-element-d4f529e) .price ins * {
  color: var(--emp-ink) !important;
  font-size: 2.75rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.045em !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
html.emp-skin .elementor-element-d4f529e .price ins,
html.emp-skin .elementor-element-d4f529e .price ins * {
  font-size: 1.5rem !important;
}

/* "Comprar curso": píldora negra a lo ancho */
html.emp-skin :is(.elementor-element-be2cd04, .elementor-element-af6750c) form.cart {
  margin: 0 !important;
}
html.emp-skin :is(.elementor-element-be2cd04, .elementor-element-af6750c) .single_add_to_cart_button {
  width: 100% !important;
  min-height: 3.5rem;
  padding: 1.125rem 1.5rem !important;
  background: var(--emp-black) !important;
  border: 1px solid var(--emp-black) !important;
  border-radius: 999px !important;
  color: var(--emp-white) !important;
  font-family: var(--emp-sans) !important;
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
html.emp-skin .elementor-element-af6750c .single_add_to_cart_button {
  width: auto !important;
  min-height: 0;
  padding: 0.9375rem 1.5rem !important;
}
html.emp-skin :is(.elementor-element-be2cd04, .elementor-element-af6750c) .single_add_to_cart_button:hover {
  background: var(--emp-brand) !important;
  border-color: var(--emp-brand) !important;
}

/* WhatsApp: contorno (acción secundaria) */
html.emp-skin :is(.elementor-element-e1d6d59, .elementor-element-9b3f2ed) .elementor-button-wrapper,
html.emp-skin :is(.elementor-element-e1d6d59, .elementor-element-9b3f2ed) .elementor-button {
  width: 100%;
}
html.emp-skin :is(.elementor-element-e1d6d59, .elementor-element-9b3f2ed) .elementor-button {
  justify-content: center;
  padding: 1rem 1.25rem !important;
  font-size: 0.9375rem !important;
  white-space: nowrap;
  background: transparent !important;
  border-color: var(--emp-ink) !important;
  color: var(--emp-ink) !important;
}
html.emp-skin :is(.elementor-element-e1d6d59, .elementor-element-9b3f2ed) .elementor-button:hover {
  background: var(--emp-ink) !important;
  color: var(--emp-white) !important;
}
html.emp-skin .elementor-element-787648d > .elementor-element-9b3f2ed {
  margin-bottom: 3rem !important;
}

/* Datos del curso */
html.emp-skin .elementor-element-4f568d3 {
  margin-top: 0.75rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid rgba(28, 27, 26, 0.12);
}
html.emp-skin :is(.elementor-element-4f568d3, .elementor-element-295642a) .elementor-icon-list-item {
  padding-block: 0.3rem !important;
}
html.emp-skin :is(.elementor-element-4f568d3, .elementor-element-295642a) .elementor-icon-list-text {
  color: var(--emp-ink) !important;
  font-size: 0.9375rem !important;
}
html.emp-skin :is(.elementor-element-4f568d3, .elementor-element-295642a) .elementor-icon-list-icon :is(i, svg) {
  color: rgba(28, 27, 26, 0.55) !important;
  fill: rgba(28, 27, 26, 0.55) !important;
}
html.emp-skin .elementor-element-787648d > .elementor-element-295642a {
  margin-bottom: 1.25rem !important;
}

/* ---- Barra fija de compra en el celular ---- */
html.emp-skin .elementor-element-d7e7e25 {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid var(--emp-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

/* =====================================================================
   POPUPS de la página de curso (temario, opiniones, medios de pago,
   satisfacción garantizada)
   ===================================================================== */
html.emp-skin .elementor-popup-modal .dialog-widget-content {
  border-radius: 8px !important;
  box-shadow: none !important;
}
html.emp-skin .elementor-popup-modal .dialog-close-button {
  color: var(--emp-ink) !important;
}
html.emp-skin
  :is(
    .elementor-element-de4c890,
    .elementor-element-4155502,
    .elementor-element-6fbffda,
    .elementor-element-fe7f562
  )
  .elementor-button {
  background: transparent !important;
  border-color: var(--emp-ink) !important;
  color: var(--emp-ink) !important;
}
html.emp-skin
  :is(
    .elementor-element-de4c890,
    .elementor-element-4155502,
    .elementor-element-6fbffda,
    .elementor-element-fe7f562
  )
  .elementor-button:hover {
  background: var(--emp-ink) !important;
  color: var(--emp-white) !important;
}
html.emp-skin :is(.elementor-element-82880df, .elementor-element-dd0e9fc, .elementor-element-ea241f9) .elementor-heading-title {
  color: var(--emp-ink) !important;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem) !important;
  letter-spacing: -0.035em !important;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  html.emp-skin .elementor-element-8986d2d {
    flex-basis: 320px !important;
    width: 320px !important;
    padding: 1.5rem !important;
  }
}
@media (max-width: 767px) {
  html.emp-skin .elementor-element-9f5bb04 {
    padding-top: 2rem !important;
  }
  html.emp-skin .elementor-element-9b51162 .elementor-heading-title {
    font-size: clamp(2.25rem, 10vw, 2.75rem) !important;
  }
  html.emp-skin .elementor-element-e818feb {
    font-size: 1.0625rem !important;
  }
}
