:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#555;
  --border:#e9e9ee;

  --brand:#3b5998;
  --brand2:#2d4373;

  --max: 980px;
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* HEADER */
.site-header{
  border-bottom: 1px solid var(--border);
  background:#fff;
}
.site-header .inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width:0;
}

.logo{
  width: 120px;
  height: 50px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex: 0 0 auto;
}

.header-menu{
  position: relative;
  display:flex;
  align-items:center;
  flex: 0 0 auto;
}

.menu-toggle{
  width: 52px;
  height: 52px;
  border:1px solid #d7dfef;
  border-radius: 14px;
  background:#f4f7fd;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  padding:0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.menu-toggle:hover{
  background:#eaf0fb;
  border-color:#3b5998;
}

.menu-toggle span{
  width:22px;
  height:3px;
  background:#111;
  border-radius:999px;
  display:block;
}

.menu-dropdown{
  position:absolute;
  top: calc(100% + 10px);
  right:0;
  width: 320px;
  background:#fff;
  border:1px solid #dbe4f3;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(59, 89, 152, 0.16);
  padding:14px;
  display:none;
  flex-direction:column;
  gap:14px;
  z-index:1000;
}

.menu-dropdown.show{
  display:flex;
}

.menu-country-item{
  display:flex;
  align-items:center;
  gap:18px;
  height:52px;
  width:100%;
  text-decoration:none;
  color:#111;
  font-size:20px;
  font-weight:800;
  line-height:1;
  padding:0 18px 0 0;
  border-radius:18px;
  border:1px solid #3b5998;
  background:#f5f8ff;
  overflow:hidden;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.menu-country-item img{
  width:76px;
  height:52px;
  object-fit:cover;
  border-radius:12px;
  display:block;
  flex:0 0 auto;
}

.brand .name{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width:0;
}

.brand .name strong{
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.brand .name span{
  font-size: 12px;
  color: var(--muted);
}

/* HERO */
.hero{
  background: var(--brand);
  color: #fff;
}

.hero .inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 18px 30px;
}

h1{
  margin:0 0 8px 0;
  font-size: 42px;
  font-weight: 900;
  color:#fff;
}

.hero p{
  margin:0;
  font-size: 16px;
  opacity: .95;
}

/* MAIN */
.main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 34px;
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  padding: 18px;
}

h2{
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
}

.desc{
  color: var(--muted);
  font-size: 14px;
}

/* BOTÓN */
.btn{
  display:inline-flex;
  width: 100%;
  max-width: 420px;
  padding: 14px;
  border-radius: 14px;
  background: var(--brand);
  color:#fff;
  text-decoration:none;
  font-weight: 900;
}

.btn:hover{ background: var(--brand2); }

/* FOOTER */
.footer{
  border-top: 1px solid var(--border);
  padding: 18px;
  text-align:center;
  font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 520px){
  h1{ font-size: 34px; }
}

/* LISTA PAÍSES */
.country-list{
  max-width: var(--max);
  margin: 0 auto;
}

.country-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:52px;
  padding:0 22px 0 0;
  border-radius: var(--radius);
  background:#e6edf9;
  text-decoration:none;
  border:1px solid #3b5998;
  color:#111111;
  overflow:hidden;
}

.country-left{
  display:flex;
  align-items:center;
  gap:16px;
  height:52px;
}

.country-left img{
  width:76px;
  height:52px;
  object-fit:cover;
  border-radius:12px;
  display:block;
  flex:0 0 auto;
}

.country-left span{
  font-size:22px;
  font-weight:900;
  color:#111111;
}

.country-arrow{
  width:18px;
  height:18px;
  border-top:4px solid #111;
  border-right:4px solid #111;
  transform: rotate(45deg);
}

.country-list{
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px; /* 👈 ESPACIO REAL ENTRE BOTONES */
}

@media (max-width: 520px){
  .menu-toggle{
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

.menu-dropdown{
  width: 280px;
  right: 0;
  padding:12px;
  gap:12px;
}

.menu-country-item{
  font-size:18px;
  height:52px;
  line-height:1;
  padding:0 14px 0 0;
  gap:14px;
  border-radius:16px;
}

.menu-country-item img{
  width:76px;
  height:52px;
  object-fit:cover;
  border-radius:12px;
}
}
