/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --blue:       #0a75b4;
  --dark:       #0d3148;
  --black:      #111111;
  --bg-light:   #e7ebed;
  --bg-pill:    #f5f6f9;
  --text-muted: #888;
  --text-body:  #444141;
  --white:      #ffffff;
  --radius-sm:  9.5px;
  --radius-md:  22.8px;
  --radius-lg:  19px;
  --font-body:  'Inter', sans-serif;
  --max-w:      1560px;
  --px:         84px;
}

@font-face {
  font-family: 'Mides Medium';
  src: url('fonts/Mides-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* CLASES */
.btn{
    border:1px solid rgba(255,255,255,.4);
    border-radius: 100px;
    font-size: 14px;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); overflow-x: hidden; }
h1, h2 { font-family: 'Mides Medium', sans-serif; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }

/* ─── SCROLL ANIMATION ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── LAYOUT HELPERS ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
section { padding: 90px 0; }
.text-center { text-align: center; }
.mb-24 { margin-bottom: 24px; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity .35s ease, visibility .35s ease;
}
.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  width: 246px;
  max-width: 40%;
  opacity: 0;
  transform: scale(1.3);
  animation: preloader-zoom 0.75s ease forwards;
}
@keyframes preloader-zoom {
  from { opacity: 0; transform: scale(1.3); }
  to { opacity: 1; transform: scale(1); }
}

/* ─── PILL BADGE ─────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-pill);
  border-radius: 38px;
  box-shadow: 0 0 1px 1px rgba(0,0,0,.08), inset 3px 3px 3px rgba(255,255,255,.25);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}
.pill svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── SECTION HEADER (centered) ─────────────────────── */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}
.section-header p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--dark);
  max-width: 800px;
}

/* ═══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .45s cubic-bezier(0.16, 1, 0.3, 1), transform .45s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  pointer-events: none;
}
nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.08s;

}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.5px;
}
.nav-logo span { color: var(--blue); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }

/* ═══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  min-height:600px;
}
.hero-video,
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video {
  z-index: -1;
}

.white-logo{
    margin-bottom: 20vh;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,9,18,.45) 0%, rgba(6,9,18,.55) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #f5f6fa;
  padding: 0 40px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}
.hero-content h1 {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero-content p {
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 500;
  opacity: .9;
}

/* ═══════════════════════════════════════════════════════
   S1 – QUÉ HACEMOS
══════════════════════════════════════════════════════ */
.s1-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: start;
}
.s1-text h2 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-top: 20px;
}
.s1-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--blue);
  align-self: start;
  margin-top: 20px;
}
.s1-photos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.s1-photos img {
  width: 100%;
  aspect-ratio: 541/631;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════
   S2 – PARA QUIEN FABRICAMOS
══════════════════════════════════════════════════════ */
.s2 { background: var(--white); }
.s2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}
.s2-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 300px 285px;
  gap: 20px;
}
.s2-img-tall-wrapper,
.s2-img-wide-wrapper {
  border-radius: 9.5px;
  overflow: hidden;
}
.s2-img-tall-wrapper { grid-row: 1 / 3; }
.s2-img-tall-wrapper:first-child { grid-column: 1 / 2; }
.s2-img-tall-wrapper:nth-child(2) { grid-column: 3 / 4; }
.s2-img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s2-img-sq { border-radius: var(--radius-sm); overflow: hidden; }
.s2-img-sq:first-of-type { aspect-ratio: 501/296; }

/* ═══════════════════════════════════════════════════════
   S3 – MAQUINARIA
══════════════════════════════════════════════════════ */
.s3 { background: var(--white); padding-bottom: 0; }

.s3-video{
    margin: 60px 0;
    display: flex;
    justify-content: center;
   
}
.s3-video video{
    border-radius:30px;
     max-width:100%;
}
/* ═══════════════════════════════════════════════════════
   S4 – SOLDADURA (dark section)
══════════════════════════════════════════════════════ */
.s4 {
  background: #060912;
  padding: 90px 0;
  overflow: hidden;
  position: relative;
  background: url('img/bg-soldadura-section.jpg') #060912 no-repeat left top/contain;
}
.s4-bg {
  position: absolute;
  inset: 0;
  object-fit: contain;
    height: 100%;
}
.s4-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: center;
}
.s4-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 38px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 32px;
}
.s4-pill svg { width: 18px; height: 18px; }
.s4-text h2 {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 600;
  color: #f5f6fa;
  line-height: 1.35;
  margin-bottom: 24px;
}
.s4-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #f5f6fa;
  opacity: .85;
}
.s4-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.s4-photos img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.s4-photos img:first-child { aspect-ratio: 350/265; }
.s4-photos img:last-child  { aspect-ratio: 350/240; }

