/* ==========================================================================
   BuscaCajero.com — Premium Banking Design System
   Inspired by: Banco Santander, Citi, BBVA
   ========================================================================== */

:root {
  /* Brand — Navy + Red (banking trust + action) */
  --navy: #002855;
  --navy-dark: #001A3A;
  --navy-light: #003D80;
  --red: #EC0000;
  --red-dark: #CC0000;
  --red-hover: #D40000;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F7F7F7;
  --gray-100: #F0F0F0;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --black: #0A0A0A;

  /* Functional */
  --success: #008A44;
  --warning: #F5A623;
  --error: #D0021B;
  --info: #0072CE;

  /* Typography */
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: var(--font);

  /* Spacing scale (8px base) */
  --s1: 0.25rem;  /* 4 */
  --s2: 0.5rem;   /* 8 */
  --s3: 0.75rem;  /* 12 */
  --s4: 1rem;     /* 16 */
  --s5: 1.5rem;   /* 24 */
  --s6: 2rem;     /* 32 */
  --s7: 2.5rem;   /* 40 */
  --s8: 3rem;     /* 48 */
  --s9: 4rem;     /* 64 */
  --s10: 5rem;    /* 80 */
  --s11: 6rem;    /* 96 */
  --s12: 8rem;    /* 128 */

  /* Layout */
  --container: 1120px;
  --container-narrow: 800px;
  --header-h: 72px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;

  /* Shadows (subtle, corporate) */
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,.1);
  --shadow-header: 0 1px 0 rgba(0,0,0,.08);
  --shadow-modal: 0 20px 60px rgba(0,0,0,.2);

  --transition: 200ms ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-light); }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--s4); font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--gray-900); }
p { margin: 0 0 var(--s4); }
table { border-collapse: collapse; width: 100%; }

/* === ACCESSIBILITY === */
.skip-to-content {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--navy); color: var(--white);
  padding: var(--s2) var(--s4); font-size: 14px;
}
.skip-to-content:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 2px;
}

/* === TYPOGRAPHY (banking scale) === */
h1 { font-size: 28px; letter-spacing: -0.02em; }
h2 { font-size: 22px; letter-spacing: -0.01em; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s4);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s4);
}

/* === FULL-WIDTH SECTION BANDS (Santander style) === */
.section {
  padding: var(--s9) 0;
}
.section--white { background: var(--white); }
.section--gray { background: var(--gray-50); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h2,
.section--navy h3,
.section--navy p { color: var(--white); }
.section--navy a { color: rgba(255,255,255,.85); }
.section--navy a:hover { color: var(--white); }
.section--light-navy {
  background: linear-gradient(180deg, #EBF0F7 0%, var(--white) 100%);
}

/* === HEADER (Santander/Citi style) === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  box-shadow: var(--shadow-header);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo { display: flex; align-items: center; gap: var(--s2); }
.header__logo img { height: 28px; width: auto; }

/* Nav */
.header__nav { display: none; }
.header__nav.nav-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  box-shadow: var(--shadow-card-hover);
  padding: var(--s5) var(--s4);
  gap: var(--s1);
  z-index: 99;
  border-top: 1px solid var(--gray-200);
}
.header__nav a {
  display: block;
  padding: var(--s3) 0;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition);
}
.header__nav a:last-child { border-bottom: none; }
.header__nav a:hover,
.header__nav a.active { color: var(--red); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding-left: var(--s5);
}
.nav-dropdown__menu a {
  font-size: 14px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-50);
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { display: flex; }

/* Hamburger */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-700); position: relative;
  transition: background var(--transition);
}
.hamburger span::before,
.hamburger span::after {
  content: ''; position: absolute; width: 24px; height: 2px;
  background: var(--gray-700); left: 0;
  transition: transform var(--transition);
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }

