/* ====== Buscador / Filtros ====== */
.service-search {
  width: 100%;
  margin-bottom: 2em;
  padding: 0 8vw;
}

.navbar {
  background: #fff;
}

.nav-search {
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 1em 1em 1em 3.5em;
  font-size: 1rem;
  border: 0;
  border-radius: 999px;
  background: #efefef;
  outline: 0;
  transition: box-shadow 0.2s;
}

.search-input:focus {
  box-shadow: 0 0 0 0.1rem var(--color-terciary);
}

.search-icon,
.mic-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #888;
  pointer-events: none;
}

.search-icon {
  left: 1em;
}

.service-search-filter {
  display: flex;
  align-items: center;
}

.service-search-filter button {
  background: var(--color-secondary);
  color: #fff;
  border: 2px solid var(--color-secondary);
  border-radius: 5px;
  padding: 0.5em 1em;
  transition: 0.3s;
}

.service-search-filter button:hover {
  background: transparent;
  color: var(--color-secondary);
}

/* ====== Secciones / Cards ====== */
.maquilas-servicios {
  border-top: 1px solid #8a8a8a;
  padding-top: 1em;
}

.maquilas-servicios-title h2 {
  color: #2b2b2b !important;
}

.maquilas-servicios-cards,
.service-card {
  width: 100%;
}

.service-card {
  margin: 1em 0;
}

.card {
  border: 0;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  height: 220px;
  padding: 0;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-6px);
}

.card-container {
  height: 95%;
  width: 95%;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  transition: 0.5s;
  cursor: pointer;
}

