:root{
  --bg:#07111c;
  --panel:#101b29;
  --white:#ffffff;
  --text:#101923;
  --muted:#6d7680;
  --muted-dark:#dbe0e6;
  --red:#eb6554;
  --green:#78c84f;
  --gray:#98a1ad;
  --line:rgba(255,255,255,.1);
  --shadow:0 18px 40px rgba(0,0,0,.18);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Montserrat', Arial, sans-serif;
  background:var(--bg);
  color:var(--white);
}

a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.container{width:min(1200px, calc(100% - 40px)); margin:0 auto}

.header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(5,10,16,.94);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 0;
}
.brand img{
  height:120px;
  width:auto;
}
.menu{
  display:flex;
  gap:34px;
  font-weight:700;
}
.menu a:hover{color:var(--green)}
.top-actions{
  display:flex;
  gap:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 22px;
  border-radius:8px;
  font-weight:700;
  box-shadow:var(--shadow);
}
.btn.small{
  min-height:40px;
  padding:0 16px;
  font-size:.95rem;
}
.btn.wide{
  min-width:270px;
}
.btn-red{background:var(--red)}
.btn-green{background:var(--green)}
.btn-gray{background:var(--gray)}

.hero{
  min-height:680px;
  background-size:cover;
  background-position: 42% 18%;
  position:relative;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(6,12,18,.28) 0%, rgba(6,12,18,.12) 100%);
}
.hero-inner{
  position:relative;
  z-index:2;
  min-height:680px;
  display:flex;
  align-items:flex-end;
  padding-bottom:58px;
}
.hero-copy{
  max-width:520px;
  margin-left:auto;
  text-align:left;
}
.hero-copy h1{
  margin:0 0 10px;
  font-size:clamp(2.3rem, 4.5vw, 4rem);
  line-height:1.02;
}
.hero-copy p{
  margin:0;
  font-size:clamp(1.2rem, 1.9vw, 2rem);
  font-weight:700;
}
.hero-buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.services{
  background:#e9e9eb;
  color:var(--text);
  padding:26px 0 70px;
}
.section-head{
  text-align:center;
  margin-bottom:26px;
}
.section-head span{
  display:block;
  margin-bottom:10px;
  color:#4c5661;
  font-size:.95rem;
  font-weight:700;
}
.section-head h2{
  margin:0;
  font-size:clamp(2rem, 4vw, 3rem);
}
.section-head.dark h2{color:var(--text)}

.services-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
}
.service-card{
  background:#fff;
  border:1px solid #d7d9de;
  padding:14px 14px 20px;
  text-align:center;
  min-height:410px;
}
.service-thumb{
  height:120px;
  background-size:cover;
  background-position:center;
  border:1px solid #e1e4e8;
  margin-bottom:12px;
}
.service-thumb.contain{
  background-size:contain;
  background-repeat:no-repeat;
  background-color:#fff;
}
.service-card h3{
  margin:6px 0 14px;
  font-size:1.15rem;
}
.service-card p{
  margin:0;
  color:#7a828d;
  line-height:1.45;
}

.empresa{
  background:#051122;
  padding:55px 0 58px;
}
.empresa-grid{
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:24px;
  align-items:stretch;
}
.panel{
  border:1px solid rgba(255,255,255,.6);
  background:rgba(255,255,255,.03);
}
.empresa-copy{
  padding:28px 28px 30px;
}
.empresa-copy span{
  display:block;
  margin-bottom:10px;
  color:#d4dbe4;
  font-weight:700;
}
.empresa-copy h2{
  margin:0 0 16px;
  font-size:clamp(2rem, 3.5vw, 3rem);
  line-height:1.05;
}
.empresa-copy p{
  margin:0 0 22px;
  color:var(--muted-dark);
  line-height:1.6;
}
.empresa-copy ul{
  margin:0;
  padding-left:18px;
  line-height:2;
  font-weight:700;
}
.empresa-right{
  display:grid;
  grid-template-rows:1fr auto;
  gap:18px;
}
.empresa-image{
  background-size:cover;
  background-position:center;
}
.empresa-image.large{
  min-height:280px;
}
.empresa-bottom{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:12px;
}
.empresa-image.small{
  min-height:190px;
}
.entrega{
  padding:24px;
}
.entrega h3{
  margin:0 0 14px;
  font-size:2rem;
  line-height:1.05;
}
.entrega p{
  margin:0;
  color:var(--muted-dark);
  line-height:1.6;
}

