/* MasterPlan Advisor — página de inicio · rediseño "historias" · 24-nov-2026
   Se carga solo en la portada (body.home), después de styles.css. */
.home{background:#23272B;color:#fff}
.home .wrap{max-width:1240px;padding:0 24px}
.home section{padding:6.5rem 0}
.home h2{font-size:clamp(2.1rem,3.6vw,3rem);line-height:1.08;margin:0;max-width:none}
.hm-k,.home .kicker{font-family:var(--mono);font-weight:500;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--obra);margin:0 0 .75rem}
.home .btn{border-radius:2px;font-family:var(--mono);font-weight:500;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;padding:1.05rem 1.8rem;border-width:1px}
.home .btn-ghost,.home .btn-ghost-light{color:#fff;border-color:rgba(255,255,255,.6)}
.home .btn-ghost:hover,.home .btn-ghost-light:hover{background:#fff;color:#23272B;border-color:#fff}
.hm-rule{display:block;width:56px;height:4px;background:var(--obra);margin:1.25rem 0}
.hm-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:3.5rem}
.hm-lead{font-size:1.1rem;line-height:1.5;color:#C8CBCF;max-width:60ch;margin:0}

/* portada */
.home .hero::before{filter:saturate(.5)}
.home .hero::after{background:rgba(35,39,43,.72)}
.home .hero .hero-inner{max-width:1240px;padding:clamp(5rem,11vw,9rem) 24px clamp(4.5rem,9vw,7.5rem)}
.home .hero h1{font-size:clamp(2.5rem,5vw,4.25rem);line-height:1.06;max-width:21ch;margin:0}
.home .hero h1::after{content:"";display:block;width:88px;height:6px;background:var(--obra);margin:2.25rem 0 2rem}
.home .hero-stage{font-family:var(--sans);font-size:clamp(1.1rem,1.6vw,1.4rem);line-height:1.45;letter-spacing:0;text-transform:none;color:#fff;max-width:36ch;margin:0 0 2.75rem}
.home .hero-cta{gap:1rem}

/* trayectoria */
.home .stats{background:#1B1E21;border:0;padding:5rem 0}
.home .stats h2{font-family:var(--mono);font-weight:500;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--obra);margin:0 0 2.5rem}
.home .stats-grid{gap:2rem;margin:0}
.home .stat{border:0;padding:0}
.home .stat-n{font-size:clamp(2.25rem,4vw,3.5rem);font-weight:600;line-height:1}
.home .stat-n::after{content:"";display:block;width:56px;height:4px;background:var(--obra);margin:1.25rem 0}
.home .stat-u{color:#C8CBCF;font-weight:500;font-size:.75rem;letter-spacing:.08em;margin:0 0 .4rem}
.home .stat-l{font-weight:400;font-size:1.1rem}
.home .stats-note{font-family:var(--sans);font-size:.9rem;color:#C8CBCF;margin:2.5rem 0 0}

/* servicios: tarjetas con foto (escritorio) */
.hm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.hm-stage{display:contents}
.hm-band{display:none}
.hm-card{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr auto auto;align-items:center;column-gap:14px;aspect-ratio:3/4;padding:32px;overflow:hidden;color:#fff;text-decoration:none;background:#1B1E21}
.hm-card img,.hm-band img,.hm-proj img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.5)}
.hm-card::before,.hm-band::before,.hm-proj::before{content:"";position:absolute;inset:0;z-index:1;background:rgba(35,39,43,.68);transition:background .25s}
.hm-card:hover::before,.hm-proj:hover::before{background:rgba(35,39,43,.5)}
.hm-card>span,.hm-card>svg{position:relative;z-index:2}
.hm-play{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:50%;background:var(--obra);transition:transform .25s}
.hm-play svg{width:18px;height:20px;fill:#23272B}
.hm-card:hover .hm-play,.hm-card:focus-visible .hm-play{transform:scale(1.1)}
.hm-card:focus-visible{outline:3px solid var(--obra);outline-offset:3px}
.hm-see,.hm-fam,.hm-tag{font-family:var(--mono);font-weight:500;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}
.hm-fam{grid-column:1/-1;grid-row:3;color:var(--obra)}
.hm-nm{grid-column:1/-1;grid-row:4;margin-top:10px;font-size:clamp(1.35rem,2.1vw,1.875rem);line-height:1.1;font-weight:600}
.hm-nm::after{content:"";display:block;width:56px;height:4px;background:var(--obra);margin-top:20px}
.hm-arr{display:none}
.hm-close{margin:3rem 0 0;font-size:1.25rem;color:#C8CBCF}

/* servicios: franja por etapa y filas de título (celular) */
@media (max-width:860px){
  .hm-grid{display:flex;flex-direction:column;gap:24px}
  .hm-stage{display:block}
  .hm-band{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:112px;padding:20px;overflow:hidden}
  .hm-band>*:not(img){position:relative;z-index:2}
  .hm-band h3{margin:0;font-size:1.625rem;line-height:1.1}
  .hm-band h3::after{content:"";display:block;width:56px;height:4px;background:var(--obra);margin-top:12px}
  .hm-tag{color:var(--obra);font-size:.75rem;margin:0 0 6px}
  .hm-card{display:flex;aspect-ratio:auto;min-height:60px;padding:8px 4px;background:none;border-bottom:1px solid #4A5057;overflow:visible}
  .hm-card::before,.hm-card img,.hm-see,.hm-fam,.hm-nm::after{display:none}
  .hm-play{flex:none;width:40px;height:40px}
  .hm-play svg{width:12px;height:13px}
  .hm-card:hover .hm-play{transform:none}
  .hm-nm{flex:1;margin:0;font-size:1.0625rem;line-height:1.25}
  .hm-arr{display:block;flex:none;width:16px;height:12px;fill:none;stroke:#C8CBCF;stroke-width:1.6}
  .hm-close{margin-top:2rem;font-size:1.1rem}
  .home section{padding:4rem 0}
  .home .stats{padding:4rem 0}
  .hm-head{margin-bottom:2.5rem}
}

/* proyectos */
.hm-projects{background:#1B1E21}
.hm-projects .hm-head>div{max-width:760px}
.hm-pgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hm-proj{position:relative;display:flex;align-items:flex-end;aspect-ratio:3/2;padding:24px;overflow:hidden;text-decoration:none;color:#fff;font-family:var(--mono);font-weight:500;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}
.hm-proj span{position:relative;z-index:2}
.hm-proj:focus-visible{outline:3px solid var(--obra);outline-offset:3px}
@media (max-width:860px){.hm-pgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media (max-width:560px){.hm-pgrid{grid-template-columns:1fr}.hm-proj{aspect-ratio:16/9;padding:20px}}

/* contacto */
.hm-cgrid{display:grid;grid-template-columns:.9fr 1.1fr;gap:4rem;align-items:start}
@media (max-width:860px){.hm-cgrid{grid-template-columns:1fr;gap:3rem}}
.hm-crow{display:block;padding:1.25rem 0;border-top:1px solid #4A5057;text-decoration:none;color:#fff}
.hm-crow+.hm-crow{border-bottom:1px solid #4A5057}
.hm-crow em{display:block;font-style:normal;font-family:var(--mono);font-weight:500;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:#C8CBCF}
.hm-crow b{display:block;margin-top:6px;font-size:clamp(1.15rem,2vw,1.5rem);font-weight:600;overflow-wrap:anywhere}
.hm-crow:hover b{color:var(--obra)}
.hm-form label{display:block;margin-bottom:1.25rem;font-family:var(--mono);font-weight:500;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:#C8CBCF}
.hm-form label>span[aria-hidden]{color:var(--obra)}
.hm-form input,.hm-form textarea,.hm-form .tel select{display:block;width:100%;margin-top:8px;padding:14px;border:1px solid #5A6068;border-radius:0;background-color:#1B1E21;color:#fff;font:400 1rem var(--sans);letter-spacing:0;text-transform:none}
.hm-form .tel{margin-top:8px}
.hm-form .tel select,.hm-form .tel input{margin-top:0}
.hm-form .tel select{padding-right:1.7rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.500l5 5 5-5' fill='none' stroke='%23C8CBCF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.hm-form .tel select:focus{background-color:#1B1E21}
.hm-form input::placeholder,.hm-form textarea::placeholder{color:#8B9096}
.hm-form input:focus,.hm-form textarea:focus,.hm-form .tel select:focus{outline:2px solid var(--obra);outline-offset:1px;border-color:var(--obra)}
.hm-form .form-status.ok{color:#8FCB9B}
.hm-form .form-status.err{color:#F0A29F}

/* pie */
.home .site-footer{background:#1B1E21}
