/**
 * Internal / product-detail machine cards — copy of the live home card.
 * Loaded only from internal-head.php and producto-head.php.
 * Never targets .fx-home-page or index markup.
 *
 * Hook class (JS + related PHP): .fx-internal-machine-card
 */
body.fx-internal .fx-internal-machine-card.fx-internal-machine-card,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card.fx-internal-machine-card,
body.fx-internal .contenedor-de-productos-de-categoria > .card-productos,
body.fx-internal .contenedor-de-productos-de-categoria > .cc-card,
body.fx-internal .cc-grid > .cc-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  min-height:0;
  margin:0;
  padding:0;
  text-align:left;
  overflow:hidden;
  background:#fff;
  border:1px solid #d8e5e0;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(32,59,50,.055);
  color:#203b32;
  text-decoration:none;
  transition:border-color .2s ease,background-color .2s ease;
}
body.fx-internal .fx-internal-machine-card.fx-internal-machine-card:hover,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card.fx-internal-machine-card:hover,
body.fx-internal .contenedor-de-productos-de-categoria > .card-productos:hover,
body.fx-internal .contenedor-de-productos-de-categoria > .cc-card:hover,
body.fx-internal .cc-grid > .cc-card:hover{
  border-color:#4BB597;
  box-shadow:0 8px 24px rgba(32,59,50,.055);
  transform:none;
}

body.fx-internal .fx-internal-machine-card :is(.fx-product__image,.fx-card__media,.cc-card__photo,figure.imagen),
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-product__image,.fx-card__media,.cc-card__photo,figure.imagen),
body.fx-internal .contenedor-de-productos-de-categoria > .card-productos figure.imagen{
  display:block;
  width:100%;
  height:auto;
  margin:0;
  padding:28px 16px 12px;
  background:#fff;
  flex-shrink:0;
  line-height:0;
}
body.fx-internal .fx-internal-machine-card :is(.fx-product__image img,.fx-card__media img,.cc-card__photo img,.imagen__producto),
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-product__image img,.fx-card__media img,.imagen__producto),
body.fx-internal .contenedor-de-productos-de-categoria > .card-productos .imagen__producto{
  display:block;
  width:100%;
  height:230px;
  margin:0;
  padding:0;
  object-fit:contain;
  background:#fff;
  mix-blend-mode:normal;
}

body.fx-internal .fx-internal-machine-card :is(.fx-machine-body,.fx-product__body,.fx-card__body,.cc-card__body),
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-body,.fx-product__body,.fx-card__body){
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
  gap:0;
  padding:8px 20px 20px;
}
body.fx-internal .fx-internal-machine-card .title,
body.fx-internal .contenedor-de-productos-de-categoria > .card-productos .title{
  min-height:0;
  margin:0;
  padding:0;
}

body.fx-internal .fx-internal-machine-card :is(h2,h3,.fx-card__title,.title h2),
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(h2,h3,.fx-card__title),
body.fx-internal .contenedor-de-productos-de-categoria > .card-productos .title h2,
body.fx-internal .cc-grid > .cc-card h2{
  margin:0 0 16px;
  padding:0;
  border:0;
  min-height:49px;
  font-size:18px!important;
  font-weight:650;
  line-height:1.35;
  letter-spacing:-.3px;
  text-align:left;
  color:#164b40;
  overflow-wrap:anywhere;
}
body.fx-internal .fx-internal-machine-card :is(h2,h3,.fx-card__title) a,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(h2,h3,.fx-card__title) a,
body.fx-internal .cc-grid > .cc-card h2 a{
  color:#164b40;
  text-decoration:none;
}
body.fx-internal .fx-internal-machine-card :is(h2,h3,.fx-card__title) a:hover,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(h2,h3,.fx-card__title) a:hover{
  color:#4BB597;
}

body.fx-internal .fx-internal-machine-card :is(.fx-model,.cc-model,.fx-card__model),
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-model,.cc-model,.fx-card__model),
body.fx-internal .cc-grid > .cc-card .cc-model{
  display:table;
  align-self:flex-start;
  order:-1;
  min-height:28px;
  margin:0 0 12px;
  padding:5px 8px;
  border-radius:5px;
  background:#eef9f5;
  color:#4BB597;
  font-size:11px;
  font-weight:600;
  line-height:18px;
  overflow-wrap:anywhere;
}

body.fx-internal .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl),
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl){
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:118px;
  margin:0 0 20px;
  padding:16px 0 0;
  border:0;
  border-top:1px solid #d8e5e0;
  border-radius:0;
  overflow:visible;
}
body.fx-internal .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl)>div,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl)>div{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  min-height:28px;
  margin:0;
  padding:0;
  border:0;
}
body.fx-internal .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl) dt,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl) dt{
  display:flex;
  flex:1;
  align-items:center;
  gap:7px;
  max-width:none;
  font-size:12px;
  font-weight:500;
  line-height:1.5;
  color:#586760;
  overflow-wrap:anywhere;
}
body.fx-internal .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl) dt svg,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl) dt svg{
  display:block;
  flex-shrink:0;
  color:#247b65;
}
body.fx-internal .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl) dd,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl) dd{
  flex:0 1 auto;
  max-width:58%;
  margin:0;
  font-size:12px;
  font-weight:650;
  line-height:1.45;
  text-align:right;
  color:#203b32;
  overflow-wrap:anywhere;
}

