/* ── PRESENCE ── */
#presencia {
  background: #0a0a0a;
  padding: 110px 48px;
}

#presencia .section-eyebrow {
  color: #C9A84A;
  text-align: center;
  letter-spacing: .18em;
}

#presencia .section-title {
  color: #ffffff;
  text-align: center;
  font-size: 2.6rem;
}
#presencia .section-title em {
  color: #C9A84A;
  font-style: normal;
}

#presencia .section-lead {
  color: #9CA3AF;
  text-align: center;
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

#presencia .countries-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 64px;
}

/* Card sin fondo — solo línea */
#presencia .country-card {
  background: transparent;
  border: 1px solid rgba(201, 168, 74, 0.25);
  border-radius: 4px;
  overflow: hidden;
  width: 320px;
  text-align: center;
  box-shadow: none;
  transition: border-color .3s ease, transform .3s ease;
  cursor: default;
}
#presencia .country-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 74, 0.6);
}

/* Franja superior — ahora una línea dorada fina en vez de bandera de color */
#presencia .flag-banner {
  width: 100%;
  height: 1px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, #C9A84A, transparent);
  background-size: 200% 100%;
  animation: flagWave 3.5s ease-in-out infinite;
}
#presencia .flag-banner-pe,
#presencia .flag-banner-cl {
  background: linear-gradient(90deg, transparent, #C9A84A, transparent);
  background-size: 200% 100%;
}
#presencia .flag-banner-cl::before {
  content: none; /* quitamos el bloque azul/rojo sólido */
}
@keyframes flagWave {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#presencia .card-inner {
  padding: 40px 32px 44px;
}

/* Banderas: contorno de línea en vez de bloques de color sólido */
#presencia .country-flag-visual {
  width: 100px; height: 60px;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 24px;
  box-shadow: none;
  border: 1px solid rgba(201, 168, 74, 0.35);
  animation: flagFloat 4s ease-in-out infinite;
  transform-origin: center center;
}
@keyframes flagFloat {
  0%,100% { transform: skewY(0deg) scaleX(1); }
  25%     { transform: skewY(.6deg) scaleX(1.01); }
  50%     { transform: skewY(-.4deg) scaleX(.99); }
  75%     { transform: skewY(.3deg) scaleX(1.005); }
}

/* Colores internos de banderas se mantienen (referencia visual),
   el filtro de arriba les da el tono dorado/monocromo por defecto */
#presencia .flag-pe { display: flex; width: 100%; height: 100%; }
#presencia .flag-pe .s { flex: 1; }
#presencia .flag-pe .s:nth-child(1) { background: #D91023; }
#presencia .flag-pe .s:nth-child(2) { background: #fff; }
#presencia .flag-pe .s:nth-child(3) { background: #D91023; }

#presencia .flag-cl { position: relative; width: 100%; height: 100%; }
#presencia .flag-cl .cl-top { position: absolute; top: 0; left: 0; right: 0; height: 50%; display: flex; }
#presencia .flag-cl .cl-blue { width: 33%; height: 100%; background: #003087; display: flex; align-items: center; justify-content: center; }
#presencia .flag-cl .cl-star { color: #fff; font-size: 14px; line-height: 1; }
#presencia .flag-cl .cl-white { flex: 1; height: 100%; background: #fff; }
#presencia .flag-cl .cl-red { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: #D52B1E; }

#presencia .country-name {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

/* Divisor tipo línea dorada, ya no color de bandera */
#presencia .country-divider {
  width: 40px; height: 1px;
  margin: 0 auto 20px;
  border-radius: 0;
  background: #C9A84A;
}
#presencia .country-divider.pe,
#presencia .country-divider.cl {
  background: #C9A84A;
}

#presencia .country-detail {
  font-size: .92rem;
  color: #9CA3AF;
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 700px) {
  #presencia {
    padding: 80px 24px;
  }
  #presencia .section-title {
    font-size: 2rem;
  }
  #presencia .countries-grid {
    flex-direction: column;
    align-items: center;
  }
  #presencia .country-card {
    width: 100%;
    max-width: 360px;
  }
}