.branch-hero {
  box-sizing: border-box;
  min-height: 520px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 44%, rgba(255,255,255,.50) 62%, rgba(255,255,255,.10) 100%),
    var(--branch-hero-image) center right / cover no-repeat;
  padding: 54px 8%;
}

.branch-hero-content {
  max-width: 700px;
}

.branch-eyebrow {
  color: #8f1929;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

.branch-title {
  color: #8f1929;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 26px;
}

.branch-intro {
  color: #3d3d3d;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 650px;
}

.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.branch-button {
  align-items: center;
  background-color: #8f1929;
  border: 2px solid #8f1929;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 17px;
  font-weight: 700;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  text-decoration: none;
}

.branch-button:hover {
  opacity: .9;
}

.branch-button-secondary {
  background-color: #fff;
  color: #8f1929;
}

.branch-section {
  padding: 72px 8%;
}

.branch-section-title {
  color: #8f1929;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  text-align: center;
}

.branch-section-text {
  color: #545454;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto 34px;
  max-width: 880px;
  text-align: center;
}

.branch-services {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.branch-service-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  text-decoration: none;
}

.branch-service-card img {
  height: 52px;
  margin-bottom: 18px;
  object-fit: contain;
  width: 52px;
}

.branch-service-card h3 {
  color: #8f1929;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.branch-service-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.branch-value {
  background: #f7f7f7;
}

.branch-value-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.branch-value-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
}

.branch-value-card h3 {
  color: #8f1929;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.branch-value-card p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.branch-info-wrap {
  align-items: stretch;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
}

.branch-info-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 34px;
}

.branch-map-card {
  display: grid;
  gap: 22px;
  padding: 0;
  overflow: hidden;
}

.branch-map {
  border: 0;
  display: block;
  min-height: 310px;
  width: 100%;
}

.branch-map-copy {
  padding: 0 34px 34px;
}

.branch-map-link {
  color: #8f1929;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  margin-top: 16px;
}

.branch-info-list {
  display: grid;
  gap: 20px;
}

.branch-info-item strong {
  color: #8f1929;
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.branch-info-item,
.branch-info-item a {
  color: #4d4d4d;
  font-size: 17px;
  line-height: 1.5;
}

.branch-note {
  color: #666;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 16px;
}

.branch-contact-hero {
  background:
    linear-gradient(90deg, rgba(143,25,41,.95) 0%, rgba(143,25,41,.88) 55%, rgba(143,25,41,.72) 100%),
    url("../img/fondo-home-full.png") center / cover no-repeat;
  color: #fff;
  padding: 78px 8%;
}

.branch-contact-hero-content {
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}

.branch-contact-hero .branch-eyebrow {
  color: #fff;
  margin-bottom: 14px;
}

.branch-contact-hero h2 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
}

.branch-contact-hero p {
  color: #fff;
  font-size: 20px;
  line-height: 1.5;
}

.branch-contact-actions {
  justify-content: center;
  margin-top: 30px;
}

.branch-contact-hero .branch-button {
  background-color: #fff;
  border-color: #fff;
  color: #8f1929;
}

.branch-contact-hero .branch-button-secondary {
  background-color: transparent;
  color: #fff;
}

.container-footer {
  background-color: #292929;
  overflow: hidden;
}

.container-footer .border-r {
  display: none;
}

.zero-risk-footer-webapp {
  margin: 26px auto 0;
  padding: 20px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  max-width: 680px;
}

.zero-risk-footer-webapp-title {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  text-align: center;
}

.zero-risk-footer-webapp-text {
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  text-align: center;
  max-width: 570px;
}

.zero-risk-footer-webapp-button-wrap {
  margin-top: 22px;
}

.zero-risk-footer-webapp-button {
  background-color: #8f1929;
  border: none;
  justify-content: center;
  min-width: 280px;
}

.zero-risk-footer-webapp-button .button-footer-1 {
  background-color: transparent;
}

.zero-risk-footer-legend {
  padding: 36px 20px 28px;
}

