
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.mfc-sp {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
}

/* Wrapper */
.mfc-sp__wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px){
  .mfc-sp__wrap{ padding: 0 24px; }
}

/* Breadcrumbs */
.mfc-sp__breadcrumbs{
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  margin-bottom: 28px;
}

.mfc-sp__crumbs{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.mfc-sp__crumb{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.mfc-sp__crumb-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #64748b;
  transition: color .2s ease;
}

.mfc-sp__crumb-link:hover{ color: #059669; }
.mfc-sp__crumb-current{ color: #0f172a; font-weight: 500; }

/* Section spacing */
.mfc-sp__section{
  padding: 8px 0 40px;
}

.mfc-sp__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 1024px){
  .mfc-sp__grid{
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* Gallery */
.mfc-sp__main-image{
  position: relative;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  aspect-ratio: 1 / 1;
}

.mfc-sp__main-link{
  display: block;
  width: 100%;
  height: 100%;
}

.mfc-sp__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mfc-sp__badge{
  position: absolute;
  top: 14px;
  left: 14px;
  background: #059669;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(5, 150, 105, .25);
}

.mfc-sp__thumbs{
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
}

.mfc-sp__thumb{
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.mfc-sp__thumb:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.mfc-sp__thumb.is-active{
  border-color: #059669;
  opacity: 1;
}

.mfc-sp__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

/* Info */
.mfc-sp__title{
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 650; /* menos “bold” que el tema */
  letter-spacing: -0.02em;
}

@media (min-width: 768px){
  .mfc-sp__title{ font-size: 36px; }
}

.mfc-sp__meta{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: #64748b;
  font-size: 13px;
}

.mfc-sp__meta-item{ display: inline-flex; align-items: baseline; gap: 6px; }
.mfc-sp__mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: #334155; }
.mfc-sp__meta-sep{
  width: 1px;
  height: 16px;
  background: #cbd5e1;
}

.mfc-sp__stock{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.mfc-sp__stock.is-instock{ color: #059669; }
.mfc-sp__stock.is-outofstock{ color: #b91c1c; }

.mfc-sp__price{
  font-size: 20px;
  font-weight: 650;
  color: #0f172a;
  margin: 4px 0 16px;
}

.mfc-sp__desc{
  color: #475569;
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 18px;
}

.mfc-sp__desc p{ margin: 0 0 12px; }
.mfc-sp__desc p:last-child{ margin-bottom: 0; }

/* Si en la descripción hay texto con estilo rojo (p.ej. "MEDIDAS GENERALES"),
   lo neutralizamos para que no rompa el diseño. */
.mfc-sp__desc [style*="color:red"],
.mfc-sp__desc [style*="color: red"],
.mfc-sp__desc [style*="#ff0000"],
.mfc-sp__desc [style*="#FF0000"],
.mfc-sp__desc [style*="rgb(255,0,0"],
.mfc-sp__desc [style*="rgb(255, 0, 0"],
.mfc-sp__desc font[color="red"],
.mfc-sp__desc font[color="#ff0000"],
.mfc-sp__desc font[color="#FF0000"]{
  color: #0f172a !important;
}

/* Encabezados dentro de la descripción (si vienen pegados en el contenido) */
.mfc-sp__desc h1,
.mfc-sp__desc h2,
.mfc-sp__desc h3,
.mfc-sp__desc h4,
.mfc-sp__desc h5,
.mfc-sp__desc h6{
  color: #0f172a;
  font-weight: 650;
  line-height: 1.2;
  margin: 16px 0 10px;
}

/* Specs */
.mfc-sp__specs{
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin: 16px 0 22px;
}

.mfc-sp__specs-head{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 14px;
}

.mfc-sp__specs-title{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.mfc-sp__specs-body{ font-size: 13px; }


.mfc-sp__spec-list{
  margin: 0;
  padding: 0;
  list-style: none;
}
.mfc-sp__spec-list li{
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.5;
}
.mfc-sp__spec-list li:first-child{ border-top: 0; }
.mfc-sp__spec-list li:nth-child(odd){ background: #f8fafc; }
.mfc-sp__spec-list strong{ font-weight: 600; }

.mfc-sp__spec-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px 14px;
}

@media (min-width: 640px){
  .mfc-sp__spec-row{
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 12px;
  }
}

.mfc-sp__spec-row.is-odd{ background: #f8fafc; }
.mfc-sp__spec-label{ color: #64748b; }
.mfc-sp__spec-value{ color: #0f172a; font-weight: 500; }

/* Actions */
.mfc-sp__actions{ margin-top: 14px; }

.mfc-sp__cta{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #059669;
  color: #fff;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 14px 30px rgba(5, 150, 105, .22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mfc-sp__cta:hover{
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(5, 150, 105, .26);
}

.mfc-sp__cta-arrow{
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

.mfc-sp__cta:hover .mfc-sp__cta-arrow{
  opacity: 1;
  transform: translateX(0);
}

.mfc-sp__secondary{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px){
  .mfc-sp__secondary{
    grid-template-columns: 1fr 1fr;
  }
}

.mfc-sp__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.mfc-sp__btn:hover{
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Related */
.mfc-sp__related{
  padding: 46px 0 20px;
  background: #f9fafb;
  border-top: 1px solid #e2e8f0;
  margin-top: 26px;
}

.mfc-sp__related-title{
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 650;
  color: #0f172a;
}

.mfc-sp__related-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px){
  .mfc-sp__related-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  .mfc-sp__related-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.mfc-sp__card{
  display: flex;
  flex-direction: column;
  border: 1px solid #eef2f7;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}

.mfc-sp__card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
  border-color: #e2e8f0;
}

.mfc-sp__card-img{
  background: #f1f5f9;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.mfc-sp__card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  display: block;
}

.mfc-sp__card:hover .mfc-sp__card-img img{
  transform: scale(1.05);
}

.mfc-sp__card-body{
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mfc-sp__card-title{
  color: #0f172a;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2); /* alinear tarjetas aunque el título sea corto */
}

.mfc-sp__card-cat{
  font-size: 12px;
  color: #64748b;
  margin-top: auto;
}

/* Icons */
.mfc-sp__icon{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.mfc-sp__icon--sm{ width: 14px; height: 14px; }
.mfc-sp__icon--muted{ color: #94a3b8; }
.mfc-sp__icon--cta{ color: #fff; }

/* Notice */
.mfc-sp--notice{
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  color: #334155;
}