.contacto{
  background:#ececef;
  color:var(--text);
  padding:42px 0 70px;
}
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  margin-top:28px;
}
.contact-card{
  background:#fff;
  padding:28px;
  border:1px solid #dfe2e6;
  box-shadow:0 12px 24px rgba(0,0,0,.06);
}
.icon-badge{
  width:52px;
  height:52px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#eff5ea;
  color:#66a93d;
  font-size:1.3rem;
  font-weight:800;
  margin-bottom:14px;
}
.contact-card h3{
  margin:0 0 8px;
  font-size:1.55rem;
}
.cargo{
  margin:0 0 18px;
  color:#7b8591;
  font-weight:700;
}
.contact-lines{
  display:grid;
  gap:10px;
}
.contact-lines a{
  color:#1f2b38;
  font-weight:700;
  word-break:break-word;
}
.contact-cta{
  display:flex;
  justify-content:center;
  margin-top:28px;
}

.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:200;
  background:#53b93b;
  color:#fff;
  padding:14px 18px;
  border-radius:999px;
  font-weight:700;
  box-shadow:var(--shadow);
}

@media (max-width: 980px){
  .menu,.top-actions{display:none}
  .services-grid,.empresa-grid,.empresa-bottom,.contact-grid{
    grid-template-columns:1fr;
  }
  .empresa-right{grid-template-rows:auto}
  .hero-inner{
    align-items:flex-end;
    padding-bottom:34px;
  }
  .hero-copy{
    max-width:100%;
    margin:0;
  }
}


.service-thumb.top-focus{
  background-position:center top;
  background-size:cover;
}

@media (max-width: 980px){
  .hero{
    min-height:560px;
    background-position: 40% 12%;
  }
  .hero-inner{
    min-height:560px;
  }
}


body.modal-open{
  overflow:hidden;
}

.quote-modal{
  position:fixed;
  inset:0;
  z-index:500;
  display:none;
}
.quote-modal.is-open{
  display:block;
}
.quote-backdrop{
  position:absolute;
  inset:0;
  background:rgba(6,12,18,.72);
  backdrop-filter:blur(6px);
}
.quote-dialog{
  position:relative;
  z-index:2;
  width:min(720px, calc(100% - 28px));
  margin:40px auto;
  background:#ffffff;
  color:#101923;
  border-radius:18px;
  padding:28px;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  max-height:calc(100vh - 80px);
  overflow:auto;
}
.quote-close{
  position:absolute;
  top:14px;
  right:16px;
  border:none;
  background:transparent;
  font-size:2rem;
  line-height:1;
  cursor:pointer;
  color:#5f6873;
}
.quote-tag{
  margin:0 0 8px;
  color:#66a93d;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.quote-dialog h2{
  margin:0 0 10px;
  font-size:2rem;
}
.quote-intro{
  margin:0 0 20px;
  color:#67717c;
  line-height:1.6;
}
.quote-form label{
  display:block;
  margin-bottom:14px;
}
.quote-form span{
  display:block;
  margin-bottom:8px;
  font-weight:700;
}
.quote-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.quote-form input,
.quote-form textarea{
  width:100%;
  border:1px solid #d9dde2;
  border-radius:10px;
  padding:14px 14px;
  font:inherit;
  color:#101923;
  background:#fff;
}
.quote-form textarea{
  resize:vertical;
  min-height:120px;
}
.quote-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
.quote-contact-box{
  margin-top:22px;
  padding:18px;
  background:#f5f7f9;
  border:1px solid #e3e7eb;
  border-radius:14px;
}
.quote-contact-box h3{
  margin:0 0 10px;
}
.quote-contact-box p{
  margin:8px 0;
  color:#1f2b38;
}
@media (max-width: 700px){
  .quote-grid{
    grid-template-columns:1fr;
  }
  .quote-dialog{
    margin:18px auto;
    max-height:calc(100vh - 36px);
    padding:22px 18px;
  }
}