/* Language switcher */
.lang-switcher {
  display: flex; gap: 0; align-items: center; margin-left: var(--s4);
  border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden;
}
.lang-switcher a {
  font-size: 12px; text-transform: uppercase;
  font-weight: 600; padding: 6px 12px;
  color: var(--gray-500); border: none;
  border-right: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.lang-switcher a:last-child { border-right: none; }
.lang-switcher a:hover { background: var(--gray-50); color: var(--navy); }
.lang-switcher a.active {
  background: var(--navy); color: var(--white);
}

/* === BREADCRUMB (subtle, professional) === */
.breadcrumb {
  padding: var(--s3) 0;
  font-size: 13px;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-100);
}
.breadcrumb ol { display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: var(--s1); }
.breadcrumb li + li::before { content: '/'; color: var(--gray-300); font-size: 11px; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* === HERO (banking style — full width, bold, trust) === */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--s10) var(--s4);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: var(--s3);
  max-width: 700px;
  letter-spacing: -0.03em;
}
.hero-text {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--s6);
}
.hero .btn { margin-top: var(--s2); }

/* === BUTTONS (Santander style) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* Primary = Red (Santander CTA) */
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(236,0,0,.25);
}

/* Secondary = Navy outline */
.btn-accent,
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-accent:hover,
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* White variant (for dark backgrounds) */
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Ghost */
.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.loading { opacity: .6; pointer-events: none; }

/* === CARDS (clean, corporate) === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-card-hover); }
.card h3 { font-size: 18px; margin-bottom: var(--s3); }
.card p { color: var(--gray-600); font-size: 15px; line-height: 1.7; }

/* Info grid (home page — 4 cards) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-top: var(--s6);
}
.info-grid .card {
  border-left: 4px solid var(--red);
}

/* === CONTENT SECTIONS (alternating background bands) === */
.content-section {
  padding: var(--s8) 0;
}
.content-section + .content-section {
  border-top: 1px solid var(--gray-100);
}
.content-section h2 {
  font-size: 24px;
  margin-bottom: var(--s5);
  color: var(--gray-900);
}
.content-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-600);
  max-width: 800px;
}
.content-section ul,
.content-section ol {
  padding-left: var(--s5);
  margin-bottom: var(--s4);
}
.content-section li {
  margin-bottom: var(--s2);
  list-style: disc;
  color: var(--gray-600);
  line-height: 1.7;
}

/* === REGION/COMMUNITY GRID (Santander link grid) === */
.region-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.region-grid a,
.region-link {
  display: flex;
  align-items: center;
  padding: var(--s3) 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.region-grid a:hover,
.region-link:hover {
  color: var(--red);
  padding-left: var(--s2);
}
.region-grid a::before,
.region-link::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
  margin-right: var(--s3);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.region-grid a:hover::before,
.region-link:hover::before { transform: translateX(3px) rotate(-45deg); }

/* === BANK GRID === */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
.bank-grid a,
.bank-link {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
}
.bank-grid a:hover,
.bank-link:hover {
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: var(--shadow-card);
}

/* === ATM LIST / ITEM === */
.atm-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.atm-item {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.atm-item:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-card-hover);
}
.atm-item img {
  flex-shrink: 0;
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: var(--radius);
}
.atm-item a { font-weight: 500; color: var(--navy); flex: 1; }
.atm-item a:hover { color: var(--red); }
.atm-distance {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  padding: 4px 10px;
  border-radius: 100px;
}

/* === ATM DETAIL PAGE === */
.atm-detail { padding-bottom: var(--s8); }
.atm-nav {
  display: flex;
  justify-content: space-between;
  padding: var(--s3) 0;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: var(--s5);
}
.atm-nav a { color: var(--navy); }
.atm-nav a:hover { color: var(--red); text-decoration: underline; }
.atm-header { margin-bottom: var(--s6); }
.atm-header h1 {
  font-size: 24px;
  color: var(--navy);
  border-bottom: 3px solid var(--red);
  display: inline-block;
  padding-bottom: var(--s2);
}
.atm-info { margin-bottom: var(--s6); }
.atm-info-main {
  display: flex;
  align-items: flex-start;
  gap: var(--s5);
  margin-bottom: var(--s5);
}
.atm-logo {
  width: 120px !important;
  height: auto !important;
  object-fit: contain;
  flex-shrink: 0;
}
.atm-meta p { margin-bottom: var(--s1); font-size: 15px; color: var(--gray-600); }
.atm-meta strong { color: var(--gray-800); }
.atm-details { margin-bottom: var(--s5); }
.atm-problem-notice {
  background: var(--gray-50);
  padding: var(--s4);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--warning);
  font-size: 14px;
  margin-top: var(--s4);
}
.atm-problem-notice a { color: var(--red); font-weight: 600; }
.atm-map { margin-bottom: var(--s6); }