.card-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-container .row {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.service-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.service-img img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.service-body {
  background: transparent;
  color: #000;
  padding: 0.3em 1em;
  height: 100%;
}

.service-body p {
  margin: 0;
}

.service-desc p {
  color: #000;
  margin: 0;
  padding: 0;
  font-size: small;
  font-weight: 400;
}

.service-desc-maquilas {
  font-size: small;
  font-weight: 400;
}

/* Specs (ocultas en móvil; visibles ≥768px) */
.service-specs {
  font-size: small;
  display: none;
}

.service-specs ul {
  list-style: none;
  padding-left: 0;
  text-align: left;
  font-weight: 300;
}

.service-specs strong {
  font-style: normal;
}

/* Headline dentro de la card */
.service-model {
  color: var(--color-terciary);
  font-style: italic;
  font-weight: 700;
}

.service-model span {
  color: var(--color-secondary);
  margin-right: 0.3em;
  font-weight: 700;
  font-style: normal;
}

/* Acciones */
.service-actions {
  position: absolute;
  bottom: 1em;
  right: 1.5em;
}

.btn-servicios {
  display: inline-block;
  flex-direction: column;
  font-size: .9em;
  border-radius: 5px;
  padding: 0.2em 0.5em;
  margin: 0.2em 0;
  transition: 0.3s;
}

.btn-servicios-me-interesa {
  border: 2px solid var(--color-acento);
  background: var(--color-acento);
  color: #fff;
}

.btn-servicios-me-interesa:hover {
  background: transparent;
  color: var(--color-acento);
  border-color: var(--color-acento);
}

.btn-servicios-ver-mas {
  border: 2px solid var(--color-secondary);
  color: white;
  background: var(--color-secondary);
}

.btn-servicios-ver-mas:hover {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* ====== Modal fullscreen (Shoelace) ====== */
sl-dialog.mcm-fullscreen::part(panel) {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: var(--sl-color-neutral-0, #fff);
  padding: 0;
}

sl-dialog.mcm-fullscreen::part(header),
sl-dialog.mcm-fullscreen::part(footer) {
  background: var(--color-secondary);
  color: #fff;
  border: 0;
}

sl-dialog.mcm-fullscreen::part(title) {
  color: #fff;
  font-weight: 600;
}

sl-dialog.mcm-fullscreen::part(body) {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0;
  min-height: 0;
  /* 🔑 el body define la altura disponible */
}

/* Layout interno del body */
.mcm-modal-body {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  /* 🔑 la grid ocupa todo el alto del body */
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem 2rem 2.75rem;
  /* extra bottom para no tapar texto */
  grid-template-columns: 1fr;
  grid-template-rows: 40vh auto;
}

/* Celda de imagen */
.mcm-media {
  background: #f6f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  /* 🔑 padding no aumenta el alto total */
}

.mcm-media img {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  width: auto;
  /* 🔑 no rebasa su contenedor */
  object-fit: contain;
  display: block;
}

/* Info */
.mcm-info {
  position: static;
  margin: 0;
  min-height: 0;
}

.mcm-specs {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0.35rem;
}

.mcm-specs li {
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 0.75rem;
  align-items: baseline;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #e9eef4;
}

.mcm-specs li:last-child {
  border-bottom: none;
}

.mcm-specs li span {
  color: #667085;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.mcm-specs li strong {
  color: var(--color-secondary);
  font-weight: 700;
}

.mcm-desc {
  padding-bottom: 3em;
}

.mcm-desc h4 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.mcm-desc p {
  margin: 0;
  line-height: 1.55;
  color: #2b2b2b;
}

/* Botón del footer con contraste */
sl-dialog.mcm-fullscreen::part(footer) sl-button::part(base) {
  background: #fff;
  color: #333;
}

/* ====== Banner de CTA ====== */
.bannerVentasCatatalogo {
  background: #e9eef4;
  text-align: center;
  padding: 5em 0;
  color: #77bbff;
}

.bannerVentasCatatalogoContent {
  margin: 0 3em;
}

.bannerVentasCatatalogoContent p {
  color: #2b2b2b;
}

.bannerVentasCatatalogo button {
  background: var(--color-acento);
  color: #fff;
  border: 2px solid var(--color-acento);
  box-shadow: 0 4px 6px -1px hsl(212 100% 29%/0.1),
    0 2px 4px -1px hsl(212 100% 29%/0.06);
  border-radius: 5px;
  font-weight: 700;
  transition: 0.3s;
  font-size: 1.3em;
  padding: 1em 2em;
}

.bannerVentasCatatalogo button:hover {
  background: transparent;
  color: var(--color-acento);
}

sl-dialog::part(close-button) {
  font-size: 20px;
  color: rgb(255, 255, 255); 
  font-weight: 800;
}

@media (min-width: 576px) {

  .btn-servicios {

    font-size: 1em;

  }

 
}

@media (min-width: 768px) {
  .btn-servicios {
    margin: 0;
    display: inline-block;
  }


 .service-actions {
    bottom: 1.5em;
    right: 1.5em;
  }

  .maquilas-servicios {
    padding-top: 2em;
  }

  .service-card {
    padding: 2em 0;
  }

  .card {
    height: 600px;
  }

  .card-comercializacion {
    height: 400px;
  }

  .service-search {
    padding: 0 10vw;
  }

  .card-comercializacion .service-img {
    height: 70%;
  }

  .service-img {
    height: 60%;
  }

  .card-comercializacion .service-body {
    height: 30%;
  }

  .service-body {
    height: 40%;
  }

  .service-specs {
    display: block;
  }

  .mcm-specs li span {
    font-size: 1.3em;
  }

  .mcm-specs li {
    font-size: 1.2em;
  }
}

@media (min-width: 992px) {
  .mcm-modal-body {
    height: 100%;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem 2rem 3rem;
  }

  .service-actions {
    position: absolute;
    bottom: 2em;
    right: 2em;
  }

  .btn-servicios {

    font-size: 1.2em;

  }


  .mcm-media {
    height: 100%;
    min-height: 0;
    padding: 1rem;
  }

  .mcm-info {
    position: relative;
    margin: 0;
  }

  .mcm-specs {
    grid-template-columns: 1fr;
  }
}