/* ==========================================================================
   MYCLOUD.UNO — ESTILOS EDITORIALES DE INICIO (CSS/HOME.CSS)
   ========================================================================== */

.hm {
  --ink: #0f1222;
  --ind: #4f46e5;
  --ind-s: #c7d2fe;
  --grn: #10b981;
  --grn-s: #a7f3d0;
  --amb: #fbbf24;
  --amb-s: #fde68a;
  --dark: #1f2540;
  --mut: #4b5170;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background-color: #fbfbff;
  background-image: linear-gradient(#eceefa 1px, transparent 1px), linear-gradient(90deg, #eceefa 1px, transparent 1px);
  background-size: 64px 64px;
  overflow: hidden;
}

.hm * { box-sizing: border-box; }
.hm h1, .hm h2, .hm h3, .hm p { margin: 0; }
.hm .wrap { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.hm .mono { font-family: 'JetBrains Mono', monospace; }
.hm .disp { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; }

.hm .kick { display: flex; align-items: center; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .2em; font-weight: 500; }
.hm .kick i { flex: 1; height: 2px; background: var(--ink); }
.hm .kick .a { color: var(--ind); }
.hm .kick .b { color: #5b6178; }

.hm .hl { background: linear-gradient(transparent 62%, var(--ind-s) 62%, var(--ind-s) 92%, transparent 92%); }
.hm .hl-g { background: linear-gradient(transparent 62%, var(--grn-s) 62%, var(--grn-s) 92%, transparent 92%); }

.hm .btn { display: inline-block; text-decoration: none; border: 2px solid var(--ink); border-radius: 10px; padding: 16px 28px; font-size: 16px; font-weight: 700; color: var(--ink); background: #fff; transition: transform .15s, box-shadow .15s; }
.hm .btn.p { background: var(--ind); color: #fff; box-shadow: 5px 5px 0 var(--ink); }
.hm .btn:hover { transform: translate(-2px, -2px); }
.hm .btn.p:hover { box-shadow: 7px 7px 0 var(--ink); }

/* hero */
.hm .hero { padding: 56px 0 72px; }
.hm .hero .wrap { display: flex; flex-direction: column; gap: 36px; }
.hm .hero-grid { display: flex; gap: 40px; align-items: flex-start; }
.hm .hero-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hm h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(34px, 6.2vw, 92px); line-height: 1.04; letter-spacing: -.04em; word-break: normal; overflow-wrap: break-word; }
.hm h1 em, .hm h1 .c { font-style: normal; color: var(--ind); -webkit-text-fill-color: initial; display: inline; }
.hm .sub { font-size: 19px; line-height: 1.6; color: var(--mut); max-width: 620px; }
.hm .btns { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hm .stack { width: 330px; flex: none; position: relative; height: 520px; margin-top: 8px; }
.hm .pol { position: absolute; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 10px 10px 40px; transition: transform .25s; }
.hm .pol picture { display: block; width: 100%; }
.hm .pol img { display: block; width: 100%; object-fit: cover; border: 1px solid var(--ink); }
.hm .pol span { position: absolute; left: 14px; bottom: 11px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mut); }
.hm .pol.t { top: 0; left: 40px; width: 230px; transform: rotate(4deg); box-shadow: 8px 8px 0 var(--ind); }
.hm .pol.t img { height: 190px; }
.hm .pol.g { top: 150px; left: 0; width: 230px; transform: rotate(-4deg); box-shadow: 8px 8px 0 var(--grn); z-index: 2; }
.hm .pol.g img { height: 170px; }
.hm .pol.a { top: 300px; left: 80px; width: 230px; transform: rotate(3deg); box-shadow: 8px 8px 0 var(--amb); }
.hm .pol.a img { height: 150px; }
.hm .pol:hover { transform: rotate(0) translateY(-4px); z-index: 3; }

/* servicios */
.hm .serv { padding: 0 0 88px; }
.hm .row { display: flex; align-items: center; gap: 28px; padding: 22px 0; border-bottom: 2px solid var(--ink); transition: padding .2s; }
.hm .row:hover { padding-left: 12px; }
.hm .row .n { width: 90px; flex: none; font-family: 'Bricolage Grotesque', sans-serif; font-size: 64px; font-weight: 800; letter-spacing: -.05em; -webkit-text-stroke: 2px var(--ink); color: var(--c); }
.hm .row .t { width: 380px; flex: none; font-family: 'Bricolage Grotesque', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.hm .row .d { flex: 1; font-size: 16px; line-height: 1.55; color: var(--mut); }
.hm .tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; background: var(--amb); border: 2px solid var(--ink); border-radius: 6px; padding: 3px 8px; vertical-align: middle; font-weight: 500; }

/* proceso */
.hm .proc { padding: 0 0 96px; }
.hm .proc .wrap { display: flex; flex-direction: column; gap: 40px; }
.hm h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.04; letter-spacing: -.035em; max-width: 900px; }
.hm .steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; padding-bottom: 100px; }
.hm .steps:before { content: ""; position: absolute; left: 40px; right: 40px; top: 60px; border-top: 3px dashed var(--ink); }
.hm .st { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 22px; box-shadow: 8px 8px 0 var(--sh); }
.hm .st:nth-child(2) { margin-top: 50px; }
.hm .st:nth-child(3) { margin-top: 100px; }
.hm .st:nth-child(4) { margin-top: 150px; }
.hm .st .num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 72px; font-weight: 800; line-height: .9; letter-spacing: -.05em; -webkit-text-stroke: 2px var(--ink); color: var(--c); }
.hm .st h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 10px; line-height: 1.05; }
.hm .st p { font-size: 14.5px; line-height: 1.6; color: var(--mut); }
.hm .st.dk { background: var(--dark); color: #fff; }
.hm .st.dk .num { -webkit-text-stroke-color: #fff; color: transparent; }
.hm .st.dk p { color: var(--ind-s); }
.hm .st.dk a { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--grn-s); border-bottom: 2px solid var(--grn-s); text-decoration: none; }

/* banda */
.hm .band {
  background-color: var(--dark);
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  color: #fff;
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  padding: 150px 0 70px;
}
.hm .band .wrap { display: flex; flex-direction: column; gap: 36px; }
.hm .band .kick i { background: #4b5170; }
.hm .band .kick .a { color: var(--grn-s); }
.hm .band h2 .y { color: var(--amb); }

.hm .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hm .chips span { border: 2px solid #4b5170; border-radius: 999px; padding: 8px 16px; font-family: 'JetBrains Mono', monospace; font-size: 13px; transition: border-color .2s, color .2s; }
.hm .chips span:hover { border-color: var(--grn-s); color: var(--grn-s); }

.hm .tl { display: flex; flex-direction: column; margin-top: 8px; }
.hm .tr { display: flex; gap: 32px; padding: 26px 0; border-top: 2px solid #4b5170; align-items: flex-start; }
.hm .tr:last-child { border-bottom: 2px solid #4b5170; }
.hm .tr .n { width: 110px; flex: none; font-family: 'Bricolage Grotesque', sans-serif; font-size: 72px; font-weight: 800; line-height: .9; letter-spacing: -.05em; -webkit-text-stroke: 2px var(--c); color: transparent; }
.hm .tr .t { width: 360px; flex: none; font-family: 'Bricolage Grotesque', sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hm .tr .d { flex: 1; font-size: 15.5px; line-height: 1.65; color: var(--ind-s); }

.hm .cta { display: flex; align-items: center; gap: 28px; background: var(--ind); border: 2px solid #fff; border-radius: 10px; padding: 28px 36px; margin-top: 12px; transform: rotate(-.8deg); }
.hm .cta .t { flex: 1; font-family: 'Bricolage Grotesque', sans-serif; font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.hm .cta .btn { background: var(--amb); box-shadow: 4px 4px 0 var(--ink); padding: 14px 26px; }

/* responsive */
@media (max-width: 1000px) {
  .hm .wrap { padding: 0 28px; }
  .hm .hero-grid { flex-direction: column; }
  .hm .stack { width: 100%; max-width: 380px; margin: 0 auto; }
  .hm .row { flex-wrap: wrap; gap: 8px 18px; }
  .hm .row .t { width: auto; font-size: 28px; }
  .hm .row .d { flex-basis: 100%; }
  .hm .row .n { width: auto; font-size: 48px; }
  .hm .steps { grid-template-columns: 1fr; gap: 26px; padding-bottom: 0; }
  .hm .steps:before { display: none; }
  .hm .st:nth-child(n) { margin-top: 0; }
  .hm .tr { flex-wrap: wrap; gap: 8px 20px; }
  .hm .tr .t { width: auto; flex: 1; font-size: 24px; }
  .hm .tr .d { flex-basis: 100%; }
  .hm .tr .n { width: auto; font-size: 52px; }
  .hm .cta { flex-direction: column; align-items: flex-start; transform: none; }
  .hm .cta .t { font-size: 28px; }
  .hm .band { padding-top: 110px; }
}

@media (max-width: 640px) {
  .hm .wrap { padding: 0 20px; }
  .hm .hero { padding: 36px 0 48px; }
  .hm h1 { font-size: clamp(27px, 7.5vw, 38px); line-height: 1.12; letter-spacing: -.035em; word-break: break-word; overflow-wrap: break-word; }
  .hm .sub { font-size: 16px; line-height: 1.55; }
  .hm .btns { width: 100%; flex-direction: column; align-items: stretch; }
  .hm .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hm * { transition: none !important; }
}
