/* =========================================================
   BASE
========================================================= */


* {
  box-sizing: border-box;
  
}

body {
  background: #ffffff;
  color: #000000;
  line-height: 1.5;
  
}

section{
  overflow-x: hidden;
  overflow-y: hidden;
}



/* Tipografía base */
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p, li {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */
.m-section {
  max-width: 1300px;
  margin: 80px auto;
  padding: 0 20px;
}

.m-section--center {
  text-align: center;
}

.m-section--no-top {
  margin-top: 0;
}

.m-section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Intro */
.m-intro-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
}

/* =========================================================
   BANNER
========================================================= */
.m-banner {
  width: 100%;
  height: 480px;
  background: linear-gradient(to right,#000000af,#000000af),
              url('img/Manufacture.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 90%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

.m-banner h1{
  text-align:center;
  margin: 25px auto 25px auto;
}



.m-banner-content {
  max-width: 1500px;
}


.m-banner-flex{
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.m-banner-flex-content{
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content:center;
  align-items: center;
}

.m-banner-flex-content img{
  width: 400px;
  border-radius: 20px;
  box-shadow: #95a4af 0px 0px 20px 0px;
  animation: zoomIn 1s infinite ease-in-out alternate both;
}


@keyframes zoomIn {
  0%{
    transform: scale(1);
  }
  100%{
    transform: scale(1.01);
  }
}

/* =========================================================
   PRODUCTS
========================================================= */
.m-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 24px;
  justify-items: center;
}

.m-product-card {
  max-width: 430px;
  min-height: 260px;
  padding: 20px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: start; /* está bien */
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
  box-shadow: #ff6b1a 0px 0px 8px 0px;
}


.m-product-card h3 {
  margin-bottom: 8px;
}

.m-product-tag {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.btnProduct{
  width: 100px;
  height: 35px;
  text-align: center;
  border: none;
  border-radius: 10px;
  background: #002e52;
  color: #ffffff;
  margin-top: auto;      
  align-self: center;    
  cursor: pointer;
  
}

.btnProduct:hover{
  box-shadow: #ffffff 0px 0px 5px 0px;
}

.noMostrar, .noMostrar2{
  display: none;
}

.m-product-flex{
  display: flex;
}

.m-product-flex > div{
  flex: 25%;
}

.m-product-list{
  list-style: none;
  width: 75%;
  
  margin: 15px;
}

.m-product-list li{
  margin-bottom: 15px;
  background: #e4e4ee;
  color: #000000;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border-radius: 9px;
  box-shadow: #ff6b1a 0px 0px 8px 0px;
  font-size: 18px;
  font-weight: bold;
}

.m-product-list li:hover{
  transform: scale(1.1);
}

/* =========================================================
    GALLERY FULLSCREEN
    ======================================================= */
.galeria-oculta {
    display: none !important;
}

#galeriaFullscreen {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.945);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    overflow: hidden;
}

.imagen-galeria {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 15px;
    object-fit: contain;
}

/* Botón cerrar */
.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Flechas */
.flecha {
    position: absolute;
    top: 50%;
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.izquierda { left: 40px; }
.derecha   { right: 40px; }

.flecha:hover,
.cerrar:hover {
    color: #bbbbbb;
}




/* =========================================================
   TWO COLUMN (CNC OVERVIEW)
========================================================= */
.m-two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}

.m-two-col-block {
  flex: 1 1 280px;
}

.m-two-col-block p + p {
  margin-top: 10px;
}

.m-highlight-card {
  background: #002e52;
  color: #ffffff;
  padding: 25px 24px;
  border-radius: 14px;
}

.m-highlight-card ul {
  margin-top: 10px;
  padding-left: 18px;
}

.m-highlight-card li {
  margin-bottom: 4px;
}

/* =========================================================
   CNC MACHINES GRID
========================================================= */
.m-cnc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 24px;
}

.m-cnc-card {
  background: #f4f6fa;
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.m-cnc-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.m-cnc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.m-cnc-card p {
  margin-top: 4px;
}

.m-cnc-card ul {
  margin-top: 6px;
  padding-left: 18px;
}

.m-cnc-card li {
  margin-bottom: 4px;
}

/* =========================================================
   CAPABILITIES
========================================================= */
.m-cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 24px;
}

.m-cap-card {
  background: #002e52;
  color: #ffffff;
  padding: 22px 20px;
  border-radius: 14px;
  text-align: left;
   box-shadow: #002e52 0px 4px 12px;
}

.m-cap-card ul {
  margin-top: 10px;
  padding-left: 18px;
}

.m-cap-card li {
  margin-bottom: 4px;
}

/* =========================================================
   SEPARATOR
========================================================= */
.m-separator {
  background: #002e52;
  color: #ffffff;
  text-align: center;
  padding: 70px 20px;
}

.m-separator h2 {
  margin-bottom: 12px;
}

.m-separator p {
  max-width: 800px;
  margin: 0 auto;
}

/* =========================================================
   WORKFLOW
========================================================= */
.m-workflow-grid {
  display: grid;
 /* grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); */
 grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  
}

.m-workflow-card {
  background: #002e52;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: left;
  color: #ffffff;
  box-shadow: #002e52 0px 4px 12px;
  height:220px
}

.m-workflow-card h3{
    text-align: center;
}

.m-workflow-img{
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   INDUSTRIES
========================================================= */
.m-industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 16px;
  margin-top: 30px;
}

.m-industry-pill {
  background: #e5e9f2;
  padding: 14px 12px;
  border-radius: 999px;
  text-align: center;
  color: #000000;
  display: flex;
  flex-direction: column;
}

.m-industry-pill img{
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.m-industries-clients{
  display: none;
  width: 250px;
  height: 100px;
  object-fit: contain;
  
}


.m-contenedorClientes{
  
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-items: center;
  width: 100%;
  height: auto;
  gap: 20px;
}




/* =========================================================
   STATS (reusa patrón de Services)
========================================================= */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 20px 0;
  align-items: start;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  width: 220px;
  display: grid;
  justify-items: center;
}

.donut {
  --size: 160px;
  --thickness: 12px;
  --dark: #1a1a23;
  --light: #e4e4ee;
  --val: 75;

  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    var(--dark) calc(var(--val) * 1%),
    var(--light) 0
  );
  margin: 15px;
}

.donut::before {
  content: "";
  position: absolute;
  inset: calc(var(--thickness) + 8px);
  background: #ffffff;
  border-radius: 50%;
}

.donut.full {
  background: var(--dark);
}

.num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  font-weight: 600;
  color: #3e3e3e;
}



