@font-face {
  font-family: "Sans Anger Demo";
  src: url("./assets/fonts/Sans Anger Demo.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #120f0b;
  --bg-soft: #1d1710;
  --panel: rgba(25, 20, 14, 0.88);
  --panel-border: rgba(255, 208, 63, 0.14);
  --text: #f5f0e4;
  --muted: #b9ae9b;
  --yellow: #ffc62d;
  --yellow-strong: #ffb300;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
  --font-ui: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bebas Neue", "Arial Black", sans-serif;
  --font-price: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-brush: "Sans Anger Demo", "Permanent Marker", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 198, 45, 0.08), transparent 20%),
    linear-gradient(180deg, #0d0a07 0%, #090705 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.branches-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.14)),
    url("./assets/backgroundDefinitivo.png") center top / 100% auto repeat-y,
    linear-gradient(180deg, #0a0806 0%, #090705 100%);
}

.branches-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2)),
    url("./assets/backgroundDefinitivo.png") center top / 100% auto repeat-y,
    linear-gradient(180deg, #0a0806 0%, #090705 100%);
}

.branches-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 198, 45, 0.16), transparent 20%),
    radial-gradient(circle at 85% 28%, rgba(255, 198, 45, 0.12), transparent 22%);
  pointer-events: none;
}

.branches-hero__content,
.branches-layout {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.branches-hero__content {
  position: relative;
  z-index: 1;
  padding: 22px 0 36px;
}

.branches-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-price);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: rgba(17, 14, 11, 0.9);
  border: 1px solid rgba(255, 198, 45, 0.28);
  color: #f8f0e5;
}

.tag--ghost {
  color: #12100c;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  border-color: transparent;
}

.branches-hero__grid {
  display: grid;
  gap: 24px;
}

.branches-copy,
.hero-city {
  position: relative;
}

.branches-logo {
  width: 96px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 18px 0 10px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-family: var(--font-price);
  font-weight: 800;
}

.branches-copy h1,
.section-heading h2,
.branch-card h3,
.hero-city h2 {
  margin: 0;
}

.branches-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 16vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #f7f1e5;
}

.branches-lead,
.hero-city p,
.branch-card__text {
  color: #d0c7bc;
  line-height: 1.6;
}

.branches-lead {
  max-width: 38rem;
  margin: 16px 0 0;
  font-size: 1rem;
}

.hero-actions,
.branch-card__actions,
.hero-city__chips,
.branch-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 22px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  font-family: var(--font-price);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.primary-link {
  color: #14100b;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
}

.secondary-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-link:hover,
.secondary-link:hover,
.tag:hover {
  transform: translateY(-2px);
}

.card {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero-city {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.hero-city h2 {
  font-family: var(--font-brush);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
}

.hero-city p {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

.hero-city__chips {
  margin-top: 18px;
}

.city-chip,
.branch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 198, 45, 0.18);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-price);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.branches-layout {
  padding: 30px 0 72px;
}

.branches-section {
  width: 100%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 22px;
  padding: 4px 6px 0;
}

.section-heading__meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-price);
  font-weight: 700;
}

.section-heading h2 {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.18em;
  max-width: 9ch;
  color: #f7f1e5;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 0.92;
}

.section-heading__brush {
  display: block;
  width: 116px;
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 198, 45, 0.98), rgba(255, 179, 0, 0.75));
  box-shadow: 0 0 0 4px rgba(255, 198, 45, 0.06);
}

.branches-grid {
  display: grid;
  gap: 20px;
}

.branch-card {
  overflow: hidden;
  border-radius: 26px;
}

.branch-card__visual {
  position: relative;
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
}

.branch-card__visual::before,
.branch-card__visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.branch-card__visual::before {
  width: 280px;
  height: 280px;
  right: -80px;
  top: -70px;
  opacity: 0.28;
}

.branch-card__visual::after {
  width: 180px;
  height: 180px;
  left: -30px;
  bottom: -70px;
  opacity: 0.18;
}

.branch-card__visual--santander {
  background:
    linear-gradient(135deg, rgba(255, 198, 45, 0.16), rgba(0, 0, 0, 0.18)),
    linear-gradient(160deg, #34261c 0%, #1b130d 100%);
}

.branch-card__visual--santander::before {
  background: #ffc62d;
}

.branch-card__visual--santander::after {
  background: #ff7c1f;
}

.branch-card__visual--chipre {
  background:
    linear-gradient(135deg, rgba(255, 198, 45, 0.12), rgba(0, 0, 0, 0.2)),
    linear-gradient(160deg, #2d2016 0%, #15100c 100%);
}

.branch-card__visual--chipre::before {
  background: #ffd970;
}

.branch-card__visual--chipre::after {
  background: #ffb300;
}

.branch-card__badge {
  position: relative;
  z-index: 1;
  align-self: start;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 10, 7, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-price);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--yellow);
}

.branch-card__visual h3 {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-family: var(--font-brush);
  font-size: clamp(2.1rem, 8vw, 3.2rem);
  line-height: 0.96;
}

.branch-card__visual p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: #f7f1e5;
  font-family: var(--font-price);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.branch-card__body {
  display: grid;
  gap: 16px;
  padding: 22px 22px 24px;
}

.branch-card__eyebrow {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-price);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.branch-card__text {
  margin: 0;
  font-size: 0.95rem;
}

.branch-card__actions .primary-link,
.branch-card__actions .secondary-link {
  min-height: 48px;
}

@media (max-width: 420px) {
  .branches-hero__content,
  .branches-layout {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .branches-hero__content {
    padding: 18px 0 28px;
  }

  .branches-copy h1 {
    font-size: clamp(3.3rem, 18vw, 5.4rem);
  }

  .branches-lead,
  .hero-city p,
  .branch-card__text {
    font-size: 0.9rem;
  }

  .hero-actions,
  .branch-card__actions {
    display: grid;
    gap: 10px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .section-heading__meta {
    font-size: 0.88rem;
  }

  .section-heading h2 {
    max-width: 7ch;
    font-size: clamp(1.45rem, 8vw, 2.3rem);
  }

  .branch-card__visual {
    min-height: 186px;
    padding: 20px;
  }

  .branch-card__body {
    padding: 20px;
  }
}

@media (min-width: 760px) {
  .branches-hero__content {
    padding: 26px 0 46px;
  }

  .branches-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: end;
  }

  .branches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
