/* ============================================================
   COECO CREATIVE — Home
   Todo prefijado .hm- para no chocar con los estilos globales
   ============================================================ */

.hm-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-px);
}

.hm-kick {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.hm-kick span {
  width: 24px;
  height: 1px;
  background: currentColor;
  display: block;
}
.hm-kick--light { color: #F3B98E; }

/* ── Animación de entrada ── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease,
              transform .85s cubic-bezier(.2, .75, .25, 1);
  transition-delay: calc(var(--i, 0) * .08s);
}
.rv.in { opacity: 1; transform: none; }

/* ── Botones ── */
.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease);
}
.hm-btn--primary { background: var(--orange); color: #fff; }
.hm-btn--primary:hover { background: var(--brown); transform: translateY(-2px); }

.hm-btn--light {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .8);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hm-btn--light:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

.hm-btn--outline {
  background: var(--card);
  border: 1px solid var(--brown);
  color: var(--brown);
}
.hm-btn--outline:hover { background: var(--brown); color: #fff; }

.hm-btn--wa { background: #25D366; color: #fff; }
.hm-btn--wa:hover { background: #1fae55; transform: translateY(-2px); }

/* ══════════════════════════════════════════
   SECUENCIA CINEMATOGRÁFICA
   ══════════════════════════════════════════ */
.hm-cine {
  position: relative;
  height: 580vh;
  background: var(--bg);
}
.hm-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #120B06;
}
.hm-layer {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

.hm-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #120B06;
  z-index: 1;
  transform: scale(1.04);
}

.hm-scrim1 {
  z-index: 2;
  background:
    linear-gradient(to top, rgba(18, 11, 6, .82), rgba(18, 11, 6, .3) 36%, transparent 64%),
    linear-gradient(to bottom, rgba(10, 6, 3, .34), transparent 14%);
}
.hm-media2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 4;
  opacity: 0;
  transform: scale(1.04);
}
.hm-scrim2 {
  z-index: 5;
  opacity: 0;
  background: linear-gradient(to top, rgba(14, 8, 4, .72), rgba(14, 8, 4, .18) 46%, transparent 72%);
}

/* Capas decorativas de la secuencia: se ven pero no reciben clics.
   Sin esto, la segunda foto (transparente al principio) tapaba los
   botones de la portada aunque no se viera. */
.hm-media, .hm-scrim1, .hm-media2, .hm-scrim2, .hm-t2, .hm-cue { pointer-events: none; }

/* Titular */
.hm-head {
  z-index: 3;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hm-head .hm-wrap {
  width: 100%;
  padding-bottom: 82px;
}
.hm-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
  color: #fff;
  font-size: clamp(38px, 6vw, 76px);
  max-width: 15ch;
}
.hm-head p {
  font-family: var(--font-display);
  font-size: 17px;
  color: rgba(255, 255, 255, .9);
  max-width: 450px;
  margin: 20px 0 26px;
}
.hm-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Banda blanca */
.hm-white {
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100vh);
}
.hm-band {
  background: var(--card);
  width: 100%;
  padding: clamp(60px, 8vw, 108px) 0;
  box-shadow: 0 24px 70px rgba(28, 16, 8, .22);
}
.hm-band-inner {
  max-width: 900px;
  text-align: center;
  padding: 0 var(--content-px);
  margin: 0 auto;
}
.hm-band-inner .hm-kick { justify-content: center; }
.hm-band-inner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.01;
  color: var(--brown);
}
.hm-band-inner p {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 18px auto 0;
}
.hm-band-lbl {
  display: block;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #BCB6AC;
}

.hm-marquee {
  margin-top: 18px;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.hm-mq-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: hm-mq 32s linear infinite;
}
.hm-mq-track b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #A9A299;
}
.hm-mq-track i { color: #D8D2C8; font-style: normal; }
@keyframes hm-mq { to { transform: translateX(-50%); } }

/* Segundo texto */
.hm-t2 {
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform: translateY(100vh);
}
.hm-t2-inner {
  max-width: 840px;
  text-align: center;
  padding: 0 var(--content-px);
  will-change: transform, opacity;
}
.hm-t2-inner .hm-kick { justify-content: center; }
.hm-t2-inner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  color: #fff;
}
.hm-t2-inner p {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  max-width: 540px;
  margin: 18px auto 0;
}

.hm-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  z-index: 8;
  animation: hm-bob 2s ease-in-out infinite;
}
@keyframes hm-bob { 50% { transform: translateX(-50%) translateY(7px); } }

/* ══════════════════════════════════════════
   GALERÍA HORIZONTAL
   ══════════════════════════════════════════ */
.hm-hsec {
  position: relative;
  height: 300vh;
  background: var(--bg);
}
.hm-hsticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.hm-htrack {
  display: flex;
  gap: 24px;
  padding: 0 var(--content-px);
  will-change: transform;
}
.hm-hintro {
  flex: 0 0 auto;
  width: 360px;
  align-self: center;
  padding-right: 18px;
}
.hm-hintro h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  color: var(--brown);
}
.hm-hintro p {
  font-family: var(--font-display);
  color: var(--muted);
  margin-top: 16px;
  font-size: 15px;
  max-width: 300px;
}