body.fx-internal .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions,.cc-card__actions,.acciones),
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions){
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
  gap:8px;
  margin-top:auto;
  padding:0;
  border:0;
}
body.fx-internal .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions,.cc-card__actions,.acciones) a,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions) a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:auto;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:10px 6px;
  border:1px solid #bce3d6;
  border-radius:999px;
  background:#fff;
  color:#247b65;
  font-size:var(--fx-btn-font-size,13px);
  font-weight:650;
  line-height:1.5;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
}
body.fx-internal .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions,.cc-card__actions,.acciones) a:hover,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions) a:hover{
  background:#eef9f5;
  border-color:#4BB597;
  color:#1d6252;
}
body.fx-internal .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions,.cc-card__actions,.acciones) :is(.fx-machine-quote,a:last-child),
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions) :is(.fx-machine-quote,a:last-child){
  background:#FFB344;
  border-color:#FFB344;
  color:#293833;
}
body.fx-internal .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions,.cc-card__actions,.acciones) :is(.fx-machine-quote,a:last-child):hover,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions) :is(.fx-machine-quote,a:last-child):hover{
  background:#e89a27;
  border-color:#e89a27;
  color:#203b32;
}
body.fx-internal .fx-internal-machine-card .fx-machine-actions svg,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card .fx-machine-actions svg{
  display:block;
  width:16px;
  height:16px;
  flex-shrink:0;
}
body.fx-internal .fx-internal-machine-card .fx-machine-quote svg,
body.fx-detail-page .fx-detail-related .fx-internal-machine-card .fx-machine-quote svg{
  width:18px;
  height:18px;
}

body.fx-internal .contenedor-de-productos-de-categoria,
body.fx-internal .cc-grid,
body.fx-internal .fx-product-grid,
body.fx-internal .fx-internal-related .fx-product-grid,
body.fx-detail-page .fx-detail-related .fx-product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}

@media(min-width:701px){
  body.fx-internal .fx-internal-machine-card.fx-internal-machine-card,
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card.fx-internal-machine-card,
  body.fx-internal .contenedor-de-productos-de-categoria > .card-productos,
  body.fx-internal .cc-grid > .cc-card{
    min-height:610px;
  }
}
@media(max-width:1200px){
  body.fx-internal .contenedor-de-productos-de-categoria,
  body.fx-internal .cc-grid,
  body.fx-internal .fx-product-grid,
  body.fx-internal .fx-internal-related .fx-product-grid,
  body.fx-detail-page .fx-detail-related .fx-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:700px){
  body.fx-internal .contenedor-de-productos-de-categoria,
  body.fx-internal .cc-grid,
  body.fx-internal .fx-product-grid,
  body.fx-internal .fx-internal-related .fx-product-grid,
  body.fx-detail-page .fx-detail-related .fx-product-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
  body.fx-internal .fx-internal-machine-card.fx-internal-machine-card,
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card.fx-internal-machine-card,
  body.fx-internal .contenedor-de-productos-de-categoria > .card-productos,
  body.fx-internal .cc-grid > .cc-card{
    min-height:0;
    height:auto;
  }
  body.fx-internal .fx-internal-machine-card :is(.fx-product__image,.fx-card__media,.cc-card__photo,figure.imagen),
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-product__image,.fx-card__media,.cc-card__photo,figure.imagen),
  body.fx-internal .contenedor-de-productos-de-categoria > .card-productos figure.imagen{
    padding:20px 16px 12px;
  }
  body.fx-internal .fx-internal-machine-card :is(.fx-product__image img,.fx-card__media img,.cc-card__photo img,.imagen__producto),
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-product__image img,.fx-card__media img,.imagen__producto),
  body.fx-internal .contenedor-de-productos-de-categoria > .card-productos .imagen__producto{
    height:230px;
  }
  body.fx-internal .fx-internal-machine-card :is(.fx-machine-body,.fx-product__body,.fx-card__body,.cc-card__body),
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-body,.fx-product__body,.fx-card__body){
    padding:8px 20px 20px;
  }
  body.fx-internal .fx-internal-machine-card :is(h2,h3,.fx-card__title,.title h2),
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(h2,h3,.fx-card__title),
  body.fx-internal .contenedor-de-productos-de-categoria > .card-productos .title h2,
  body.fx-internal .cc-grid > .cc-card h2{
    font-size:18px!important;
    min-height:49px;
    margin:0 0 16px;
  }
  body.fx-internal .fx-internal-machine-card :is(.fx-model,.cc-model,.fx-card__model),
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-model,.cc-model,.fx-card__model){
    min-height:28px;
    margin:0 0 12px;
    font-size:11px;
  }
  body.fx-internal .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl),
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-specs,.fx-card__specs,dl){
    gap:8px;
    min-height:0;
    margin:0 0 20px;
  }
  body.fx-internal .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions,.cc-card__actions,.acciones),
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions,.fx-card__actions){
    grid-template-columns:1fr;
    gap:8px;
    margin-top:auto;
  }
  body.fx-internal .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions) a,
  body.fx-detail-page .fx-detail-related .fx-internal-machine-card :is(.fx-machine-actions,.fx-product__actions) a,
  body.fx-internal .cc-grid > .cc-card .cc-card__actions a{
    width:100%;
    font-size:13px;
    min-height:44px;
    padding:10px 12px;
    white-space:nowrap;
  }
}
