:root{
  --bg:#eef2f8;
  --surface:#ffffff;
  --text:#1b2745;
  --muted:#5f6f8c;
  --line:#dbe3f0;
  --blue:#24308f;
  --blue-2:#313ba3;
  --whatsapp:#59d367;
  --whatsapp-2:#44c85a;
  --yellow:#f0b116;
  --shadow:0 18px 40px rgba(25,44,95,.10);
  --radius:30px;
  --max:1280px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:110px}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:#eef2f8;
}

img{max-width:100%;display:block}
.skip-link{position:absolute;left:14px;top:-60px;z-index:999;background:#fff;color:var(--blue);padding:10px 14px;border-radius:999px;font-weight:800;box-shadow:var(--shadow)}
.skip-link:focus{top:12px}
a{text-decoration:none;color:inherit}
.wrap{width:min(calc(100% - 28px), var(--max));margin:auto}

:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:4px;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}


#materiales,
#obras,
#contacto{
  scroll-margin-top:110px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:90;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(219,227,240,.95);
}

.nav{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.header-brand-link{
  flex:1 1 560px;
  max-width:820px;
  min-width:320px;
  display:block;
}

.header-brand{
  width:100%;
  height:auto;
  object-fit:contain;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav-links a{
  padding:12px 14px;
  border-radius:999px;
  font-size:18px;
  font-weight:700;
  color:#263657;
}

.nav-links a:hover{background:#eef3ff}

.nav-links .cta-link{
  background:var(--whatsapp);
  color:#fff;
  box-shadow:0 10px 24px rgba(89,211,103,.20);
}

.hero-section{
  padding:22px 0 18px;
}

.hero-slider{
  position:relative;
  overflow:hidden;
  border-radius:34px;
  border:1px solid var(--line);
  background:#f3f3f3;
  box-shadow:var(--shadow);
}

.hero-track{
  display:flex;
  transition:transform .55s ease;
  will-change:transform;
}

.hero-slide{
  min-width:100%;
  height:420px;
  position:relative;
  overflow:hidden;
  background:#f3f3f3;
}


.hero-cta{
  position:absolute;
  left:26px;
  bottom:12px;
  z-index:3;
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:0 26px;
  background:var(--whatsapp);
  color:#fff;
  font-size:15px;
  font-weight:900;
  box-shadow:0 16px 30px rgba(37,211,102,.28);
  white-space:nowrap;
}
.hero-slide picture{width:100%;height:100%;display:block}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
  background:#f3f3f3;
}
.hero-nav{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:4;
}

.hero-nav button{
  pointer-events:auto;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  border:0;
  background:rgba(255,255,255,.72);
  color:#53627e;
  font-size:22px;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(26,43,88,.10);
}

.hero-prev{left:18px}
.hero-next{right:18px}

.hero-dots{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:18px;
  display:flex;
  gap:8px;
  z-index:4;
}

.hero-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  border:0;
  padding:0;
  cursor:pointer;
  background:rgba(36,48,143,.22);
}

.hero-dot.active{background:var(--blue)}
.hero-dot[aria-current="true"]{background:var(--blue)}

section{padding:18px 0}

.section-head{
  margin-bottom:18px;
}

.section-head h2{
  margin:0;
  font-size:clamp(2rem,3vw,2.85rem);
  line-height:.98;
  letter-spacing:-.05em;
  color:#1d2948;
}

.section-head p{
  margin:10px 0 0;
  max-width:620px;
  font-size:16px;
  line-height:1.6;
  color:var(--muted);
}

.categories-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.obras-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.category-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:0 10px 26px rgba(26,43,88,.05);
  display:flex;
  flex-direction:column;
}

.category-icon{
  width:50px;
  height:50px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#eef3ff;
  color:var(--blue);
  font-size:22px;
  margin-bottom:14px;
}

.category-card h3{
  margin:0;
  font-size:20px;
  color:#16233f;
}

.category-card p{
  margin:10px 0 0;
  font-size:15px;
  line-height:1.6;
  color:var(--muted);
}

.category-link{
  margin-top:auto;
  padding-top:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:999px;
  background:#eef3ff;
  color:var(--blue);
  font-size:14px;
  font-weight:800;
}

.trust-band-section{
  padding:8px 0 18px;
}