/* =========================================================
   FAQ
========================================================= */
.m-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
  margin-top: 30px;
}

.m-faq-card {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: left;
  border: #002e52 3px solid;
  box-shadow: #002e52 0px 0px 10px 1px;
}

/* =========================================================
   SCROLL ANIMATIONS
========================================================= */
.scroll-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: all .9s cubic-bezier(.17,.55,.55,1);
}

.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all .9s cubic-bezier(.17,.55,.55,1);
}

.scroll-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all .9s cubic-bezier(.17,.55,.55,1);
}

.scroll-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-zoom {
  opacity: 0;
  transform: scale(0.85);
  transition: all .9s cubic-bezier(.17,.55,.55,1);
}

.scroll-zoom.visible {
  opacity: 1;
  transform: scale(1);
}


.background-complete{
    width: 100%;
    height: auto;
    background: #002e52;
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .m-banner {
    height: 360px;
    background-attachment: scroll;
  }
 
}

@media (max-width: 768px) {
  .m-section {
    margin: 60px auto;
  }

  .m-two-col {
    flex-direction: column;
    gap: 0;
  }

  .stats-section {
    gap: 40px;
  }

  .donut {
    --size: 140px;
  }
  .m-product-flex{
    flex-direction: column;
  }
  .m-product-flex > div{
    
    width: 100%;
  }
  .m-product-list{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .m-workflow-grid {
  
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); 
 
  
}

.m-banner{
  height: auto;
}

.noDisplay{
  display: none;
}

.m-contenedorClientes{

  grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); 

}
}