.zero-risk-footer-legend-text {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.zero-risk-footer-legend-line {
  display: inline;
}

.zero-risk-footer-legend-link {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.zero-risk-footer-legend-link:hover {
  color: rgba(255, 255, 255, 0.55);
}

.zero-risk-footer-legend-icon {
  font-size: 12px;
  margin-right: 5px;
  opacity: 0.45;
}

.zero-risk-footer-legend-separator {
  color: rgba(255, 255, 255, 0.35);
  display: inline;
}

@media (min-width: 1025px) {
  .container-footer-card {
    align-items: start;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(190px, .85fr) minmax(330px, 1.65fr) minmax(190px, .9fr) minmax(210px, .95fr);
    gap: clamp(18px, 2vw, 38px);
    justify-content: center;
    margin: 0 auto;
    max-width: 1400px;
    padding: 64px clamp(24px, 3.2vw, 54px) 0;
    width: 100%;
  }

  .container-footer .container-footer-card > div {
    padding: 0 !important;
  }

  .footer-title {
    font-size: clamp(26px, 2.1vw, 32px);
    line-height: 1.1;
    padding-top: 0;
    padding-bottom: 18px;
  }

  .footer-items {
    font-size: clamp(18px, 1.45vw, 21px);
    line-height: 1.35;
    margin-top: 14px;
  }

  .footer-items-2 {
    font-size: 16px;
    line-height: 1.3;
    margin-top: 4px;
  }

  .footer-text-section2,
  .text-footer-section4 {
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.45;
  }

  .container-button-footer-main {
    margin-top: 24px;
  }

  .container-button-footer-1 {
    justify-content: center;
    min-width: 190px;
    padding: 16px 22px;
  }

  .button-footer-1 {
    font-size: clamp(16px, 1.2vw, 18px);
  }

  .footer-container-section4 img {
    max-width: min(210px, 100%);
  }

  .container-footer-card > div:nth-child(5) > div:not(.footer-container-section4) img,
  .container-footer-card > div:nth-child(7) > div:not(.container-footer-section6-main) img {
    height: auto;
    width: clamp(34px, 2.9vw, 46px);
  }

  .container-footer-section6 {
    justify-content: center;
    min-width: 190px;
    padding: 16px 24px;
  }

  .footer-section6-text {
    font-size: clamp(16px, 1.2vw, 18px);
  }

  .footer-container-section7 {
    align-items: center;
    display: flex;
    justify-content: space-around;
    margin-top: 0;
    min-height: 88px;
    padding: 0 40px;
  }

  .title-footer-section7 {
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.3;
  }
}

@media (min-width: 1600px) {
  .container-footer-card {
    grid-template-columns: minmax(260px, 310px) minmax(520px, 620px) minmax(260px, 300px) minmax(280px, 320px);
    gap: clamp(42px, 3vw, 64px);
    max-width: 1720px;
    padding: 82px 56px 0;
  }

  .footer-title {
    font-size: 36px;
  }

  .footer-items {
    font-size: 24px;
  }

  .footer-text-section2,
  .text-footer-section4 {
    font-size: 20px;
  }

  .container-button-footer-1 {
    min-width: 255px;
  }

  .button-footer-1 {
    font-size: 20px;
  }

  .footer-container-section4 img {
    max-width: 250px;
  }

  .container-footer-section6 {
    min-width: 250px;
  }
}

@media (max-width: 1024px) {
  .branch-services,
  .branch-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-title {
    font-size: 44px;
  }

  .container-footer-card {
    box-sizing: border-box;
    display: grid;
    gap: 34px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 54px 36px 0;
    width: 100%;
  }

  .container-footer .container-footer-card > div {
    padding: 0 !important;
  }

  .container-footer .border-r {
    display: none;
  }

  .footer-title {
    font-size: 28px;
    line-height: 1.15;
    padding: 0 0 14px;
  }

  .footer-container-items {
    display: block;
    padding-left: 0;
    text-align: center;
  }

  .footer-items {
    font-size: 19px;
    line-height: 1.35;
    margin-top: 12px;
  }

  .footer-items-2 {
    font-size: 14px;
    line-height: 1.3;
  }

  .img-footer-phone {
    margin-left: 0;
  }

  .container-button-footer-1,
  .container-footer-section6 {
    box-sizing: border-box;
    justify-content: center;
    min-width: 0;
    padding: 15px 20px;
    width: min(260px, 100%);
  }

  .button-footer-1,
  .footer-section6-text {
    font-size: 17px;
  }

  .footer-text-section2,
  .text-footer-section4 {
    font-size: 16px;
    line-height: 1.42;
  }

  .zero-risk-footer-webapp {
    max-width: 430px;
    padding: 18px 20px;
  }

  .zero-risk-footer-webapp-title {
    font-size: 27px;
    line-height: 1.1;
  }

  .zero-risk-footer-webapp-text {
    font-size: 16px;
    line-height: 1.45;
  }

  .footer-container-section4 img {
    max-width: min(220px, 100%);
  }

  .container-footer-card > div:nth-child(5) > div:not(.footer-container-section4) img,
  .container-footer-card > div:nth-child(7) > div:not(.container-footer-section6-main) img {
    height: auto;
    width: 42px;
  }

  .footer-container-section7 {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-around;
    margin-top: 0;
    padding: 26px 30px;
  }

  .title-footer-section7 {
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container-header {
    margin: 0;
    padding: 12px 20px 10px;
  }

  .branch-hero {
    align-items: start;
    background:
      linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.88) 58%, rgba(255,255,255,.26) 100%),
      var(--branch-hero-image-mobile) center bottom / cover no-repeat;
    min-height: calc(100svh - 72px);
    padding: 26px 24px 220px;
  }

  .branch-title {
    font-size: 34px;
    line-height: 1.08;
    margin-bottom: 22px;
  }

  .branch-intro {
    font-size: 17px;
    line-height: 1.42;
  }

  .branch-eyebrow {
    margin-bottom: 14px;
  }

  .branch-actions {
    gap: 12px;
    margin-top: 28px;
  }

  .branch-section {
    padding: 54px 24px;
  }

  .branch-section-title {
    font-size: 30px;
  }

  .branch-services,
  .branch-value-grid,
  .branch-info-wrap {
    grid-template-columns: 1fr;
  }

  .branch-contact-hero {
    padding: 58px 24px;
  }

  .branch-contact-hero h2 {
    font-size: 30px;
  }

  .branch-contact-hero p {
    font-size: 17px;
  }

  .container-footer-card {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    padding: 44px 24px 0;
  }

  .footer-title {
    font-size: 28px;
  }

  .footer-items {
    font-size: 18px;
  }

  .container-footer-card > div:nth-child(5) > div:not(.footer-container-section4) img,
  .container-footer-card > div:nth-child(7) > div:not(.container-footer-section6-main) img {
    width: 38px;
  }

  .footer-container-section7 {
    flex-direction: column;
    gap: 12px;
    padding: 24px 22px 30px;
  }

  .title-footer-section7 {
    font-size: 17px;
  }

  .zero-risk-footer-webapp {
    margin-top: 22px;
    padding: 18px 16px 16px;
  }

  .zero-risk-footer-webapp-title {
    font-size: 30px;
    line-height: 32px;
  }

  .zero-risk-footer-webapp-text {
    font-size: 16px;
    line-height: 24px;
  }

  .zero-risk-footer-webapp-button {
    min-width: 190px;
  }

  .zero-risk-footer-legend {
    padding: 18px 30px 10px;
  }

  .zero-risk-footer-legend-text {
    font-size: 12px;
  }

  .zero-risk-footer-legend-line {
    display: block;
  }

  .zero-risk-footer-legend-separator {
    display: none;
  }

  .branch-service-card {
    min-height: auto;
  }
}

@media (max-width: 380px) {
  .branch-hero {
    padding: 24px 22px 180px;
  }

  .branch-title {
    font-size: 32px;
  }

  .branch-intro {
    font-size: 16px;
  }

  .branch-button {
    font-size: 16px;
    min-height: 48px;
    padding: 0 20px;
  }
}
