/* =========================================================
   EMM – Casos de éxito (vídeo + cita)
   Requiere:
   - Grupo padre con clase: .emm-casos-exito
   ========================================================= */

body.page-id-9595 .entry-content .emm-casos-exito{
  position: relative;
  margin: clamp(34px, 5vw, 64px) auto;
  padding: clamp(44px, 6vw, 84px) clamp(18px, 4vw, 44px);
  border-radius: 26px;
  overflow: hidden;
  background: #fff; /* base */
}

/* Fondo con imagen muy suave + velo blanco */
body.page-id-9595 .entry-content .emm-casos-exito::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://elmonomigrador.com/wp-content/uploads/2026/02/Diseno-sin-titulo-16.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .18;                 /* suavidad del fondo */
  filter: saturate(.9) blur(.2px);
  transform: scale(1.02);
  pointer-events: none;
}

body.page-id-9595 .entry-content .emm-casos-exito::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.78);  /* velo para legibilidad */
  pointer-events: none;
}

body.page-id-9595 .entry-content .emm-casos-exito > *{
  position: relative;
  z-index: 1;
}

/* Tipografía / títulos */
body.page-id-9595 .entry-content .emm-casos-exito h2{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(30px, 3.3vw, 44px);
  text-align: center;
  margin: 0 0 22px 0;
  color: #0f172a;
}

/* Si tienes un párrafo debajo del H2 (opcional) */
body.page-id-9595 .entry-content .emm-casos-exito > p{
  font-family: "Source Sans 3", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
  text-align: center;
  margin: -10px auto 30px auto;
  max-width: 80ch;
  color: rgba(15, 23, 42, .78);
}

/* --- Layout: que sea “grid” aunque uses Columns --- */
/* Esto hace que, si añades más columnas/casos, se adapten solos */
body.page-id-9595 .entry-content .emm-casos-exito .wp-block-columns{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 2vw, 26px);
  align-items: start;
  margin: 0;
}

/* Cada columna como tarjeta */
body.page-id-9595 .entry-content .emm-casos-exito .wp-block-column{
  background: rgba(255,255,255,.88);
  border-radius: 22px;
  padding: 14px 14px 18px 14px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, .10);
  border: 1px solid rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

body.page-id-9595 .entry-content .emm-casos-exito .wp-block-column:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(2, 6, 23, .14);
}

/* --- Vídeo YouTube (embed) --- */
body.page-id-9595 .entry-content .emm-casos-exito .wp-block-embed{
  margin: 0 0 14px 0;
}

body.page-id-9595 .entry-content .emm-casos-exito .wp-block-embed__wrapper{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(2, 6, 23, .12);
  background: #fff;
}

/* Asegurar que el iframe respete el redondeo */
body.page-id-9595 .entry-content .emm-casos-exito .wp-block-embed iframe{
  border: 0 !important;
  border-radius: 18px;
}

/* --- Cita / testimonio --- */
body.page-id-9595 .entry-content .emm-casos-exito blockquote,
body.page-id-9595 .entry-content .emm-casos-exito .wp-block-quote{
  margin: 12px 0 0 0;
  padding: 14px 14px 14px 16px;
  border-left: 4px solid rgba(245, 158, 11, .95);
  background: rgba(255,255,255,.65);
  border-radius: 14px;
}

body.page-id-9595 .entry-content .emm-casos-exito blockquote p,
body.page-id-9595 .entry-content .emm-casos-exito .wp-block-quote p{
  font-family: "Source Sans 3", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  color: rgba(15, 23, 42, .86)
  
  /* =========================================================
   EMM – Valoraciones método (bloque WooCommerce / Gutenberg)
   Clase adicional del bloque:
   .emm-casos-exito-valoraciones-metodo
   ========================================================= */

body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo{
  margin-top: clamp(18px, 2.4vw, 28px);
}

/* Lista principal -> grid */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo ol,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo ul{
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

/* Cada valoración como tarjeta */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo li{
  margin: 0 !important;
  padding: clamp(20px, 2vw, 24px);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, .10);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo li:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(2, 6, 23, .14);
}

/* Reset de separadores raros */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo li::marker{
  content: "";
}

/* Cabecera de la review */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__info,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__info,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .review-info{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

/* Estrellas */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__rating,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__rating,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .star-rating{
  margin: 0 0 6px 0 !important;
  color: #f5b301 !important;
  font-size: 18px;
  line-height: 1;
}

/* Nombre del producto / formación */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__product,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__product,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__product a,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__product a{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: #d9a300 !important;
  text-decoration: none;
  margin: 0;
}

/* Autor + fecha */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__meta,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__meta,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .review-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: "Source Sans 3", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(15, 23, 42, .72);
  margin: 0;
}

body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__author,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__author{
  font-weight: 700;
  color: #0f172a;
}

/* Contenido de la review */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__text,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__text,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__review,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__review,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .review-content{
  margin-top: 8px;
  font-family: "Source Sans 3", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(15, 23, 42, .88);
}

/* Párrafos internos */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo p{
  margin: 0 0 10px 0;
}

body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo p:last-child{
  margin-bottom: 0;
}

/* Avatar / imagen */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__image,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__image,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .reviewer-image{
  margin: 0 0 14px 0 !important;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(2, 6, 23, .14);
  border: 2px solid rgba(255,255,255,.9);
  background: #fff;
}

body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__image img,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__image img,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .reviewer-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cuando imagen + texto vayan en horizontal */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__item,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .review-item{
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
}

/* Título de la review si el bloque lo saca */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo h3,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo h4{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 6px 0 12px 0;
}

/* Botón load more / paginación */
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-button,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wp-element-button,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo button{
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(2, 6, 23, .08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-button:hover,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wp-element-button:hover,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo button:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, .12);
  background: #fffdf7;
}

/* Si quieres ocultar el nombre del producto porque todas son del método, activa esto */
/*
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__product,
body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__product{
  display: none !important;
}
*/

/* Ajustes responsive */
@media (max-width: 767px){
  body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo ol,
  body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo ul{
    grid-template-columns: 1fr;
  }

  body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo li{
    padding: 18px;
    border-radius: 18px;
  }

  body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-review-list-item__text,
  body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .wc-block-components-review-list-item__text,
  body.page-id-9595 .entry-content .emm-casos-exito-valoraciones-metodo .review-content{
    font-size: 17px;
    line-height: 1.6;
  }
}