/* Map container */
.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.map-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Customer service card */
.atm-customer-service {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--navy);
}
.atm-customer-service h3 { color: var(--navy); }

.atm-nearby { margin-top: var(--s6); }
.atm-nearby h2 { color: var(--navy); }

/* === BLOG === */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-card-hover); }
.blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-card-body {
  padding: var(--s5);
}
.blog-card-body h3 {
  font-size: 18px;
  margin-bottom: var(--s2);
  line-height: 1.4;
}
.blog-card-body p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: var(--s3);
  line-height: 1.6;
}

/* === FAQ ACCORDION (Santander style) === */
.faq-section { padding: var(--s8) 0; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s4) 0;
  background: none; border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--gray-800);
  text-align: left;
  transition: color var(--transition);
}
.faq-item__question:hover { color: var(--navy); }
.faq-item__question::after {
  content: '+'; font-size: 22px; color: var(--red);
  flex-shrink: 0; margin-left: var(--s4);
  font-weight: 300;
  transition: transform var(--transition);
}
.faq-item.is-open .faq-item__question::after { content: '\2212'; }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-item.is-open .faq-item__answer { max-height: 600px; }
.faq-item__answer p {
  padding: 0 0 var(--s4);
  color: var(--gray-500);
  line-height: 1.8;
  font-size: 15px;
}

/* === TABLES (Citi rate table style) === */
.cookie-table,
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s4) 0;
  font-size: 14px;
}
table th {
  background: var(--navy);
  color: var(--white);
  padding: var(--s3) var(--s4);
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}
table tr:hover td { background: var(--gray-50); }

/* === FORMS (banking form style) === */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: var(--s5); }
.contact-form label,
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--s2);
}
.required { color: var(--red); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,40,85,.1);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-400); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* Alerts */
.alert { padding: var(--s4); border-radius: var(--radius); margin-bottom: var(--s5); font-size: 15px; }
.alert-success { background: #E8F5E9; color: var(--success); border: 1px solid #C8E6C9; }
.alert-error { background: #FFEBEE; color: var(--error); border: 1px solid #FFCDD2; }

/* === SHARE BAR === */
.share-bar {
  display: flex;
  gap: var(--s2);
  padding: var(--s4) 0;
}
.share-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--white);
  font-size: 14px;
  transition: transform var(--transition), opacity var(--transition);
}
.share-bar a:hover { transform: translateY(-2px); opacity: .9; color: var(--white); }
.share-bar .share-fb { background: #1877F2; }
.share-bar .share-tw { background: #000; }
.share-bar .share-li { background: #0A66C2; }
.share-bar .share-wa { background: #25D366; }
.share-bar .share-tg { background: #0088CC; }

/* === FOOTER (dark, Santander style) === */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.65);
  padding: var(--s9) 0 var(--s6);
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
}
.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s4);
}
.footer p { font-size: 14px; line-height: 1.7; margin-bottom: var(--s3); }
.footer a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  transition: color var(--transition);
}
.footer a:hover { color: var(--white); }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.footer__bottom {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  font-size: 12px;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}
.footer__legal a { font-size: 12px; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  padding: var(--s5) var(--s4);
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  z-index: 200;
  display: none;
  border-top: 3px solid var(--navy);
}
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gray-600); }
.cookie-banner__actions { display: flex; gap: var(--s3); }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
}
.modal-overlay.is-visible { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s7);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
}
.modal__close {
  position: absolute;
  top: var(--s4); right: var(--s4);
  background: none; border: none;
  font-size: 24px; cursor: pointer;
  color: var(--gray-400);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { color: var(--gray-700); }

/* === LEGAL PAGES === */
.legal-page h2,
.legal-content h2 {
  font-size: 20px;
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--gray-100);
}
.legal-page h2:first-of-type,
.legal-content h2:first-of-type { border-top: none; margin-top: var(--s5); padding-top: 0; }
.legal-page h3 { font-size: 17px; margin-top: var(--s5); color: var(--gray-700); }
.legal-page p,
.legal-content p { font-size: 15px; line-height: 1.8; color: var(--gray-600); }
.legal-updated { font-size: 13px; color: var(--gray-400); font-style: italic; }

