/* === Producto individual AK === */

/* Fondo + tipografía base en single product */
.single-product .site-main,
.single-product .woocommerce {
  background: var(--ak-bg);
  color: var(--ak-text);
}

/* Contenedor del producto (imagen + resumen) */
.single-product .product {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}

/* Galería/imagen principal */
.woocommerce div.product div.images,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--ak-panel);
  border: 1px solid var(--ak-stroke);
}
.woocommerce div.product div.images img {
  display:block;
  width:100%;
  height:auto;
  object-fit: cover;
}

/* Panel de la derecha (summary) */
.woocommerce div.product div.summary {
  background: var(--ak-panel);
  border: 1px solid var(--ak-stroke);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}

/* Título, precio y meta */
.woocommerce div.product .product_title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ak-text);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 14px;
}
.woocommerce div.product .product_meta,
.woocommerce div.product .product_meta a {
  color: var(--ak-text-2);
}
.woocommerce div.product .product_meta a:hover { color: var(--ak-blue-2); }

/* Cantidad + botón agregar al carrito */
.woocommerce div.product form.cart .quantity .qty {
  background: var(--ak-panel-2);
  border: 1px solid var(--ak-stroke);
  color: var(--ak-text);
  border-radius: 12px;
  padding: 10px 12px;
  width: 88px;
  box-shadow: none;
  margin-right: 8px;
}
.woocommerce div.product form.cart .button {
  background: var(--ak-blue);
  color:#fff;
  border:none;
  border-radius:12px;
  padding:12px 16px;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow:0 10px 24px rgba(0,54,255,.25);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.woocommerce div.product form.cart .button:hover {
  background: var(--ak-blue-2);
  transform: translateY(-1px);
  box-shadow:0 16px 32px rgba(0,54,255,.35);
}

/* Breadcrumbs y enlaces */
.woocommerce-breadcrumb {
  color: var(--ak-text-2);
  margin-bottom: 14px;
}
.woocommerce-breadcrumb a {
  color: var(--ak-text-2);
  text-decoration: none;
}
.woocommerce-breadcrumb a:hover { color: var(--ak-blue-2); }

/* Tabs (Descripción, Info adicional, Reseñas) */
.woocommerce div.product .woocommerce-tabs {
  background: var(--ak-panel);
  border: 1px solid var(--ak-stroke);
  border-radius: 16px;
  margin-top: 26px;
  overflow: hidden;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--ak-stroke);
  padding: 0 16px;
  margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  display: inline-block;
  margin: 0 12px 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display:inline-block;
  padding: 12px 8px;
  color: var(--ak-text-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--ak-text);
  border-bottom-color: var(--ak-blue);
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding: 16px 20px 20px;
  color: var(--ak-text);
}

