﻿/* =========================================================
   YES I CAN ROOFING & EXTERIORS
   BLOCK 02 â€” HERO
   VERSION 7 â€” HERO COMO FONDO COMPLETO, SIN CUADRO
   ========================================================= */

.hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
  border-bottom: 1px solid #edf1f4;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../../imagenes/hero-house-wide-placeholder.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 42%;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 17%,
      rgba(255, 255, 255, 0.63) 31%,
      rgba(255, 255, 255, 0.26) 43%,
      rgba(255, 255, 255, 0.08) 51%,
      rgba(255, 255, 255, 0) 58%
    );
}

.hero__inner {
  width: min(calc(100% - 72px), var(--content-max-width));
  min-height: 470px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__content {
  width: min(720px, 54%);
  padding-top: 26px;
  padding-bottom: 34px;
}

.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin: 0 0 18px;
  color: #102032;
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__trust-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: #0b1d31;
}

.hero__trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(10, 29, 49, 0.28);
}

.hero__title {
  margin: 0;
  color: #081829;
  font-size: clamp(52px, 4.35vw, 72px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero__title span,
.hero__title strong {
  display: block;
  white-space: nowrap;
}

.hero__title strong {
  margin-top: 7px;
  color: #e3131b;
}

.hero__services {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 19px 0 0;
  color: #111b25;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.hero__services span {
  display: inline-flex;
  align-items: center;
}

.hero__services span:not(:last-child)::after {
  content: "â€¢";
  margin: 0 9px;
  color: #e3131b;
  font-weight: 900;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 23px;
}

.hero__button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.hero__button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: currentColor;
}

.hero__button--primary {
  color: #ffffff;
  border: 2px solid #e3131b;
  background: #e3131b;
}

.hero__button--primary:hover,
.hero__button--primary:focus-visible {
  transform: translateY(-1px);
  background: #c90f16;
  border-color: #c90f16;
  box-shadow: 0 12px 24px rgba(227, 19, 27, 0.22);
}

.hero__button--secondary {
  color: #ffffff;
  border: 2px solid #071f36;
  background: #071f36;
  backdrop-filter: blur(4px);
}

.hero__button--secondary:hover,
.hero__button--secondary:focus-visible {
  transform: translateY(-1px);
  color: #ffffff;
  background: #04172a;
  border-color: #04172a;
}

@media (max-width: 1280px) {
  .hero {
    min-height: 452px;
  }

  .hero__inner {
    width: min(calc(100% - 48px), var(--content-max-width));
    min-height: 452px;
  }

  .hero__content {
    width: min(670px, 56%);
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .hero__title {
    font-size: clamp(47px, 4vw, 63px);
  }

  .hero__services {
    font-size: 14px;
  }
}

@media (max-width: 1080px) {
  .hero__content {
    width: min(620px, 59%);
  }

  .hero__title {
    font-size: clamp(42px, 4vw, 56px);
  }

  .hero__title span {
    white-space: normal;
  }

  .hero__visual::before {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.91) 23%,
        rgba(255, 255, 255, 0.70) 39%,
        rgba(255, 255, 255, 0.28) 53%,
        rgba(255, 255, 255, 0.08) 63%,
        rgba(255, 255, 255, 0) 71%
      );
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 690px;
  }

  .hero__visual {
    background-position: 68% center;
  }

  .hero__visual::before {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.89) 13%,
        rgba(255, 255, 255, 0.67) 28%,
        rgba(255, 255, 255, 0.24) 45%,
        rgba(255, 255, 255, 0.06) 59%,
        rgba(255, 255, 255, 0) 70%
      );
  }

  .hero__inner {
    width: calc(100% - 28px);
    min-height: 690px;
  }

  .hero__content {
    width: 100%;
    max-width: 740px;
    padding-top: 24px;
    padding-bottom: 330px;
  }

  .hero__title {
    font-size: clamp(42px, 8vw, 60px);
  }

  .hero__title span {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 655px;
  }

  .hero__inner {
    min-height: 655px;
  }

  .hero__content {
    padding-top: 20px;
    padding-bottom: 280px;
  }

  .hero__trust {
    gap: 9px;
    margin-bottom: 16px;
  }

  .hero__trust-item {
    font-size: 9px;
  }

  .hero__trust-divider {
    display: none;
  }

  .hero__title {
    font-size: clamp(38px, 10.3vw, 52px);
  }

  .hero__title span {
    white-space: normal;
  }

  .hero__services {
    margin-top: 17px;
    font-size: 13px;
  }

  .hero__services span:not(:last-child)::after {
    margin: 0 7px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 21px;
  }

  .hero__button {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 640px;
  }

  .hero__inner {
    min-height: 640px;
  }

  .hero__content {
    padding-bottom: 266px;
  }

  .hero__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero__trust-item:last-child {
    grid-column: 1 / -1;
  }
}