/* === SVG MAP === */
.map-spain { max-width: 600px; margin: 0 auto; }
.map-spain svg { width: 100%; height: auto; }
.map-spain svg path,
.map-spain svg [id] { transition: fill var(--transition); cursor: pointer; }

/* Error page */
.error-page { padding: var(--s12) 0; }
.error-code { font-size: 96px; color: var(--gray-200); line-height: 1; margin-bottom: var(--s2); }
.error-page h2 { color: var(--gray-600); font-weight: 400; }
.error-actions { display: flex; gap: var(--s4); justify-content: center; margin-top: var(--s6); flex-wrap: wrap; }

/* Banks section */
.banks-section { background: var(--gray-50); padding: var(--s8) 0; margin: 0 calc(-50vw + 50%); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }

/* === PAGINATION === */
.pagination { display: flex; gap: var(--s2); justify-content: center; padding: var(--s6) 0; flex-wrap: wrap; }
.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* 480px+ */
@media (min-width: 480px) {
  .bank-grid { grid-template-columns: repeat(3, 1fr); }
  .cookie-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 768px+ (tablet) */
@media (min-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 42px; }
  .hero { padding: var(--s11) var(--s4); }
  .hero-text { font-size: 18px; }
  .content-section h2 { font-size: 28px; }

  .container { padding: 0 var(--s6); }
  .hamburger { display: none; }
  .header__nav {
    display: flex !important;
    align-items: center;
    gap: var(--s5);
    position: static;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    border-top: none;
  }
  .header__nav a {
    padding: var(--s1) 0;
    border-bottom: 2px solid transparent;
  }
  .header__nav a:hover,
  .header__nav a.active {
    border-bottom-color: var(--red);
    color: var(--gray-900);
  }
  .nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: -var(--s4);
    background: var(--white);
    box-shadow: var(--shadow-card-hover);
    border-radius: var(--radius-lg);
    padding: var(--s3);
    min-width: 220px;
    z-index: 50;
    border: 1px solid var(--gray-100);
  }
  .nav-dropdown__menu a { padding: var(--s2) var(--s3); border-bottom: none; border-radius: var(--radius); }
  .nav-dropdown__menu a:hover { background: var(--gray-50); }

  .region-grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--s7); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .bank-grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .section { padding: var(--s10) 0; }
  .atm-info-main { gap: var(--s7); }
}

/* 1024px+ (desktop) */
@media (min-width: 1024px) {
  h1 { font-size: 44px; }
  .hero h1 { font-size: 52px; }
  .hero { padding: var(--s12) var(--s4); }
  .container { padding: 0 var(--s7); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
  .bank-grid { grid-template-columns: repeat(5, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .atm-header h1 { font-size: 28px; }
  .content-section { padding: var(--s9) 0; }
  .section { padding: var(--s11) 0; }
}

/* 1280px+ */
@media (min-width: 1280px) {
  .hero h1 { font-size: 56px; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; }
  .header, .footer, .cookie-banner, .share-bar, .hamburger, .modal-overlay, .atm-nav { display: none !important; }
  body { font-size: 12pt; line-height: 1.5; }
  .container { max-width: 100%; padding: 0; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