/* Productos relacionados / upsells */
.woocommerce .related,
.woocommerce .upsells {
  margin-top: 34px;
}
.woocommerce .related h2,
.woocommerce .upsells h2 {
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--ak-text);
  border-bottom: 1px solid var(--ak-stroke);
  padding-bottom: 8px;
}
.woocommerce ul.products li.product a img {
  border-radius: 14px;
}
.woocommerce ul.products li.product .price { color: #fff; }

/* Mensajes */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error {
  border-radius:12px;
}

/* Responsive: apilar columnas */
@media (max-width: 992px){
  .single-product .product {
    grid-template-columns: 1fr;
  }
  .woocommerce div.product div.summary { margin-top: 8px; }
}

/* === Fix layout + fondo en producto (Astra + Woo) === */

/* Fondo oscuro en wrappers de Astra */
.single-product .site,
.single-product .site-content,
.single-product .content-area,
.single-product .site-main,
.single-product .ast-container,
.single-product .entry-content {
  background: var(--ak-bg) !important;
}

/* Quita floats/anchos heredados que rompen el grid */
.single-product .product div.images,
.single-product .product div.summary {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Forzar layout de 2 columnas limpio (img izquierda, summary derecha) */
.single-product .product {
  display: grid !important;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}

/* Tarjetas: imagen y summary con el skin oscuro que ya definimos */
.single-product .product div.images,
.single-product .product div.summary {
  background: var(--ak-panel);
  border: 1px solid var(--ak-stroke);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}

/* Galería: imagen responsiva y sin saltos raros */
.single-product .product div.images .woocommerce-product-gallery__wrapper,
.single-product .product div.images .woocommerce-product-gallery__image {
  border-radius: 12px;
  overflow: hidden;
}
.single-product .product div.images img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Tabs bajo el producto: mismo ancho y estilo */
.single-product .woocommerce-tabs {
  background: var(--ak-panel);
  border: 1px solid var(--ak-stroke);
  border-radius: 16px;
  margin-top: 26px;
  overflow: hidden;
}

/* Breadcrumbs y meta (opcional, por consistencia) */
.single-product .woocommerce-breadcrumb { color: var(--ak-text-2); }
.single-product .woocommerce-breadcrumb a { color: var(--ak-text-2); }
.single-product .woocommerce-breadcrumb a:hover { color: var(--ak-blue-2); }
.single-product .product .product_meta,
.single-product .product .product_meta a { color: var(--ak-text-2); }

/* Responsive: apilar en 1 columna */
@media (max-width: 992px){
  .single-product .product {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .single-product .product div.summary { margin-top: 8px; }
}
/* — Producto: poner la descripción debajo del bloque completo — */
.single-product .product {
  display: grid !important;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}

/* Asegura que imagen y summary se queden en sus columnas */
.single-product .product div.images { grid-column: 1; }
.single-product .product div.summary { grid-column: 2; }

/* Que los tabs (Descripción, Valoraciones) se estiren a todo el ancho y queden abajo */
.single-product .product .woocommerce-tabs {
  grid-column: 1 / -1 !important;   /* ocupa ambas columnas */
  margin-top: 26px;
}

/* Por si el tema saca los tabs fuera de .product, que sigan al 100% */
.single-product .woocommerce-tabs {
  width: 100%;
  max-width: 100%;
}

/* Reducir proporción de la imagen en el layout */
.single-product .product {
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr; /* menos espacio para la imagen */
  gap: 34px;
  align-items: start;
}

/* Limitar la altura máxima de la imagen principal */
.single-product .product div.images {
  max-height: 500px; /* ajusta este valor según tu gusto */
  overflow: hidden;
}

.single-product .product div.images img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* mantiene proporción sin cortar */
}
/* ===== Single product: fixes para móvil ===== */
@media (max-width: 768px){

  /* 1) Un sola columna y orden correcto: imagen → summary → tabs */
  .single-product .product{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start;
  }
  .single-product .product div.images{ 
    order: 1; 
    grid-column: 1 !important;
    margin: 0 !important;
  }
  .single-product .product div.summary{ 
    order: 2; 
    grid-column: 1 !important;
    margin: 0 !important;
  }
  .single-product .product .woocommerce-tabs{
    order: 3; 
    grid-column: 1 !important;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
  }

  /* 2) Imagen: tamaño razonable y sin desbordes */
  .single-product .product div.images{
    max-height: 320px;           /* ajusta si quieres 280–360 */
    overflow: hidden;
    padding: 12px;                /* un poco de respiración en móvil */
    border-radius: 14px;
  }
  .single-product .product div.images img{
    width: 100%;
    height: 100%;
    object-fit: contain;          /* no recorta, mantiene proporción */
    display: block;
  }

  /* 3) Tarjeta summary: padding y botón full-width */
  .single-product .product div.summary{
    padding: 16px !important;
    border-radius: 14px;
  }
  .single-product .product form.cart .quantity .qty{
    width: 88px;                  /* evita input gigante */
    padding: 10px 12px;
  }
  .single-product .product form.cart .button{
    width: 100%;
    margin-top: 10px;
  }

  /* 4) Breadcrumbs largos: que envuelvan y no rompan layout */
  .single-product .woocommerce-breadcrumb{
    white-space: normal;
    line-height: 1.3;
    font-size: 14px;
  }

  /* 5) Evitar scroll lateral por sombras/radios */
  body, html{
    overflow-x: hidden;
  }
  .single-product .ast-container,
  .single-product .site-main{
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}
/* === Carrito moderno AK === */

/* Contenedor principal */
.woocommerce-cart .site-main,
.woocommerce-cart .woocommerce {
  background: var(--ak-bg);
  color: var(--ak-text);
}

/* Tabla de productos */
.woocommerce-cart table.shop_table {
  width: 100%;
  background: var(--ak-panel);
  border: 1px solid var(--ak-stroke);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}
.woocommerce-cart table.shop_table thead th {
  background: rgba(255,255,255,.02);
  color: var(--ak-text);
  border-top: none;
}
.woocommerce-cart table.shop_table td,
.woocommerce-cart table.shop_table th {
  border-top: 1px solid var(--ak-stroke);
  color: var(--ak-text);
}

/* Miniatura producto */
.woocommerce-cart .product-thumbnail img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Nombre de producto */
.woocommerce-cart .product-name a {
  color: var(--ak-text);
  text-decoration: none;
}
.woocommerce-cart .product-name a:hover { color: var(--ak-blue-2); }

/* Cantidad */
.woocommerce .quantity .qty {
  background: var(--ak-panel-2);
  border: 1px solid var(--ak-stroke);
  color: var(--ak-text);
  border-radius: 10px;
  padding: 8px 10px;
  width: 72px;
  box-shadow: none;
}

/* Inputs de cupon */
.woocommerce-cart .coupon .input-text {
  background: var(--ak-panel-2);
  border: 1px solid var(--ak-stroke);
  color: var(--ak-text);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: none;
}
.woocommerce-cart .coupon .input-text::placeholder { color: var(--ak-text-2); }

/* Botones: aplicar cupón, actualizar, finalizar compra */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  background: var(--ak-blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 10px 24px rgba(0,54,255,.25);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--ak-blue-2);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0,54,255,.35);
}

/* Botón “Actualizar carrito” que suele salir gris */
.woocommerce button[name="update_cart"] {
  background: var(--ak-panel-2);
  color: var(--ak-text);
  border: 1px solid var(--ak-stroke);
  box-shadow: none;
}
.woocommerce button[name="update_cart"]:hover {
  background: #0f1722;
  border-color: var(--ak-blue);
}

/* Tarjeta de “Totales del carrito” */
.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--ak-panel);
  border: 1px solid var(--ak-stroke);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}