/* ═══════════════════════════════════════════════════════
   S5 – FEATURES TRUMPF (3 cards)
══════════════════════════════════════════════════════ */
.s5 { background: var(--white); padding-top: 0; }
.s5-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.feature-card {
  padding: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-card img.icon { width: 48px; height: 48px; object-fit: contain; }
.feature-card h3 { font-size: 16px; font-weight: 600; color: var(--dark); line-height: 1.4; }
.feature-card p  { font-size: 15px; font-weight: 300; color: var(--dark); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════
   S6 – SERVICIOS
══════════════════════════════════════════════════════ */
.s6 { background: var(--white); }
.s6-photos {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  overflow: hidden;
  padding: 0 var(--px);
  box-sizing: border-box;
}
.s6-photos img {
  flex: 1;
  width:20%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.s6-services {
margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
}
.service-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.service-item img.icon { width: 52px; height: 52px; object-fit: contain; }
.service-item h3 { font-size: 17px; font-weight: 600; color: var(--dark); }
.service-item p  { font-size: 15px; font-weight: 300; color: var(--dark); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════
   S7 – CIFRAS
══════════════════════════════════════════════════════ */
.s7 { background: var(--white); }
.s7-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-bottom: 80px;
}
.stat-value {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  color: var(--black);
  letter-spacing: -1.5px;
  line-height: 1.2;
}
.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ─── FAQ ─────────────────────────────────────────────── */
.faq-header {
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.faq-item p {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
  
}
.faq-answer {
    padding-right: 40px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .35s ease;
 
}
.faq-answer p {
  margin: 0;
   opacity: 0.6;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  opacity: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(10,117,180,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-icon svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════
   S8 – CONTACTO
══════════════════════════════════════════════════════ */
.s8 { background: var(--white); }
.s8-box {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 60px 60px 0;
}
.s8-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: 40px;
}
.s8-top h2 {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1.35;
}
.s8-contacts {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}
.contact-icon {
  background: var(--blue);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon img { width: 22px; height: 22px; }
.contact-label { font-size: 12px; font-weight: 500; color: var(--text-body); }
.contact-value { font-size: 17px; font-weight: 400; color: var(--dark); letter-spacing: -.3px; }

/* Form */
.s8-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}
.map-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #dedede;
  min-height: 400px;
}
.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: -.3px;
}
.form-group input,
.form-group textarea {
  background: #fff;
  border: 1px solid #f5ebe0;
  border-radius: 100px;
  padding: 14px 22px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--dark);
  outline: none;
  transition: border-color .2s;
}
.form-group textarea {
  border-radius: var(--radius-md);
  resize: none;
  height: 160px;
  padding: 16px 22px;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); font-weight: 500; }
.btn-submit {
  align-self: center;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 48px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity .2s;
}

label[for="privacy"]{
  font-size:14px;
}

label[for="privacy"] a{
  color: var(--blue);
  transition: color .2s;
}
.btn-submit:hover { opacity: .85; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-message {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}
.form-message.is-success { color: #1a7a3c; }
.form-message.is-error { color: #c0392b; }

.privacy{
  font-size:12px;
  color:var(--text-muted);
}
.privacy a{
  text-decoration:underline;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,.07);
  padding: 26px var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-left {
  display: flex;
  gap: 32px;
}
.footer-right {
  font-size: 14px;
  color: var(--text-muted);
}
footer a {
  font-size: 14px;
  color: var(--dark);
  transition: color .2s;
}
footer a:hover { color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


@media(max-width: 980px){
  .s1-inner, .s5-cards, .s7-stats, .s4-inner, .s8-form-wrap{
    display:flex;
    flex-direction:column;
  }

  .s2-grid-wrapper{
      display:flex;
      flex-direction:row;
      flex-wrap:wrap;
  }

   .s2-grid-wrapper div{
    width: 47.5%;
   }

  

   .s2-grid-wrapper div img{
    aspect-ratio: 1.1;
   }

   .s4-photos{
    flex-direction:row;
    flex-wrap:wrap;
   }

   .s4-photos img{
    width:48%;
    aspect-ratio: 1.1;
   }

  .s6-services{
        grid-template-columns: repeat(2, 1fr)
  }
  .s6-photos{
    flex-wrap:wrap;
  } 

  .s6-photos img{
    min-width: 25%;
  } 

  section{
    padding: 30px 0;
  }

  .section-header{
    margin-bottom: 30px;
  }

  #servicios br{
    display:none;
  }

  .s8-box{
    padding: 30px;
  }

  .contact-card{
    width: 295px;
    max-width:100%;
  }

  .map-placeholder iframe{
    min-height: 450px;
  }

  nav, nav.visible{
    display:none;
  }

  footer{
    display:flex;
    flex-direction:row;
    justify-content:center;
  }
}

@media(max-width: 600px){
 :root{
  --px:30px;
 }

 .hero{
  min-height: 400px;
 }

 .s1-photos{
  display:flex;
  flex-direction:column
 }

  .white-logo{
    max-width: 30%;
  }
	
	.s2-grid-wrapper div{
    width: 46%;
   }

  .s6-photos img{
    min-width:47%;
    min-height: 150px;
  } 
	
	

   .s4-photos img{
    width:100%;
    aspect-ratio: 1.1;
   }

   .s6-services{
    display:flex;
    flex-direction:column;
   }

   .service-item{
    padding:10px 0;
   }

   .service-item *{
    text-align:center;
   }

   .service-item img{
    margin:0 auto;
   }

   .form-row{
    display:flex;    flex-direction:column;
   }

   .s8-box{
    padding:15px
   }
}