/* Página de inicio — estilos propios (prefijo hm-).
   Usa las variables y tipografías de style.css. */

.hm-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(1.1rem, 3.5vw, 3rem);
  padding-right: clamp(1.1rem, 3.5vw, 3rem);
}
.hm-section {
  padding-top: clamp(2rem, 3.6vw, 3.5rem);
  padding-bottom: clamp(2rem, 3.6vw, 3.5rem);
}
.hm-section-head {
  margin-bottom: clamp(1.1rem, 2vw, 1.75rem);
  max-width: 46rem;
}
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "International Headline";
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 0.55rem;
}
.hm-eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 3px;
  border-radius: 2px;
  background: var(--international-orange);
}
.hm-title {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.hm-lead {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
}

/* ── Hero: solo el H1 ── */
.hm-hero {
  height: 100vh;
  height: 100svh;
  min-height: 28rem;
}
.hm-hero .hero-text {
  max-width: min(44rem, 88%);
}
.hm-hero .hm-h1 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

/* ── Botones ── */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  font-family: "International Headline";
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--negro);
  background: var(--negro);
  color: #fff;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.hm-btn:hover {
  background: var(--international-orange);
  border-color: var(--international-orange);
  color: #000;
}
.hm-btn img {
  height: 1.15rem;
  width: auto;
}
.hm-btn-outline {
  background: transparent;
  color: var(--negro);
}
.hm-btn-outline:hover {
  background: var(--negro);
  border-color: var(--negro);
  color: #fff;
}
.hm-btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--negro);
}
.hm-btn-ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.hm-btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--negro);
}
.hm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--negro);
  text-decoration: underline;
  text-decoration-color: var(--international-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.hm-link::after {
  content: "→";
  transition: transform 0.2s;
}
.hm-link:hover::after {
  transform: translateX(4px);
}
.hm-btn:focus-visible,
.hm-link:focus-visible,
.hm-quick-item:focus-visible,
.hm-model:focus-visible,
.hm-service:focus-visible,
.hm-promo-cta:focus-visible,
.hm-tel:focus-visible {
  outline: 3px solid var(--international-orange);
  outline-offset: 3px;
}

/* ── Accesos rápidos (justo debajo del hero) ── */
.hm-quick {
  background: var(--negro);
  padding: clamp(0.9rem, 1.6vw, 1.25rem) 0;
}
.hm-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.hm-quick-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  border-radius: 8px;
  border-bottom: 3px solid var(--international-orange);
  padding: 0.75rem 1rem;
  min-height: 4.2rem;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.hm-quick-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.hm-quick-item img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  flex: none;
}
.hm-quick-item strong {
  display: block;
  font-family: "International Headline";
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--negro);
}
.hm-quick-item span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--gray-700);
  margin-top: 0.15rem;
}

/* ── Modelos ── */
.hm-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.hm-model {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.hm-model:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.hm-model img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.hm-model-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0.9rem 1.1rem 1rem;
  border-top: 3px solid var(--international-orange);
}
.hm-model-series {
  font-family: "International Headline";
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gray-700);
}
.hm-model h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  margin: 0.15rem 0 0.35rem;
}
.hm-model p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
  margin: 0 0 0.6rem;
  flex-grow: 1;
}
.hm-model .hm-link {
  align-self: flex-start;
  margin-top: auto;
}
.hm-models-foot {
  margin-top: clamp(1.1rem, 2vw, 1.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ── Por qué CAMSOL ── */
.hm-why {
  background: var(--negro);
  color: var(--blanco);
}
.hm-why .hm-eyebrow,
.hm-why .hm-title {
  color: #fff;
}
.hm-why .hm-lead {
  color: var(--gray-100);
}
.hm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.hm-stat {
  border-top: 3px solid var(--international-orange);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0 0 8px 8px;
  padding: 1.1rem 1.2rem 1.2rem;
}
.hm-stat-num {
  font-family: "International Headline";
  font-weight: 700;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1;
  color: #fff;
}
.hm-stat-num small {
  font-size: 0.5em;
  color: var(--international-orange);
}
.hm-stat-word {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.2;
}
.hm-stat-label {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--gray-100);
}

/* ── Promociones (Contrato de Mantenimiento + Quality Trucks) ── */
.hm-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.hm-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(16rem, 22vw, 19rem);
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  isolation: isolate;
}
.hm-promo > img.hm-promo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hm-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
}
.hm-promo-kicker {
  font-family: "International Headline";
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: #fff;
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.hm-promo h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.hm-promo h3 span {
  display: block;
  font-weight: 500;
}
.hm-promo-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.hm-promo-logo {
  max-height: 2.6rem;
  max-width: 11rem;
  object-fit: contain;
}
.hm-promo-title {
  font-family: "International Headline";
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ── Financiamiento ── */
.hm-fin {
  background: #fff;
}
.hm-fin-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
}
.hm-fin-img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  max-height: 24rem;
  object-fit: cover;
  border-radius: 10px;
}
.hm-fin-logo {
  max-width: 14rem;
  margin-bottom: 0.7rem;
}
.hm-fin-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 1.2rem;
  display: grid;
  gap: 0.6rem;
}
.hm-fin-list li {
  position: relative;
  padding: 0.1rem 0 0.1rem 2.1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
}
.hm-fin-list li strong {
  color: var(--negro);
}
.hm-fin-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--international-orange);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4rem;
  text-align: center;
}
.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ── Servicio ── */
.hm-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.hm-service {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  transition:
    box-shadow 0.25s,
    transform 0.25s,
    border-color 0.25s;
}
.hm-service:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  border-color: var(--international-orange);
  text-decoration: none;
}
.hm-service img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  margin-bottom: 0.6rem;
}
.hm-service h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.hm-service p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
  margin: 0 0 0.4rem;
  flex-grow: 1;
}
.hm-service .hm-link {
  align-self: flex-start;
  margin-top: auto;
  pointer-events: none;
}
.hm-gray {
  background: var(--blanco);
}