.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--ak-text);
}
.woocommerce-cart .cart-collaterals .shop_table th,
.woocommerce-cart .cart-collaterals .shop_table td {
  border-top: 1px solid var(--ak-stroke);
  color: var(--ak-text);
}

/* Quitar fondos/bordes por defecto en bloques sueltos */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
  border-radius: 12px;
}
.woocommerce-cart .woocommerce-info {
  background: var(--ak-panel-2);
  border: 1px solid var(--ak-stroke);
  color: var(--ak-text);
}

/* Layout 2->1 columnas (tabla + totales) */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .woocommerce-cart-form {
  width: 100%;
  max-width: 100%;
}
@media (max-width: 1024px){
  .woocommerce-cart .cart-collaterals { margin-top: 20px; }
}

/* Enlaces “eliminar” (la X) */
.woocommerce a.remove {
  color: #fff !important;
  background: #2b3442 !important;
  border-radius: 8px !important;
  width: 28px; height: 28px; line-height: 28px;
}
.woocommerce a.remove:hover { background: var(--ak-danger) !important; }

/* Subrayado de cabecera de tabla (opcional, más limpio) */
.woocommerce-cart table.shop_table thead th { border-bottom: 1px solid var(--ak-stroke); }
/* Carrito: ocultar "Totales del carrito" */
.woocommerce-cart .cart_totals h2{
  display:none !important;
}

