@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #0753a8;
  --blue-dark: #073f83;
  --orange: #f58213;
  --white: #ffffff;
  --text: #06458e;
  --shadow: 0 12px 28px rgba(22, 67, 112, .13);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f8fafc;
  color: var(--text);
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* HEADER */
.topbar {
  height: 78px;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 92px);
  background: rgba(255,255,255,.97);
  border-bottom: 2px solid #a8d4ec;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: .82;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  transform: skew(-7deg);
}

.brand-small {
  font-size: 17px;
  letter-spacing: .4px;
  color: var(--blue);
}

.brand-main {
  font-size: 30px;
  color: var(--orange);
  letter-spacing: -.5px;
}

.desktop-nav {
  display: none;
}

.menu-btn {
  display: block;
  width: 38px;
  height: 38px;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 3px;
  margin: 5px 0;
  border-radius: 3px;
  background: var(--blue);
}

/* HERO */
.hero {
  position: relative;
  flex: 1;
  min-height: 570px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fondo personalizado: coloca la imagen en /img/fondo.jpg */
  background-image: url('../img/fondo-final.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-map {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 13% 30% at 64% 18%, transparent 49%, #bcd8e9 50% 52%, transparent 53%),
    radial-gradient(ellipse 15% 36% at 69% 38%, transparent 47%, #c8dfed 48% 51%, transparent 52%),
    radial-gradient(ellipse 12% 27% at 61% 61%, transparent 47%, #c8dfed 48% 51%, transparent 52%),
    linear-gradient(120deg, transparent 55%, rgba(190,216,233,.4) 55.5%, transparent 56%),
    linear-gradient(72deg, transparent 58%, rgba(190,216,233,.25) 58.5%, transparent 59%);
  filter: blur(.2px);
}

.hero-map::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -140px;
  top: -170px;
  border-radius: 50%;
  border: 90px solid rgba(196,221,236,.18);
}

.hero-watermark {
  display: none;
  position: absolute;
  left: 7%;
  top: 8%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(160px, 25vw, 360px);
  line-height: 1;
  font-weight: 800;
  color: rgba(255,255,255,.38);
  letter-spacing: -20px;
  transform: skew(-10deg);
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1080px, 90%);
  text-align: center;
  padding: 50px 0 62px;
}

.title-block { margin-bottom: 28px; }



.logo-large img {
    width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .logo-large img {
        width: 150px;
    }
}




.logo-small {
  color: var(--blue);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: 1px;
}

.logo-gdm {
  color: var(--orange);
  font-size: clamp(54px, 6.5vw, 76px);
  letter-spacing: -2px;
}

h1 {
  margin: 13px 0 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 4.4vw, 55px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--blue-dark);
}

.title-block p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 5px;
  font-weight: 500;
  color: #6c8296;
}

.title-block p strong {
  color: var(--blue-dark);
  font-weight: 800;
}

.orange-line {
  width: 62px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 8px;
  background: var(--orange);
}

/* DESKTOP CARDS */
.countries-desktop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0 auto;
  max-width: 850px;
}

.country-card {
  min-height: 190px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #edf2f5;
  border-radius: 10px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(22, 67, 112, .19);
}

.country-card strong,
.country-row strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  color: var(--blue-dark);
}

.arrow {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  color: var(--blue);
}

/* BANDERAS POR URL */
.flag {
  width: 78px;
  height: 52px;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.12);
}

.flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MOBILE */
.countries-mobile { display: none; }

.footer { flex: 0 0 auto; }

.footer-blue {
  height: 10px;
  background: var(--blue);
}

.footer-orange {
  min-height: 56px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  background: var(--orange);
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 700;
}

.footer-orange small {
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 600;
  opacity: .95;
}

.mobile-menu {
  position: fixed;
  z-index: 50;
  top: 72px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 20px 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 25px rgba(0,0,0,.12);
  transform: translate3d(0, -120%, 0);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
}

.mobile-menu.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear 0s;
}

.mobile-menu a {
  padding: 13px 5px;
  border-bottom: 1px solid #e7edf2;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

/* TABLET / MOBILE */
@media (max-width: 700px) {
  .topbar {
    height: 72px;
    padding: 0 20px;
  }

  .desktop-nav { display: none; }
  .menu-btn { display: block; }

  .hero {
    min-height: calc(100vh - 128px);
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
    padding: 42px 20px 42px;
  }

  .hero-map {
    opacity: .23;
  }

  .hero-watermark {
    left: -15%;
    top: 8%;
    font-size: 210px;
  }

  .title-block { margin-bottom: 22px; }

  .logo-small { font-size: 34px; }
  .logo-gdm { font-size: 52px; }

  h1 {
    font-size: 39px;
    margin-top: 12px;
  }

  .title-block p {
    font-size: 9px;
    letter-spacing: 3.5px;
    line-height: 1.6;
  }

  .orange-line {
    margin-top: 13px;
    width: 55px;
  }

  .countries-desktop { display: none; }

  .countries-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(430px, 100%);
    margin: 0 auto;
  }

  .country-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 7px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 5px 15px rgba(20, 72, 113, .13);
    border: 1px solid rgba(220,232,240,.9);
  }

  .country-row .flag {
    width: 58px;
    height: 38px;
    margin: 0 15px 0 0;
    flex: 0 0 auto;
  }

  .country-row strong {
    font-size: 16px;
    text-align: left;
    flex: 1;
  }

  .row-arrow {
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    color: var(--blue);
    padding-right: 3px;
  }

  .footer-blue { height: 7px; }

  .footer-orange {
    min-height: 58px;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    letter-spacing: 3px;
  }

  .footer-orange small {
    font-size: 7px;
    letter-spacing: 2.2px;
  }
}

@media (max-width: 380px) {
  .hero-content { padding-top: 30px; }
  h1 { font-size: 35px; }
  .country-row { min-height: 55px; }
}


/* MENÚ HAMBURGUESA SIEMPRE VISIBLE: PC + MÓVIL */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  padding: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-btn span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 3px 0;
  border-radius: 3px;
  background: var(--blue);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 700px) {
  .mobile-menu {
    top: 72px;
  }
}
