/* Perfil y presencia internacional. Aislado del CSS compilado de la landing. */
#nosotros.equipo {
  background: var(--papel, #F5F2EB);
  padding-block: clamp(64px, 7vw, 112px);
  border-top: 1px solid var(--linea, #D9D2C4);
}
#nosotros .equipo-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
#nosotros .perfil { min-width: 0; }
#nosotros .perfil h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -.04em; }
#nosotros .perfil > p { margin-top: 22px; color: var(--gris, #59606A); font-size: 18px; line-height: 1.65; }
#nosotros .datos-equipo {
  container-type: inline-size;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  margin: 32px 0 0;
  padding: 0;
}
#nosotros .datos-equipo li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 8px;
  font-size: clamp(12px, 3.5cqi, 16px);
  font-weight: 500;
  line-height: 1.3;
}
#nosotros .datos-equipo li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 3%;
  width: 1px;
  background: var(--linea, #D9D2C4);
}
#nosotros .dato-icono { width: 44px; height: 48px; margin-bottom: 12px; fill: none; stroke: #F29B16; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#nosotros .dato-icono .detalle { stroke: var(--tinta, #15171A); }
#nosotros .datos-equipo strong { font-weight: 600; font-size: 1.55em; line-height: 1.15; letter-spacing: -.025em; }
#nosotros .datos-equipo li:first-child strong { font-size: 1.9em; }
#nosotros .presencia-equipo { position: relative; min-width: 0; overflow: hidden; background: #17191D; border: 1px solid #363B43; border-radius: 14px; color: #fff; }
#nosotros .presencia-equipo h3 { position: absolute; z-index: 1; top: 22px; left: 24px; font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.025em; pointer-events: none; }
/* La proporción se reserva antes de cargar el mapa; rutas y pines comparten coordenadas. */
#nosotros .mapa-equipo { position: relative; aspect-ratio: 1100 / 590; background: linear-gradient(175deg, #17191De6, transparent 32%), url("presencia/atlantico.svg") center / 100% 100% no-repeat; }
#nosotros .trazos-atlas { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #F29B16; stroke-width: 1.8; pointer-events: none; }
#nosotros .pin-pais { position: absolute; transform: translate(-50%, -100%); display: grid; place-items: end center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
#nosotros .gota { display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 5px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #F5F2EB; box-shadow: 0 2px 6px #0008; }
#nosotros .gota img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; transform: rotate(45deg); }
#nosotros .nombre-pin { position: absolute; left: calc(50% + 16px); bottom: 6px; color: #fff; font: 500 14px/1.1 var(--sans); text-shadow: 0 1px 3px #17191D, 0 0 4px #17191D; }
#nosotros .pin-pais[data-pais="Andorra"] .nombre-pin { left: auto; right: calc(50% + 16px); }
#nosotros .pin-pais[aria-expanded="true"] { z-index: 2; }
#nosotros .pin-pais[aria-expanded="true"] .gota { translate: 0 -4px; background: #F29B16; }
#nosotros .pin-pais[aria-expanded="true"]::before { content: ""; position: absolute; bottom: -2px; width: 14px; height: 5px; border: 1.5px solid #F29B16; border-radius: 50%; }
#nosotros .telefono-pais { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #F29B16; border-radius: 24px; background: #1F2227; color: #fff; box-shadow: 0 3px 12px #0006; font: 400 13px/1.3 var(--mono); white-space: nowrap; text-decoration: none; }
#nosotros .telefono-pais[hidden] { display: none; }
#nosotros .telefono-pais::before { content: ""; flex: none; width: 14px; height: 14px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F29B16' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-3 2a14 14 0 0 0 6 6l2-3 5 2v4c0 2-2 3-4 2C9 19 5 15 3 7c-1-2 0-4 2-4z'/%3E%3C/svg%3E"); }
#nosotros .telefono-pais:hover { background: #30353B; }
#nosotros .pin-pais:focus-visible { z-index: 2; outline: 2px solid #F29B16; outline-offset: 3px; border-radius: 5px; }
#nosotros .telefono-pais:focus-visible { outline: 2px solid #F29B16; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  #nosotros .pin-pais:hover .gota { translate: 0 -3px; box-shadow: 0 0 0 2px #F29B16, 0 5px 12px #0008; }
  #nosotros .pin-pais:hover .nombre-pin { color: #FFB23F; }
}
@media (prefers-reduced-motion: no-preference) {
  #nosotros .gota { transition: translate .18s ease-out; }
  #nosotros .rutas-preparadas .route { stroke-dasharray: 1; stroke-dashoffset: 1; }
  #nosotros .rutas-visibles .route { animation: isos-ruta 1.1s ease-out both; }
  #nosotros .rutas-visibles .route:nth-child(2) { animation-delay: .14s; }
  #nosotros .rutas-visibles .route:nth-child(3) { animation-delay: .28s; }
  @keyframes isos-ruta { to { stroke-dashoffset: 0; } }
}
@media (max-width: 850px) {
  #nosotros .equipo-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #nosotros .perfil { max-width: 650px; }
  #nosotros .presencia-equipo { width: 100%; max-width: 680px; }
}
@media (max-width: 480px) {
  #nosotros .perfil > p { font-size: 17px; }
  #nosotros .datos-equipo li { padding-inline: 5px; font-size: clamp(12px, 3.8cqi, 14px); }
  #nosotros .dato-icono { width: 38px; height: 42px; }
  #nosotros .presencia-equipo h3 { position: relative; top: auto; left: auto; padding: 18px 18px 0; font-size: 21px; }
  #nosotros .mapa-equipo { aspect-ratio: 1100 / 720; margin-bottom: 12px; }
  #nosotros .nombre-pin { font-size: 12px; }
  #nosotros .telefono-pais { gap: 6px; padding-inline: 10px; font-size: 12px; }
}

/* Con el teléfono abierto, el globo ocupa el lugar del nombre del país (la bandera sigue a la vista). */
#nosotros .pin-pais[aria-expanded="true"] .nombre-pin { opacity: 0; }