/* Totales del carrito: mismo estilo de títulos */
.woocommerce-cart .cart_totals h2 {
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--ak-text);
  font-weight: 700;
  border-bottom: 1px solid var(--ak-stroke);
  padding-bottom: 8px;
}

/* Encabezado de la tabla del carrito */
.woocommerce-cart table.shop_table thead {
  background: rgba(255,255,255,.02);
}
.woocommerce-cart table.shop_table thead th {
  color: var(--ak-text);
  font-weight: 600;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ak-stroke);
}
.barra-bloques-container {
  display: grid;
  grid-template-columns: repeat(100, 1fr);
  gap: 2px;
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 8px;
  overflow: hidden;
}

.barra-bloque {
  height: 30px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.barra-bloque.activo {
  background-color: #0036FF;
  box-shadow: 0 0 3px rgba(0, 54, 255, 0.7);
}

.barra-bloques-texto {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  color: #f1f1f1;
  font-family: 'Nunito Sans', sans-serif;
  text-align: right;
}
/* Ya tienes tus estilos base (.barra-bloques-container, .barra-bloque, .activo, etc.) */
/* Solo añade la animación: */
.barra-bloque.activo.motivar {
  animation: motivarParpadeo 1s infinite ease-in-out;
}

@keyframes motivarParpadeo {
  0%, 100% {
    background-color: #0036FF;
    box-shadow: 0 0 6px rgba(0, 54, 255, 1);
  }
  50% {
    background-color: #1a4bff;
    box-shadow: 0 0 12px rgba(0, 54, 255, 1);
  }
}
.modulo-contenedor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

/* Tarjeta horizontal */
.tarjeta-leccion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #334155;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 1px rgba(255, 255, 255, 0.02);
}

/* Título de la lección con color */
.tarjeta-leccion .titulo-leccion {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.tarjeta-leccion .titulo-leccion a {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tarjeta-leccion .titulo-leccion a:hover {
  color: #6ec1e4;
}

/* Estado (pendiente o completada) */
.estado {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  min-width: 110px;
  text-align: center;
}

.estado.completada {
  background-color: rgba(110, 193, 228, 0.1);
}

.estado.pendiente {
  background-color: rgba(255, 255, 255, 0.05);
}
.entry-content strong,
.entry-content b {
  color: #3399ff;
  font-weight: 700;
}


/* ---------------------------------------
   CONTENEDOR GENERAL DEL FORMULARIO
---------------------------------------- */
.comment-respond {
  background-color: #242b3b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px;
  border-radius: 18px;
  margin-top: 40px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 1px rgba(255, 255, 255, 0.02);
  font-family: 'Nunito Sans', sans-serif;
  color: #f1f1f1;
}

/* ---------------------------------------
   TÍTULO DEL FORMULARIO
---------------------------------------- */
.comment-respond h3 {
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
}

/* ---------------------------------------
   CAMPOS DE TEXTO Y TEXTAREA
---------------------------------------- */
.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"] {
  background-color: #1a1e29;
  color: #f1f1f1;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s ease;
}

/* ---------------------------------------
   EFECTO FOCUS EN CAMPOS
---------------------------------------- */
.comment-respond textarea:focus,
.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #0036FF;
}

/* ---------------------------------------
   PLACEHOLDERS
---------------------------------------- */
.comment-respond input::placeholder,
.comment-respond textarea::placeholder {
  color: #999;
}

/* ---------------------------------------
   BOTÓN DE ENVIAR COMENTARIO
---------------------------------------- */
.comment-respond input[type="submit"] {
  background-color: #0036FF;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.comment-respond input[type="submit"]:hover {
  background-color: #002BCC;
}

/* ---------------------------------------
   TEXTO DE USUARIO CONECTADO Y ENLACES
---------------------------------------- */
.comment-respond .logged-in-as {
  color: #cccccc;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  margin-bottom: 16px;
}