/* ===== Responsive improvements ===== */
img{
  max-width:100%;
  height:auto;
}

.hero{
  min-height:640px;
  background-size:cover;
  background-position:42% center;
}

.hero-inner{
  min-height:640px;
  align-items:center;
  padding-top:40px;
  padding-bottom:40px;
}

.hero-copy{
  max-width:560px;
}

.hero-buttons .btn{
  min-width:160px;
}

.services-grid{
  align-items:stretch;
}

.service-card{
  min-height:100%;
}

.contact-card,
.service-card,
.panel{
  border-radius:16px;
}

@media (max-width: 1100px){
  .brand img{
    height:74px;
  }

  .menu{
    gap:20px;
    font-size:.95rem;
  }

  .container{
    width:min(1200px, calc(100% - 28px));
  }
}

@media (max-width: 900px){
  .header{
    position:sticky;
  }

  .nav{
    padding:10px 0;
  }

  .brand img{
    height:64px;
  }

  .menu,
  .top-actions{
    display:none;
  }

  .hero{
    min-height:500px;
    background-position:48% center;
  }

  .hero-inner{
    min-height:500px;
    align-items:flex-end;
    padding-bottom:32px;
  }

  .hero-copy{
    max-width:100%;
    margin:0;
  }

  .hero-copy h1{
    font-size:clamp(2rem, 9vw, 3rem);
  }

  .hero-copy p{
    font-size:clamp(1rem, 4.8vw, 1.45rem);
  }

  .hero-buttons{
    gap:10px;
  }

  .hero-buttons .btn{
    flex:1 1 180px;
  }

  .services-grid,
  .empresa-grid,
  .empresa-bottom,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .service-card{
    min-height:auto;
  }

  .service-thumb{
    height:180px;
  }

  .empresa-right{
    grid-template-rows:auto;
  }

  .empresa-image.large{
    min-height:240px;
  }

  .empresa-image.small{
    min-height:220px;
  }

  .entrega h3{
    font-size:1.8rem;
  }

  .contact-grid{
    gap:18px;
  }

  .contact-card{
    padding:22px;
  }

  .contact-cta .btn,
  .contact-bottom .btn,
  .btn.wide{
    width:100%;
    min-width:0;
  }

  .wa-float{
    right:12px;
    bottom:12px;
    padding:12px 16px;
    font-size:.95rem;
  }
}

@media (max-width: 640px){
  .container{
    width:min(1200px, calc(100% - 22px));
  }

  .brand img{
    height:56px;
  }

  .hero{
    min-height:420px;
    background-position:50% center;
  }

  .hero-inner{
    min-height:420px;
    padding-bottom:22px;
  }

  .hero-copy h1{
    font-size:1.9rem;
    line-height:1.05;
  }

  .hero-copy p{
    font-size:1rem;
    line-height:1.5;
  }

  .hero-buttons{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-buttons .btn{
    width:100%;
    min-width:0;
  }

  .services{
    padding:20px 0 46px;
  }

  .section-head h2{
    font-size:1.8rem;
  }

  .service-card{
    padding:12px 12px 18px;
  }

  .service-thumb{
    height:150px;
  }

  .empresa{
    padding:42px 0 44px;
  }

  .empresa-copy{
    padding:22px 18px 24px;
  }

  .empresa-copy h2{
    font-size:1.8rem;
  }

  .about-copy p,
  .empresa-copy p,
  .entrega p,
  .contact-card p{
    line-height:1.55;
  }

  .entrega{
    padding:20px 18px;
  }

  .contacto{
    padding:34px 0 48px;
  }

  .contact-card h3{
    font-size:1.25rem;
  }

  .icon-badge{
    width:46px;
    height:46px;
    font-size:1.1rem;
  }
}

/* ===== Pro styling upgrade ===== */
body.premium-site{
  background:
    radial-gradient(circle at top right, rgba(83,185,59,.08), transparent 18%),
    radial-gradient(circle at top left, rgba(235,101,84,.08), transparent 18%),
    #07111c;
}

.header{
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.nav{
  padding: 16px 0;
}

.brand img{
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.20));
}

