:root{
  --brand-navy:#13203a;
  --brand-orange:#f4852f;
  --white:#fff;
  --shadow: 0 18px 45px rgba(0,0,0,.18);
  --max:1200px;
}

/* ===== Reset / Global ===== */
*{ box-sizing:border-box; }

.container{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

@media (max-width: 520px){
  .container{ width: calc(100% - 28px); }
}
html{ scroll-behavior:smooth; }
body{
  margin:0;
  width:100%;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--brand-navy);
  background:#fff;
}
html, body{ overflow-x: clip; } /* evita scroll lateral por 100vw/animaciones */
section[id]{ scroll-margin-top: 90px; }

img, video, svg{
  max-width:100%;
  height:auto;
  display:block;
}

/* ===== HEADER (STICKY + SCROLL EFFECT) ===== */
.header{
  position: sticky;
  top: 0;
  z-index: 10000;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  background: rgba(19,32,58,.18);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.header.scrolled{
  background: #eee !important;
  box-shadow: 0 10px 30px rgba(19,32,58,.14) !important;
  border-bottom: 1px solid rgba(19,32,58,.10);
  backdrop-filter: none !important;
}

.nav{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 14px 0;
  position:relative;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#fff;
  min-width: 240px;
}
.brand img{
  height:40px;
  width:auto;
  transition: filter .25s ease;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
.header.scrolled .brand{ color: var(--brand-navy); }
.header.scrolled .brand img{ filter:none; }

.nav-links{
  display:flex;
  align-items:center;
  gap:22px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition: .2s ease;
  color: rgba(255,255,255,.92);
}
.nav-links a:hover{ color: var(--brand-orange); }
.header.scrolled .nav-links a{ color: rgba(19,32,58,.90) !important; }
.header.scrolled .nav-links a:hover{ color: var(--brand-orange); }

/* ===== HAMBURGER ===== */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(19,32,58,.65);
  color:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.nav-toggle .burger{
  width:20px;
  height:2px;
  background:#fff;
  border-radius:999px;
  position:relative;
  display:block;
}
.nav-toggle .burger::before,
.nav-toggle .burger::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background:#fff;
  border-radius:999px;
  transition: .2s ease;
}
.nav-toggle .burger::before{ top:-6px; }
.nav-toggle .burger::after{ top:6px; }
.header.scrolled .nav-toggle{
  background: rgba(19,32,58,.92);
  border-color: rgba(19,32,58,.20);
}
.nav-toggle.is-open .burger{ background: transparent; }
.nav-toggle.is-open .burger::before{ top:0; transform: rotate(45deg); }
.nav-toggle.is-open .burger::after{ top:0; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero{
  min-height: 92vh;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(19,32,58,.86) 0%, rgba(19,32,58,.60) 42%, rgba(19,32,58,.12) 100%),
    url("img/arrastre-de-contenedores-en-lazaro-cardenas.webp");
  background-size:cover;
  background-position:center;
  z-index:0;
}
.hero::after{
  content:"";
  position:absolute;
  inset:-20%;
  background: radial-gradient(circle at 75% 35%, rgba(244,133,47,.22), rgba(244,133,47,0) 55%);
  z-index:0;
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  gap: 34px;
  padding: 70px 0 90px;
}
.hero-row{
  display:grid;
  grid-template-columns: 1.15fr .95fr;
  align-items:center;
  gap: 34px;
  padding-top: 10px;
}
.hero-copy{ color:#fff; max-width: 640px; }
.hero-title{
  margin:0 0 14px 0;
  font-family:"Fjalla One", sans-serif;
  font-weight:600;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height:1.06;
  letter-spacing:.2px;
}
.hero-title .accent{ color: var(--brand-orange); }
.hero-text{
  margin:0 0 22px 0;
  color: rgba(255,255,255,.78);
  max-width: 60ch;
  font-size: 14.5px;
  line-height:1.6;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background: var(--brand-orange);
  color:#fff;
  border:0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 16px 30px rgba(244,133,47,.32);
  transition:.2s ease;
}
.cta:hover{ transform: translateY(-1px); }

/* ===== FORM (glass oscuro + tabs) ===== */
.quote{
  width:100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(19,32,58,.92), rgba(19,32,58,.72));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  overflow:hidden;
  backdrop-filter: blur(10px);
}
.quote-head{ padding: 18px 18px 10px; color:#fff; }
.quote-head h3{
  margin:0 0 12px 0;
  font-family:"Fjalla One", sans-serif;
  font-weight:600;
  letter-spacing:.2px;
  font-size: 22px;
}
.tabs{ display:flex; gap:12px; flex-wrap:wrap; }
.tab{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 13px/1 "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.dot{ width:8px; height:8px; border-radius:999px; background: rgba(255,255,255,.55); }
.tab.active{ border-color: rgba(244,133,47,.70); background: rgba(244,133,47,.14); }
.tab.active .dot{ background: var(--brand-orange); }

.quote-form{
  padding: 12px 18px 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:12px; color: rgba(255,255,255,.72); font-weight:600; }
.field input,
.field textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 12px 12px;
  outline:none;
  font-family: inherit;
}
.field input{ height: 44px; }
.field textarea{ min-height: 104px; resize: vertical; line-height:1.45; }
.field input::placeholder,
.field textarea::placeholder{ color: rgba(255,255,255,.55); }
.field input:focus,
.field textarea:focus{
  border-color: rgba(244,133,47,.75);
  box-shadow: 0 0 0 3px rgba(244,133,47,.18);
}
.submit{
  grid-column: 1 / -1;
  margin-top: 6px;
  height: 48px;
  border-radius: 16px;
  border:0;
  background: linear-gradient(135deg, #f4852f, #f4ac72);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  box-shadow: 0 16px 30px rgba(244,133,47,.28);
  transition:.2s ease;
}
.submit:hover{ transform: translateY(-1px); }

/* ===== SERVICIOS FLOTANTES SOBRE HERO ===== */
.services-float{
  position: relative;
  z-index: 5;
  margin-top: -92px;
  padding-bottom: 40px;
}
.services-wrap{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card{
  position: relative;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(19,32,58,.14);
}
.service-media{
  height: 190px;
  background: #dfe6f2;
  background-size: cover;
  background-position: center;
}
.service-badge{
  position: absolute;
  left: 22px;
  top: 170px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  border: 1px solid rgba(19,32,58,.08);
}
.service-badge svg{ width: 24px; height: 24px; fill: var(--brand-orange); }
.service-body{ padding: 8px 18px 18px; }
.service-body h3{
  margin: 0 0 8px 0;
  font-family: "Fjalla One", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--brand-navy);
  padding-top: 40px;
}
.service-body p{
  margin:0;
  color: rgba(19,32,58,.70);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== ABOUT ===== */
.about-section{
  padding: 90px 0 70px;
  background: #fff;
}
.about-wrap{
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}
.about-kicker{
  display:inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .6px;
  color: var(--brand-orange);
  margin-bottom: 10px;
}
.about-title{
  margin: 0 0 16px 0;
  font-family: "Fjalla One", sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  color: var(--brand-navy);
}
.about-text{
  margin: 0 auto;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(19,32,58,.72);
}

/* Imagen normal (si la usas sin overlay) */
.about-image{
  width: 100%;
  margin: 28px auto 0;
  border-radius: 18px;
  overflow: hidden;
}
.about-image img{
  width: 100%;
  height: auto;
}

/* ===== MARQUEE (Full width seguro, sin scroll lateral) ===== */
.marquee{
  position: relative;
  z-index: 1;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  margin-top: 40px;
  margin-bottom: 0;
  overflow: hidden;
  padding: 14px 0;
  background: #eee;
}
.marquee::before,
.marquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 90px;
  pointer-events:none;
  z-index: 2;
}
.marquee::before{
  left:0;
  background: linear-gradient(90deg, #eee 0%, rgba(238,238,238,0) 100%);
}
.marquee::after{
  right:0;
  background: linear-gradient(270deg, #eee 0%, rgba(238,238,238,0) 100%);
}

.marquee__track{
  display:flex;
  width: max-content;
  gap: 14px;
  animation: marqueeMove 126s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track{ animation-play-state: paused; }
.marquee__group{
  display:flex;
  gap: 14px;
  padding-right: 14px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  background: var(--brand-orange);
  color: #fff;
  border: 1px solid #cfcfcf;
  box-shadow: 0 10px 22px rgba(19,32,58,.10);
}
.chip::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background: #eee;
}

@keyframes marqueeMove{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Imagen con overlay (Título encima + Subtítulo detrás) ===== */
.about-image.behind-marquee{
  position: relative;
  width: min(80%, 1100px);
  margin: 0 auto;
  overflow: visible;
  isolation: isolate;
}
.about-image.behind-marquee img{
  position: relative;
  z-index: 3;
  width: 100%;
  height: auto;
}

/* Título encima */
.img-title{
  position: absolute;
  left: 50%;
  top: clamp(10px, 2.2vw, 22px);
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: .45em .9em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(18px, 2.4vw, 34px);
  color: #fff;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}

/* Subtítulo watermark detrás (full width seguro) */
.bg-fullwidth{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-fullwidth__inner{
  width: 100%;
  text-align: center;
  padding: 0 16px;
}
.bg-subtitle{
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .22em;
  line-height: 1;
  font-size: clamp(30px, 4.8vw, 96px);
  color: rgba(244,133,47,.55);
  text-shadow: 0 18px 55px rgba(0,0,0,.16);
  white-space: nowrap;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-row{ grid-template-columns: 1fr; }
  .quote{ max-width: 640px; }
  .services-float{ margin-top: -60px; }
  .services-wrap{ grid-template-columns: 1fr; }
  .service-media{ height: 210px; }
  .service-badge{ top: 190px; }

  .about-image{ width: 92%; }
}

@media (max-width: 820px){
  .nav-toggle{ display:inline-flex; }

  .menu-overlay{ display:none; position:fixed; inset:0; z-index: 20000; }
  .menu-overlay.show{ display:block; }

  #navLinks.nav-links{
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 18px;
    display:none;
    flex-direction: column;
    gap: 10px;
    background: rgba(19,32,58,.96);
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    z-index: 20001;
  }
  #navLinks.nav-links.open{ display:flex; }
}

@media (max-width: 650px){
  .bg-subtitle{
    white-space: normal;
    letter-spacing: .14em;
  }
  .img-title{
    white-space: normal;
    border-radius: 18px;
  }
}

@media (max-width: 520px){
  .nav, .hero-inner{ width: calc(100% - 28px); }
  .brand img{ height:36px; }
  .quote-form{ grid-template-columns: 1fr; }
  .services-wrap{ width: calc(100% - 28px); }

  .about-section{ padding: 70px 0 55px; }
  .about-wrap{ width: calc(100% - 28px); }
  .about-image{ width: 100%; }

  .marquee::before, .marquee::after{ width: 40px; }
  .marquee__track{ animation-duration: 22s; }
}