/* ===== Taller Montaño — styles ===== */
:root{
  --red:#ce1126;
  --red-dark:#a50e1e;
  --ink:#14171c;
  --ink-2:#0e0f12;
  --paper:#f5f6f8;
  --paper-2:#eceef2;
  --muted:#5b6068;
  --line:#e2e5ea;
  --white:#fff;
  --wa:#25d366;
  --wa-dark:#1da851;
  --shadow:0 10px 30px rgba(15,17,22,.10);
  --shadow-lg:0 24px 60px rgba(15,17,22,.18);
  --radius:16px;
  --container:1160px;
  --head-font:'Barlow Condensed',Impact,sans-serif;
  --body-font:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--body-font);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 22px}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--body-font);font-weight:700;font-size:.98rem;
  padding:.8rem 1.35rem;border-radius:999px;border:2px solid transparent;
  cursor:pointer;transition:transform .15s ease,box-shadow .2s ease,background .2s ease;
  white-space:nowrap;line-height:1;
}
.btn .ico{width:1.15em;height:1.15em}
.btn:hover{transform:translateY(-2px)}
.btn-lg{padding:1rem 1.7rem;font-size:1.05rem}
.btn-block{display:flex;width:100%;justify-content:center}
.btn-wa{background:var(--wa);color:#08331c;box-shadow:0 8px 22px rgba(37,211,102,.35)}
.btn-wa:hover{background:var(--wa-dark);color:#fff}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.btn-ghost:hover{background:#fff;color:var(--ink);border-color:#fff}

/* ---- Brand wordmark ---- */
.brand{display:inline-flex;align-items:center;gap:.5rem}
.brand-swoosh{display:inline-flex;margin-right:-.2rem}
.brand-text{display:flex;flex-direction:column;line-height:.82}
.brand-top{font-family:var(--head-font);font-weight:600;letter-spacing:.22em;font-size:.74rem;color:var(--ink)}
.brand-main{font-family:var(--head-font);font-weight:800;font-style:italic;font-size:1.7rem;color:var(--red);letter-spacing:.01em}
.site-header.scrolled .brand-top,.site-footer .brand-top{color:var(--ink)}

/* ---- Header ---- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.86);backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid transparent;transition:box-shadow .25s ease,border-color .25s ease;
}
.site-header.scrolled{box-shadow:0 6px 20px rgba(15,17,22,.08);border-color:var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:70px;gap:1rem}
.nav{display:flex;align-items:center;gap:1.5rem}
.nav>a{font-weight:600;font-size:.96rem;color:var(--ink);transition:color .15s}
.nav>a:hover{color:var(--red)}
.nav .nav-cta{color:#08331c}
.nav .nav-cta:hover{color:#fff}

.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;padding:8px;cursor:pointer}
.nav-toggle span{width:26px;height:3px;background:var(--ink);border-radius:3px;transition:transform .25s,opacity .2s}

/* ---- Hero ---- */
.hero{position:relative;color:#fff;overflow:hidden;isolation:isolate}
.hero-bg{
  position:absolute;inset:0;z-index:-2;
  background:url('assets/img/hero.jpg') center 38%/cover no-repeat;
  transform:scale(1.02);
}
.hero-overlay{
  position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(110deg,rgba(10,11,14,.92) 0%,rgba(12,14,18,.78) 42%,rgba(12,14,18,.45) 100%),
    linear-gradient(0deg,rgba(10,11,14,.85),rgba(10,11,14,0) 55%);
}
.hero-content{padding:5.5rem 22px 5rem;max-width:760px}
.eyebrow{
  display:inline-block;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  font-size:.78rem;color:#fff;background:var(--red);padding:.4rem .8rem;border-radius:999px;margin:0 0 1.2rem;
}
.hero h1{
  font-family:var(--head-font);font-weight:800;font-style:italic;
  font-size:clamp(3rem,9vw,5.7rem);line-height:.92;margin:0 0 .8rem;letter-spacing:.01em;
  text-shadow:0 3px 24px rgba(0,0,0,.4);
}
.hero h1 .accent{color:var(--red);
  -webkit-text-stroke:0;display:inline-block}
.hero-slogan{font-family:var(--head-font);font-weight:600;font-size:clamp(1.3rem,3.4vw,1.9rem);color:#fff;margin:0 0 1rem;font-style:italic}
.hero-sub{font-size:1.08rem;color:rgba(255,255,255,.9);max-width:620px;margin:0 0 2rem}
.hero-cta{display:flex;flex-wrap:wrap;gap:.9rem}

/* ---- Trust strip ---- */
.trust-strip{background:var(--ink);color:#fff}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;padding:1.1rem 22px}
.trust-item{display:flex;align-items:center;justify-content:center;gap:.6rem;text-align:center;
  font-weight:600;font-size:.98rem;padding:.5rem;border-right:1px solid rgba(255,255,255,.12)}
.trust-item:last-child{border-right:0}
.trust-ico{font-size:1.3rem;line-height:1}

/* ---- Sections ---- */
.section{padding:5rem 0}
.section-head{max-width:760px;margin:0 auto 3rem;text-align:center}
.kicker{font-family:var(--head-font);font-weight:700;text-transform:uppercase;letter-spacing:.18em;
  color:var(--red);font-size:1rem;margin:0 0 .5rem}
.kicker-light{color:#ff6b78}
.section-head h2{font-family:var(--head-font);font-weight:700;font-size:clamp(1.9rem,4.5vw,3rem);
  line-height:1.05;margin:0 0 .8rem}
.section-lead{color:var(--muted);font-size:1.08rem;margin:0}

/* ---- Service cards ---- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:1.5rem}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:2rem 1.7rem;box-shadow:var(--shadow);position:relative;overflow:hidden;
  transition:transform .2s ease,box-shadow .25s ease;
}
.card::before{content:"";position:absolute;left:0;top:0;height:5px;width:100%;background:linear-gradient(90deg,var(--red),var(--red-dark))}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.card-ico{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--red),var(--red-dark));margin-bottom:1.1rem}
.card-ico svg{width:30px;height:30px;color:#fff}
.card h3{font-family:var(--head-font);font-weight:700;font-size:1.45rem;margin:0 0 .6rem;line-height:1.1}
.card>p{color:var(--muted);margin:0 0 1.1rem;font-size:.98rem}
.ticks{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.ticks li{position:relative;padding-left:1.7rem;font-size:.95rem}
.ticks li::before{content:"";position:absolute;left:0;top:.36em;width:13px;height:7px;
  border-left:2.5px solid var(--red);border-bottom:2.5px solid var(--red);transform:rotate(-45deg)}

/* ---- Why (dark) ---- */
.section-dark{background:radial-gradient(120% 120% at 0% 0%,#1c2026 0%,var(--ink-2) 60%);color:#fff}
.section-dark .section-head h2{color:#fff}
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:1.4rem}
.why-item{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);border-radius:var(--radius);
  padding:1.7rem 1.4rem;border-top:4px solid var(--red)}
.why-item h3{font-family:var(--head-font);font-weight:700;font-size:1.3rem;margin:0 0 .55rem;line-height:1.1}
.why-item p{color:rgba(255,255,255,.72);font-size:.96rem;margin:0}

/* ---- Gallery ---- */
/* Fluid, device-adaptive gallery: columns reflow with width, every photo keeps the same crop */
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem}
.g-item{margin:0;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);position:relative;aspect-ratio:4/5}
.g-item img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.g-item:hover img{transform:scale(1.06)}

/* ---- Contact ---- */
.section-contact{background:#fff;border-top:1px solid var(--line)}
.contact-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:2.5rem;align-items:start}
.info-block{padding:1.4rem 0;border-bottom:1px solid var(--line)}
.info-block:first-child{padding-top:0}
.info-block h3{font-family:var(--head-font);font-weight:700;font-size:1.35rem;margin:0 0 .55rem;color:var(--red)}
.info-block p{margin:0 0 .5rem;color:var(--ink)}
.link-arrow{font-weight:600;color:var(--red)}
.link-arrow:hover{text-decoration:underline}
.hours{list-style:none;margin:0;padding:0;display:grid;gap:.4rem;max-width:330px}
.hours li{display:flex;justify-content:space-between;gap:1rem;font-size:1rem}
.hours li span:first-child{color:var(--muted)}
.hours .closed{color:var(--red);font-weight:600}
.phones{list-style:none;margin:0 0 1.1rem;padding:0;display:grid;gap:.55rem;max-width:360px}
.phones a{display:flex;justify-content:space-between;align-items:center;gap:1rem;
  padding:.7rem 1rem;background:var(--paper);border:1px solid var(--line);border-radius:12px;transition:.15s}
.phones a:hover{border-color:var(--red);background:#fff;transform:translateX(3px)}
.ph-label{color:var(--muted);font-size:.9rem}
.ph-num{font-weight:700;font-size:1.05rem}
.fb-link{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;color:#1877f2}
.fb-link .ico{width:1.3em;height:1.3em}
.fb-link:hover{text-decoration:underline}

.contact-map{position:sticky;top:90px}
.contact-map iframe{width:100%;height:380px;border:0;border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:1rem;filter:saturate(1.05);
  background:repeating-linear-gradient(45deg,#e9ecf1,#e9ecf1 14px,#eef1f5 14px,#eef1f5 28px)}

/* ---- Footer ---- */
.site-footer{background:var(--ink-2);color:#fff;padding-top:3rem}
.footer-inner{display:flex;justify-content:space-between;gap:2rem;flex-wrap:wrap;padding-bottom:2.2rem;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-brand .brand-top{color:#fff}
.footer-brand p{color:rgba(255,255,255,.65);margin:.7rem 0 0;font-style:italic;max-width:340px}
.footer-nav{display:flex;gap:1.6rem;flex-wrap:wrap;align-items:center}
.footer-nav a{color:rgba(255,255,255,.8);font-weight:600}
.footer-nav a:hover{color:#fff}
.footer-bottom{padding:1.3rem 0}
.footer-bottom .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.8rem}
.footer-bottom p{margin:0;color:rgba(255,255,255,.5);font-size:.88rem}
/* MILO authorship mark — subtle, left side, accent dot on the left */
.milo-mark{order:-1;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600;font-size:10px;line-height:1;
  letter-spacing:.16em;text-transform:uppercase;text-decoration:none;
  color:rgba(255,255,255,.34);padding:5px 11px;border-radius:999px;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.02);
  transition:color .2s ease,border-color .2s ease,background .2s ease}
.milo-mark::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:var(--red);opacity:.8}
.milo-mark:hover,.milo-mark:focus-visible{color:#fff;border-color:rgba(206,17,38,.5);background:rgba(206,17,38,.08);outline:none}
.milo-mark:focus-visible{box-shadow:0 0 0 3px rgba(206,17,38,.22)}

/* ---- MILO chat assistant ---- */
/* container is click-through; only the bubble + open panel capture taps (otherwise the
   invisible closed panel — full-screen on mobile — blankets the page and eats every click) */
.milo-widget{position:fixed;right:20px;bottom:20px;z-index:70;display:flex;flex-direction:column;align-items:flex-end;gap:.7rem;pointer-events:none}
.milo-bubble{pointer-events:auto;display:inline-flex;align-items:center;gap:.5rem;height:58px;padding:0 1.15rem 0 .9rem;border:0;cursor:pointer;
  border-radius:999px;background:linear-gradient(145deg,var(--red),var(--red-dark));color:#fff;
  box-shadow:0 12px 28px rgba(206,17,38,.4);transition:transform .15s ease,box-shadow .2s ease;animation:milo-pulse 2.6s infinite}
.milo-bubble:hover{transform:translateY(-2px)}
.milo-bubble .milo-ico{width:28px;height:28px}
.milo-bubble .milo-ico-x{display:none}
.milo-bubble-label{font-family:var(--head-font);font-weight:700;font-size:1.15rem;letter-spacing:.04em;font-style:italic}
.milo-widget.open .milo-bubble{animation:none}
.milo-widget.open .milo-ico-open{display:none}
.milo-widget.open .milo-ico-x{display:block}
.milo-widget.open .milo-bubble-label{display:none}
.milo-widget.open .milo-bubble{padding:0;width:58px;justify-content:center}
@keyframes milo-pulse{0%{box-shadow:0 12px 28px rgba(206,17,38,.4),0 0 0 0 rgba(206,17,38,.45)}70%{box-shadow:0 12px 28px rgba(206,17,38,.4),0 0 0 16px rgba(206,17,38,0)}100%{box-shadow:0 12px 28px rgba(206,17,38,.4),0 0 0 0 rgba(206,17,38,0)}}

.milo-panel{width:370px;max-width:calc(100vw - 40px);height:520px;max-height:calc(100vh - 120px);
  background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-lg);
  display:flex;flex-direction:column;overflow:hidden;transform-origin:bottom right;
  opacity:0;transform:translateY(12px) scale(.96);pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.milo-widget.open .milo-panel{opacity:1;transform:none;pointer-events:auto}
.milo-head{display:flex;align-items:center;gap:.6rem;padding:.85rem 1rem;color:#fff;
  background:linear-gradient(135deg,var(--ink),var(--ink-2));border-bottom:3px solid var(--red)}
.milo-head-id{display:flex;align-items:center;gap:.6rem;flex:1;min-width:0}
.milo-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;flex:none;
  background:linear-gradient(145deg,var(--red),var(--red-dark));font-family:var(--head-font);font-weight:800;font-style:italic;font-size:1.3rem}
.milo-head-txt{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.milo-head-txt strong{font-family:var(--head-font);font-weight:700;font-size:1.15rem;letter-spacing:.03em}
.milo-sub{font-size:.74rem;color:rgba(255,255,255,.7);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.milo-wa{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--wa);color:#fff;transition:.15s}
.milo-wa svg{width:19px;height:19px}
.milo-wa:hover{background:var(--wa-dark)}
.milo-close{background:none;border:0;color:rgba(255,255,255,.8);font-size:1.7rem;line-height:1;cursor:pointer;padding:0 .2rem;flex:none}
.milo-close:hover{color:#fff}

.milo-msgs{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem;background:var(--paper)}
.milo-msg{max-width:85%;padding:.6rem .85rem;border-radius:14px;font-size:.95rem;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.milo-bot{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:5px;color:var(--ink)}
.milo-user{align-self:flex-end;background:linear-gradient(145deg,var(--red),var(--red-dark));color:#fff;border-bottom-right-radius:5px}
.milo-typing{color:var(--muted);letter-spacing:.15em;animation:milo-blink 1.1s infinite}
@keyframes milo-blink{0%,100%{opacity:.35}50%{opacity:1}}

.milo-input{display:flex;align-items:center;gap:.5rem;padding:.6rem;border-top:1px solid var(--line);background:#fff}
.milo-input input{flex:1;border:1px solid var(--line);border-radius:999px;padding:.6rem .9rem;font-family:var(--body-font);font-size:.95rem;outline:none}
.milo-input input:focus{border-color:var(--red)}
.milo-input button{flex:none;width:42px;height:42px;border:0;border-radius:50%;cursor:pointer;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--red),var(--red-dark));color:#fff;transition:transform .15s}
.milo-input button:hover{transform:scale(1.06)}
.milo-input button svg{width:20px;height:20px}
.milo-foot{margin:0;padding:.45rem 1rem .6rem;text-align:center;font-size:.72rem;color:var(--muted);background:#fff}
.milo-foot a{color:var(--wa-dark);font-weight:600}

@media (max-width:480px){
  .milo-widget{right:14px;bottom:14px}
  .milo-panel{width:calc(100vw - 28px);height:calc(100vh - 110px)}
}
@media (prefers-reduced-motion:reduce){.milo-bubble{animation:none}.milo-panel{transition:none}}

/* ---- Reveal animation ---- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}.wa-float{animation:none}html{scroll-behavior:auto}}

/* ===== Responsive ===== */
@media (max-width:900px){
  .trust-grid{grid-template-columns:repeat(2,1fr);gap:.2rem}
  .trust-item:nth-child(2){border-right:0}
  .contact-grid{grid-template-columns:1fr}
  .contact-map{position:static}
}
@media (max-width:720px){
  .nav{position:fixed;inset:70px 0 auto;flex-direction:column;align-items:stretch;gap:0;
    background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--shadow);
    padding:.5rem 22px 1.2rem;transform:translateY(-130%);transition:transform .3s ease;z-index:40}
  body.nav-open .nav{transform:translateY(0)}
  .nav>a{padding:.85rem .2rem;border-bottom:1px solid var(--line)}
  .nav .nav-cta{justify-content:center;margin-top:.8rem;border-bottom:0}
  .nav-toggle{display:flex}
  body.nav-open .nav-toggle span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  body.nav-open .nav-toggle span:nth-child(2){opacity:0}
  body.nav-open .nav-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
  .hero-content{padding:3.5rem 22px 3.5rem}
  .section{padding:3.5rem 0}
  .footer-inner{flex-direction:column;gap:1.5rem}
}
@media (max-width:480px){
  .hero-cta .btn{flex:1 1 auto;justify-content:center}
}