.hm-hcard {
  flex: 0 0 auto;
  width: 328px;
  height: 72vh;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: var(--imgbg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(40, 28, 16, .08);
  margin: 0;
}
.hm-hcard img { width: 100%; height: 100%; object-fit: cover; }
.hm-hc-ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(12, 7, 3, .6), transparent 46%);
  color: #fff;
}
.hm-hc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F3C9A3;
  margin-bottom: 4px;
}
.hm-hc-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
}
.hm-hcard--vacia {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(63, 39, 24, .25);
  background: var(--imgbg);
}
.hm-hvacia {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  padding: 14px;
}
.hm-hvacia b { color: var(--brown); font-size: 12px; }
.hm-hvacia small { font-size: 9px; opacity: .7; text-transform: none; letter-spacing: 0; }

.hm-media2--vacia { background: #1C120C; }

.hm-hend {
  flex: 0 0 auto;
  width: 240px;
  align-self: center;
  display: flex;
  align-items: center;
}

/* ══════════════════════════════════════════
   SECCIONES NORMALES
   ══════════════════════════════════════════ */
.hm-sec { padding: clamp(64px, 9vw, 110px) 0; }
.hm-why { background: var(--card); }

.hm-sechead { margin-bottom: 40px; }
.hm-sechead h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
  color: var(--brown);
  font-size: clamp(28px, 4vw, 46px);
}
.hm-lead {
  font-family: var(--font-display);
  color: var(--muted);
  max-width: 560px;
  margin-top: 12px;
  font-size: 16px;
}

/* Servicios */
.hm-svcs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hm-svc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              opacity .7s ease;
}
.hm-svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -30px rgba(63, 39, 24, .5);
}
.hm-svc-img {
  aspect-ratio: 4 / 3;
  background: var(--imgbg);
  overflow: hidden;
}
.hm-svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.hm-svc:hover .hm-svc-img img { transform: scale(1.05); }

.hm-svc-b { padding: 18px; }
.hm-svc-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--brown);
}
.hm-svc-s {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 14px;
}
.hm-svc-l {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--brown);
}
.hm-ar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--imgbg);
  color: var(--brown);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.hm-svc:hover .hm-ar { background: var(--orange); color: #fff; }

/* Por qué */
.hm-whys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.hm-why-n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 13px;
}
.hm-why-i h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  color: var(--brown);
}
.hm-why-i p {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Perfiles */
.hm-profs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hm-prof {
  border-top: 2px solid var(--brown);
  padding-top: 16px;
}
.hm-prof h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 7px;
  letter-spacing: -.01em;
  color: var(--brown);
}
.hm-prof p {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Preguntas frecuentes (desplegables) */
.hm-faqs {
  max-width: 860px;
  border-top: 1px solid var(--line);
}
.hm-faq-i {
  border-bottom: 1px solid var(--line);
}
.hm-faq-i summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.hm-faq-i summary::-webkit-details-marker { display: none; }
.hm-faq-i summary h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--brown);
  margin: 0;
}
.hm-faq-i summary:hover h3 { color: var(--orange); }
.hm-faq-i summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.hm-faq-ic {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--imgbg);
}
.hm-faq-ic::before,
.hm-faq-ic::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--brown);
  transition: transform .25s ease;
}
.hm-faq-ic::after { transform: rotate(90deg); }
.hm-faq-i[open] .hm-faq-ic::after { transform: rotate(0deg); }
.hm-faq-i p {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
  padding: 0 52px 22px 0;
}
@media (max-width: 560px) {
  .hm-faq-i summary h3 { font-size: 16px; }
  .hm-faq-i p { padding-right: 0; }
}

/* Banda CTA */
.hm-ctaband {
  background: var(--brown);
  border-radius: 22px;
  padding: clamp(38px, 5vw, 56px);
  text-align: center;
  color: #F6F1EA;
}
.hm-eb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #E0A777;
}
.hm-ctaband h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(26px, 3.6vw, 42px);
  margin-top: 10px;
}
.hm-ctaband p {
  font-family: var(--font-display);
  color: #D8C4B4;
  margin: 12px auto 24px;
  max-width: 460px;
}
.hm-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hm-svcs  { grid-template-columns: 1fr 1fr; }
  .hm-whys  { grid-template-columns: 1fr 1fr; }
  .hm-profs { grid-template-columns: 1fr; }
  .hm-hintro { width: 78vw; }
  .hm-hcard { width: 72vw; height: 62vh; }
  .hm-head .hm-wrap { padding-bottom: 58px; }
}
@media (max-width: 560px) {
  .hm-svcs { grid-template-columns: 1fr; }
  .hm-whys { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   SIN ANIMACIÓN (accesibilidad)
   El JS detecta esto y desactiva las secuencias:
   cada capa pasa a mostrarse en bloques normales.
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hm-cine { height: auto; }
  .hm-sticky { position: static; height: auto; }
  .hm-layer { position: static; }
  .hm-media { height: 70vh; transform: none; }
  .hm-scrim1, .hm-scrim2, .hm-cue, .hm-media2 { display: none; }
  .hm-head { padding: 40px 0; background: var(--brown-dark); }
  .hm-white, .hm-t2 { transform: none !important; }
  .hm-t2 { background: var(--brown-dark); padding: 60px 0; }
  .hm-hsec { height: auto; }
  .hm-hsticky { position: static; height: auto; display: block; }
  .hm-htrack { flex-wrap: wrap; transform: none !important; justify-content: center; }
  .hm-hcard { width: 300px; height: 380px; }
  .hm-mq-track { animation: none; }
}