.trust-band{
  display:grid;
  grid-template-columns:minmax(340px,1.08fr) minmax(620px,1.72fr);
  gap:26px;
  align-items:center;
  padding:36px 38px;
  border-radius:36px;
  background:linear-gradient(135deg,var(--blue) 0%, var(--blue-2) 100%);
  color:#fff;
  box-shadow:0 18px 38px rgba(35,48,143,.20);
}

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

.trust-copy h2{
  margin:0;
  font-size:clamp(2.2rem,4vw,4rem);
  line-height:.95;
  letter-spacing:-.06em;
  color:#fff;
}

.trust-copy p{
  margin:18px 0 0;
  font-size:16px;
  line-height:1.65;
  color:rgba(255,255,255,.92);
}

.trust-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.trust-stat{
  min-height:150px;
  padding:26px 24px;
  border-radius:28px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.trust-stat strong{
  display:block;
  font-size:clamp(2rem,3vw,3rem);
  line-height:1;
  letter-spacing:-.05em;
  color:#fff;
}

.trust-stat strong span{
  display:inline;
  margin-top:0;
  font-size:inherit;
  line-height:inherit;
  color:inherit;
}

.trust-stat span{
  display:block;
  margin-top:12px;
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,.92);
}

.contact-section{
  padding:18px 0 22px;
}