.comment-respond .logged-in-as a {
  color: #3399ff;
  font-weight: 500;
  text-decoration: none;
}

.comment-respond .logged-in-as a:hover {
  color: #6ec1e4;
}

/* ---------------------------------------
   NOTA DE CAMPOS OBLIGATORIOS
---------------------------------------- */
.comment-respond .comment-notes {
  color: #bbbbbb;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------------------------------------   Contenedor de navegación ---------------------------------------*/
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 60px 0 30px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/*--------------------------------------- Estilo de enlaces anterior/siguiente--------------------------------------- */
.post-navigation a {
  font-family: 'Nunito Sans', sans-serif;
  color: #f1f1f1;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, transform 0.2s ease;
}

/*--------------------------------------- Hover: cambia el color y agrega leve desplazamiento--------------------------------------- */
.post-navigation a:hover {
  color: #6ec1e4;
  transform: translateY(-2px);
}

/*--------------------------------------- Título del enlace (nombre del post)--------------------------------------- */
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #cccccc;
  margin-top: 4px;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  color: #ffffff;
}


.leccion-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 14px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  background-color: #fff;
}

/* Columna título */
.leccion-col.titulo {
  width: 100%;
}

/* Estilo del título */
.leccion-titulo {
  margin: 0;
  font-size: 1.1em; /* Ideal para H4 */
  font-weight: bold;
  display: flex;
  align-items: center;
  height: 100%;
}

.leccion-titulo a {
  text-decoration: none;
  color: #000;
}

.leccion-titulo a:hover {
  color: #0036FF;
}

/* Columna icono */
.leccion-col.icono {
  justify-self: end;
  margin-right: 20px;
}

/* Íconos visuales */
.leccion-icono {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  line-height: 36px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(0, 54, 255, 0.2);
}

.leccion-icono.pendiente {
  background-color: transparent;
  border: 2px solid #0036FF;
  color: transparent;
  animation: pulse 1.4s infinite;
}

.leccion-icono.completada {
  background-color: #0036FF;
  border: 2px solid #0036FF;
  color: #fff;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Nunito Sans', sans-serif;
  margin-top: 40px;
  margin-bottom: 40px;
  background-color: #242b3b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

/* Encabezados */
.comparison-table th {
  background-color: #1f2432;
  color: #3399ff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Celdas */
.comparison-table td {
  background-color: #242b3b;
  color: #f1f1f1;
  font-size: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* Elimina borde de la última fila */
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Título opcional arriba de la tabla */
.comparison-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  font-family: 'Nunito Sans', sans-serif;
}
.quiz-container {
  background-color: #242b3b; /* más claro, con tono azulado */
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px;
  border-radius: 18px;
  margin-top: 40px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 1px rgba(255, 255, 255, 0.02);
  font-family: 'Nunito Sans', sans-serif;
  color: #f1f1f1;
}

/* Encabezado del quiz */
.quiz-container h3 {
  margin-bottom: 18px;
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
}

/* Opciones */
.quiz-container label {
  display: block;
  margin: 10px 0;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 16px;
  background-color: #1f2432;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.quiz-container label:hover {
  background-color: #2b3242;
  transform: translateY(-1px);
}

.quiz-container input[type="radio"] {
  margin-right: 10px;
}

/* Botón */
.quiz-container button {
  margin-top: 24px;
  padding: 12px 24px;
  background-color: #0036FF;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.quiz-container button:hover {
  background-color: #002BCC;
  transform: scale(1.02);
}

/* Feedback del resultado */
#quiz-feedback {
  margin-top: 20px;
  font-weight: 600;
  color: #6ec1e4;
  font-size: 15px;
}
.ver-imagen {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #0036FF;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  animation: pulse 1.4s infinite;
  margin-left: 8px;
  box-shadow: 0 0 0 3px rgba(0, 54, 255, 0.25);
  vertical-align: middle;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.popup-img {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-img img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-img .cerrar {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
.popup-img video,
.popup-img iframe {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