.hero{
  min-height: 720px;
}

.hero-overlay{
  background:
    linear-gradient(90deg, rgba(4,8,14,.70) 0%, rgba(4,8,14,.34) 42%, rgba(4,8,14,.16) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.24));
}

.hero-copy{
  background: rgba(7,17,28,.28);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.hero-copy h1{
  letter-spacing: -0.02em;
}

.hero-copy p{
  color: #eef2f7;
  opacity: .95;
}

.btn{
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
}

.services{
  background:
    linear-gradient(180deg, #f2f3f5 0%, #e9ebef 100%);
}

.section-head span{
  text-transform: uppercase;
  letter-spacing: .12em;
}

.service-card{
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}

.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(0,0,0,.12);
}

.service-thumb{
  border-radius: 12px;
}

.empresa{
  background:
    radial-gradient(circle at top right, rgba(83,185,59,.10), transparent 18%),
    linear-gradient(180deg, #06101f 0%, #0a1526 100%);
}

.panel{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.empresa-image{
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.entrega h3{
  letter-spacing: -0.02em;
}

.contacto{
  background:
    linear-gradient(180deg, #f5f6f8 0%, #eceef2 100%);
}

.contact-card{
  border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
}

.contact-card .cargo{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}

.contact-lines a{
  display: inline-block;
  padding: 6px 0;
}

.wa-float{
  background: linear-gradient(135deg, #53b93b, #6fd44a);
}

@media (max-width: 900px){
  .hero{
    min-height: 520px;
  }
  .hero-copy{
    padding: 20px;
  }
}

/* ===== Nivel top dark sections ===== */
.services{
  background:
    radial-gradient(circle at top left, rgba(83,185,59,.08), transparent 18%),
    linear-gradient(180deg, #0a1420 0%, #0d1827 100%) !important;
  color:#ffffff !important;
}

.section-head h2,
.section-head.dark h2{
  color:#ffffff !important;
}

.section-head span{
  color:#b8c3cf !important;
}

.service-card{
  background:#111c2b !important;
  border:1px solid rgba(255,255,255,.08) !important;
  color:#ffffff !important;
  box-shadow:0 18px 34px rgba(0,0,0,.22) !important;
}

.service-card h3{
  color:#ffffff !important;
}

.service-card p{
  color:#c9d1d9 !important;
}

.service-thumb{
  border:1px solid rgba(255,255,255,.08) !important;
}

.contacto{
  background:
    radial-gradient(circle at top right, rgba(235,101,84,.08), transparent 18%),
    linear-gradient(180deg, #0a1420 0%, #0d1827 100%) !important;
  color:#ffffff !important;
}

.contact-card{
  background:#111c2b !important;
  border:1px solid rgba(255,255,255,.08) !important;
  color:#ffffff !important;
  box-shadow:0 18px 34px rgba(0,0,0,.20) !important;
}

.contact-card h3{
  color:#ffffff !important;
}

.contact-card p,
.contact-card .cargo{
  color:#c9d1d9 !important;
}

.contact-card a{
  color:#ffffff !important;
}

.icon-badge{
  background:rgba(120,200,79,.12) !important;
  color:#78c84f !important;
  border:1px solid rgba(120,200,79,.22);
}

.contact-cta .btn{
  box-shadow:0 18px 34px rgba(0,0,0,.24);
}

.service-card:hover,
.contact-card:hover{
  transform:translateY(-6px);
}

.menu a{
  position:relative;
}

.menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:#78c84f;
  transition:width .22s ease;
}

.menu a:hover::after{
  width:100%;
}

.hero-copy{
  border:1px solid rgba(255,255,255,.08) !important;
  background:rgba(7,17,28,.42) !important;
}

@media (max-width: 900px){
  .services,
  .contacto{
    padding-top:36px !important;
    padding-bottom:44px !important;
  }
}


/* ===== Mobile logo + hero fix ===== */
.brand{
  display:flex;
  align-items:center;
}

.brand img{
  background:#fff;
  padding:4px 8px;
  border-radius:8px;
  object-fit:contain;
}

@media (max-width: 900px){
  .header{
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .nav{
    padding:10px 0;
  }

  .brand img{
    height:58px !important;
    width:auto;
    max-width:150px;
    padding:4px 6px;
    border-radius:6px;
  }

  .hero{
    min-height:430px !important;
    background-position:58% center !important;
    background-size:cover !important;
  }

  .hero-overlay{
    background:linear-gradient(180deg, rgba(4,8,14,.68) 0%, rgba(4,8,14,.55) 45%, rgba(4,8,14,.58) 100%) !important;
  }

  .hero-inner{
    min-height:430px !important;
    align-items:flex-start !important;
    padding-top:86px !important;
    padding-bottom:20px !important;
  }

  .hero-copy{
    width:100%;
    max-width:none !important;
    margin:0 !important;
    padding:18px !important;
    border-radius:14px !important;
    background:rgba(7,17,28,.52) !important;
  }

  .hero-copy h1{
    font-size:2rem !important;
    line-height:1.05 !important;
    margin-bottom:10px !important;
  }

  .hero-copy p{
    font-size:1.05rem !important;
    line-height:1.4 !important;
  }

  .hero-buttons{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    margin-top:16px !important;
  }

  .hero-buttons .btn{
    width:100% !important;
    min-width:0 !important;
    min-height:50px !important;
    padding:0 14px !important;
    font-size:1rem !important;
  }
}

@media (max-width: 640px){
  .brand img{
    height:54px !important;
    max-width:140px;
  }

  .hero{
    min-height:400px !important;
    background-position:60% center !important;
  }

  .hero-inner{
    min-height:400px !important;
    padding-top:78px !important;
  }

  .hero-copy{
    padding:16px !important;
  }

  .hero-copy h1{
    font-size:1.8rem !important;
  }

  .hero-copy p{
    font-size:.98rem !important;
  }

  .wa-float{
    bottom:84px !important;
  }
}


.quote-actions button.btn{
  border:none;
  cursor:pointer;
  font:inherit;
}


/* ===== Modo ventas pro ===== */
.hero-copy{
  max-width: 620px !important;
}

.hero-copy h1{
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-copy p{
  max-width: 560px;
}

.hero-buttons .btn{
  min-width: 180px;
}

.service-card h3,
.contact-card h3{
  letter-spacing: -0.01em;
}

.quote-note{
  margin: 0 0 14px;
  color:#5d6773;
  font-weight:600;
  line-height:1.5;
}

.contact-card-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.contact-card-actions .btn{
  min-height:40px;
  padding:0 16px;
  font-size:.92rem;
}

.contact-card{
  position:relative;
  overflow:hidden;
}

.contact-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,#78c84f,#eb6554);
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 18% 75%, rgba(120,200,79,.12), transparent 22%);
  pointer-events:none;
}

@media (max-width: 900px){
  .contact-card-actions{
    flex-direction:column;
  }
  .contact-card-actions .btn{
    width:100%;
  }
}