.contact-card{
  display:grid;
  grid-template-columns:1.1fr .95fr;
  background:#fff;
  border:1px solid var(--line);
  border-radius:36px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.contact-copy{
  padding:36px 34px;
  border-right:1px solid #e7ecf6;
  background:#f9fbff;
}

.contact-copy h2{
  margin:0;
  font-size:clamp(2rem,3vw,3.2rem);
  line-height:.95;
  letter-spacing:-.05em;
  color:#1a2746;
}

.contact-copy p{
  margin:16px 0 0;
  font-size:16px;
  line-height:1.65;
  color:var(--muted);
  max-width:600px;
}

.contact-list{
  display:grid;
  gap:16px;
  margin-top:28px;
}

.contact-item{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:16px;
  padding:18px 20px;
  border-radius:22px;
  background:#fff;
  border:1px solid #dfe7f4;
}

.contact-icon{
  width:48px;
  height:48px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:#eef2ff;
  color:var(--blue);
  font-size:20px;
}

.contact-icon svg{
  width:24px;
  height:24px;
  stroke:currentColor;
  stroke-width:2.4;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.contact-item strong{
  display:block;
  font-size:15px;
  color:#1a2746;
}

.contact-item span{
  display:block;
  margin-top:6px;
  font-size:14px;
  line-height:1.55;
  color:var(--muted);
}

.contact-item a{
  color:inherit;
  text-decoration:none;
}

.contact-item a:hover{
  color:var(--blue);
  text-decoration:underline;
}

.mini-map{
  width:100%;
  height:160px;
  margin-top:12px;
  border:0;
  border-radius:16px;
  display:block;
  background:#e9eef7;
}

.contact-form{
  padding:36px 34px;
  background:#f9f7f0;
}

.form-grid{
  display:grid;
  gap:16px;
}

.field,
.field-select,
.field-textarea{
  width:100%;
  border:1px solid #cfd8e7;
  background:#fff;
  border-radius:20px;
  padding:18px 20px;
  font:inherit;
  color:#22314f;
  outline:none;
}

.field,
.field-select{
  min-height:64px;
}

.field-textarea{
  min-height:150px;
  resize:vertical;
}

.form-status{
  min-height:22px;
  margin:0;
  font-size:14px;
  line-height:1.55;
  color:#53627e;
}

.submit-btn{
  width:100%;
  min-height:66px;
  border:0;
  border-radius:20px;
  background:linear-gradient(135deg,#25D366,#16b855);
  color:#fff;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 16px 28px rgba(37,211,102,.24);
}

.closing-band-section{
  padding:10px 0 0;
}

.closing-band{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:42px 46px;
  border-radius:36px;
  background:linear-gradient(135deg,var(--blue) 0%, var(--blue-2) 100%);
  color:#fff;
  box-shadow:0 18px 38px rgba(35,48,143,.22);
}

.closing-band h2{
  margin:0;
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:.95;
  letter-spacing:-.05em;
  color:#fff;
}

.closing-band p{
  margin:16px 0 0;
  font-size:16px;
  line-height:1.6;
  color:rgba(255,255,255,.9);
  max-width:760px;
}

.closing-btn{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:70px;
  padding:0 28px;
  border-radius:999px;
  border:0;
  background:linear-gradient(135deg,#25D366,#16b855);
  color:#fff;
  font-size:15px;
  font-weight:800;
  box-shadow:0 16px 30px rgba(37,211,102,.28);
  white-space:nowrap;
}

.footer-inner a{
  color:#66748d;
  text-decoration:none;
}
.footer-inner a:hover{
  color:var(--blue);
  text-decoration:underline;
}
.footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  align-items:center;
}
.footer-links a{
  font-size:14px;
}

footer{
  padding:22px 0 128px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  color:#66748d;
  font-size:14px;
  padding-top:6px;
}

.whatsapp-float{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:99;
  width:90px;
  height:90px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#25D366;
  color:#fff;
  border:4px solid #ffffff;
  box-shadow:0 16px 30px rgba(37,211,102,.30), 0 0 0 2px rgba(0,0,0,.08);
}
.spam-check{
  position:absolute;
  left:-10000px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.whatsapp-float img{
  width:51px;
  height:51px;
  object-fit:contain;
  display:block;
  filter:brightness(0) invert(1);
}

@media (max-width: 1100px){
  .categories-grid,.obras-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .trust-band{
    grid-template-columns:1fr;
    padding:30px 26px;
  }
  .contact-card{grid-template-columns:1fr}
  .header-brand-link{max-width:100%;min-width:0}
  .contact-copy{border-right:0;border-bottom:1px solid #e7ecf6}
  .closing-band{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 760px){
  .nav{
    min-height:76px;
    padding:10px 0;
    flex-direction:column;
    align-items:flex-end;
    gap:10px;
  }

  .header-brand-link{
    flex:0 0 auto;
    width:min(100%, 280px);
    max-width:100%;
    align-self:flex-start;
  }

  .nav-links{
    width:100%;
    justify-content:flex-end;
  }


  .hero-slide{height:300px}
  .hero-nav{display:none}
  .hero-nav button{
    width:40px;
    height:40px;
    font-size:20px;
  }
  .trust-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width: 640px){
  .wrap{width:min(calc(100% - 12px), var(--max))}
  .nav-links a{font-size:16px;padding:8px 9px}
  .hero-section{padding:12px 0 14px}

  .hero-slide{
    height:auto;
    background:#f3f3f3;
    padding-bottom:52px;
  }


  .hero-cta{
    left:18px;
    bottom:10px;
    min-height:42px;
    padding:0 17px;
    font-size:12px;
    box-shadow:0 12px 22px rgba(37,211,102,.24);
  }
  .hero-slide picture{
    width:100%;
    aspect-ratio:64 / 27;
    height:auto;
    display:block;
  }

  .hero-slide img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center center;
    background:#f3f3f3;
  }
  .hero-nav{display:none}

  .categories-grid,.obras-grid{grid-template-columns:1fr}
  .category-card{padding:18px}

  .trust-band{
    padding:22px 14px;
    border-radius:28px;
  }

  .trust-copy h2{font-size:2.2rem}
  .trust-copy p{font-size:15px}

  .trust-stat{
    min-height:auto;
    padding:14px 10px;
    border-radius:18px;
  }

  .trust-stat strong{
    font-size:1.5rem;
  }

  .trust-stat span{
    font-size:11px;
    line-height:1.35;
  }

  .contact-copy,
  .contact-form{
    padding:26px 20px;
  }

  .contact-copy h2{font-size:2.4rem}
  .field,.field-select{min-height:58px}
  .submit-btn{min-height:60px}

  .closing-band{
    padding:20px 16px;
    border-radius:28px;
    gap:12px;
  }

  .closing-band h2{
    font-size:1.45rem;
    line-height:1.05;
    letter-spacing:-.03em;
    white-space:nowrap;
  }

  .closing-band p{
    margin-top:10px;
    font-size:13px;
    line-height:1.45;
  }

  .closing-btn{
    min-height:44px;
    padding:0 16px;
    font-size:12px;
  }

  footer{padding-bottom:128px}
}