/* ── Blog (tarjetas cargadas por js/home-blog.js) ── */
.hm-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.hm-post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--negro);
  transition:
    box-shadow 0.25s,
    transform 0.25s,
    border-color 0.25s;
}
.hm-post:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  border-color: var(--international-orange);
  text-decoration: none;
  color: var(--negro);
}
.hm-post:focus-visible {
  outline: 3px solid var(--international-orange);
  outline-offset: 3px;
}
.hm-post-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
}
.hm-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hm-post-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: "International Headline";
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.hm-post-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.1rem 1.2rem 1.2rem;
}
.hm-post-cat {
  font-family: "International Headline";
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.hm-post h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 0.45rem;
}
.hm-post p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
  margin: 0 0 0.7rem;
  flex-grow: 1;
}
.hm-post-meta {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ── Banda de contacto ── */
.hm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--negro);
  color: var(--blanco);
  border-radius: 10px;
  border-left: 6px solid var(--international-orange);
  padding: clamp(1.2rem, 2.2vw, 1.8rem) clamp(1.2rem, 2.6vw, 2rem);
}
.hm-cta-text {
  flex: 1 1 24rem;
}
.hm-cta h2 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  color: #fff;
  margin: 0 0 0.4rem;
}
.hm-cta p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gray-100);
  margin: 0;
}

/* ── Sucursales dentro del bloque de contacto ── */
.hm-tel {
  font-size: 1.15rem;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.hm-branch-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
}
#contacto .hm-branch-links .hm-link {
  font-size: 1rem;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
  .hm-quick-grid,
  .hm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .hm-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-fin-grid {
    grid-template-columns: 1fr;
  }
  .hm-fin-img {
    min-height: 16rem;
    max-height: 22rem;
  }
}
@media (max-width: 767px) {
  .hm-hero .hero-text {
    max-width: 100%;
  }
  .hm-hero .hm-h1 {
    width: 100%;
  }
  .hm-promos {
    grid-template-columns: 1fr;
  }
  .hm-section {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
  }
  .hm-btn {
    width: 100%;
  }
  .hm-actions,
  .hm-models-foot {
    flex-direction: column;
  }
  .hm-promo-foot .hm-btn {
    width: auto;
  }
}
@media (max-width: 575px) {
  .hm-models,
  .hm-services,
  .hm-posts {
    grid-template-columns: 1fr;
  }
  .hm-quick-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .hm-stats {
    gap: 0.8rem;
  }
  .hm-stat {
    padding: 1.1rem 1rem;
  }
  .hm-stat-label {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hm-quick-item,
  .hm-model,
  .hm-service,
  .hm-post,
  .hm-btn,
  .hm-link::after {
    transition: none;
  }
  .hm-quick-item:hover,
  .hm-model:hover,
  .hm-service:hover,
  .hm-post:hover {
    transform: none;
  }
}
